1 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3 * Fix some indentation mistakes throughout.
5 2021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
7 * .dir-locals.el: Set sentence-end-double-space for all modes, and
8 set brace-list-open to 0 for C and C++ modes.
10 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
12 * linux-low.cc (linux_process_target::wait_for_event_filtered):
13 Adjust to status_to_str returning std::string.
15 2021-05-08 Pedro Alves <pedro@palves.net>
18 (linux_process_target::supports_disable_randomization): Remove
19 reference to HAVE_PERSONALITY.
20 * config.in, configure: Regenerate.
22 2021-05-08 Pedro Alves <pedro@palves.net>
24 * linux-low.cc: Don't include sys/personality.h or define
27 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
29 * server.cc (handle_v_attach)
31 (handle_v_kill): Make void.
33 2021-05-03 Tom Tromey <tromey@adacore.com>
36 * win32-i386-low.cc (i386_get_thread_context): Call
37 Wow64GetThreadContext, not win32_Wow64GetThreadContext.
39 2021-04-30 Tom Tromey <tromey@adacore.com>
41 * win32-low.cc (do_initial_child_stuff): Update.
42 (windows_nat::handle_load_dll): Rename from win32_add_one_solib.
43 Change parameter type.
44 (win32_add_dll, win32_add_all_dlls)
45 (windows_nat::handle_load_dll): Remove.
46 (get_child_debug_event): Call dll_loaded_event.
48 2021-04-30 Tom Tromey <tromey@adacore.com>
50 * win32-low.cc (GETPROCADDRESS): Remove.
51 (winapi_DebugActiveProcessStop, winapi_DebugSetProcessKillOnExit)
52 (winapi_DebugBreakProcess, winapi_GenerateConsoleCtrlEvent)
53 (winapi_Wow64SetThreadContext, win32_Wow64GetThreadContext)
54 (win32_Wow64SetThreadContext): Remove.
55 (win32_set_thread_context, do_initial_child_stuff)
56 (win32_process_target::attach, win32_process_target::detach):
58 (winapi_EnumProcessModules, winapi_EnumProcessModulesEx)
59 (winapi_GetModuleInformation, winapi_GetModuleInformationA):
61 (win32_EnumProcessModules, win32_EnumProcessModulesEx)
62 (win32_GetModuleInformation, win32_GetModuleInformationA):
65 (win32_add_dll, win32_process_target::request_interrupt): Update.
66 (initialize_low): Call initialize_loadable.
68 2021-04-14 Tom Tromey <tromey@adacore.com>
70 * win32-low.cc (windows_nat::handle_load_dll): Don't check
73 2021-04-13 Pedro Alves <pedro@palves.net>
75 * gdbreplay.c [__MINGW32CE__] (COUNTOF, errno, strerror): Remove.
77 2021-04-13 Tom Tromey <tromey@adacore.com>
79 * win32-low.cc (winapi_CreateToolhelp32Snapshot)
80 (winapi_Module32First, winapi_Module32Next): Remove typedefs.
82 2021-04-13 Pedro Alves <pedro@palves.net>
84 * Makefile.in (SFILES): Remove hostio-errno.cc.
85 * configure: Regenerate.
86 * configure.ac (GDBSERVER_DEPFILES): No longer add
88 * configure.srv (srv_hostio_err_objs): Delete.
89 * hostio-errno.cc: Delete.
90 * hostio.cc (hostio_error): Inline hostio_last_error_from_errno
92 * hostio.h (hostio_last_error_from_errno): Delete.
93 * target.cc (process_stratum_target::hostio_last_error): Delete.
94 * target.h (class process_stratum_target) <hostio_last_error>:
97 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
99 * win32-low.cc: Remove all code guarded by _WIN32_WCE.
100 * win32-low.h: Likewise.
102 2021-04-12 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
104 * target.h (class process_stratum_target) <pid_to_exec_file>:
105 Constify the return type. Update the definition/references below.
106 * target.cc (process_stratum_target::pid_to_exec_file)
107 * linux-low.h (class linux_process_target) <pid_to_exec_file>
108 * linux-low.cc (linux_process_target::pid_to_exec_file)
109 * netbsd-low.h (class netbsd_process_target) <pid_to_exec_file>
110 * netbsd-low.cc (netbsd_process_target::pid_to_exec_file)
111 * server.cc (handle_qxfer_exec_file)
113 2021-04-11 Eli Zaretskii <eliz@gnu.org>
115 * win32-low.cc (win32_add_dll): New function, with body almost
116 identical to what win32_add_all_dlls did. Accepts one argument;
117 if that is non-NULL, returns the file name of the DLL that is
118 loaded at the base address equal to that argument, or NULL if not
119 found. If the argument is NULL, add all the DLLs loaded by the
120 inferior to the list of solibs and return NULL.
121 (win32_add_all_dlls): Now a thin wrapper around win32_add_dll.
122 (windows_nat::handle_load_dll) [!_WIN32_WCE]: If get_image_name
123 failed to glean the file name of the DLL, call win32_add_dll to
124 try harder using the lpBaseOfDll member of the load-DLL event.
126 2021-03-30 Luis Machado <luis.machado@linaro.org>
128 * server.cc (handle_general_set, handle_query): Update variable
129 to bool and fix verification logic.
131 2021-03-24 Luis Machado <luis.machado@linaro.org>
133 * Makefile.in (SFILES): Add /../gdb/nat/aarch64-mte-linux-ptrace.c.
134 * configure.srv (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o and
135 nat/aarch64-mte-linux-ptrace.o.
136 * linux-aarch64-low.cc: Include nat/aarch64-mte-linux-ptrace.h.
137 (class aarch64_target) <supports_memory_tagging>
138 <fetch_memtags, store_memtags>: New method overrides.
139 (aarch64_target::supports_memory_tagging)
140 (aarch64_target::fetch_memtags)
141 (aarch64_target::store_memtags): New methods.
143 2021-03-24 Luis Machado <luis.machado@linaro.org>
145 * linux-aarch64-low.cc (aarch64_fill_mteregset): New function.
146 (aarch64_store_mteregset): New function.
147 (aarch64_regsets): Add MTE register set entry.
148 (aarch64_sve_regsets): Add MTE register set entry.
150 2021-03-24 Luis Machado <luis.machado@linaro.org>
152 * linux-aarch64-ipa.cc (get_ipa_tdesc): Update call to
153 aarch64_linux_read_description.
154 (initialize_low_tracepoint): Likewise.
155 * linux-aarch64-low.cc (aarch64_target::low_arch_setup): Take MTE flag
157 * linux-aarch64-tdesc.cc (tdesc_aarch64_list): Add one more dimension
159 (aarch64_linux_read_description): Add mte_p parameter and update to
161 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add mte_p
164 2021-03-24 Luis Machado <luis.machado@linaro.org>
166 * linux-aarch64-low.cc: Include arch/aarch64-mte-linux.h.
168 2021-03-24 Luis Machado <luis.machado@linaro.org>
170 * server.cc (test_memory_tagging_functions): New function.
171 (captured_main): Register test_memory_tagging_functions.
173 2021-03-24 Luis Machado <luis.machado@linaro.org>
175 * remote-utils.cc (decode_m_packet_params): Renamed from ...
176 (decode_m_packet): ... this, which now calls decode_m_packet_params.
177 Make char * param/return const char *.
178 (decode_M_packet): Use decode_m_packet_params and make char * param
180 * remote-utils.h (decode_m_packet_params): New prototype.
181 (decode_m_packet): Constify char pointers.
182 (decode_M_packet): Likewise.
183 * server.cc (create_fetch_memtags_reply)
184 (parse_store_memtags_request): New
186 (handle_general_set): Handle the QMemTags packet.
187 (parse_fetch_memtags_request): New function.
188 (handle_query): Handle the qMemTags packet and advertise memory
190 (captured_main): Initialize memory tagging flag.
191 * server.h (struct client_state): Initialize memory tagging flag.
192 * target.cc (process_stratum_target::supports_memory_tagging)
193 (process_stratum_target::fetch_memtags)
194 (process_stratum_target::store_memtags): New methods.
195 * target.h: Include gdbsupport/byte-vector.h.
196 (class process_stratum_target) <supports_memory_tagging>
197 <fetch_memtags, store_memtags>: New class virtual methods.
198 (target_supports_memory_tagging): Define.
200 2021-03-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
202 * inferiors.h (struct process_info) <all_dlls, dlls_changed>: New
205 (unloaded_dll): Declare an overloaded version that takes a proc
207 * dll.cc (loaded_dll)
208 (unloaded_dll): Implement the overloaded versions.
209 (clear_dlls): Clear all process' dll lists.
210 (all_dlls, dlls_changed): Remove the global variables.
211 * remote-utils.cc (prepare_resume_reply): Update to consider a dll
213 * server.cc (handle_qxfer_libraries): Ditto.
214 (handle_v_attach): Ditto.
215 (captured_main): Ditto.
217 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
219 * linux-low.cc (linux_process_target::filter_event): Return
221 * linux-low.h (class linux_process_target) <filter_event>:
224 2021-02-12 Tom Tromey <tromey@adacore.com>
226 * gdbreplay.cc (remote_desc): Remove.
227 (remote_desc_in, remote_desc_out): New globals.
228 (remote_close): Update.
229 (remote_open): Handle "-".
230 (remote_open): Update.
231 (logchar): Log to stderr.
232 (expect, play): Update.
234 2021-02-12 Tom Tromey <tromey@adacore.com>
236 * gdbreplay.cc (remote_open): Constify.
238 2021-02-05 Paul E. Murphy <murphyp@linux.ibm.com>
240 * Makefile.in (UNDO_GNULIB_CFLAGS): Disable
241 gnulib free replacement too.
242 * common-defs.h [USE_WIN32API](read, write): Undefine
243 gnulib versions before defining these macros.
245 2021-02-03 Pedro Alves <pedro@palves.net>
247 * linux-low.cc (linux_process_target::complete_ongoing_step_over):
248 Discard step SIGTRAP, unless GDB wanted the thread to step.
250 2021-02-03 Pedro Alves <pedro@palves.net>
252 * server.cc (discard_queued_stop_replies): Don't ever discard the
253 notification at the head of the list.
255 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
257 * ax.cc (bytecode_address_table): Make static.
258 * debug.cc (debug_file): Make static.
259 * linux-low.cc (stopping_threads): Make static.
260 (step_over_bkpt): Make static.
261 * linux-x86-low.cc (amd64_emit_ops, i386_emit_ops): Make static.
262 * tracepoint.cc (stop_tracing_bkpt, flush_trace_buffer_bkpt,
263 alloced_trace_state_variables, trace_buffer_ctrl,
264 tracing_start_time, tracing_stop_time, tracing_user_name,
265 tracing_notes, tracing_stop_note): Make static.
267 2021-01-20 Tom de Vries <tdevries@suse.de>
269 * linux-x86-low.cc (collect_register_i386): New function.
270 (x86_fill_gregset): Remove memset. Use collect_register_i386.
272 2021-01-07 Tom de Vries <tdevries@suse.de>
274 * Makefile.in (LIBIBERTY_NORMAL, LIBIBERTY_NOASAN, LIBIBERTY_PIC):
275 (LIBIBERTY_FOR_SHLIB): New var.
276 (LIBIBERTY): Set using $(LIBIBERTY_NORMAL).
277 (IPA_LIB): Use LIBIBERTY_FOR_SHLIB instead of LIBIBERTY in target rule.
279 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
281 * debug.cc (debug_print_depth): New.
283 2021-01-01 Joel Brobecker <brobecker@adacore.com>
285 * server.cc (gdbserver_version): Update copyright year.
286 * gdbreplay.cc (gdbreplay_version): Likewise.
288 2020-12-16 Luis Machado <luis.machado@linaro.org>
290 * linux-aarch64-low.cc (address_significant): New function.
291 (aarch64_target::low_stopped_data_address): Handle the TBI.
293 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
295 * Makefile.in (IPA_LIB): Include libiberty library.
297 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
299 * server.cc (gdbserver_usage): Add missing option to usage text.
300 (gdbserver_show_disableable): Likewise.
302 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
304 * ax.cc: Fix indentation.
305 * dll.cc: Fix indentation.
306 * inferiors.h: Fix indentation.
307 * linux-low.cc: Fix indentation.
308 * linux-nios2-low.cc: Fix indentation.
309 * linux-ppc-ipa.cc: Fix indentation.
310 * linux-ppc-low.cc: Fix indentation.
311 * linux-x86-low.cc: Fix indentation.
312 * linux-xtensa-low.cc: Fix indentation.
313 * regcache.cc: Fix indentation.
314 * server.cc: Fix indentation.
315 * tracepoint.cc: Fix indentation.
317 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
319 * acinclude.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
321 * configure: Re-generate.
323 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
325 * configure: Re-generate.
327 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
329 * configure: Re-generate.
331 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
333 * configure: Re-generate.
335 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
337 * configure: Re-generate.
339 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
341 * configure.ac: Modernize.
342 * configure: Re-generate.
344 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
346 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
348 * configure: Re-generate.
350 2020-10-26 Pedro Alves <pedro@palves.net>
352 * netbsd-low.cc (netbsd_waitpid, netbsd_process_target::kill)
353 (netbsd_qxfer_libraries_svr4): Use gdb::handle_eintr without
356 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
358 * acinclude.m4: Update ptrace.m4 path.
360 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
362 * config.in: Re-generate.
363 * configure: Re-generate.
365 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
367 * server.cc (handle_general_set): Don't use sprintf with
368 argument overlapping buffer.
370 2020-10-20 Tom Tromey <tromey@adacore.com>
373 * inferiors.cc (remove_thread): Clear current_thread before
376 2020-10-13 Kamil Rytarowski <n54@gmx.com>x
378 * netbsd-low.cc (netbsd_tdesc): Remove.
379 (netbsd_add_process): Likewise.
380 (netbsd_process_target::create_inferior): Update.
382 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
384 * linux-arc-low.cc (arc_linux_read_description): Release the
385 unique_ptr returned from arc_create_target_description.
387 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
389 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
390 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
392 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
394 * linux-low.cc (linux_process_target::handle_extended_wait):
395 Release the unique_ptr returned from allocate_target_description.
396 * linux-riscv-low.cc (riscv_target::low_arch_setup): Likewise.
397 * linux-x86-low.cc (tdesc_amd64_linux_no_xml): Change type.
398 (tdesc_i386_linux_no_xml): Change type.
399 (x86_linux_read_description): Borrow pointer from unique_ptr
401 (x86_target::get_ipa_tdesc_idx): Likewise.
402 (initialize_low_arch): Likewise.
403 * tdesc.cc (allocate_target_description): Update return type.
405 2020-10-07 Tom Tromey <tromey@adacore.com>
407 * server.cc (handle_search_memory): Remove dead code.
409 2020-10-07 Tom Tromey <tromey@adacore.com>
411 * server.cc (handle_search_memory_1): Remove.
412 (handle_search_memory): Use simple_search_memory.
414 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
416 * Makefile.in (COMPILE): Add CXXFLAGS.
417 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
418 (gdbserver$(EXEEXT)): Add CXXFLAGS.
419 (gdbreplay$(EXEEXT)): Add CXXFLAGS.
420 ($(IPA_LIB)): Add CXXFLAGS.
421 (IPAGENT_COMPILE): Add CXXFLAGS.
423 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
425 * configure.srv: Support ARC architecture.
426 * Makefile.in: Add linux-arc-low.cc and arch/arc.o.
427 * linux-arc-low.cc: New file.
429 2020-10-07 Kamil Rytarowski <n54@gmx.com>
431 * netbsd-low.cc (get_dynamic, get_r_debug, read_one_ptr)
432 (netbsd_qxfer_libraries_svr4): Remove "target" argument and update.
433 (netbsd_process_target::qxfer_libraries_svr4): Update.
435 2020-10-07 Kamil Rytarowski <n54@gmx.com>
437 * netbsd-low.cc: Fix whitespace formatting.
438 * netbsd-amd64-low.cc: Likewise.
440 2020-10-07 Kamil Rytarowski <n54@gmx.com>
442 * netbsd-low.cc (netbsd_process_target::read_memory)
443 (netbsd_process_target::write_memory): Update.
445 2020-10-07 Kamil Rytarowski <n54@gmx.com>
447 * netbsd-aarch64-low.cc: Add.
448 * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
449 * configure.srv: Add aarch64*-*-netbsd*.
451 2020-10-06 Shahab Vahedi <shahab@synopsys.com>
453 * regcache.cc (register_data): Remove unused "fetch" argument.
455 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
457 * server.cc (handle_monitor_command): Handle "set
459 (captured_main): Handle "--debug-event-loop".
460 (monitor_show_help): Mention new setting.
461 (gdbserver_usage): Mention new flag.
463 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
465 * linux-low.cc (linux_process_target::async): Pass name to
467 * remote-utils.cc (handle_accept_event): Likewise.
468 (remote_open): Likewise.
470 2020-10-01 Kamil Rytarowski <n54@gmx.com>
472 * netbsd-i386-low.cc: Add.
473 * Makefile.in (SFILES): Register "netbsd-i386-low.c".
474 * configure.srv: Add i[34567]86-*-netbsd*.
476 2020-10-01 Kamil Rytarowski <n54@gmx.com>
478 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
479 (netbsd_target_regsets): Now const.
480 (the_low_target): Remove.
481 (class netbsd_amd64_target, the_netbsd_amd64_target)
482 (the_netbsd_target): Add.
483 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
485 (netbsd_process_target::fetch_registers)
486 (netbsd_process_target::store_registers, initialize_low): Update.
487 (the_netbsd_target): Remove.
488 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
489 (the_low_target, netbsd_tdesc): Remove.
490 (netbsd_process_target::get_regs_info)
491 (netbsd_process_target::low_arch_setup): Add.
493 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
495 * win32-low.cc: Remove local wow64_process variable.
496 * win32-low.h: Remove local wow64_process variable.
498 2020-09-18 Tom Tromey <tromey@adacore.com>
500 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
501 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
502 (netbsd_process_target::wait): Change type of target_options.
503 * win32-low.h (class win32_process_target) <wait>: Update.
504 * win32-low.cc (win32_process_target::wait): Update.
505 * target.h (class process_stratum_target) <wait>: Update.
507 * target.cc (mywait, target_wait): Change type of "options".
508 * linux-low.h (class linux_process_target) <wait, wait_1>:
510 * linux-low.cc (linux_process_target::wait)
511 (linux_process_target::wait_1): Update.
513 2020-09-15 Tom Tromey <tromey@adacore.com>
515 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
516 (xmltarget_amd64_linux_no_xml): Now arrays.
518 2020-09-14 Tom Tromey <tromey@adacore.com>
520 * tracepoint.cc (eval_result_names): Now const.
521 * ax.cc (gdb_agent_op_names): Now const.
523 2020-09-10 Kamil Rytarowski <n54@gmx.com>
525 * netbsd-low.cc: Add.
526 * netbsd-low.h: Likewise.
527 * netbsd-amd64-low.cc: Likewise.
528 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
529 "netbsd-amd64-low.cc".
530 * configure.srv: Add x86_64-*-netbsd*.
532 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
534 * server.cc (captured_main): Accept multiple `--selftest=`
535 options. Pass all `--selftest=` arguments to run_tests.
537 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
539 * configure, config.in: Regenerate.
541 2020-07-26 Eli Zaretskii <eliz@gnu.org>
543 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
544 When checking whether socklen_t type is defined, use ws2tcpip.h if
545 it is available and sys/socket.h isn't.
546 * configure: Regenerate.
547 * config.in: Regenerate.
549 2020-07-22 Pedro Alves <pedro@palves.net>
551 * inferiors.cc (switch_to_process): New, moved here from
552 thread-db.cc, and made extern.
553 * inferiors.h (switch_to_process): Declare.
554 * server.cc: Include "gdbsupport/scoped_restore.h".
555 (handle_qxfer_threads_proper): Now returns bool. Prepare to
556 access memory around target calls.
557 (handle_qxfer_threads): Handle errors.
558 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
560 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
562 * linux-low.cc (stopped_pids): Make static.
564 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
566 * tdesc.cc (allocate_target_description): Add header comment.
567 (target_desc_deleter::operator()): New function.
568 * tdesc.h (struct target_desc): Declare as final.
570 2020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
572 * server.cc (handle_query): Use std::vector of
573 std::string for `qsupported` vector. Use separate
575 * target.h (class process_stratum_target) <process_qsupported>:
576 Change parameters to array_view of const char *.
577 (target_process_qsupported): Remove `count` parameter.
578 * target.cc (process_stratum_target::process_qsupported): Change
579 parameters to array_view of const char *.
580 * linux-x86-low.cc (class x86_target) <process_qsupported>:
583 2020-06-29 Tom de Vries <tdevries@suse.de>
585 * ax.h: Include gdbsupport/debug_agent.h.
587 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
589 * tdesc.cc (struct tdesc_compatible_info): New struct.
590 (tdesc_compatible_info_list): New function.
591 (tdesc_compatible_info_arch_name): New function.
593 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
595 Use std::list to stop pending signal instead of manually-created
597 * linux-low.h: Include <list>.
598 (struct pending_signal): Move here from linux-low.cc.
599 (struct lwp_info) <pending_signals>
600 <pending_signals_to_report>: Update the type.
601 * linux-low.cc (struct pending_signals): Remove.
602 (linux_process_target::delete_lwp)
603 (linux_process_target::add_lwp)
604 (enqueue_one_deferred_signal)
605 (dequeue_one_deferred_signal)
606 (enqueue_pending_signal)
607 (linux_process_target::resume_one_lwp_throw)
608 (linux_process_target::thread_needs_step_over)
609 (linux_process_target::resume_one_thread)
610 (linux_process_target::proceed_one_lwp): Update the use of pending
613 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
615 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
618 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
620 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
621 * configure.srv: Remove mingw32ce cases.
622 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
623 * win32-low.h (to_back_slashes): Remove.
624 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
626 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
628 * Makefile.in (SFILES): linux-tile-low.cc.
629 * configure.srv: Remove tilegx case.
630 * linux-tile-low.cc: Remove.
632 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
634 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
635 * configure.srv: Remove m32r case.
636 * linux-m32r-low.cc: Remove.
638 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
640 * Makefile.in (SFILES): Remove linux-cris-low.c.
641 * configure.srv: Remove cris cases.
642 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
644 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
646 * Makefile.in (SFILES): Remove linux-bfin-low.c.
647 * configure.srv: Remove bfin case.
648 * linux-bfin-low.cc: Remove.
649 * linux-low.cc: Remove BFIN-conditional code.
651 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
653 * configure: Re-generate.
654 * configure.ac: Remove srv_qnx test.
655 * configure.srv: Remove nto case.
656 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
657 * remote-utils.c: Remove __QNX__-guarded code.
659 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
661 * configure: Re-generate.
662 * configure.ac: Remove srv_lynxos test.
663 * configure.srv: Remove lynxos cases.
664 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
667 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
669 * README: Fix a few outdated or incoherent things.
671 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
673 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
674 (win32_clear_inferiors): Use open_process_used.
675 (get_child_debug_event): Likewise.
677 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
680 * linux-low.cc (linux_process_target::create_inferior),
681 lynx-low.cc (lynx_process_target::create_inferior),
682 win32-low.cc (win32_process_target::create_inferior): Use
683 construct_inferior_arguments instead of stringify_argv
684 to get string representation which properly escapes
686 * server.cc (handle_v_run): Just pass empty program arg
687 as such, since any further processing is now handled via
688 construct_inferior_arguments.
690 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
692 * nto-low.cc (nto_process_target::create_inferior): Pass
693 argv to spawnp function as char **.
695 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
697 * server.cc (captured_main), (handle_v_run): No longer
698 insert extra NULL element to args vector.
700 2020-05-23 Pedro Alves <palves@redhat.com>
702 * gdb-safe-ctype.h: New.
704 2020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
706 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
707 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
708 (ia64_target::low_breakpoint_at): Ditto.
710 2020-05-15 Hannes Domani <ssbssa@yahoo.de>
712 * win32-i386-low.cc (i386_supports_z_point_type): Handle
713 Z_PACKET_HW_BP z_type.
714 (i386_insert_point): Handle raw_bkpt_type type.
715 (i386_remove_point): Likewise.
717 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
719 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
721 * win32-arm-low.cc (arm_num_regs): New function.
722 (struct win32_target_ops): Use arm_num_regs.
723 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
725 (i386_get_thread_context): Likewise.
726 (i386_prepare_to_resume): Likewise.
727 (i386_thread_added): Likewise.
728 (i386_single_step): Likewise.
729 (i386_fetch_inferior_register): Likewise.
730 (i386_store_inferior_register): Likewise.
731 (i386_arch_setup): Likewise.
732 (i386_win32_num_regs): New function.
733 (struct win32_target_ops): Use i386_win32_num_regs.
734 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
736 (win32_require_context): Likewise.
737 (child_add_thread): Likewise.
738 (do_initial_child_stuff): Likewise.
739 (continue_one_thread): Likewise.
740 (win32_process_target::resume): Likewise.
741 (load_psapi): Likewise.
742 (win32_add_all_dlls): Likewise.
743 (maybe_adjust_pc): Likewise.
744 (win32_process_target::qxfer_siginfo): Likewise.
745 (initialize_low): Likewise.
746 * win32-low.h (struct win32_target_ops): Change num_regs to
749 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
751 * configure.ac: Remove check for fs_base/gs_base in
753 * configure: Re-generate.
754 * config.in: Re-generate.
755 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
756 x86_store_gregset): Adjust.
758 2020-04-22 Hannes Domani <ssbssa@yahoo.de>
760 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
763 2020-04-16 Tom Tromey <tromey@adacore.com>
765 * win32-low.cc (windows_nat::handle_access_violation): New
768 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
770 * win32-low.cc (get_child_debug_event): Fix format string warning.
772 2020-04-13 Tom Tromey <tom@tromey.com>
774 * server.h (gdb_fildes_t): Remove typedef.
775 * remote-utils.c (remote_desc, list_desc): Now int.
776 (INVALID_DESCRIPTOR): Remove.
777 (gdb_connected, remote_close)
778 (check_remote_input_interrupt_request): Update.
779 * utils.h (pfildes): Don't declare.
780 * utils.c (pfildes): Remove.
782 2020-04-13 Tom Tromey <tom@tromey.com>
784 * server.h (handle_serial_event, handle_target_event): Update.
785 * server.c: Don't call initialize_event_loop.
786 (keep_processing_events): New global.
787 (handle_serial_event): Return void. Set keep_processing_events.
788 (handle_target_event): Return void.
789 (start_event_loop): Move from event-loop.c. Rewrite.
790 * remote-utils.c (handle_accept_event): Return void.
791 (reset_readchar): Use delete_timer.
792 (process_remaining): Return void.
793 (reschedule): Use create_timer.
794 * event-loop.h: Remove.
795 * event-loop.cc: Remove.
796 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
798 2020-04-13 Tom Tromey <tom@tromey.com>
800 * server.c (invoke_async_signal_handlers)
801 (check_async_event_handlers, flush_streams, gdb_select): New
804 2020-04-13 Tom Tromey <tom@tromey.com>
806 * configure: Rebuild.
807 * config.in: Rebuild.
809 2020-04-08 Tom Tromey <tromey@adacore.com>
812 * win32-low.c (child_continue): Call matching_pending_stop.
813 (get_child_debug_event): Call fetch_pending_stop. Push pending
816 2020-04-08 Tom Tromey <tromey@adacore.com>
818 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
819 (win32_process_target::supports_stopped_by_sw_breakpoint):
821 * win32-low.c (win32_supports_z_point_type): Always handle
823 (win32_insert_point): Call insert_memory_breakpoint when needed.
824 (win32_remove_point): Call remove_memory_breakpoint when needed.
825 (win32_process_target::stopped_by_sw_breakpoint)
826 (win32_process_target::supports_stopped_by_sw_breakpoint): New
828 (win32_target_ops): Update.
829 (maybe_adjust_pc): New function.
830 (win32_wait): Call maybe_adjust_pc.
832 2020-04-08 Tom Tromey <tromey@adacore.com>
834 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
836 * win32-i386-low.c (the_low_target): Update.
837 * win32-arm-low.c (the_low_target): Update.
839 2020-04-08 Tom Tromey <tromey@adacore.com>
841 * win32-low.h (win32_process_target::read_pc)
842 (win32_process_target::write_pc): Declare.
843 * win32-low.c (win32_process_target::read_pc)
844 (win32_process_target::write_pc): New methods.
845 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
847 (the_low_target): Update.
848 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
850 (the_low_target): Update.
852 2020-04-08 Tom Tromey <tromey@adacore.com>
854 * win32-low.c (win32_kill, get_child_debug_event): Use
855 wait_for_debug_event.
857 2020-04-08 Tom Tromey <tromey@adacore.com>
859 * win32-low.c (child_continue): Call continue_last_debug_event.
861 2020-04-08 Tom Tromey <tromey@adacore.com>
863 * win32-low.c (handle_exception): Remove.
864 (windows_nat::handle_ms_vc_exception): New function.
865 (get_child_debug_event): Add "continue_status" parameter.
867 (win32_wait): Update.
869 2020-04-08 Tom Tromey <tromey@adacore.com>
871 * win32-low.c (windows_nat::handle_load_dll): Rename from
872 handle_load_dll. No longer static.
873 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
876 2020-04-08 Tom Tromey <tromey@adacore.com>
878 * win32-low.c (handle_output_debug_string): Add parameter. Change
880 (win32_kill, get_child_debug_event): Update.
882 2020-04-08 Tom Tromey <tromey@adacore.com>
884 * win32-low.c (current_process_handle, current_process_id)
885 (main_thread_id, last_sig, current_event, siginfo_er): Move to
888 2020-04-08 Tom Tromey <tromey@adacore.com>
890 * win32-low.c (get_image_name): Remove.
891 (handle_load_dll): Update.
893 2020-04-08 Tom Tromey <tromey@adacore.com>
895 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
896 No longer static. Change parameters.
897 (child_add_thread, child_fetch_inferior_registers)
898 (child_store_inferior_registers, win32_resume)
899 (win32_get_tib_address): Update.
901 2020-04-08 Tom Tromey <tromey@adacore.com>
903 * win32-low.h (struct win32_target_ops): Use qualified names where
905 * win32-i386-low.c: Add "using namespace".
906 * win32-low.c: Add "using namespace".
907 * win32-arm-low.c: Add "using namespace".
909 2020-04-08 Tom Tromey <tromey@adacore.com>
911 * win32-low.c (delete_thread_info): Don't call CloseHandle.
913 2020-04-08 Tom Tromey <tromey@adacore.com>
915 * win32-low.c (win32_require_context, suspend_one_thread): Use
916 windows_thread_info::suspend.
917 (continue_one_thread): Use windows_thread_info::resume.
918 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
920 2020-04-08 Tom Tromey <tromey@adacore.com>
922 * win32-i386-low.c (update_debug_registers)
923 (i386_prepare_to_resume, i386_thread_added): Update.
925 2020-04-08 Tom Tromey <tromey@adacore.com>
927 * win32-low.c (child_add_thread): Use new.
928 (delete_thread_info): Use delete.
930 2020-04-08 Tom Tromey <tromey@adacore.com>
932 * win32-low.h (struct windows_thread_info): Remove.
934 2020-04-08 Tom Tromey <tromey@adacore.com>
936 * win32-low.h (struct windows_thread_info): Rename from
937 win32_thread_info. Remove typedef.
938 (struct win32_target_ops, win32_require_context): Update.
939 * win32-low.c (win32_get_thread_context)
940 (win32_set_thread_context, win32_prepare_to_resume)
941 (win32_require_context, thread_rec, child_add_thread)
942 (delete_thread_info, continue_one_thread)
943 (child_fetch_inferior_registers, child_store_inferior_registers)
944 (win32_resume, suspend_one_thread, win32_get_tib_address):
946 * win32-i386-low.c (update_debug_registers)
947 (win32_get_current_dr, i386_get_thread_context)
948 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
949 (i386_fetch_inferior_register, i386_store_inferior_register):
951 * win32-arm-low.c (arm_get_thread_context)
952 (arm_fetch_inferior_register, arm_store_inferior_register):
955 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
957 * linux-low.h (struct linux_target_ops): Remove.
958 (the_low_target): Remove.
959 * linux-x86-low.cc (the_low_target): Remove.
960 * linux-aarch64-low.cc (the_low_target): Ditto.
961 * linux-arm-low.cc (the_low_target): Ditto.
962 * linux-bfin-low.cc (the_low_target): Ditto.
963 * linux-cris-low.cc (the_low_target): Ditto.
964 * linux-crisv32-low.cc (the_low_target): Ditto.
965 * linux-ia64-low.cc (the_low_target): Ditto.
966 * linux-m32r-low.cc (the_low_target): Ditto.
967 * linux-m68k-low.cc (the_low_target): Ditto.
968 * linux-mips-low.cc (the_low_target): Ditto.
969 * linux-nios2-low.cc (the_low_target): Ditto.
970 * linux-ppc-low.cc (the_low_target): Ditto.
971 * linux-riscv-low.cc (the_low_target): Ditto.
972 * linux-s390-low.cc (the_low_target): Ditto.
973 * linux-sh-low.cc (the_low_target): Ditto.
974 * linux-sparc-low.cc (the_low_target): Ditto.
975 * linux-tic6x-low.cc (the_low_target): Ditto.
976 * linux-tile-low.cc (the_low_target): Ditto.
977 * linux-xtensa-low.cc (the_low_target): Ditto.
979 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
981 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
982 linux target define the op by overriding the declaration in
983 process_stratum_target.
985 * linux-low.h (struct linux_target_ops): Remove the op.
986 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
987 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
988 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
989 (x86_get_ipa_tdesc_idx): Turn into...
990 (x86_target::get_ipa_tdesc_idx): ...this.
991 (the_low_target): Remove the op field.
992 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
993 (ppc_get_ipa_tdesc_idx): Turn into...
994 (ppc_target::get_ipa_tdesc_idx): ...this.
995 (the_low_target): Remove the op field.
996 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
997 (s390_get_ipa_tdesc_idx): Turn into...
998 (s390_target::get_ipa_tdesc_idx): ...this.
999 (the_low_target): Remove the op field.
1001 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1003 Turn the 'get_syscall_trapinfo' linux target op into a method
1004 of process_stratum_target.
1006 * linux-low.h (struct linux_target_ops): Remove the op.
1007 (class linux_process_target) <get_syscall_trapinfo>
1008 <gdb_catch_this_syscall>
1009 <low_supports_catch_syscall>
1010 <low_get_syscall_trapinfo>: Declare.
1011 * linux-low.cc (get_syscall_trapinfo): Turn into...
1012 (linux_process_target::get_syscall_trapinfo): ...this.
1013 (linux_process_target::low_get_syscall_trapinfo): Define.
1014 (gdb_catch_this_syscall_p): Turn into...
1015 (linux_process_target::gdb_catch_this_syscall): ...this.
1016 (linux_process_target::low_supports_catch_syscall): Define.
1018 Update the callers below.
1020 (linux_process_target::wait_1)
1021 (linux_process_target::supports_catch_syscall)
1023 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
1024 <low_get_syscall_trapinfo>: Declare.
1025 (x86_target::low_supports_catch_syscall): Define.
1026 (x86_get_syscall_trapinfo): Turn into...
1027 (x86_target::low_get_syscall_trapinfo): ...this.
1028 (the_low_target): Remove the op field.
1029 * linux-aarch64-low.cc (class aarch64_target)
1030 <low_supports_catch_syscall>
1031 <low_get_syscall_trapinfo>: Declare.
1032 (aarch64_target::low_supports_catch_syscall): Define.
1033 (aarch64_get_syscall_trapinfo): Turn into...
1034 (aarch64_target::low_get_syscall_trapinfo): ...this.
1035 (the_low_target): Remove the op field.
1036 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
1037 <low_get_syscall_trapinfo>: Declare.
1038 (arm_target::low_supports_catch_syscall): Define.
1039 (arm_get_syscall_trapinfo): Turn into...
1040 (arm_target::low_get_syscall_trapinfo): ...this.
1041 (the_low_target): Remove the op field.
1042 * linux-ppc-low.cc (the_low_target): Remove the op field.
1043 * linux-s390-low.cc (the_low_target): Remove the op field.
1045 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1047 Remove the 'supports_hardware_single_step' linux target op and
1048 override the process_stratum_target's op definition in
1049 linux_process_target to return true.
1051 * linux-low.h (struct linux_target_ops): Remove the op.
1052 (class linux_process_target) <finish_step_over>
1053 <maybe_hw_step>: Declare.
1054 * linux-low.cc (can_hardware_single_step): Remove.
1055 (maybe_hw_step): Turn into...
1056 (linux_process_target::maybe_hw_step): ...this.
1057 (finish_step_over): Turn into...
1058 (linux_process_target::finish_step_over): ...this.
1059 (linux_process_target::supports_hardware_single_step): Update
1062 Update the callers below.
1064 (linux_process_target::single_step)
1065 (linux_process_target::resume_one_lwp_throw)
1067 * linux-arm-low.cc (class arm_target)
1068 <supports_hardware_single_step>: Declare.
1069 (arm_supports_hardware_single_step): Turn into...
1070 (arm_target::supports_hardware_single_step): ...this.
1071 (the_low_target): Remove the op field.
1072 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
1073 (the_low_target): Remove the op field.
1074 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
1076 (the_low_target): Remove the op field.
1077 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
1078 (the_low_target): Remove the op field.
1079 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
1080 (the_low_target): Remove the op field.
1081 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
1082 (the_low_target): Remove the op field.
1083 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
1084 (the_low_target): Remove the op field.
1085 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
1086 (the_low_target): Remove the op field.
1087 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
1088 (the_low_target): Remove the op field.
1089 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
1090 (the_low_target): Remove the op field.
1091 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
1092 (the_low_target): Remove the op field.
1093 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
1094 (the_low_target): Remove the op field.
1095 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
1097 (the_low_target): Remove the op field.
1099 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1101 Turn the 'supports_range_stepping' linux target op into a method
1102 of linux_process_target.
1104 * linux-low.h (struct linux_target_ops): Remove the op.
1105 (class linux_process_target) <low_supports_range_stepping>: Declare.
1106 * linux-low.cc (linux_process_target::low_supports_range_stepping):
1108 (linux_process_target::supports_range_stepping): Update the call
1110 * linux-x86-low.cc (class x86_target)
1111 <low_supports_range_stepping>: Declare.
1112 (x86_supports_range_stepping): Turn into...
1113 (x86_target::low_supports_range_stepping): ...this.
1114 (the_low_target): Remove the op field.
1115 * linux-aarch64-low.cc (class aarch64_target)
1116 <low_supports_range_stepping>: Declare.
1117 (aarch64_supports_range_stepping): Turn into...
1118 (aarch64_target::low_supports_range_stepping): ...this.
1119 (the_low_target): Remove the op field.
1120 * linux-arm-low.cc (the_low_target): Remove the op field.
1121 * linux-bfin-low.cc (the_low_target): Ditto.
1122 * linux-crisv32-low.cc (the_low_target): Ditto.
1123 * linux-m32r-low.cc (the_low_target): Ditto.
1124 * linux-m68k-low.cc (the_low_target): Ditto.
1125 * linux-ppc-low.cc (the_low_target): Ditto.
1126 * linux-s390-low.cc (the_low_target): Ditto.
1127 * linux-sh-low.cc (the_low_target): Ditto.
1128 * linux-tic6x-low.cc (the_low_target): Ditto.
1129 * linux-tile-low.cc (the_low_target): Ditto.
1130 * linux-xtensa-low.cc (the_low_target): Ditto.
1132 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1134 Remove the 'emit_ops' linux target ops and let the concrete
1135 linux target define the op by overriding the declaration of
1136 process_stratum_target.
1138 * linux-low.h (struct linux_target_ops): Remove the op.
1139 (class linux_process_target) <emit_ops>: Remove.
1140 * linux-low.cc (linux_process_target::emit_ops): Remove.
1141 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
1142 (x86_emit_ops): Turn into...
1143 (x86_target::emit_ops): ...this.
1144 (the_low_target): Remove the op field.
1145 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
1146 (aarch64_emit_ops): Turn into...
1147 (aarch64_target::emit_ops): ...this.
1148 (the_low_target): Remove the op field.
1149 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
1150 (ppc_emit_ops): Turn into...
1151 (ppc_target::emit_ops): ...this.
1152 (the_low_target): Remove the op field.
1153 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
1154 (s390_emit_ops): Turn into...
1155 (s390_target::emit_ops): ...this.
1156 (the_low_target): Remove the op field.
1157 * linux-arm-low.cc (the_low_target): Remove the op field.
1158 * linux-bfin-low.cc (the_low_target): Ditto.
1159 * linux-crisv32-low.cc (the_low_target): Ditto.
1160 * linux-m32r-low.cc (the_low_target): Ditto.
1161 * linux-m68k-low.cc (the_low_target): Ditto.
1162 * linux-sh-low.cc (the_low_target): Ditto.
1163 * linux-tic6x-low.cc (the_low_target): Ditto.
1164 * linux-tile-low.cc (the_low_target): Ditto.
1165 * linux-xtensa-low.cc (the_low_target): Ditto.
1167 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1169 Remove the 'install_fast_tracepoint_jump_pad' and
1170 'get_min_fast_tracepoint_insn_len' linux target ops to let the
1171 concrete linux target define the ops by overriding the declarations
1172 of process_stratum_target.
1174 * linux-low.h (struct linux_target_ops): Remove the ops.
1175 (class linux_process_target) <supports_fast_tracepoints>
1176 <install_fast_tracepoint_jump_pad>
1177 <get_min_fast_tracepoint_insn_len>: Remove.
1178 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
1179 (linux_process_target::install_fast_tracepoint_jump_pad)
1180 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
1181 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
1182 <install_fast_tracepoint_jump_pad>
1183 <get_min_fast_tracepoint_insn_len>: Declare.
1184 (x86_target::supports_fast_tracepoints): Define.
1185 (x86_install_fast_tracepoint_jump_pad): Turn into...
1186 (x86_target::install_fast_tracepoint_jump_pad): ...this.
1187 (x86_get_min_fast_tracepoint_insn_len): Turn into...
1188 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
1189 (the_low_target): Remove the op fields.
1190 * linux-aarch64-low.cc (class aarch64_target)
1191 <supports_fast_tracepoints>
1192 <install_fast_tracepoint_jump_pad>
1193 <get_min_fast_tracepoint_insn_len>: Declare.
1194 (aarch64_target::supports_fast_tracepoints): Define.
1195 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
1196 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
1197 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
1198 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
1199 (the_low_target): Remove the op fields.
1200 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
1201 <install_fast_tracepoint_jump_pad>
1202 <get_min_fast_tracepoint_insn_len>: Declare.
1203 (ppc_target::supports_fast_tracepoints): Define.
1204 (ppc_install_fast_tracepoint_jump_pad): Turn into...
1205 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
1206 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
1207 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
1208 (the_low_target): Remove the op fields.
1209 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
1210 <install_fast_tracepoint_jump_pad>
1211 <get_min_fast_tracepoint_insn_len>: Declare.
1212 (s390_target::supports_fast_tracepoints): Define.
1213 (s390_install_fast_tracepoint_jump_pad): Turn into...
1214 (s390_target::install_fast_tracepoint_jump_pad): ...this.
1215 (s390_get_min_fast_tracepoint_insn_len): Turn into...
1216 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
1217 (the_low_target): Remove the op fields.
1218 * linux-arm-low.cc (the_low_target): Remove the op fields.
1219 * linux-bfin-low.cc (the_low_target): Ditto.
1220 * linux-crisv32-low.cc (the_low_target): Ditto.
1221 * linux-m32r-low.cc (the_low_target): Ditto.
1222 * linux-m68k-low.cc (the_low_target): Ditto.
1223 * linux-sh-low.cc (the_low_target): Ditto.
1224 * linux-tic6x-low.cc (the_low_target): Ditto.
1225 * linux-tile-low.cc (the_low_target): Ditto.
1226 * linux-xtensa-low.cc (the_low_target): Ditto.
1228 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1230 Turn the 'get_thread_area' linux target op into a method of
1231 process_stratum_target.
1233 * linux-low.h (struct linux_target_ops): Remove the op.
1234 (class linux_process_target) <stuck_in_jump_pad>
1235 <linux_fast_tracepoint_collecting>
1236 <low_get_thread_area>: Declare.
1237 * linux-low.cc (supports_fast_tracepoints): Remove.
1238 (linux_fast_tracepoint_collecting): Turn into...
1239 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
1240 (linux_process_target::low_get_thread_area): Define.
1241 (stuck_in_jump_pad_callback): Turn into...
1242 (linux_process_target::stuck_in_jump_pad): ...this.
1244 Update the caller below.
1246 (linux_process_target::stabilize_threads)
1248 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
1250 (x86_get_thread_area): Turn into...
1251 (x86_target::low_get_thread_area): ...this.
1252 (the_low_target): Remove the op field.
1253 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
1255 (aarch64_get_thread_area): Turn into...
1256 (aarch64_target::low_get_thread_area): ...this.
1257 (the_low_target): Remove the op field.
1258 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
1260 (ppc_get_thread_area): Turn into...
1261 (ppc_target::low_get_thread_area): ...this.
1262 (the_low_target): Remove the op field.
1263 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
1265 (s390_get_thread_area): Turn into...
1266 (s390_target::low_get_thread_area): ...this.
1267 (the_low_target): Remove the op field.
1268 * linux-arm-low.cc (the_low_target): Remove the op field.
1269 * linux-bfin-low.cc (the_low_target): Ditto.
1270 * linux-crisv32-low.cc (the_low_target): Ditto.
1271 * linux-m32r-low.cc (the_low_target): Ditto.
1272 * linux-m68k-low.cc (the_low_target): Ditto.
1273 * linux-sh-low.cc (the_low_target): Ditto.
1274 * linux-tic6x-low.cc (the_low_target): Ditto.
1275 * linux-tile-low.cc (the_low_target): Ditto.
1276 * linux-xtensa-low.cc (the_low_target): Ditto.
1278 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1280 Remote the 'supports_tracepoints' linux target op and let the
1281 concrete linux target define it by overriding the op declared in
1282 process_stratum_target.
1284 * linux-low.h (struct linux_target_ops): Remove the op.
1285 (class linux_process_target) <supports_tracepoints>: Remove.
1286 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
1287 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
1289 (x86_supports_tracepoints): Turn into...
1290 (x86_target::supports_tracepoints): ...this.
1291 (the_low_target): Remove the op field.
1292 * linux-aarch64-low.cc (class aarch64_target)
1293 <supports_tracepoints>: Declare.
1294 (aarch64_supports_tracepoints): Turn into...
1295 (aarch64_target::supports_tracepoints): ...this.
1296 (the_low_target): Remove the op field.
1297 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
1299 (ppc_supports_tracepoints): Turn into...
1300 (ppc_target::supports_tracepoints): ...this.
1301 (the_low_target): Remove the op field.
1302 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
1304 (s390_supports_tracepoints): Turn into...
1305 (s390_target::supports_tracepoints): ...this.
1306 (the_low_target): Remove the op field.
1307 * linux-arm-low.cc (the_low_target): Remove the op field.
1308 * linux-bfin-low.cc (the_low_target): Ditto.
1309 * linux-crisv32-low.cc (the_low_target): Ditto.
1310 * linux-m32r-low.cc (the_low_target): Ditto.
1311 * linux-m68k-low.cc (the_low_target): Ditto.
1312 * linux-sh-low.cc (the_low_target): Ditto.
1313 * linux-tic6x-low.cc (the_low_target): Ditto.
1314 * linux-tile-low.cc (the_low_target): Ditto.
1315 * linux-xtensa-low.cc (the_low_target): Ditto.
1317 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1319 Remove the 'process_qsupported' linux target op and let a concrete
1320 linux target define the op by overriding the op declaration in
1321 process_stratum_target.
1323 * linux-low.h (struct linux_target_ops): Remove the op.
1324 (class linux_process_target) <process_qsupported>: Remove.
1325 * linux-low.cc (linux_process_target::process_qsupported): Remove.
1326 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
1327 (x86_linux_process_qsupported): Turn into...
1328 (x86_target::process_qsupported): ...this.
1329 (the_low_target): Remove the op field.
1330 * linux-aarch64-low.cc (the_low_target): Remove the op
1332 * linux-arm-low.cc (the_low_target): Ditto.
1333 * linux-bfin-low.cc (the_low_target): Ditto.
1334 * linux-crisv32-low.cc (the_low_target): Ditto.
1335 * linux-m32r-low.cc (the_low_target): Ditto.
1336 * linux-m68k-low.cc (the_low_target): Ditto.
1337 * linux-ppc-low.cc (the_low_target): Ditto.
1338 * linux-s390-low.cc (the_low_target): Ditto.
1339 * linux-sh-low.cc (the_low_target): Ditto.
1340 * linux-tic6x-low.cc (the_low_target): Ditto.
1341 * linux-tile-low.cc (the_low_target): Ditto.
1342 * linux-xtensa-low.cc (the_low_target): Ditto.
1344 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1346 Turn the 'prepare_to_resume' linux target op into a method of
1347 linux_process_target.
1349 * linux-low.h (struct linux_target_ops): Remove the op.
1350 (class linux_process_target) <low_prepare_to_resume>: Declare.
1351 * linux-low.cc (linux_process_target::low_prepare_to_resume):
1354 Update the callers below:
1356 (linux_process_target::resume_one_lwp_throw)
1357 (linux_process_target::low_prepare_to_resume)
1359 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
1361 (x86_target::low_prepare_to_resume): Define.
1362 (the_low_target): Remove the op field.
1363 * linux-aarch64-low.cc (class aarch64_target)
1364 <low_prepare_to_resume>: Declare.
1365 (aarch64_target::low_prepare_to_resume): Define.
1366 (the_low_target): Remove the op field.
1367 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
1369 (arm_prepare_to_resume): Turn into...
1370 (arm_target::low_prepare_to_resume): ...this.
1371 (the_low_target): Remove the op field.
1372 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
1374 (mips_linux_prepare_to_resume): Turn into...
1375 (mips_target::low_prepare_to_resume): ...this.
1376 (the_low_target): Remove the op field.
1377 * linux-bfin-low.cc (the_low_target): Remove the op field.
1378 * linux-crisv32-low.cc (the_low_target): Ditto.
1379 * linux-m32r-low.cc (the_low_target): Ditto.
1380 * linux-m68k-low.cc (the_low_target): Ditto.
1381 * linux-ppc-low.cc (the_low_target): Ditto.
1382 * linux-s390-low.cc (the_low_target): Ditto.
1383 * linux-sh-low.cc (the_low_target): Ditto.
1384 * linux-tic6x-low.cc (the_low_target): Ditto.
1385 * linux-tile-low.cc (the_low_target): Ditto.
1386 * linux-xtensa-low.cc (the_low_target): Ditto.
1388 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1390 Turn the 'new_process', 'delete_process', 'new_thread',
1391 'delete_thread', and 'new_fork' linux target ops into methods
1392 of linux_process_target.
1394 * linux-low.h (struct linux_target_ops): Remove the ops.
1395 (class linux_process_target) <add_linux_process>
1400 <check_zombie_leaders>
1403 <low_delete_process>
1406 <low_new_fork>: Declare.
1407 * linux-low.cc (delete_lwp): Turn into...
1408 (linux_process_target::delete_lwp): ...this.
1409 (linux_process_target::low_delete_thread): Define.
1410 (linux_add_process): Turn into...
1411 (linux_process_target::add_linux_process): ...this.
1412 (linux_process_target::low_new_process): Define.
1413 (linux_process_target::low_delete_process): Define.
1414 (linux_process_target::low_new_fork): Define.
1415 (add_lwp): Turn into...
1416 (linux_process_target::add_lwp): ...this.
1417 (linux_process_target::low_new_thread): Define.
1418 (linux_attach_lwp): Turn into...
1419 (linux_process_target::attach_lwp): ...this.
1420 (linux_detach_one_lwp): Turn into...
1421 (linux_process_target::detach_one_lwp): ...this.
1422 (linux_detach_lwp_callback): Remove and inline...
1423 (linux_process_target::detach): ...here.
1424 (check_zombie_leaders): Turn into...
1425 (linux_process_target::check_zombie_leaders): ...this.
1426 (filter_exit_event): Turn into...
1427 (linux_process_target::filter_exit_event): ...this.
1429 Update the callers below.
1431 (linux_process_target::handle_extended_wait)
1432 (linux_process_target::create_inferior)
1433 (attach_proc_task_lwp_callback)
1434 (linux_process_target::attach)
1435 (linux_process_target::detach)
1436 (linux_process_target::mourn)
1437 * thread-db.cc (attach_thread)
1439 * linux-x86-low.cc (class x86_target) <low_new_process>
1440 <low_delete_process>
1443 <low_new_fork>: Declare.
1444 (x86_linux_new_process): Turn into...
1445 (x86_target::low_new_process): ...this.
1446 (x86_linux_delete_process): Turn into...
1447 (x86_target::low_delete_process): ...this.
1448 (x86_target::low_new_thread): Define.
1449 (x86_target::low_delete_thread): Define.
1450 (x86_linux_new_fork): Turn into...
1451 (x86_target::low_new_fork): ...this.
1452 (the_low_target): Remove the op fields.
1453 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
1454 <low_delete_process>
1457 <low_new_fork>: Declare.
1458 (aarch64_linux_new_process): Turn into...
1459 (aarch64_target::low_new_process): ...this.
1460 (aarch64_linux_delete_process): Turn into...
1461 (aarch64_target::low_delete_process): ...this.
1462 (aarch64_target::low_new_thread): Define.
1463 (aarch64_target::low_delete_thread): Define.
1464 (aarch64_linux_new_fork): Turn into...
1465 (aarch64_target::low_new_fork): ...this.
1466 (the_low_target): Remove the op fields.
1467 * linux-arm-low.cc (class arm_target) <low_new_process>
1468 <low_delete_process>
1471 <low_new_fork>: Declare.
1472 (arm_new_process): Turn into...
1473 (arm_target::low_new_process): ...this.
1474 (arm_delete_process): Turn into...
1475 (arm_target::low_delete_process): ...this.
1476 (arm_new_thread): Turn into...
1477 (arm_target::low_new_thread): ...this.
1478 (arm_delete_thread): Turn into...
1479 (arm_target::low_delete_thread): ...this.
1480 (arm_new_fork): Turn into...
1481 (arm_target::low_new_fork): ...this.
1482 (the_low_target): Remove the op fields.
1483 * linux-mips-low.cc (class mips_target) <low_new_process>
1484 <low_delete_process>
1487 <low_new_fork>: Declare.
1488 (mips_linux_new_process): Turn into...
1489 (mips_target::low_new_process): ...this.
1490 (mips_linux_delete_process): Turn into...
1491 (mips_target::low_delete_process): ...this.
1492 (mips_linux_new_thread): Turn into...
1493 (mips_target::low_new_thread): ...this.
1494 (mips_linux_delete_thread): Turn into...
1495 (mips_target::low_delete_thread): ...this.
1496 (mips_linux_new_fork): Turn into...
1497 (mips_target::low_new_fork): ...this.
1498 (the_low_target): Remove the op fields.
1499 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1500 * linux-crisv32-low.cc (the_low_target): Ditto.
1501 * linux-m32r-low.cc (the_low_target): Ditto.
1502 * linux-m68k-low.cc (the_low_target): Ditto.
1503 * linux-ppc-low.cc (the_low_target): Ditto.
1504 * linux-s390-low.cc (the_low_target): Ditto.
1505 * linux-sh-low.cc (the_low_target): Ditto.
1506 * linux-tic6x-low.cc (the_low_target): Ditto.
1507 * linux-tile-low.cc (the_low_target): Ditto.
1508 * linux-xtensa-low.cc (the_low_target): Ditto.
1510 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1512 Turn the 'siginfo_fixup' linux target op into a method of
1513 linux_process_target.
1515 * linux-low.h (struct linux_target_ops): Remove the op.
1516 (class linux_process_target) <siginfo_fixup>
1517 <low_siginfo_fixup>: Declare.
1518 * linux-low.cc (siginfo_fixup): Turn into...
1519 (linux_process_target::siginfo_fixup): ...this.
1520 (linux_process_target::low_siginfo_fixup): Define.
1521 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1522 (x86_siginfo_fixup): Turn into...
1523 (x86_target::low_siginfo_fixup): ...this.
1524 (the_low_target): Remove the op field.
1525 * linux-aarch64-low.cc (class aarch64_target):
1526 <low_siginfo_fixup>: Declare.
1527 (aarch64_linux_siginfo_fixup): Turn into...
1528 (aarch64_target::low_siginfo_fixup): ...this.
1529 (the_low_target): Remove the op field.
1530 * linux-arm-low.cc (the_low_target): Remove the op field.
1531 * linux-bfin-low.cc (the_low_target): Ditto.
1532 * linux-crisv32-low.cc (the_low_target): Ditto.
1533 * linux-m32r-low.cc (the_low_target): Ditto.
1534 * linux-m68k-low.cc (the_low_target): Ditto.
1535 * linux-mips-low.cc (the_low_target): Ditto.
1536 * linux-ppc-low.cc (the_low_target): Ditto.
1537 * linux-s390-low.cc (the_low_target): Ditto.
1538 * linux-sh-low.cc (the_low_target): Ditto.
1539 * linux-tic6x-low.cc (the_low_target): Ditto.
1540 * linux-tile-low.cc (the_low_target): Ditto.
1541 * linux-xtensa-low.cc (the_low_target): Ditto.
1543 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1545 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1546 linux target ops into methods of linux_process_target.
1548 * linux-low.h (struct linux_target_ops): Remove the ops.
1549 (class linux_process_target) <low_collect_ptrace_register>
1550 <low_store_ptrace_register>: Declare.
1551 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1552 (linux_process_target::low_supply_ptrace_register): Define.
1554 Update the callers below.
1556 (linux_process_target::fetch_register)
1557 (linux_process_target::store_register)
1559 * linux-x86-low.cc (the_low_target): Remove the op fields.
1560 * linux-aarch64-low.cc (the_low_target): Ditto.
1561 * linux-arm-low.cc (the_low_target): Ditto.
1562 * linux-bfin-low.cc (the_low_target): Ditto.
1563 * linux-crisv32-low.cc (the_low_target): Ditto.
1564 * linux-m32r-low.cc (the_low_target): Ditto.
1565 * linux-m68k-low.cc (the_low_target): Ditto.
1566 * linux-sh-low.cc (the_low_target): Ditto.
1567 * linux-sparc-low.cc (the_low_target): Ditto.
1568 * linux-tic6x-low.cc (the_low_target): Ditto.
1569 * linux-tile-low.cc (the_low_target): Ditto.
1570 * linux-xtensa-low.cc (the_low_target): Ditto.
1571 * linux-mips-low.cc (class mips_target)
1572 <low_collect_ptrace_register>
1573 <low_supply_ptrace_register>: Declare.
1574 (mips_collect_ptrace_register): Turn into ...
1575 (mips_target::low_collect_ptrace_register): ...this.
1576 (mips_supply_ptrace_register): Turn into...
1577 (mips_target::low_supply_ptrace_register): ...this.
1578 (the_low_target): Remove the op fields.
1579 * linux-ppc-low.cc (class ppc_target)
1580 <low_collect_ptrace_register>
1581 <low_supply_ptrace_register>: Declare.
1582 (ppc_collect_ptrace_register): Turn into ...
1583 (ppc_target::low_collect_ptrace_register): ...this.
1584 (ppc_supply_ptrace_register): Turn into ...
1585 (ppc_target::low_supply_ptrace_register): ...this.
1586 (ppc_fill_gregset): Update for the calls to
1587 low_collect_ptrace_register.
1588 (the_low_target): Remove the op fields.
1589 * linux-s390-low.cc (class s390_target)
1590 <low_collect_ptrace_register>
1591 <low_supply_ptrace_register>: Declare.
1592 (s390_collect_ptrace_register): Turn into ...
1593 (s390_target::low_collect_ptrace_register): ...this.
1594 (s390_supply_ptrace_register): Turn into ...
1595 (s390_target::low_supply_ptrace_register): ...this.
1596 (s390_fill_gregset): Update for the calls to
1597 low_collect_ptrace_register.
1598 (the_low_target): Remove the op fields.
1600 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1602 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1603 target ops into methods of linux_process_target.
1605 * linux-low.h (struct linux_target_ops): Remove the ops.
1606 (class linux_process_target) <check_stopped_by_watchpoint>
1607 <low_stopped_by_watchpoint>
1608 <low_stopped_data_address>: Declare.
1609 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1610 (linux_process_target::check_stopped_by_watchpoint): ...this.
1611 (linux_process_target::low_stopped_by_watchpoint): Define.
1612 (linux_process_target::low_stopped_data_address): Define.
1613 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1614 <low_stopped_data_address>: Declare.
1615 (x86_stopped_by_watchpoint): Turn into...
1616 (x86_target::low_stopped_by_watchpoint): ...this.
1617 (x86_stopped_data_address): Turn into...
1618 (x86_target::low_stopped_data_address): ...this.
1619 (the_low_target): Remove the op fields.
1620 * linux-aarch64-low.cc (class aarch64_target)
1621 <low_stopped_by_watchpoint>
1622 <low_stopped_data_address>: Declare.
1623 (aarch64_stopped_by_watchpoint): Turn into...
1624 (aarch64_target::low_stopped_by_watchpoint): ...this.
1625 (aarch64_stopped_data_address): Turn into...
1626 (aarch64_target::low_stopped_data_address): ...this.
1627 (the_low_target): Remove the op fields.
1628 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1629 <low_stopped_data_address>: Declare.
1630 (arm_stopped_by_watchpoint): Turn into...
1631 (arm_target::low_stopped_by_watchpoint): ...this.
1632 (arm_stopped_data_address): Turn into...
1633 (arm_target::low_stopped_data_address): ...this.
1634 (the_low_target): Remove the op fields.
1635 * linux-crisv32-low.cc (class crisv32_target)
1636 <low_stopped_by_watchpoint>
1637 <low_stopped_data_address>: Declare.
1638 (cris_stopped_by_watchpoint): Turn into...
1639 (crisv32_target::low_stopped_by_watchpoint): ...this.
1640 (cris_stopped_data_address): Turn into...
1641 (crisv32_target::low_stopped_data_address): ...this.
1642 (the_low_target): Remove the op fields.
1643 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1644 <low_stopped_data_address>: Declare.
1645 (mips_stopped_by_watchpoint): Turn into...
1646 (mips_target::low_stopped_by_watchpoint): ...this.
1647 (mips_stopped_data_address): Turn into...
1648 (mips_target::low_stopped_data_address): ...this.
1649 (the_low_target): Remove the op fields.
1650 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1651 * linux-m32r-low.cc (the_low_target): Ditto.
1652 * linux-m68k-low.cc (the_low_target): Ditto.
1653 * linux-ppc-low.cc (the_low_target): Ditto.
1654 * linux-s390-low.cc (the_low_target): Ditto.
1655 * linux-sh-low.cc (the_low_target): Ditto.
1656 * linux-sparc-low.cc (the_low_target): Ditto.
1657 * linux-tic6x-low.cc (the_low_target): Ditto.
1658 * linux-tile-low.cc (the_low_target): Ditto.
1659 * linux-xtensa-low.cc (the_low_target): Ditto.
1661 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1663 Turn the 'insert_point' and 'remove_point' linux target ops into
1664 methods of linux_process_target.
1666 * linux-low.h (struct linux_target_ops): Remove the ops.
1667 (class linux_process_target) <low_insert_point>
1668 <low_remove_point>: Declare.
1669 * linux-low.cc (linux_process_target::low_insert_point)
1670 (linux_process_target::low_remove_point): Define.
1671 (linux_process_target::insert_point)
1672 (linux_process_target::remove_point): Update for calls to
1673 low_insert_point and low_remove_point.
1674 * linux-x86-low.cc (class x86_target) <low_insert_point>
1675 <low_remove_point>: Declare.
1676 (x86_insert_point): Turn into...
1677 (x86_target::low_insert_point): ...this.
1678 (x86_remove_point): Turn into...
1679 (x86_target::low_remove_point): ...this.
1680 (the_low_target): Remove the op fields.
1681 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1682 <low_remove_point>: Declare.
1683 (aarch64_insert_point): Turn into...
1684 (aarch64_target::low_insert_point): ...this.
1685 (aarch64_remove_point): Turn into...
1686 (aarch64_target::low_remove_point): ...this.
1687 (the_low_target): Remove the op fields.
1688 * linux-arm-low.cc (class arm_target) <low_insert_point>
1689 <low_remove_point>: Declare.
1690 (arm_insert_point): Turn into...
1691 (arm_target::low_insert_point): ...this.
1692 (arm_remove_point): Turn into...
1693 (arm_target::low_remove_point): ...this.
1694 (the_low_target): Remove the op fields.
1695 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1696 <low_remove_point>: Declare.
1697 (crisv32_insert_point): Turn into...
1698 (crisv32_target::low_insert_point): ...this.
1699 (crisv32_remove_point): Turn into...
1700 (crisv32_target::low_remove_point): ...this.
1701 (the_low_target): Remove the op fields.
1702 * linux-mips-low.cc (class mips_target) <low_insert_point>
1703 <low_remove_point>: Declare.
1704 (mips_insert_point): Turn into...
1705 (mips_target::low_insert_point): ...this.
1706 (mips_remove_point): Turn into...
1707 (mips_target::low_remove_point): ...this.
1708 (the_low_target): Remove the op fields.
1709 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1710 <low_remove_point>: Declare.
1711 (ppc_insert_point): Turn into...
1712 (ppc_target::low_insert_point): ...this.
1713 (ppc_remove_point): Turn into...
1714 (ppc_target::low_remove_point): ...this.
1715 (the_low_target): Remove the op fields.
1716 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1717 * linux-m32r-low.cc (the_low_target): Ditto.
1718 * linux-m68k-low.cc (the_low_target): Ditto.
1719 * linux-s390-low.cc (the_low_target): Ditto.
1720 * linux-sh-low.cc (the_low_target): Ditto.
1721 * linux-sparc-low.cc (the_low_target): Ditto.
1722 * linux-tic6x-low.cc (the_low_target): Ditto.
1723 * linux-tile-low.cc (the_low_target): Ditto.
1724 * linux-xtensa-low.cc (the_low_target): Ditto.
1726 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1728 Remove the 'supports_z_point_type' linux target op and let the
1729 concrete linux target define it by overriding the op declared in
1730 process_stratum_target.
1732 * linux-low.cc (linux_process_target::supports_z_point_type):
1734 * linux-low.h (struct linux_target_ops): Remove the op.
1735 (class linux_process_target) <supports_z_point_type>: Remove.
1736 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1738 (x86_supports_z_point_type): Turn into...
1739 (x86_target::supports_z_point_type): ...this.
1740 (the_low_target): Remove the op field.
1741 * linux-aarch64-low.cc (class aarch64_target)
1742 <supports_z_point_type>: Declare.
1743 (aarch64_supports_z_point_type): Turn into...
1744 (aarch64_target::supports_z_point_type): ...this.
1745 (the_low_target): Remove the op field.
1746 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1748 (arm_supports_z_point_type): Turn into...
1749 (arm_target::supports_z_point_type): ...this.
1750 (the_low_target): Remove the op field.
1751 * linux-crisv32-low.cc (class crisv32_target)
1752 <supports_z_point_type>: Declare.
1753 (cris_supports_z_point_type): Turn into...
1754 (crisv32_target::supports_z_point_type): ...this.
1755 (the_low_target): Remove the op field.
1756 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1758 (mips_supports_z_point_type): Turn into...
1759 (mips_target::supports_z_point_type): ...this.
1760 (the_low_target): Remove the op field.
1761 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1763 (ppc_supports_z_point_type): Turn into...
1764 (ppc_target::supports_z_point_type): ...this.
1765 (the_low_target): Remove the op field.
1766 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1768 (s390_supports_z_point_type): Turn into...
1769 (s390_target::supports_z_point_type): ...this.
1770 (the_low_target): Remove the op field.
1771 * linux-bfin-low.cc (the_low_target): Remove the op field.
1772 * linux-m32r-low.cc (the_low_target): Ditto.
1773 * linux-m68k-low.cc (the_low_target): Ditto.
1774 * linux-sh-low.cc (the_low_target): Ditto.
1775 * linux-sparc-low.cc (the_low_target): Ditto.
1776 * linux-tic6x-low.cc (the_low_target): Ditto.
1777 * linux-tile-low.cc (the_low_target): Ditto.
1778 * linux-xtensa-low.cc (the_low_target): Ditto.
1780 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1782 Turn the 'breakpoint_at' linux target op into a method of
1783 linux_process_target.
1785 * linux-low.h (struct linux_target_ops): Remove the op.
1786 (class linux_process_target) <low_breakpoint_at>: Declare.
1788 Update the callers below:
1790 * linux-low.cc (linux_process_target::save_stop_reason)
1791 (linux_process_target::thread_still_has_status_pending)
1792 (linux_process_target::wait_1)
1794 * linux-x86-low.cc (class x86_target)
1795 <low_breakpoint_at>: Declare.
1796 (x86_breakpoint_at): Turn into...
1797 (x86_target::low_breakpoint_at): ...this.
1798 (the_low_target): Remove the op field.
1799 * linux-aarch64-low.cc (class aarch64_target)
1800 <low_breakpoint_at>: Declare.
1801 (aarch64_breakpoint_at): Turn into...
1802 (aarch64_target::low_breakpoint_at): ...this.
1803 (the_low_target): Remove the op field.
1804 * linux-arm-low.cc (class arm_target)
1805 <low_breakpoint_at>: Declare.
1806 (arm_target::low_breakpoint_at): Define.
1807 (the_low_target): Remove the op field.
1808 * linux-bfin-low.cc (class bfin_target)
1809 <low_breakpoint_at>: Declare.
1810 (bfin_breakpoint_at): Turn into...
1811 (bfin_target::low_breakpoint_at): ...this.
1812 (the_low_target): Remove the op field.
1813 * linux-cris-low.cc (class cris_target)
1814 <low_breakpoint_at>: Declare.
1815 (cris_breakpoint_at): Turn into...
1816 (cris_target::low_breakpoint_at): ...this.
1817 (the_low_target): Remove the op field.
1818 * linux-crisv32-low.cc (class crisv32_target)
1819 <low_breakpoint_at>: Declare.
1820 (crisv32_breakpoint_at): Turn into...
1821 (crisv32_target::low_breakpoint_at): ...this.
1822 (the_low_target): Remove the op field.
1823 * linux-ia64-low.cc (class ia64_target)
1824 <low_breakpoint_at>: Declare.
1825 (ia64_target::low_breakpoint_at): Define.
1826 * linux-m32r-low.cc (class m32r_target)
1827 <low_breakpoint_at>: Declare.
1828 (m32r_breakpoint_at): Turn into...
1829 (m32r_target::low_breakpoint_at): ...this.
1830 (the_low_target): Remove the op field.
1831 * linux-m68k-low.cc (class m68k_target)
1832 <low_breakpoint_at>: Declare.
1833 (m68k_breakpoint_at): Turn into...
1834 (m68k_target::low_breakpoint_at): ...this.
1835 (the_low_target): Remove the op field.
1836 * linux-mips-low.cc (class mips_target)
1837 <low_breakpoint_at>: Declare.
1838 (mips_breakpoint_at): Turn into...
1839 (mips_target::low_breakpoint_at): ...this.
1840 (the_low_target): Remove the op field.
1841 * linux-nios2-low.cc (class nios2_target)
1842 <low_breakpoint_at>: Declare.
1843 (nios2_breakpoint_at): Turn into...
1844 (nios2_target::low_breakpoint_at): ...this.
1845 (the_low_target): Remove the op field.
1846 * linux-ppc-low.cc (class ppc_target)
1847 <low_breakpoint_at>: Declare.
1848 (ppc_breakpoint_at): Turn into...
1849 (ppc_target::low_breakpoint_at): ...this.
1850 (the_low_target): Remove the op field.
1851 * linux-riscv-low.cc (class riscv_target)
1852 <low_breakpoint_at>: Declare.
1853 (riscv_breakpoint_at): Turn into...
1854 (riscv_target::low_breakpoint_at): ...this.
1855 (the_low_target): Remove the op field.
1856 * linux-s390-low.cc (class s390_target)
1857 <low_breakpoint_at>: Declare.
1858 (s390_breakpoint_at): Turn into...
1859 (s390_target::low_breakpoint_at): ...this.
1860 (the_low_target): Remove the op field.
1861 * linux-sh-low.cc (class sh_target)
1862 <low_breakpoint_at>: Declare.
1863 (sh_breakpoint_at): Turn into...
1864 (sh_target::low_breakpoint_at): ...this.
1865 (the_low_target): Remove the op field.
1866 * linux-sparc-low.cc (class sparc_target)
1867 <low_breakpoint_at>: Declare.
1868 (sparc_breakpoint_at): Turn into...
1869 (sparc_target::low_breakpoint_at): ...this.
1870 (the_low_target): Remove the op field.
1871 * linux-tic6x-low.cc (class tic6x_target)
1872 <low_breakpoint_at>: Declare.
1873 (tic6x_breakpoint_at): Turn into...
1874 (tic6x_target::low_breakpoint_at): ...this.
1875 (the_low_target): Remove the op field.
1876 * linux-tile-low.cc (class tile_target)
1877 <low_breakpoint_at>: Declare.
1878 (tile_breakpoint_at): Turn into...
1879 (tile_target::low_breakpoint_at): ...this.
1880 (the_low_target): Remove the op field.
1881 * linux-xtensa-low.cc (class xtensa_target)
1882 <low_breakpoint_at>: Declare.
1883 (xtensa_breakpoint_at): Turn into...
1884 (xtensa_target::low_breakpoint_at): ...this.
1885 (the_low_target): Remove the op field.
1887 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1889 Turn the 'decr_pc_after_break' linux_target_ops field into
1890 a method of linux_process_target.
1892 * linux-low.h (struct linux_target_ops)
1893 <decr_pc_after_break>: Remove.
1894 (class linux_process_target) <low_decr_pc_after_break>: New method
1896 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1897 New method implementation.
1899 Update the users below.
1901 (linux_process_target::save_stop_reason)
1902 (linux_process_target::wait_1)
1903 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1905 (x86_target::low_decr_pc_after_break): New method implementation.
1906 (the_low_target): Remove the field.
1907 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1909 (bfin_target::low_decr_pc_after_break): New method implementation.
1910 (the_low_target): Remove the field.
1911 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1913 (m68k_target::low_decr_pc_after_break): New method implementation.
1914 (the_low_target): Remove the field.
1915 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1917 (s390_target::low_decr_pc_after_break): New method implementation.
1918 (the_low_target): Remove the field.
1919 * linux-aarch64-low.cc (the_low_target): Remove the field.
1920 * linux-arm-low.cc (the_low_target): Remove the field.
1921 * linux-cris-low.cc (the_low_target): Remove the field.
1922 * linux-crisv32-low.cc (the_low_target): Remove the field.
1923 * linux-m32r-low.cc (the_low_target): Remove the field.
1924 * linux-mips-low.cc (the_low_target): Remove the field.
1925 * linux-nios2-low.cc (the_low_target): Remove the field.
1926 * linux-ppc-low.cc (the_low_target): Remove the field.
1927 * linux-riscv-low.cc (the_low_target): Remove the field.
1928 * linux-sh-low.cc (the_low_target): Remove the field.
1929 * linux-sparc-low.cc (the_low_target): Remove the field.
1930 * linux-tic6x-low.cc (the_low_target): Remove the field.
1931 * linux-tile-low.cc (the_low_target): Remove the field.
1932 * linux-xtensa-low.cc (the_low_target): Remove the field.
1934 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1936 Remove the 'supports_software_single_step' linux target op and let
1937 the concrete linux target define it by overriding the op in
1938 process_stratum_target.
1939 Turn the 'get_next_pcs' linux target op into a method of
1940 linux_process_target.
1942 * linux-low.h (struct linux_target_ops): Remove the ops.
1943 (class linux_process_target) <supports_software_single_step>:
1945 <low_get_next_pcs>: Declare.
1946 * linux-low.cc (can_software_single_step): Remove.
1947 (linux_process_target::low_get_next_pcs): Define.
1948 (linux_process_target::supports_software_single_step): Remove.
1950 Update the callers below.
1952 (linux_process_target::handle_extended_wait)
1953 (linux_process_target::wait_1)
1954 (linux_process_target::install_software_single_step_breakpoints)
1955 (linux_process_target::single_step)
1956 (linux_process_target::thread_needs_step_over)
1957 (linux_process_target::proceed_one_lwp)
1958 (linux_process_target::supports_range_stepping)
1960 * linux-x86-low.cc (the_low_target): Remove the op field.
1961 * linux-aarch64-low.cc (the_low_target): Ditto.
1962 * linux-bfin-low.cc (the_low_target): Ditto.
1963 * linux-cris-low.cc (the_low_target): Ditto.
1964 * linux-crisv32-low.cc (the_low_target): Ditto.
1965 * linux-m32r-low.cc (the_low_target): Ditto.
1966 * linux-m68k-low.cc (the_low_target): Ditto.
1967 * linux-mips-low.cc (the_low_target): Ditto.
1968 * linux-nios2-low.cc (the_low_target): Ditto.
1969 * linux-ppc-low.cc (the_low_target): Ditto.
1970 * linux-riscv-low.cc (the_low_target): Ditto.
1971 * linux-s390-low.cc (the_low_target): Ditto.
1972 * linux-sh-low.cc (the_low_target): Ditto.
1973 * linux-sparc-low.cc (the_low_target): Ditto.
1974 * linux-tic6x-low.cc (the_low_target): Ditto.
1975 * linux-tile-low.cc (the_low_target): Ditto.
1976 * linux-xtensa-low.cc (the_low_target): Ditto.
1977 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1978 <supports_software_single_step>: Declare.
1979 (arm_target::supports_software_single_step): Define.
1980 (arm_gdbserver_get_next_pcs): Turn into...
1981 (arm_target::low_get_next_pcs): ...this.
1982 (the_low_target): Remove the op field.
1984 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1986 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1987 the concrete linux target define it by overriding the op
1988 in process_stratum_target.
1990 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1992 * linux-low.h (struct linux_target_ops): Remove the op.
1993 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1994 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1996 (x86_sw_breakpoint_from_kind): Turn into...
1997 (x86_target::sw_breakpoint_from_kind): ...this.
1998 (the_low_target): Remove the op field.
1999 * linux-aarch64-low.cc (class aarch64_target)
2000 <sw_breakpoint_from_kind>: Declare.
2001 (aarch64_sw_breakpoint_from_kind): Turn into...
2002 (aarch64_target::sw_breakpoint_from_kind): ...this.
2003 (the_low_target): Remove the op field.
2004 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
2006 (arm_target::sw_breakpoint_from_kind): Define.
2007 (the_low_target): Remove the op field.
2008 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
2010 (bfin_sw_breakpoint_from_kind): Turn into...
2011 (bfin_target::sw_breakpoint_from_kind): ...this.
2012 (the_low_target): Remove the op field.
2013 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
2015 (cris_sw_breakpoint_from_kind): Turn into...
2016 (cris_target::sw_breakpoint_from_kind): ...this.
2017 (the_low_target): Remove the op field.
2018 * linux-crisv32-low.cc (class crisv32_target)
2019 <sw_breakpoint_from_kind>: Declare.
2020 (cris_sw_breakpoint_from_kind): Turn into...
2021 (crisv32_target::sw_breakpoint_from_kind): ...this.
2022 (the_low_target): Remove the op field.
2023 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
2025 (ia64_target::sw_breakpoint_from_kind): Define.
2026 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
2028 (m32r_sw_breakpoint_from_kind): Turn into...
2029 (m32r_target::sw_breakpoint_from_kind): ...this.
2030 (the_low_target): Remove the op field.
2031 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
2033 (m68k_sw_breakpoint_from_kind): Turn into...
2034 (m68k_target::sw_breakpoint_from_kind): ...this.
2035 (the_low_target): Remove the op field.
2036 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
2038 (mips_sw_breakpoint_from_kind): Turn into...
2039 (mips_target::sw_breakpoint_from_kind): ...this.
2040 (the_low_target): Remove the op field.
2041 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
2043 (nios2_sw_breakpoint_from_kind): Turn into...
2044 (nios2_target::sw_breakpoint_from_kind): ...this.
2045 (the_low_target): Remove the op field.
2046 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
2048 (ppc_sw_breakpoint_from_kind): Turn into...
2049 (ppc_target::sw_breakpoint_from_kind): ...this.
2050 (the_low_target): Remove the op field.
2051 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
2053 (riscv_sw_breakpoint_from_kind): Turn into...
2054 (riscv_target::sw_breakpoint_from_kind): ...this.
2055 (the_low_target): Remove the op field.
2056 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
2058 (s390_sw_breakpoint_from_kind): Turn into...
2059 (s390_target::sw_breakpoint_from_kind): ...this.
2060 (the_low_target): Remove the op field.
2061 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
2063 (sh_sw_breakpoint_from_kind): Turn into...
2064 (sh_target::sw_breakpoint_from_kind): ...this.
2065 (the_low_target): Remove the op field.
2066 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
2068 (sparc_sw_breakpoint_from_kind): Turn into...
2069 (sparc_target::sw_breakpoint_from_kind): ...this.
2070 (the_low_target): Remove the op field.
2071 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
2073 (tic6x_sw_breakpoint_from_kind): Turn into...
2074 (tic6x_target::sw_breakpoint_from_kind): ...this.
2075 (the_low_target): Remove the op field.
2076 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
2078 (tile_sw_breakpoint_from_kind): Turn into...
2079 (tile_target::sw_breakpoint_from_kind): ...this.
2080 (the_low_target): Remove the op field.
2081 * linux-xtensa-low.cc (class xtensa_target)
2082 <sw_breakpoint_from_kind>: Declare.
2083 (xtensa_sw_breakpoint_from_kind): Turn into...
2084 (xtensa_target::sw_breakpoint_from_kind): ...this.
2085 (the_low_target): Remove the op field.
2087 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2089 Remove the 'breakpoint_kind_from_pc' and
2090 'breakpoint_kind_from_current_state' linux target ops, and let the
2091 concrete linux target define them by overriding the ops of
2092 process_stratum_target.
2094 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
2096 (linux_process_target::breakpoint_kind_from_current_state): Remove.
2097 * linux-low.h (struct linux_target_ops): Remove ops.
2098 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
2099 <breakpoint_kind_from_current_state>: Remove.
2100 * linux-x86-low.cc (the_low_target): Remove the op fields.
2101 * linux-bfin-low.cc (the_low_target): Ditto.
2102 * linux-cris-low.cc (the_low_target): Ditto.
2103 * linux-crisv32-low.cc (the_low_target): Ditto.
2104 * linux-m32r-low.cc (the_low_target): Ditto.
2105 * linux-m68k-low.cc (the_low_target): Ditto.
2106 * linux-mips-low.cc (the_low_target): Ditto.
2107 * linux-nios2-low.cc (the_low_target): Ditto.
2108 * linux-ppc-low.cc (the_low_target): Ditto.
2109 * linux-s390-low.cc (the_low_target): Ditto.
2110 * linux-sh-low.cc (the_low_target): Ditto.
2111 * linux-sparc-low.cc (the_low_target): Ditto.
2112 * linux-tic6x-low.cc (the_low_target): Ditto.
2113 * linux-tile-low.cc (the_low_target): Ditto.
2114 * linux-xtensa-low.cc (the_low_target): Ditto.
2115 * linux-aarch64-low.cc (class aarch64_target)
2116 <breakpoint_kind_from_pc>
2117 <breakpoint_kind_from_current_state>: Declare.
2118 (aarch64_breakpoint_kind_from_pc): Turn into...
2119 (aarch64_target::breakpoint_kind_from_pc): ...this.
2120 (aarch64_breakpoint_kind_from_current_state): Turn into...
2121 (aarch64_target::breakpoint_kind_from_current_state): ...this.
2122 (the_low_target): Remove the op fields.
2123 * linux-arm-low.cc (class arm_target):
2124 <breakpoint_kind_from_pc>
2125 <breakpoint_kind_from_current_state>: Declare.
2126 (arm_target::breakpoint_kind_from_pc): Define.
2127 (arm_target::breakpoint_kind_from_current_state): Define.
2128 (the_low_target): Remove the op fields.
2129 * linux-riscv-low.cc (class riscv_target):
2130 <breakpoint_kind_from_pc>: Declare.
2131 (riscv_breakpoint_kind_from_pc): Turn into...
2132 (riscv_target::breakpoint_kind_from_pc): ...this.
2133 (the_low_target): Remove the op fields.
2135 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2137 Turn the 'get_pc' and 'set_pc' linux target ops into methods
2138 of linux_process_target.
2140 * linux-low.h (struct linux_target_ops): Remove the ops.
2141 (class linux_process_target) <low_supports_breakpoints>
2143 <low_set_pc>: Declare.
2144 * linux-low.cc (supports_breakpoints): Turn into...
2145 (linux_process_target::low_supports_breakpoints): ...this.
2146 (linux_process_target::low_get_pc): Define.
2147 (linux_process_target::low_set_pc): Define.
2149 Update the callers below.
2151 (linux_process_target::get_pc)
2152 (linux_process_target::save_stop_reason)
2153 (linux_process_target::maybe_move_out_of_jump_pad)
2154 (linux_process_target::wait_1)
2155 (linux_process_target::resume_one_lwp_throw)
2156 (linux_process_target::resume)
2157 (linux_process_target::proceed_all_lwps)
2158 (linux_process_target::read_pc)
2159 (linux_process_target::write_pc)
2161 * linux-x86-low.cc (class linux_process_target)
2162 <low_supports_breakpoints>
2164 <low_set_pc>: Declare.
2165 (x86_target::low_supports_breakpoints): Define.
2166 (x86_get_pc): Turn into...
2167 (x86_target::low_get_pc): ...this.
2168 (x86_set_pc): Turn into...
2169 (x86_target::low_set_pc): ...this.
2170 (the_low_target): Remove the op fields.
2171 * linux-arm-low.cc (class arm_target)
2172 <low_supports_breakpoints>
2174 <low_set_pc>: Declare.
2175 (arm_target::low_supports_breakpoints)
2176 (arm_target::low_get_pc)
2177 (arm_target::low_set_pc): Define.
2178 (the_low_target): Remove the op fields.
2179 * linux-bfin-low.cc (class bfin_target)
2180 <low_supports_breakpoints>
2182 <low_set_pc>: Declare.
2183 (bfin_target::low_supports_breakpoints)
2184 (bfin_target::low_get_pc)
2185 (bfin_target::low_set_pc): Define.
2186 (the_low_target): Remove the op fields.
2187 * linux-cris-low.cc (class cris_target)
2188 <low_supports_breakpoints>
2190 <low_set_pc>: Declare.
2191 (cris_target::low_supports_breakpoints)
2192 (cris_target::low_get_pc)
2193 (cris_target::low_set_pc): Define.
2194 (the_low_target): Remove the op fields.
2195 * linux-crisv32-low.cc (class crisv32_target)
2196 <low_supports_breakpoints>
2198 <low_set_pc>: Declare.
2199 (crisv32_target::low_supports_breakpoints)
2200 (crisv32_target::low_get_pc)
2201 (crisv32_target::low_set_pc): Define.
2202 (the_low_target): Remove the op fields.
2203 * linux-m32r-low.cc (class m32r_target)
2204 <low_supports_breakpoints>
2206 <low_set_pc>: Declare.
2207 (m32r_target::low_supports_breakpoints)
2208 (m32r_target::low_get_pc)
2209 (m32r_target::low_set_pc): Define.
2210 (the_low_target): Remove the op fields.
2211 * linux-m68k-low.cc (class m68k_target)
2212 <low_supports_breakpoints>
2214 <low_set_pc>: Declare.
2215 (m68k_target::low_supports_breakpoints)
2216 (m68k_target::low_get_pc)
2217 (m68k_target::low_set_pc): Define.
2218 (the_low_target): Remove the op fields.
2219 * linux-nios2-low.cc (class nios2_target)
2220 <low_supports_breakpoints>
2222 <low_set_pc>: Declare.
2223 (nios2_target::low_supports_breakpoints)
2224 (nios2_target::low_get_pc)
2225 (nios2_target::low_set_pc): Define.
2226 (the_low_target): Remove the op fields.
2227 * linux-sh-low.cc (class sh_target)
2228 <low_supports_breakpoints>
2230 <low_set_pc>: Declare.
2231 (sh_target::low_supports_breakpoints)
2232 (sh_target::low_get_pc)
2233 (sh_target::low_set_pc): Define.
2234 (the_low_target): Remove the op fields.
2235 * linux-xtensa-low.cc (class xtensa_target)
2236 <low_supports_breakpoints>
2238 <low_set_pc>: Declare.
2239 (xtensa_target::low_supports_breakpoints)
2240 (xtensa_target::low_get_pc)
2241 (xtensa_target::low_set_pc): Define.
2242 (the_low_target): Remove the op fields.
2243 * linux-sparc-low.cc (class sparc_target)
2244 <low_supports_breakpoints>
2245 <low_get_pc>: Declare.
2246 (sparc_target::low_supports_breakpoints)
2247 (sparc_target::low_get_pc): Define.
2248 (the_low_target): Remove the op fields.
2249 * linux-tile-low.cc (class tile_target)
2250 <low_supports_breakpoints>
2252 <low_set_pc>: Declare.
2253 (tile_target::low_supports_breakpoints)
2254 (tile_target::low_get_pc)
2255 (tile_target::low_set_pc): Define.
2256 (the_low_target): Remove the op fields.
2257 * linux-aarch64-low.cc (class aarch64_target)
2258 <low_supports_breakpoints>
2260 <low_set_pc>: Declare.
2261 (aarch64_target::low_supports_breakpoints): Define.
2262 (aarch64_get_pc): Turn into...
2263 (aarch64_target::low_get_pc): ...this.
2264 (aarch64_set_pc): Turn into...
2265 (aarch64_target::low_set_pc): ...this.
2266 (the_low_target): Remove the op fields.
2267 * linux-mips-low.cc (class mips_target)
2268 <low_supports_breakpoints>
2270 <low_set_pc>: Declare.
2271 (mips_target::low_supports_breakpoints): Define.
2272 (mips_get_pc): Turn into...
2273 (mips_target::low_get_pc): ...this.
2274 (mips_set_pc): Turn into...
2275 (mips_target::low_set_pc): ...this.
2276 (the_low_target): Remove the op fields.
2277 * linux-ppc-low.cc (class ppc_target)
2278 <low_supports_breakpoints>
2280 <low_set_pc>: Declare.
2281 (ppc_target::low_supports_breakpoints): Define.
2282 (ppc_get_pc): Turn into...
2283 (ppc_target::low_get_pc): ...this.
2284 (ppc_set_pc): Turn into...
2285 (ppc_target::low_set_pc): ...this.
2286 (the_low_target): Remove the op fields.
2287 * linux-riscv-low.cc (class riscv_target)
2288 <low_supports_breakpoints>
2290 <low_set_pc>: Declare.
2291 (riscv_target::low_supports_breakpoints): Define.
2292 (riscv_get_pc): Turn into...
2293 (riscv_target::low_get_pc): ...this.
2294 (riscv_set_pc): Turn into...
2295 (riscv_target::low_set_pc): ...this.
2296 (the_low_target): Remove the op fields.
2297 * linux-s390-low.cc (class s390_target)
2298 <low_supports_breakpoints>
2300 <low_set_pc>: Declare.
2301 (s390_target::low_supports_breakpoints): Define.
2302 (s390_get_pc): Turn into...
2303 (s390_target::low_get_pc): ...this.
2304 (s390_set_pc): Turn into...
2305 (s390_target::low_set_pc): ...this.
2306 (the_low_target): Remove the op fields.
2307 * linux-tic6x-low.cc (class tic6x_target)
2308 <low_supports_breakpoints>
2310 <low_set_pc>: Declare.
2311 (tic6x_target::low_supports_breakpoints): Define.
2312 (tic6x_get_pc): Turn into...
2313 (tic6x_target::low_get_pc): ...this.
2314 (tic6x_set_pc): Turn into...
2315 (tic6x_target::low_set_pc): ...this.
2316 (the_low_target): Remove the op fields.
2318 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2320 Turn some more static methods in linux-low into private methods
2321 of linux_process_target.
2323 * linux-low.cc (get_pc): Turn into...
2324 (linux_process_target::get_pc): ...this.
2325 (save_stop_reason): Turn into...
2326 (linux_process_target::save_stop_reason): ...this.
2327 (thread_still_has_status_pending_p): Turn into...
2328 (linux_process_target::thread_still_has_status_pending): ...this.
2329 (status_pending_p_callback): Turn into...
2330 (linux_process_target::status_pending_p_callback): ...this.
2331 (resume_stopped_resumed_lwps): Turn into...
2332 (linux_process_target::resume_stopped_resumed_lwps): ...this.
2333 (install_software_single_step_breakpoints): Turn into...
2334 (linux_process_target::install_software_single_step_breakpoints):
2336 (single_step): Turn into...
2337 (linux_process_target::single_step): ...this.
2338 (linux_resume_one_lwp_throw): Turn into...
2339 (linux_process_target::resume_one_lwp_throw): ...this.
2340 (linux_resume_one_lwp): Turn into...
2341 (linux_process_target::resume_one_lwp): ...this.
2342 (resume_status_pending_p): Turn into...
2343 (linux_process_target::resume_status_pending): ...this.
2344 (need_step_over_p): Turn into...
2345 (linux_process_target::thread_needs_step_over): ...this.
2346 (linux_resume_one_thread): Turn into...
2347 (linux_process_target::resume_one_thread): ...this.
2348 (proceed_one_lwp): Turn into...
2349 (linux_process_target::proceed_one_lwp): ...this.
2350 (unsuspend_and_proceed_one_lwp): Turn into...
2351 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
2353 Update the calls/references to the above functions below.
2355 (linux_process_target::handle_extended_wait)
2356 (linux_process_target::filter_event)
2357 (linux_process_target::wait_for_event_filtered)
2358 (linux_process_target::wait_1)
2359 (linux_process_target::move_out_of_jump_pad)
2360 (linux_process_target::start_step_over)
2361 (linux_process_target::resume)
2362 (linux_process_target::proceed_all_lwps)
2363 (regsets_store_inferior_registers)
2364 (linux_process_target::store_register)
2366 * linux-low.h (class linux_process_target)
2369 <thread_still_has_status_pending>
2370 <status_pending_p_callback>
2371 <resume_stopped_resumed_lwps>
2372 <install_software_single_step_breakpoints>
2374 <resume_one_lwp_throw>
2376 <resume_status_pending>
2377 <thread_needs_step_over>
2380 <unsuspend_and_proceed_one_lwp>: Declare.
2382 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2384 Turn the 'fetch_register' linux target op into a method of
2385 linux_process_target.
2387 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
2388 (class linux_process_target) <low_fetch_register>: Declare.
2389 * linux-x86-low.cc (the_low_target)
2390 * linux-aarch64-low.cc (the_low_target)
2391 * linux-arm-low.cc (the_low_target)
2392 * linux-bfin-low.cc (the_low_target)
2393 * linux-cris-low.cc (the_low_target)
2394 * linux-crisv32-low.cc (the_low_target)
2395 * linux-m32r-low.cc (the_low_target)
2396 * linux-m68k-low.cc (the_low_target)
2397 * linux-nios2-low.cc (the_low_target)
2398 * linux-ppc-low.cc (the_low_target)
2399 * linux-s390-low.cc (the_low_target)
2400 * linux-sh-low.cc (the_low_target)
2401 * linux-sparc-low.cc (the_low_target)
2402 * linux-tic6x-low.cc (the_low_target)
2403 * linux-tile-low.cc (the_low_target)
2404 * linux-xtensa-low.cc (the_low_target): Remove the op field.
2405 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
2407 (ia64_fetch_register): Turn into...
2408 (ia64_target::low_fetch_register): ...this.
2409 (the_low_target): Remove the op field.
2410 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
2412 (mips_fetch_register): Turn into...
2413 (mips_target::low_fetch_register): ...this.
2414 (the_low_target): Remove the op field.
2415 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
2417 (riscv_fetch_register): Turn into...
2418 (riscv_target::low_fetch_register): ...this.
2419 (the_low_target): Remove the op field.
2421 Update the callers below.
2423 * linux-low.cc (linux_process_target::fetch_registers)
2424 (linux_process_target::low_fetch_register)
2426 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2428 Turn the 'cannot_fetch_register' and 'cannot_store_register'
2429 linux target ops into methods of linux_process_target.
2431 * linux-low.h (struct linux_target_ops): Remove the low target ops.
2432 (class linux_process_target) <fetch_register>
2434 <usr_fetch_inferior_registers>
2435 <usr_store_inferior_registers>
2436 <low_cannot_fetch_register>
2437 <low_cannot_fetch_register> Declare.
2438 * linux-low.cc (fetch_register): Turn into...
2439 (linux_process_target::fetch_register): ...this.
2440 (store_register): Turn into ...
2441 (linux_process_target::store_register): ...this.
2442 (usr_fetch_inferior_registers): Turn into...
2443 (linux_process_target::usr_fetch_inferior_registers): ...this.
2444 (usr_store_inferior_registers): Turn into...
2445 (linux_process_target::usr_store_inferior_registers): ...this.
2446 * linux-x86-low.cc (class x86_target)
2447 <low_cannot_fetch_register>
2448 <low_cannot_store_register>: Declare.
2449 (x86_cannot_store_register): Turn into...
2450 (x86_target::low_cannot_store_register): ...this.
2451 (x86_cannot_fetch_register): Turn into...
2452 (x86_target::low_cannot_fetch_register): ...this.
2453 (the_low_target): Remove the target op fields.
2454 * linux-aarch64-low.cc (class aarch64_target)
2455 <low_cannot_fetch_register>
2456 <low_cannot_store_register>: Declare.
2457 (aarch64_target::low_cannot_fetch_register)
2458 (aarch64_target::low_cannot_store_register): Define.
2459 (the_low_target): Remove the op fields.
2460 * linux-arm-low.cc (class arm_target)
2461 <low_cannot_fetch_register>
2462 <low_cannot_store_register>: Declare.
2463 (arm_cannot_fetch_register): Turn into...
2464 (arm_target::low_cannot_fetch_register): ...this.
2465 (arm_cannot_store_register): Turn into...
2466 (arm_target::low_cannot_store_register): ...this.
2467 (the_low_target): Remove the op fields.
2468 * linux-bfin-low.cc (class bfin_target)
2469 <low_cannot_fetch_register>
2470 <low_cannot_store_register>: Declare.
2471 (bfin_cannot_fetch_register): Turn into...
2472 (bfin_target::low_cannot_fetch_register): ...this.
2473 (bfin_cannot_store_register): Turn into...
2474 (bfin_target::low_cannot_store_register): ...this.
2475 (the_low_target): Remove the op fields.
2476 * linux-cris-low.cc (class cris_target)
2477 <low_cannot_fetch_register>
2478 <low_cannot_store_register>: Declare.
2479 (cris_cannot_fetch_register): Turn into...
2480 (cris_target::low_cannot_fetch_register): ...this.
2481 (cris_cannot_store_register): Turn into...
2482 (cris_target::low_cannot_store_register): ...this.
2483 (the_low_target): Remove the op fields.
2484 * linux-crisv32-low.cc (class crisv32_target)
2485 <low_cannot_fetch_register>
2486 <low_cannot_store_register>: Declare.
2487 (crisv32_target::low_cannot_fetch_register)
2488 (crisv32_target::low_cannot_store_register): Define.
2489 (the_low_target): Remove the op fields.
2490 * linux-ia64-low.cc (class ia64_target)
2491 <low_cannot_fetch_register>
2492 <low_cannot_store_register>: Declare.
2493 (ia64_cannot_fetch_register): Turn into...
2494 (ia64_target::low_cannot_fetch_register): ...this.
2495 (ia64_cannot_store_register): Turn into...
2496 (ia64_target::low_cannot_store_register): ...this.
2497 (the_low_target): Remove the op fields.
2498 * linux-m32r-low.cc (class m32r_target)
2499 <low_cannot_fetch_register>
2500 <low_cannot_store_register>: Declare.
2501 (m32r_cannot_fetch_register): Turn into...
2502 (m32r_target::low_cannot_fetch_register): ...this.
2503 (m32r_cannot_store_register): Turn into...
2504 (m32r_target::low_cannot_store_register): ...this.
2505 (the_low_target): Remove the op fields.
2506 * linux-m68k-low.cc (class m68k_target)
2507 <low_cannot_fetch_register>
2508 <low_cannot_store_register>: Declare.
2509 (m68k_cannot_fetch_register): Turn into...
2510 (m68k_target::low_cannot_fetch_register): ...this.
2511 (m68k_cannot_store_register): Turn into...
2512 (m68k_target::low_cannot_store_register): ...this.
2513 (the_low_target): Remove the op fields.
2514 * linux-mips-low.cc (class mips_target)
2515 <low_cannot_fetch_register>
2516 <low_cannot_store_register>: Declare.
2517 (mips_cannot_fetch_register): Turn into...
2518 (mips_target::low_cannot_fetch_register): ...this.
2519 (mips_cannot_store_register): Turn into...
2520 (mips_target::low_cannot_store_register): ...this.
2521 (get_usrregs_info): Inline at the call sites in
2522 low_cannot_fetch_register and low_cannot_store_register,
2524 (the_low_target): Remove the op fields.
2525 * linux-nios2-low.cc (class nios2_target)
2526 <low_cannot_fetch_register>
2527 <low_cannot_store_register>: Declare.
2528 (nios2_cannot_fetch_register): Turn into...
2529 (nios2_target::low_cannot_fetch_register): ...this.
2530 (nios2_cannot_store_register): Turn into...
2531 (nios2_target::low_cannot_store_register): ...this.
2532 (the_low_target): Remove the op fields.
2533 * linux-ppc-low.cc (class ppc_target)
2534 <low_cannot_fetch_register>
2535 <low_cannot_store_register>: Declare.
2536 (ppc_cannot_fetch_register): Turn into...
2537 (ppc_target::low_cannot_fetch_register): ...this.
2538 (ppc_cannot_store_register): Turn into...
2539 (ppc_target::low_cannot_store_register): ...this.
2540 (the_low_target): Remove the op fields.
2541 * linux-riscv-low.cc (class riscv_target)
2542 <low_cannot_fetch_register>
2543 <low_cannot_store_register>: Declare.
2544 (riscv_target::low_cannot_fetch_register)
2545 (riscv_target::low_cannot_store_register): Define.
2546 (the_low_target): Remove the op fields.
2547 * linux-s390-low.cc (class s390_target)
2548 <low_cannot_fetch_register>
2549 <low_cannot_store_register>: Declare.
2550 (s390_cannot_fetch_register): Turn into...
2551 (s390_target::low_cannot_fetch_register): ...this.
2552 (s390_cannot_store_register): Turn into...
2553 (s390_target::low_cannot_store_register): ...this.
2554 (the_low_target): Remove the op fields.
2555 * linux-sh-low.cc (class sh_target)
2556 <low_cannot_fetch_register>
2557 <low_cannot_store_register>: Declare.
2558 (sh_cannot_fetch_register): Turn into...
2559 (sh_target::low_cannot_fetch_register): ...this.
2560 (sh_cannot_store_register): Turn into...
2561 (sh_target::low_cannot_store_register): ...this.
2562 (the_low_target): Remove the op fields.
2563 * linux-sparc-low.cc (class sparc_target)
2564 <low_cannot_fetch_register>
2565 <low_cannot_store_register>: Declare.
2566 (sparc_cannot_fetch_register): Turn into...
2567 (sparc_target::low_cannot_fetch_register): ...this.
2568 (sparc_cannot_store_register): Turn into...
2569 (sparc_target::low_cannot_store_register): ...this.
2570 (the_low_target): Remove the op fields.
2571 * linux-tic6x-low.cc (class tic6x_target)
2572 <low_cannot_fetch_register>
2573 <low_cannot_store_register>: Declare.
2574 (tic6x_cannot_fetch_register): Turn into...
2575 (tic6x_target::low_cannot_fetch_register): ...this.
2576 (tic6x_cannot_store_register): Turn into...
2577 (tic6x_target::low_cannot_store_register): ...this.
2578 (the_low_target): Remove the op fields.
2579 * linux-tile-low.cc (class tile_target)
2580 <low_cannot_fetch_register>
2581 <low_cannot_store_register>: Declare.
2582 (tile_cannot_fetch_register): Turn into...
2583 (tile_target::low_cannot_fetch_register): ...this.
2584 (tile_cannot_store_register): Turn into...
2585 (tile_target::low_cannot_store_register): ...this.
2586 (the_low_target): Remove the op fields.
2587 * linux-xtensa-low.cc (class xtensa_target)
2588 <low_cannot_fetch_register>
2589 <low_cannot_store_register>: Declare.
2590 (xtensa_target::low_cannot_fetch_register)
2591 (xtensa_target::low_cannot_store_register): Define.
2592 (the_low_target): Remove the op fields.
2594 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2596 Turn the 'regs_info' linux target op into a method of
2597 linux_process_target.
2599 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2600 (class linux_process_target) <get_regs_info>: Define.
2602 Update the callers below.
2604 * linux-low.cc (linux_process_target::fetch_registers)
2605 (linux_process_target::store_registers)
2606 * proc-service.cc (gregset_info)
2608 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2609 (x86_linux_regs_info): Turn into ...
2610 (x86_target::get_regs_info): ...this.
2611 (the_low_target): Remove the op field.
2612 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2614 (aarch64_regs_info): Turn into ...
2615 (aarch64_target::get_regs_info): ...this.
2616 (the_low_target): Remove the op field.
2617 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2618 (arm_regs_info): Turn into ...
2619 (arm_target::get_regs_info): ...this.
2620 (the_low_target): Remove the op field.
2621 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2622 (bfin_regs_info): Turn into ...
2623 (bfin_target::get_regs_info): ...this.
2624 (the_low_target): Remove the op field.
2625 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2626 (cris_regs_info): Turn into ...
2627 (cris_target::get_regs_info): ...this.
2628 (the_low_target): Remove the op field.
2629 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2631 (crisv32_regs_info): Turn into ...
2632 (crisv32_target::get_regs_info): ...this.
2633 (the_low_target): Remove the op field.
2634 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2635 (ia64_regs_info): Turn into ...
2636 (ia64_target::get_regs_info): ...this.
2637 (the_low_target): Remove the op field.
2638 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2639 (m32r_regs_info): Turn into ...
2640 (m32r_target::get_regs_info): ...this.
2641 (the_low_target): Remove the op field.
2642 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2643 (m68k_regs_info): Turn into ...
2644 (m68k_target::get_regs_info): ...this.
2645 (the_low_target): Remove the op field.
2646 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2647 (mips_regs_info): Turn into ...
2648 (mips_target::get_regs_info): ...this.
2649 (the_low_target): Remove the op field.
2650 (get_usrregs_info): Update the call to the op.
2651 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2652 (nios2_regs_info): Turn into ...
2653 (nios2_target::get_regs_info): ...this.
2654 (the_low_target): Remove the op field.
2655 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2656 (ppc_regs_info): Turn into ...
2657 (ppc_target::get_regs_info): ...this.
2658 (the_low_target): Remove the op field.
2659 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2660 (riscv_regs_info): Turn into ...
2661 (riscv_target::get_regs_info): ...this.
2662 (the_low_target): Remove the op field.
2663 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2664 (s390_regs_info): Turn into ...
2665 (s390_target::get_regs_info): ...this.
2666 (the_low_target): Remove the op field.
2667 (s390_collect_ptrace_register)
2668 (s390_supply_ptrace_register)
2669 (s390_fill_gregset): Update the call to the op.
2670 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2671 (sh_regs_info): Turn into ...
2672 (sh_target::get_regs_info): ...this.
2673 (the_low_target): Remove the op field.
2674 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2675 (sparc_regs_info): Turn into ...
2676 (sparc_target::get_regs_info): ...this.
2677 (the_low_target): Remove the op field.
2678 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2679 (tic6x_regs_info): Turn into ...
2680 (tic6x_target::get_regs_info): ...this.
2681 (the_low_target): Remove the op field.
2682 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2683 (tile_regs_info): Turn into ...
2684 (tile_target::get_regs_info): ...this.
2685 (the_low_target): Remove the op field.
2686 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2688 (xtensa_regs_info): Turn into ...
2689 (xtensa_target::get_regs_info): ...this.
2690 (the_low_target): Remove the op field.
2692 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2694 Turn the 'arch_setup' linux target op into a method of
2695 linux_process_target.
2697 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2698 (class linux_process_target) <arch_setup_thread>
2699 <low_arch_setup>: New declarations.
2700 * linux-low.cc (linux_arch_setup): Delete.
2701 (linux_arch_setup_thread): Turn into...
2702 (linux_process_target::arch_setup_thread): ... this.
2704 Update the callers below.
2706 (linux_process_target::handle_extended_wait)
2707 (linux_process_target::post_create_inferior)
2708 (linux_process_target::filter_event)
2710 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2712 (x86_linux_update_xmltarget): Turn into...
2713 (x86_target::update_xmltarget): ...this.
2714 (x86_linux_process_qsupported): Update the call to
2715 x86_linux_update_xmltarget.
2716 (x86_arch_setup): Turn into ...
2717 (x86_target::low_arch_setup): ...this.
2718 (the_low_target): Remove the op field.
2719 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2721 (aarch64_arch_setup): Turn into ...
2722 (aarch64_target::low_arch_setup): ...this.
2723 (the_low_target): Remove the op field.
2724 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2726 (arm_arch_setup): Turn into ...
2727 (arm_target::low_arch_setup): ...this.
2728 (the_low_target): Remove the op field.
2729 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2731 (bfin_arch_setup): Turn into ...
2732 (bfin_target::low_arch_setup): ...this.
2733 (the_low_target): Remove the op field.
2734 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2736 (cris_arch_setup): Turn into ...
2737 (cris_target::low_arch_setup): ...this.
2738 (the_low_target): Remove the op field.
2739 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2741 (crisv32_arch_setup): Turn into ...
2742 (crisv32_target::low_arch_setup): ...this.
2743 (the_low_target): Remove the op field.
2744 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2746 (ia64_arch_setup): Turn into ...
2747 (ia64_target::low_arch_setup): ...this.
2748 (the_low_target): Remove the op field.
2749 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2751 (m32r_arch_setup): Turn into ...
2752 (m32r_target::low_arch_setup): ...this.
2753 (the_low_target): Remove the op field.
2754 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2756 (m68k_arch_setup): Turn into ...
2757 (m68k_target::low_arch_setup): ...this.
2758 (the_low_target): Remove the op field.
2759 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2761 (mips_arch_setup): Turn into ...
2762 (mips_target::low_arch_setup): ...this.
2763 (the_low_target): Remove the op field.
2764 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2766 (nios2_arch_setup): Turn into ...
2767 (nios2_target::low_arch_setup): ...this.
2768 (the_low_target): Remove the op field.
2769 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2771 (ppc_arch_setup): Turn into ...
2772 (ppc_target::low_arch_setup): ...this.
2773 (the_low_target): Remove the op field.
2774 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2776 (riscv_arch_setup): Turn into ...
2777 (riscv_target::low_arch_setup): ...this.
2778 (the_low_target): Remove the op field.
2779 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2781 (s390_arch_setup): Turn into ...
2782 (s390_target::low_arch_setup): ...this.
2783 (the_low_target): Remove the op field.
2784 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2786 (sh_arch_setup): Turn into ...
2787 (sh_target::low_arch_setup): ...this.
2788 (the_low_target): Remove the op field.
2789 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2791 (sparc_arch_setup): Turn into ...
2792 (sparc_target::low_arch_setup): ...this.
2793 (the_low_target): Remove the op field.
2794 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2796 (tic6x_arch_setup): Turn into ...
2797 (tic6x_target::low_arch_setup): ...this.
2798 (the_low_target): Remove the op field.
2799 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2801 (tile_arch_setup): Turn into ...
2802 (tile_target::low_arch_setup): ...this.
2803 (the_low_target): Remove the op field.
2804 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2806 (xtensa_arch_setup): Turn into ...
2807 (xtensa_target::low_arch_setup): ...this.
2808 (the_low_target): Remove the op field.
2810 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2812 * linux-low.h (the_linux_target): New extern declaration.
2813 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2815 (the_linux_target): Remove.
2816 * linux-x86-low.cc (class x86_target): New class.
2817 (the_x86_target): New static object.
2818 (the_linux_target): Define as pointer to the_x86_target.
2819 * linux-aarch64-low.cc (class aarch64_target): New class.
2820 (the_aarch64_target): New static object.
2821 (the_linux_target): Define as pointer to the_aarch64_target.
2822 * linux-arm-low.cc (class arm_target): New class.
2823 (the_arm_target): New static object.
2824 (the_linux_target): Define as pointer to the_arm_target.
2825 * linux-bfin-low.cc (class bfin_target): New class.
2826 (the_bfin_target): New static object.
2827 (the_linux_target): Define as pointer to the_bfin_target.
2828 * linux-cris-low.cc (class cris_target): New class.
2829 (the_cris_target): New static object.
2830 (the_linux_target): Define as pointer to the_cris_target.
2831 * linux-crisv32-low.cc (class crisv32_target): New class.
2832 (the_crisv32_target): New static object.
2833 (the_linux_target): Define as pointer to the_crisv32_target.
2834 * linux-ia64-low.cc (class ia64_target): New class.
2835 (the_ia64_target): New static object.
2836 (the_linux_target): Define as pointer to the_ia64_target.
2837 * linux-m32r-low.cc (class m32r_target): New class.
2838 (the_m32r_target): New static object.
2839 (the_linux_target): Define as pointer to the_m32r_target.
2840 * linux-m68k-low.cc (class m68k_target): New class.
2841 (the_m68k_target): New static object.
2842 (the_linux_target): Define as pointer to the_m68k_target.
2843 * linux-mips-low.cc (class mips_target): New class.
2844 (the_mips_target): New static object.
2845 (the_linux_target): Define as pointer to the_mips_target.
2846 * linux-nios2-low.cc (class nios2_target): New class.
2847 (the_nios2_target): New static object.
2848 (the_linux_target): Define as pointer to the_nios2_target.
2849 * linux-ppc-low.cc (class ppc_target): New class.
2850 (the_ppc_target): New static object.
2851 (the_linux_target): Define as pointer to the_ppc_target.
2852 * linux-riscv-low.cc (class riscv_target): New class.
2853 (the_riscv_target): New static object.
2854 (the_linux_target): Define as pointer to the_riscv_target.
2855 * linux-s390-low.cc (class s390_target): New class.
2856 (the_s390_target): New static object.
2857 (the_linux_target): Define as pointer to the_s390_target.
2858 * linux-sh-low.cc (class sh_target): New class.
2859 (the_sh_target): New static object.
2860 (the_linux_target): Define as pointer to the_sh_target.
2861 * linux-sparc-low.cc (class sparc_target): New class.
2862 (the_sparc_target): New static object.
2863 (the_linux_target): Define as pointer to the_sparc_target.
2864 * linux-tic6x-low.cc (class tic6x_target): New class.
2865 (the_tic6x_target): New static object.
2866 (the_linux_target): Define as pointer to the_tic6x_target.
2867 * linux-tile-low.cc (class tile_target): New class.
2868 (the_tile_target): New static object.
2869 (the_linux_target): Define as pointer to the_tile_target.
2870 * linux-xtensa-low.cc (class xtensa_target): New class.
2871 (the_xtensa_target): New static object.
2872 (the_linux_target): Define as pointer to the_xtensa_target.
2874 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2876 Turn some static functions in linux-low.cc into private methods of
2877 linux_process_target.
2879 * linux-low.cc (handle_extended_wait): Turn into ...
2880 (linux_process_target::handle_extended_wait): ...this. Call
2881 'mourn' on 'this' object instead of 'the_target'.
2882 (maybe_move_out_of_jump_pad): Turn into...
2883 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2884 (linux_low_filter_event): Turn into...
2885 (linux_process_target::filter_event): ...this.
2886 (linux_wait_for_event_filtered): Turn into...
2887 (linux_process_target::wait_for_event_filtered): ...this.
2888 (linux_wait_for_event): Turn into...
2889 (linux_process_target::wait_for_event): ...this.
2890 (linux_wait_1): Turn into...
2891 (linux_process_target::wait_1): ...this.
2892 (wait_for_sigstop): Turn into...
2893 (linux_process_target::wait_for_sigstop): ...this.
2894 (move_out_of_jump_pad_callback): Turn into...
2895 (linux_process_target::move_out_of_jump_pad): ...this.
2896 (stop_all_lwps): Turn into...
2897 (linux_process_target::stop_all_lwps): ...this.
2898 (start_step_over): Turn into...
2899 (linux_process_target::start_step_over): ...this.
2900 (complete_ongoing_step_over): Turn into...
2901 (linux_process_target::complete_ongoing_step_over): ...this.
2902 (proceed_all_lwps): Turn into...
2903 (linux_process_target::proceed_all_lwps): ...this.
2904 (unstop_all_lwps): Turn into...
2905 (linux_process_target::unstop_all_lwps): ...this.
2907 * linux-low.h (class linux_process_target)
2908 <handle_extended_wait>
2909 <maybe_move_out_of_jump_pad>
2911 <wait_for_event_filtered>
2915 <move_out_of_jump_pad>
2918 <complete_ongoing_step_over>
2920 <unstop_all_lwps>: Declare.
2922 Update the callers below.
2924 * linux-low.cc (linux_process_target::attach): Update.
2925 (linux_process_target::stabilize_threads): Ditto.
2926 (linux_process_target::wait): Ditto.
2928 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2930 * linux-low.h (struct linux_target_ops): Update the comment for
2931 'cannot_store_register' to return 0 or 1.
2932 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2935 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2937 * config.in: Re-generate.
2938 * configure: Re-generate.
2940 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2942 * regcache.cc (find_register_by_number): Update.
2943 * tdesc.cc (init_target_desc): Likewise.
2944 * tdesc.h (target_desc::reg_defs): Likewise.
2946 2020-03-12 Tom Tromey <tom@tromey.com>
2948 * configure: Rebuild.
2949 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2950 (WIN32APILIBS): New subst.
2951 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2953 (gdbsupport/%.o): Remove target.
2954 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2955 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2956 (WIN32APILIBS): New variable.
2957 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2958 (gdbreplay$(EXEEXT)): Likewise.
2960 2020-03-12 Tom Tromey <tom@tromey.com>
2962 * config.in, configure: Rebuild.
2963 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2964 * acinclude.m4: Include gettext-sister.m4.
2965 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2967 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2968 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2970 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2972 * acinclude.m4: Update path to selftest.m4.
2974 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2976 * configure.ac: Don't source bfd/development.sh, move
2977 GDB_AC_COMMON higher.
2978 * configure: Re-generate.
2980 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2982 * configure: Re-generate.
2984 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2986 * configure: Re-generate.
2988 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2990 * .dir-locals.el: New file.
2992 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2994 * .gitattributes: New file.
2996 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2998 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2999 reply into an S reply.
3000 * server.cc (disable_packet_T): New global.
3001 (captured_main): Set new global when appropriate.
3002 * server.h (disable_packet_T): Declare.
3004 2020-02-21 Tom Tromey <tom@tromey.com>
3006 * Makefile.in (mostlyclean): New target.
3008 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3010 * target.h (struct process_stratum_target): Remove.
3011 (class process_target): Rename to ...
3012 (class process_stratum_target): ... this.
3013 * linux-low.h (class linux_process_target): Derive from
3014 'process_stratum_target'.
3015 * linux-low.cc (linux_target_ops): Remove.
3016 (initialize_low): Set the_target to the singleton instance of
3017 linux_process_target.
3018 * lynx-low.h (class lynx_process_target): Derive from
3019 'process_stratum_target'.
3020 * lynx-low.cc (lynx_target_ops): Remove.
3021 (initialize_low): Set the_target to the singleton instance of
3022 lynx_process_target.
3023 * nto-low.h (class nto_process_target): Derive from
3024 'process_stratum_target'.
3025 * nto-low.cc (nto_target_ops): Remove.
3026 (initialize_low): Set the_target to the singleton instance of
3028 * win32-low.h (class win32_process_target): Derive from
3029 'process_stratum_target'.
3030 * win32-low.cc (win32_target_ops): Remove.
3031 (initialize_low): Set the_target to the singleton instance of
3032 win32_process_target.
3034 Replace 'the_target->pt' with 'the_target' in the uses below.
3036 * hostio.cc (hostio_error)
3041 * linux-aarch32-low.cc (arm_breakpoint_at)
3042 * linux-aarch64-low.cc (aarch64_breakpoint_at)
3043 * linux-arm-low.cc (arm_sigreturn_next_pc)
3045 (arm_get_syscall_trapinfo)
3046 * linux-cris-low.cc (cris_breakpoint_at)
3047 * linux-crisv32-low.cc (cris_breakpoint_at)
3048 * linux-low.cc (handle_extended_wait)
3051 (linux_process_target::breakpoint_kind_from_pc)
3053 * linux-m32r-low.cc (m32r_breakpoint_at)
3054 * linux-mips-low.cc (mips_breakpoint_at)
3055 * linux-nios2-low.cc (nios2_breakpoint_at)
3056 * linux-ppc-low.cc (ppc_breakpoint_at)
3057 * linux-s390-low.cc (s390_get_hwcap)
3058 * linux-sh-low.cc (sh_breakpoint_at)
3059 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
3060 (sparc_store_gregset_from_stack)
3061 (sparc_breakpoint_at)
3062 * linux-tic6x-low.cc (tic6x_breakpoint_at)
3063 * linux-tile-low.cc (tile_breakpoint_at)
3064 * linux-x86-low.cc (x86_breakpoint_at)
3065 * linux-xtensa-low.cc (xtensa_breakpoint_at)
3066 * mem-break.cc (bp_size)
3068 (insert_memory_breakpoint)
3069 (set_raw_breakpoint_at)
3070 (delete_raw_breakpoint)
3072 (uninsert_raw_breakpoint)
3073 (reinsert_raw_breakpoint)
3074 (validate_inserted_breakpoint)
3075 * regcache.cc (regcache_read_pc)
3077 * remote-utils.cc (putpkt_binary_1)
3080 (prepare_resume_reply)
3081 * server.cc (handle_general_set)
3084 (handle_qxfer_exec_file)
3085 (handle_qxfer_libraries_svr4)
3086 (handle_qxfer_osdata)
3087 (handle_qxfer_siginfo)
3088 (handle_qxfer_fdpic)
3092 (queue_stop_reply_callback)
3094 * target.cc (prepare_to_access_memory)
3095 (done_accessing_memory)
3096 (read_inferior_memory)
3097 (target_write_memory)
3098 (target_stop_and_wait)
3100 (target_mourn_inferior)
3101 (target_continue_no_signal)
3103 (target_supports_multi_process)
3106 (target_create_inferior)
3107 (target_post_create_inferior)
3109 (target_supports_fork_events)
3110 (target_supports_vfork_events)
3111 (target_supports_exec_events)
3112 (target_handle_new_gdb_connection)
3115 (fetch_inferior_registers)
3116 (store_inferior_registers)
3118 (target_supports_non_stop)
3120 (target_process_qsupported)
3121 (target_supports_catch_syscall)
3122 (target_get_ipa_tdesc_idx)
3123 (target_supports_tracepoints)
3124 (target_supports_fast_tracepoints)
3125 (target_get_min_fast_tracepoint_insn_len)
3126 (target_thread_stopped)
3128 (target_unpause_all)
3129 (target_stabilize_threads)
3130 (target_install_fast_tracepoint_jump_pad)
3132 (target_supports_disable_randomization)
3133 (target_supports_agent)
3134 (target_enable_btrace)
3135 (target_disable_btrace)
3136 (target_read_btrace)
3137 (target_read_btrace_conf)
3138 (target_supports_range_stepping)
3139 (target_supports_stopped_by_sw_breakpoint)
3140 (target_stopped_by_sw_breakpoint)
3141 (target_supports_stopped_by_hw_breakpoint)
3142 (target_supports_hardware_single_step)
3143 (target_stopped_by_hw_breakpoint)
3144 (target_breakpoint_kind_from_pc)
3145 (target_breakpoint_kind_from_current_state)
3146 (target_supports_software_single_step)
3147 (target_core_of_thread)
3148 (target_thread_name)
3149 (target_thread_handle)
3150 * win32-low.cc (do_initial_child_stuff)
3152 Rename target op default definitions listed below.
3154 * target.cc (process_target::post_create_inferior): Rename as ...
3155 (process_stratum_target::post_create_inferior): ... this.
3156 (process_target::prepare_to_access_memory): Rename as ...
3157 (process_stratum_target::prepare_to_access_memory): ... this.
3158 (process_target::done_accessing_memory): Rename as ...
3159 (process_stratum_target::done_accessing_memory): ... this.
3160 (process_target::look_up_symbols): Rename as ...
3161 (process_stratum_target::look_up_symbols): ... this.
3162 (process_target::supports_read_auxv): Rename as ...
3163 (process_stratum_target::supports_read_auxv): ... this.
3164 (process_target::read_auxv): Rename as ...
3165 (process_stratum_target::read_auxv): ... this.
3166 (process_target::supports_z_point_type): Rename as ...
3167 (process_stratum_target::supports_z_point_type): ... this.
3168 (process_target::insert_point): Rename as ...
3169 (process_stratum_target::insert_point): ... this.
3170 (process_target::remove_point): Rename as ...
3171 (process_stratum_target::remove_point): ... this.
3172 (process_target::stopped_by_sw_breakpoint): Rename as ...
3173 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
3174 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
3175 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
3176 (process_target::stopped_by_hw_breakpoint): Rename as ...
3177 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
3178 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
3179 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
3180 (process_target::supports_hardware_single_step): Rename as ...
3181 (process_stratum_target::supports_hardware_single_step): ... this.
3182 (process_target::stopped_by_watchpoint): Rename as ...
3183 (process_stratum_target::stopped_by_watchpoint): ... this.
3184 (process_target::stopped_data_address): Rename as ...
3185 (process_stratum_target::stopped_data_address): ... this.
3186 (process_target::supports_read_offsets): Rename as ...
3187 (process_stratum_target::supports_read_offsets): ... this.
3188 (process_target::read_offsets): Rename as ...
3189 (process_stratum_target::read_offsets): ... this.
3190 (process_target::supports_get_tls_address): Rename as ...
3191 (process_stratum_target::supports_get_tls_address): ... this.
3192 (process_target::get_tls_address): Rename as ...
3193 (process_stratum_target::get_tls_address): ... this.
3194 (process_target::hostio_last_error): Rename as ...
3195 (process_stratum_target::hostio_last_error): ... this.
3196 (process_target::supports_qxfer_osdata): Rename as ...
3197 (process_stratum_target::supports_qxfer_osdata): ... this.
3198 (process_target::qxfer_osdata): Rename as ...
3199 (process_stratum_target::qxfer_osdata): ... this.
3200 (process_target::supports_qxfer_siginfo): Rename as ...
3201 (process_stratum_target::supports_qxfer_siginfo): ... this.
3202 (process_target::qxfer_siginfo): Rename as ...
3203 (process_stratum_target::qxfer_siginfo): ... this.
3204 (process_target::supports_non_stop): Rename as ...
3205 (process_stratum_target::supports_non_stop): ... this.
3206 (process_target::async): Rename as ...
3207 (process_stratum_target::async): ... this.
3208 (process_target::start_non_stop): Rename as ...
3209 (process_stratum_target::start_non_stop): ... this.
3210 (process_target::supports_multi_process): Rename as ...
3211 (process_stratum_target::supports_multi_process): ... this.
3212 (process_target::supports_fork_events): Rename as ...
3213 (process_stratum_target::supports_fork_events): ... this.
3214 (process_target::supports_vfork_events): Rename as ...
3215 (process_stratum_target::supports_vfork_events): ... this.
3216 (process_target::supports_exec_events): Rename as ...
3217 (process_stratum_target::supports_exec_events): ... this.
3218 (process_target::handle_new_gdb_connection): Rename as ...
3219 (process_stratum_target::handle_new_gdb_connection): ... this.
3220 (process_target::handle_monitor_command): Rename as ...
3221 (process_stratum_target::handle_monitor_command): ... this.
3222 (process_target::core_of_thread): Rename as ...
3223 (process_stratum_target::core_of_thread): ... this.
3224 (process_target::supports_read_loadmap): Rename as ...
3225 (process_stratum_target::supports_read_loadmap): ... this.
3226 (process_target::read_loadmap): Rename as ...
3227 (process_stratum_target::read_loadmap): ... this.
3228 (process_target::process_qsupported): Rename as ...
3229 (process_stratum_target::process_qsupported): ... this.
3230 (process_target::supports_tracepoints): Rename as ...
3231 (process_stratum_target::supports_tracepoints): ... this.
3232 (process_target::read_pc): Rename as ...
3233 (process_stratum_target::read_pc): ... this.
3234 (process_target::write_pc): Rename as ...
3235 (process_stratum_target::write_pc): ... this.
3236 (process_target::supports_thread_stopped): Rename as ...
3237 (process_stratum_target::supports_thread_stopped): ... this.
3238 (process_target::thread_stopped): Rename as ...
3239 (process_stratum_target::thread_stopped): ... this.
3240 (process_target::supports_get_tib_address): Rename as ...
3241 (process_stratum_target::supports_get_tib_address): ... this.
3242 (process_target::get_tib_address): Rename as ...
3243 (process_stratum_target::get_tib_address): ... this.
3244 (process_target::pause_all): Rename as ...
3245 (process_stratum_target::pause_all): ... this.
3246 (process_target::unpause_all): Rename as ...
3247 (process_stratum_target::unpause_all): ... this.
3248 (process_target::stabilize_threads): Rename as ...
3249 (process_stratum_target::stabilize_threads): ... this.
3250 (process_target::supports_fast_tracepoints): Rename as ...
3251 (process_stratum_target::supports_fast_tracepoints): ... this.
3252 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
3253 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
3254 (process_target::emit_ops): Rename as ...
3255 (process_stratum_target::emit_ops): ... this.
3256 (process_target::supports_disable_randomization): Rename as ...
3257 (process_stratum_target::supports_disable_randomization): ... this.
3258 (process_target::supports_qxfer_libraries_svr4): Rename as ...
3259 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
3260 (process_target::qxfer_libraries_svr4): Rename as ...
3261 (process_stratum_target::qxfer_libraries_svr4): ... this.
3262 (process_target::supports_agent): Rename as ...
3263 (process_stratum_target::supports_agent): ... this.
3264 (process_target::enable_btrace): Rename as ...
3265 (process_stratum_target::enable_btrace): ... this.
3266 (process_target::disable_btrace): Rename as ...
3267 (process_stratum_target::disable_btrace): ... this.
3268 (process_target::read_btrace): Rename as ...
3269 (process_stratum_target::read_btrace): ... this.
3270 (process_target::read_btrace_conf): Rename as ...
3271 (process_stratum_target::read_btrace_conf): ... this.
3272 (process_target::supports_range_stepping): Rename as ...
3273 (process_stratum_target::supports_range_stepping): ... this.
3274 (process_target::supports_pid_to_exec_file): Rename as ...
3275 (process_stratum_target::supports_pid_to_exec_file): ... this.
3276 (process_target::pid_to_exec_file): Rename as ...
3277 (process_stratum_target::pid_to_exec_file): ... this.
3278 (process_target::supports_multifs): Rename as ...
3279 (process_stratum_target::supports_multifs): ... this.
3280 (process_target::multifs_open): Rename as ...
3281 (process_stratum_target::multifs_open): ... this.
3282 (process_target::multifs_unlink): Rename as ...
3283 (process_stratum_target::multifs_unlink): ... this.
3284 (process_target::multifs_readlink): Rename as ...
3285 (process_stratum_target::multifs_readlink): ... this.
3286 (process_target::breakpoint_kind_from_pc): Rename as ...
3287 (process_stratum_target::breakpoint_kind_from_pc): ... this.
3288 (process_target::breakpoint_kind_from_current_state): Rename as ...
3289 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
3290 (process_target::thread_name): Rename as ...
3291 (process_stratum_target::thread_name): ... this.
3292 (process_target::thread_handle): Rename as ...
3293 (process_stratum_target::thread_handle): ... this.
3294 (process_target::supports_software_single_step): Rename as ...
3295 (process_stratum_target::supports_software_single_step): ... this.
3296 (process_target::supports_catch_syscall): Rename as ...
3297 (process_stratum_target::supports_catch_syscall): ... this.
3298 (process_target::get_ipa_tdesc_idx): Rename as ...
3299 (process_stratum_target::get_ipa_tdesc_idx): ... this.
3301 2020-02-20 Pedro Alves <palves@redhat.com>
3303 * target.cc (set_target_ops): Simply copy the given target pointer
3304 instead of creating a copy of the pointed object.
3306 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3308 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
3311 * target.h (struct process_stratum_target): Remove the target op.
3312 (class process_target): Add the target op.
3313 (target_get_ipa_tdesc_idx): Update the macro.
3314 * target.cc (process_target::get_ipa_tdesc_idx): Define.
3316 Update the derived classes and callers below.
3318 * linux-low.cc (linux_target_ops): Update.
3319 (linux_get_ipa_tdesc_idx): Turn into ...
3320 (linux_process_target::get_ipa_tdesc_idx): ... this.
3321 * linux-low.h (class linux_process_target): Update.
3322 * lynx-low.cc (lynx_target_ops): Update.
3323 * nto-low.cc (nto_target_ops): Update.
3324 * win32-low.cc (win32_target_ops): Update.
3326 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3328 Turn process_stratum_target's supports_catch_syscall op into a
3329 method of process_target.
3331 * target.h (struct process_stratum_target): Remove the target op.
3332 (class process_target): Add the target op.
3333 (target_supports_catch_syscall): Update the macro.
3334 * target.cc (process_target::supports_catch_syscall): Define.
3336 Update the derived classes and callers below.
3338 * linux-low.cc (linux_target_ops): Update.
3339 (linux_supports_catch_syscall): Turn into ...
3340 (linux_process_target::supports_catch_syscall): ... this.
3341 * linux-low.h (class linux_process_target): Update.
3342 * lynx-low.cc (lynx_target_ops): Update.
3343 * nto-low.cc (nto_target_ops): Update.
3344 * win32-low.cc (win32_target_ops): Update.
3346 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3348 Turn process_stratum_target's supports_software_single_step op
3349 into a method of process_target.
3351 * target.h (struct process_stratum_target): Remove the target op.
3352 (class process_target): Add the target op.
3353 (target_supports_software_single_step): Update the macro.
3354 * target.cc (process_target::supports_software_single_step): Define.
3356 Update the derived classes and callers below.
3358 * linux-low.cc (linux_target_ops): Update.
3359 (linux_supports_software_single_step): Turn into ...
3360 (linux_process_target::supports_software_single_step): ... this.
3361 * linux-low.h (class linux_process_target): Update.
3362 * lynx-low.cc (lynx_target_ops): Update.
3363 * nto-low.cc (nto_target_ops): Update.
3364 * win32-low.cc (win32_target_ops): Update.
3366 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3368 Turn process_stratum_target's thread_name and thread_handle ops
3369 into methods of process_target.
3371 * target.h (struct process_stratum_target): Remove the target ops.
3372 (class process_target): Add the target ops.
3373 (target_thread_name): Update the macro.
3374 (target_thread_handle): Update the macro.
3375 * target.cc (process_target::thread_name): Define.
3376 (process_target::thread_handle): Define.
3378 Update the derived classes and callers below.
3380 * linux-low.cc (linux_target_ops): Update.
3381 (linux_process_target::thread_name): Define.
3382 (linux_process_target::thread_handle): Define.
3383 * linux-low.h (class linux_process_target): Update.
3384 * lynx-low.cc (lynx_target_ops): Update.
3385 * nto-low.cc (nto_target_ops): Update.
3386 * win32-low.cc (win32_target_ops): Update.
3388 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3390 Turn process_stratum_target's breakpoint_kind_from_pc,
3391 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
3392 ops into methods of process_target.
3394 * target.h (struct process_stratum_target): Remove the target op.
3395 (class process_target): Add the target op.
3396 (target_breakpoint_kind_from_pc): Update the macro.
3397 (target_breakpoint_kind_from_current_state): Update the macro.
3398 (default_breakpoint_kind_from_pc): Remove declaration.
3399 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
3400 (process_target::breakpoint_kind_from_pc): ... this.
3401 (process_target::breakpoint_kind_from_current_state): Define.
3403 Update the derived classes and callers below.
3405 * mem-break.cc (bp_size): Update.
3406 (bp_opcode): Update.
3407 * linux-low.cc (linux_target_ops): Update.
3408 (linux_wait_1): Update.
3409 (linux_breakpoint_kind_from_pc): Turn into ...
3410 (linux_process_target::breakpoint_kind_from_pc): ... this.
3411 (linux_sw_breakpoint_from_kind): Turn into ...
3412 (linux_process_target::sw_breakpoint_from_kind): ... this.
3413 (linux_breakpoint_kind_from_current_state): Turn into ...
3414 (linux_process_target::breakpoint_kind_from_current_state): ... this.
3415 * linux-low.h (class linux_process_target): Update.
3416 * lynx-low.cc (lynx_target_ops): Update.
3417 (lynx_process_target::sw_breakpoint_from_kind): Define.
3418 * lynx-low.h (class lynx_process_target): Update.
3419 * nto-low.cc (nto_target_ops): Update.
3420 (nto_sw_breakpoint_from_kind): Turn into ...
3421 (nto_process_target::sw_breakpoint_from_kind): ... this.
3422 * nto-low.h (class nto_process_target): Update.
3423 * win32-low.cc (win32_target_ops): Update.
3424 (win32_sw_breakpoint_from_kind): Turn into ...
3425 (win32_process_target::sw_breakpoint_from_kind): ... this.
3426 * win32-low.h (class win32_process_target): Update.
3428 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3430 Turn process_stratum_target's multifs_open, multifs_readlink,
3431 multifs_unlink ops into methods of process_target.
3433 * target.h (struct process_stratum_target): Remove the target ops.
3434 (class process_target): Add the target ops. Also add
3436 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
3438 (process_target::supports_multifs): Define.
3439 (process_target::multifs_open): Define.
3440 (process_target::multifs_readlink): Define.
3441 (process_target::multifs_unlink): Define.
3443 Update the derived classes and callers below.
3445 * hostio.cc (handle_setfs): Update.
3446 (handle_open): Update.
3447 (handle_unlink): Update.
3448 (handle_readlink): Update.
3449 * linux-low.cc (linux_target_ops): Update.
3450 (linux_process_target::supports_multifs): Define.
3451 (linux_process_target::multifs_open): Define.
3452 (linux_process_target::multifs_readlink): Define.
3453 (linux_process_target::multifs_unlink): Define.
3454 * linux-low.h (class linux_process_target): Update.
3455 * lynx-low.cc (lynx_target_ops): Update.
3456 * nto-low.cc (nto_target_ops): Update.
3457 * win32-low.cc (win32_target_ops): Update.
3459 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3461 Turn process_stratum_target's pid_to_exec_file op into a method
3464 * target.h (struct process_stratum_target): Remove the target op.
3465 (class process_target): Add the target op. Also add
3466 'supports_pid_to_exec_file'.
3467 * target.cc (process_target::pid_to_exec_file): Define.
3468 (process_target::supports_pid_to_exec_file): Define.
3470 Update the derived classes and callers below.
3472 * server.cc (handle_qxfer_exec_file): Update.
3473 (handle_query): Update.
3474 * linux-low.cc (linux_target_ops): Update.
3475 (linux_process_target::supports_pid_to_exec_file): Define.
3476 (linux_process_target::pid_to_exec_file): Define.
3477 * linux-low.h (class linux_process_target): Update.
3478 * lynx-low.cc (lynx_target_ops): Update.
3479 * nto-low.cc (nto_target_ops): Update.
3480 * win32-low.cc (win32_target_ops): Update.
3482 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3484 Turn process_stratum_target's supports_range_stepping op into a
3485 method of process_target.
3487 * target.h (struct process_stratum_target): Remove the target op.
3488 (class process_target): Add the target op.
3489 (target_supports_range_stepping): Update the macro.
3490 * target.cc (process_target::supports_range_stepping): Define.
3492 Update the derived classes and callers below.
3494 * linux-low.cc (linux_target_ops): Update.
3495 (linux_supports_range_stepping): Turn into ...
3496 (linux_process_target::supports_range_stepping): ... this.
3497 * linux-low.h (class linux_process_target): Update.
3498 * lynx-low.cc (lynx_target_ops): Update.
3499 * nto-low.cc (nto_target_ops): Update.
3500 * win32-low.cc (win32_target_ops): Update.
3502 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3504 Turn process_stratum_target's btrace-related ops (enable_btrace,
3505 disable_btrace, read_btrace, read_btrace_conf) into methods of
3508 * target.h (struct process_stratum_target): Remove the target ops.
3509 (class process_target): Add the target ops.
3510 (target_enable_btrace): Update.
3511 (target_disable_btrace): Update.
3512 (target_read_btrace): Update.
3513 (target_read_btrace_conf): Update.
3514 * target.cc (process_target::enable_btrace): Define.
3515 (process_target::disable_btrace): Define.
3516 (process_target::read_btrace): Define.
3517 (process_target::read_btrace_conf): Define.
3519 Update the derived classes and callers below.
3521 * linux-low.cc (linux_target_ops): Update.
3522 (linux_process_target:enable_btrace): Define as a wrapper around
3523 linux_enable_btrace.
3524 (linux_low_disable_btrace): Turn into ...
3525 (linux_process_target::disable_btrace): ... this.
3526 (linux_low_read_btrace): Turn into ...
3527 (linux_process_target::read_btrace): ... this.
3528 (linux_low_btrace_conf): Turn into ...
3529 (linux_process_target::read_btrace_conf): ... this.
3530 * linux-low.h (class linux_process_target): Update.
3531 * lynx-low.cc (lynx_target_ops): Update.
3532 * nto-low.cc (nto_target_ops): Update.
3533 * win32-low.cc (win32_target_ops): Update.
3535 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3537 Turn process_stratum_target's supports_agent op into a method of
3540 * target.h (struct process_stratum_target): Remove the target op.
3541 (class process_target): Add the target op.
3542 (target_supports_agent): Update the macro.
3543 * target.cc (process_target::supports_agent): Define.
3545 Update the derived classes and callers below.
3547 * linux-low.cc (linux_target_ops): Update.
3548 (linux_supports_agent): Turn into ...
3549 (linux_process_target::supports_agent): ... this.
3550 * linux-low.h (class linux_process_target): Update.
3551 * lynx-low.cc (lynx_target_ops): Update.
3552 * nto-low.cc (nto_target_ops): Update.
3553 * win32-low.cc (win32_target_ops): Update.
3555 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3557 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3558 method of process_target.
3560 * target.h (struct process_stratum_target): Remove the target op.
3561 (class process_target): Add the target op. Also add
3562 'supports_qxfer_libraries_svr4'.
3563 * target.cc (process_target::qxfer_libraries_svr4): Define.
3564 (process_target::supports_qxfer_libraries_svr4): Define.
3566 Update the derived classes and callers below.
3568 * server.cc (handle_qxfer_libraries_svr4): Update.
3569 (handle_query): Update.
3570 * linux-low.cc (linux_target_ops): Update.
3571 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3572 (linux_qxfer_libraries_svr4): Turn into ...
3573 (linux_process_target::qxfer_libraries_svr4): ... this.
3574 * linux-low.h (class linux_process_target): Update.
3575 * lynx-low.cc (lynx_target_ops): Update.
3576 * nto-low.cc (nto_target_ops): Update.
3577 * win32-low.cc (win32_target_ops): Update.
3579 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3581 Turn process_stratum_target's supports_disable_randomization op
3582 into a method of process_target.
3584 * target.h (struct process_stratum_target): Remove the target op.
3585 (class process_target): Add the target op.
3586 (target_supports_disable_randomization): Update the macro.
3587 * target.cc (process_target::supports_disable_randomization): Define.
3589 Update the derived classes and callers below.
3591 * linux-low.cc (linux_target_ops): Update.
3592 (linux_supports_disable_randomization): Turn into ...
3593 (linux_process_target::supports_disable_randomization): ... this.
3594 * linux-low.h (class linux_process_target): Update.
3595 * lynx-low.cc (lynx_target_ops): Update.
3596 * nto-low.cc (nto_target_ops): Update.
3597 * win32-low.cc (win32_target_ops): Update.
3599 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3601 Turn process_stratum_target's emit_ops op into a method of
3604 * target.h (struct process_stratum_target): Remove the target op.
3605 (class process_target): Add the target op.
3606 (target_emit_ops): Update the macro.
3607 * target.cc (process_target::emit_ops): Define.
3609 Update the derived classes and callers below.
3611 * linux-low.cc (linux_target_ops): Update.
3612 (linux_emit_ops): Turn into ...
3613 (linux_process_target::emit_ops): ... this.
3614 * linux-low.h (class linux_process_target): Update.
3615 * lynx-low.cc (lynx_target_ops): Update.
3616 * nto-low.cc (nto_target_ops): Update.
3617 * win32-low.cc (win32_target_ops): Update.
3619 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3621 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3622 and get_min_fast_tracepoint_insn_len ops into methods of
3625 * target.h (struct process_stratum_target): Remove the target ops.
3626 (class process_target): Add the target ops. Also add
3627 'supports_fast_tracepoints'.
3628 (target_supports_fast_tracepoints): Update the macro.
3629 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3630 (install_fast_tracepoint_jump_pad): Update and rename the macro
3632 (target_install_fast_tracepoint_jump_pad): ... this.
3633 * target.cc (process_target::supports_fast_tracepoints): Define.
3634 (process_target::install_fast_tracepoint_jump_pad): Define.
3635 (process_target::get_min_fast_tracepoint_insn_len): Define.
3637 Update the derived classes and callers below.
3639 * tracepoint.cc (install_fast_tracepoint): Update.
3640 * linux-low.cc (linux_target_ops): Update.
3641 (linux_process_target::supports_fast_tracepoints): Define.
3642 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3643 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3644 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3645 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3646 * linux-low.h (class linux_process_target): Update.
3647 * lynx-low.cc (lynx_target_ops): Update.
3648 * nto-low.cc (nto_target_ops): Update.
3649 * win32-low.cc (win32_target_ops): Update.
3651 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3653 Turn process_stratum_target's stabilize_threads op into a
3654 method of process_target.
3656 * target.h (struct process_stratum_target): Remove the target op.
3657 (class process_target): Add the target op.
3658 (target_stabilize_threads): Update the macro.
3659 * target.cc (process_target::stabilize_threads): Define.
3661 Update the derived classes and callers below.
3663 * server.cc (handle_status): Update.
3664 * tracepoint.cc (cmd_qtdp): Update.
3665 (cmd_qtstart): Update.
3666 * linux-low.cc (linux_target_ops): Update.
3667 (linux_stabilize_threads): Turn into ...
3668 (linux_process_target::stabilize_threads): ... this.
3669 (linux_wait_1): Update.
3670 * linux-low.h (class linux_process_target): Update.
3671 * lynx-low.cc (lynx_target_ops): Update.
3672 * nto-low.cc (nto_target_ops): Update.
3673 * win32-low.cc (win32_target_ops): Update.
3675 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3677 Turn process_stratum_target's pause_all and unpause_all ops
3678 into methods of process_target.
3680 * target.h (struct process_stratum_target): Remove the target ops.
3681 (class process_target): Add the target ops.
3682 (pause_all): Update the macro and rename to...
3683 (target_pause_all): ... this.
3684 (unpause_all): Update the macro and rename to...
3685 (target_unpause_all): ... this.
3686 * target.cc (process_target::pause_all): Define.
3687 (process_target::unpause_all): Define.
3689 Update the derived classes and callers below.
3691 * server.cc (handle_status): Update.
3692 * tracepoint.cc (clear_installed_tracepoints): Update.
3694 (cmd_qtstart): Update.
3695 (stop_tracing): Update.
3696 (cmd_qtstatus): Update.
3697 (upload_fast_traceframes): Update.
3698 (run_inferior_command): Update.
3699 * linux-low.cc (linux_target_ops): Update.
3700 (linux_pause_all): Turn into ...
3701 (linux_process_target::pause_all): ... this.
3702 (linux_unpause_all): Turn into ...
3703 (linux_process_target::unpause_all): ... this.
3704 (linux_process_target::prepare_to_access_memory): Update.
3705 (linux_process_target::done_accessing_memory): Update.
3706 * linux-low.h (class linux_process_target): Update.
3707 * lynx-low.cc (lynx_target_ops): Update.
3708 * nto-low.cc (nto_target_ops): Update.
3709 * win32-low.cc (win32_target_ops): Update.
3711 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3713 Turn process_stratum_target's get_tib_address op into a method of
3716 * target.h (struct process_stratum_target): Remove the target op.
3717 (class process_target): Add the target op. Also add
3718 'supports_get_tib_address'.
3719 * target.cc (process_target::get_tib_address): Define.
3720 (process_target::supports_get_tib_address): Define.
3722 Update the derived classes and callers below.
3724 * server.cc (handle_query): Update.
3725 * linux-low.cc (win32_target_ops): Update.
3726 * lynx-low.cc (lynx_target_ops): Update.
3727 * nto-low.cc (nto_target_ops): Update.
3728 * win32-low.cc (win32_target_ops): Update.
3729 (win32_process_target::supports_get_tib_address): Define.
3730 (win32_get_tib_address): Turn into ...
3731 (win32_process_target::get_tib_address): ... this.
3732 * win32-low.h (class win32_process_target): Update.
3734 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3736 Turn process_stratum_target's thread_stopped op into a method of
3739 * target.h (struct process_stratum_target): Remove the target op.
3740 (class process_target): Add the target op. Also add
3741 'supports_thread_stopped'.
3742 (target_thread_stopped): Update the macro.
3743 * target.cc (process_target::thread_stopped): Define.
3744 (process_target::supports_thread_stopped): Define.
3745 (prepare_to_access_memory): Update.
3747 Update the derived classes and callers below.
3749 * server.cc (queue_stop_reply_callback): Update.
3750 * linux-low.cc (linux_target_ops): Update.
3751 (linux_process_target::supports_thread_stopped): Define.
3752 (linux_thread_stopped): Turn into ...
3753 (linux_process_target::thread_stopped): ... this.
3754 * linux-low.h (class linux_process_target): Update.
3755 * lynx-low.cc (lynx_target_ops): Update.
3756 * nto-low.cc (nto_target_ops): Update.
3757 * win32-low.cc (win32_target_ops): Update.
3759 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3761 Turn process_stratum_target's read_pc and write_pc ops into
3762 methods of process_target.
3764 * target.h (struct process_stratum_target): Remove the target ops.
3765 (class process_target): Add the target ops.
3766 * target.cc (process_target::read_pc): Define.
3767 (process_target::write_pc): Define.
3769 Update the derived classes and callers below.
3771 * regcache.cc (regcache_read_pc): Update.
3772 (regcache_write_pc): Update.
3773 * linux-low.cc (linux_target_ops): Update.
3774 (linux_read_pc): Turn into ...
3775 (linux_process_target::read_pc): ... this.
3776 (linux_write_pc): Turn into ...
3777 (linux_process_target::write_pc): ... this.
3778 * linux-low.h (class linux_process_target): Update.
3779 * lynx-low.cc (lynx_target_ops): Update.
3780 * nto-low.cc (nto_target_ops): Update.
3781 * win32-low.cc (win32_target_ops): Update.
3783 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3785 Turn process_stratum_target's supports_tracepoints op into a
3786 method of process_target.
3788 * target.h (struct process_stratum_target): Remove the target op.
3789 (class process_target): Add the target op.
3790 (target_supports_tracepoints): Update the macro.
3791 * target.cc (process_target::supports_tracepoints): Define.
3793 Update the derived classes and callers below.
3795 * linux-low.cc (linux_target_ops): Update.
3796 (linux_supports_tracepoints): Turn into ...
3797 (linux_process_target::supports_tracepoints): ... this.
3798 * linux-low.h (class linux_process_target): Update.
3799 * lynx-low.cc (lynx_target_ops): Update.
3800 * nto-low.cc (nto_target_ops): Update.
3801 * win32-low.cc (win32_target_ops): Update.
3803 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3805 Turn process_stratum_target's process_qsupported op into a method
3808 * target.h (struct process_stratum_target): Remove the target op.
3809 (class process_target): Add the target op.
3810 (target_process_qsupported): Update the macro.
3811 * target.cc (process_target::process_qsupported): Define.
3813 Update the derived classes and callers below.
3815 * linux-low.cc (linux_target_ops): Update.
3816 (linux_process_qsupported): Turn into ...
3817 (linux_process_target::process_qsupported): ... this.
3818 * linux-low.h (class linux_process_target): Update.
3819 * lynx-low.cc (lynx_target_ops): Update.
3820 * nto-low.cc (nto_target_ops): Update.
3821 * win32-low.cc (win32_target_ops): Update.
3823 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3825 Turn process_stratum_target's read_loadmap op into a method of
3828 * target.h (struct process_stratum_target): Remove the target op.
3829 (class process_target): Add the target op. Also add
3830 'supports_read_loadmap'.
3831 * target.cc (process_target::read_loadmap): Define.
3832 (process_target::supports_read_loadmap): Define.
3834 Update the derived classes and callers below.
3836 * server.cc (handle_qxfer_fdpic): Update.
3837 (handle_query): Update.
3838 * linux-low.cc (linux_target_ops): Update.
3839 (linux_process_target::supports_read_loadmap): Define.
3840 (linux_read_loadmap): Turn into ...
3841 (linux_process_target::read_loadmap): ... this.
3842 * linux-low.h (class linux_process_target): Update.
3843 * lynx-low.cc (lynx_target_ops): Update.
3844 * nto-low.cc (nto_target_ops): Update.
3845 * win32-low.cc (win32_target_ops): Update.
3847 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3849 Turn process_stratum_target's core_of_thread op into a method of
3852 * target.h (struct process_stratum_target): Remove the target op.
3853 (class process_target): Add the target op.
3854 (target_core_of_thread): Update the macro.
3855 * target.cc (process_target::core_of_thread): Define.
3857 Update the derived classes and callers below.
3859 * linux-low.cc (linux_target_ops): Update.
3860 (linux_process_target::core_of_thread): Define.
3861 * linux-low.h (class linux_process_target): Update.
3862 * lynx-low.cc (lynx_target_ops): Update.
3863 * nto-low.cc (nto_target_ops): Update.
3864 * win32-low.cc (win32_target_ops): Update.
3866 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3868 Turn process_stratum_target's handle_monitor_command op into a
3869 method of process_target.
3871 * target.h (struct process_stratum_target): Remove the target op.
3872 (class process_target): Add the target op.
3873 (target_handle_monitor_command): Update the macro.
3874 * target.cc (process_target::handle_monitor_command): Define.
3876 Update the derived classes and callers below.
3878 * server.cc (handle_query): Update.
3879 * linux-low.cc (linux_target_ops): Update.
3880 (linux_process_target::handle_monitor_command): Define.
3881 * linux-low.h (class linux_process_target): Update.
3882 * lynx-low.cc (lynx_target_ops): Update.
3883 * nto-low.cc (nto_target_ops): Update.
3884 * win32-low.cc (win32_target_ops): Update.
3886 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3888 Turn process_stratum_target's handle_new_gdb_connection op into a
3889 method of process_target.
3891 * target.h (struct process_stratum_target): Remove the target op.
3892 (class process_target): Add the target op.
3893 (target_handle_new_gdb_connection): Update the macro.
3894 * target.cc (process_target::handle_new_gdb_connection): Define.
3896 Update the derived classes and callers below.
3898 * linux-low.cc (linux_target_ops): Update.
3899 (linux_handle_new_gdb_connection): Turn into ...
3900 (linux_process_target::handle_new_gdb_connection): ... this.
3901 * linux-low.h (class linux_process_target): Update.
3902 * lynx-low.cc (lynx_target_ops): Update.
3903 * nto-low.cc (nto_target_ops): Update.
3904 * win32-low.cc (win32_target_ops): Update.
3906 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3908 Turn process_stratum_target's supports_fork_events,
3909 supports_vfork_events, and supports_exec_events ops into methods
3912 * target.h (struct process_stratum_target): Remove the target ops.
3913 (class process_target): Add the target ops.
3914 (target_supports_fork_events): Update the macro.
3915 (target_supports_vfork_events): Update the macro.
3916 (target_supports_exec_events): Update the macro.
3917 * target.cc (process_target::supports_fork_events): Define.
3918 (process_target::supports_vfork_events): Define.
3919 (process_target::supports_exec_events): Define.
3921 Update the derived classes and callers below.
3923 * linux-low.cc (linux_target_ops): Update.
3924 (linux_supports_fork_events): Turn into ...
3925 (linux_process_target::supports_fork_events): ... this.
3926 (linux_supports_vfork_events): Turn into ...
3927 (linux_process_target::supports_vfork_events): ... this.
3928 (linux_supports_exec_events): Turn into ...
3929 (linux_process_target::supports_exec_events): ... this.
3930 * linux-low.h (class linux_process_target): Update.
3931 * lynx-low.cc (lynx_target_ops): Update.
3932 * nto-low.cc (nto_target_ops): Update.
3933 * win32-low.cc (win32_target_ops): Update.
3935 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3937 Turn process_stratum_target's supports_multi_process op into a
3938 method of process_target.
3940 * target.h (struct process_stratum_target): Remove the target op.
3941 (class process_target): Add the target op.
3942 * target.cc (process_target::supports_multi_process): Define.
3943 (target_supports_multi_process): Update.
3945 Update the derived classes and callers below.
3947 * linux-low.cc (linux_target_ops): Update.
3948 (linux_supports_multi_process): Turn into ...
3949 (linux_process_target::supports_multi_process): ... this.
3950 * linux-low.h (class linux_process_target): Update.
3951 * lynx-low.cc (lynx_target_ops): Update.
3952 * nto-low.cc (nto_target_ops): Update.
3953 * win32-low.cc (win32_target_ops): Update.
3955 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3957 Turn process_stratum_target's supports_non_stop, async, and
3958 start_non_stop ops into methods of process_target.
3960 * target.h (struct process_stratum_target): Remove the target ops.
3961 (class process_target): Add the target ops.
3962 (target_supports_non_stop): Update the macro.
3963 (target_async): Update the macro.
3964 (start_non_stop): Remove declaration.
3965 * target.cc (process_target::supports_non_stop): Define.
3966 (process_target::async): Define.
3967 (process_target::start_non_stop): Define.
3968 (start_non_stop): Remove.
3970 Update the derived classes and callers below.
3972 * server.cc (handle_qxfer_siginfo): Update.
3973 (handle_query): Update.
3974 * linux-low.cc (linux_target_ops): Update.
3975 (linux_supports_non_stop): Turn into ...
3976 (linux_process_target::supports_non_stop): ... this.
3977 (linux_async): Turn into ...
3978 (linux_process_target::async): ... this.
3979 (linux_start_non_stop): Turn into ...
3980 (linux_process_target::start_non_stop): ... this.
3981 * linux-low.h (class linux_process_target): Update.
3982 * lynx-low.cc (lynx_target_ops): Update.
3983 * nto-low.cc (nto_target_ops): Update.
3984 (nto_supports_non_stop): Remove; rely on the default behavior
3986 * win32-low.cc (win32_target_ops): Update.
3988 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3990 Turn process_stratum_target's qxfer_siginfo op into a method of
3993 * target.h (struct process_stratum_target): Remove the target op.
3994 (class process_target): Add the target op. Also add
3995 'supports_qxfer_siginfo'.
3996 * target.cc (process_target::qxfer_siginfo): Define.
3997 (process_target::supports_qxfer_siginfo): Define.
3999 Update the derived classes and callers below.
4001 * server.cc (handle_qxfer_siginfo): Update.
4002 (handle_query): Update.
4003 * linux-low.cc (linux_target_ops): Update.
4004 (linux_process_target::supports_qxfer_siginfo): Define.
4005 (linux_xfer_siginfo): Turn into ...
4006 (linux_process_target::qxfer_siginfo): ... this.
4007 * linux-low.h (class linux_process_target): Update.
4008 * lynx-low.cc (lynx_target_ops): Update.
4009 * nto-low.cc (nto_target_ops): Update.
4010 * win32-low.cc (win32_target_ops): Update.
4012 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4014 Turn process_stratum_target's qxfer_osdata op into a method of
4017 * target.h (struct process_stratum_target): Remove the target op.
4018 (class process_target): Add the target op. Also add
4019 'supports_qxfer_osdata'.
4020 * target.cc (process_target::qxfer_osdata): Define.
4021 (process_target::supports_qxfer_osdata): Define.
4023 Update the derived classes and callers below.
4025 * server.cc (handle_qxfer_osdata): Update.
4026 (handle_query): Update.
4027 * linux-low.cc (linux_target_ops): Update.
4028 (linux_process_target::supports_qxfer_osdata): Define.
4029 (linux_qxfer_osdata): Turn into ...
4030 (linux_process_target::qxfer_osdata): ... this.
4031 * linux-low.h (class linux_process_target): Update.
4032 * lynx-low.cc (lynx_target_ops): Update.
4033 * nto-low.cc (nto_target_ops): Update.
4034 * win32-low.cc (win32_target_ops): Update.
4036 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4038 Turn process_stratum_target's hostio_last_error op into a
4039 method of process_target.
4041 * target.h (struct process_stratum_target): Remove the target op.
4042 (class process_target): Add the target op.
4043 * target.cc: Add "hostio.h" to includes.
4044 (process_target::hostio_last_error): Define.
4046 Update the derived classes and callers below.
4048 * hostio.cc (hostio_error): Update.
4049 * linux-low.cc: Remove "hostio.h" from includes.
4050 (linux_target_ops): Update.
4051 * lynx-low.cc (lynx_target_ops): Update.
4052 * nto-low.cc (nto_target_ops): Update.
4053 * win32-low.h (class win32_process_target): Update.
4054 * win32-low.cc (win32_target_ops): Update.
4055 (wince_hostio_last_error): Turn into ...
4056 (win32_process_target::hostio_last_error): ... this.
4058 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4060 Turn process_stratum_target's get_tls_address op into a method of
4063 * target.h (struct process_stratum_target): Remove the target op.
4064 (class process_target): Add the target op. Also add
4065 'supports_get_tls_address'.
4066 * target.cc (process_target::get_tls_address): Define.
4067 (process_target::supports_get_tls_address): Define.
4069 Update the derived classes and callers below.
4071 * server.cc (handle_query): Update.
4072 * linux-low.cc (linux_target_ops): Update.
4073 (linux_process_target::supports_get_tls_address): Define.
4074 (linux_process_target::get_tls_address): Define.
4075 * linux-low.h (class linux_process_target): Update.
4076 * lynx-low.cc (lynx_target_ops): Update.
4077 * nto-low.cc (nto_target_ops): Update.
4078 * win32-low.cc (win32_target_ops): Update.
4080 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4082 Turn process_stratum_target's read_offsets op into a method of
4085 * target.h (struct process_stratum_target): Remove the target op.
4086 (class process_target): Add the target op. Also add
4087 'supports_read_offsets'.
4088 * target.cc (process_target::read_offsets): Define.
4089 (process_target::supports_read_offsets): Define.
4091 Update the derived classes and callers below.
4093 * server.cc (handle_query): Update.
4094 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
4095 (linux_target_ops): Update.
4096 (linux_process_target::supports_read_offsets): Define.
4097 (linux_read_offsets): Turn into ...
4098 (linux_process_target::read_offsets): ... this.
4099 * linux-low.h (class linux_process_target): Update.
4100 * lynx-low.cc (lynx_target_ops): Update.
4101 * nto-low.cc (nto_target_ops): Update.
4102 * win32-low.cc (win32_target_ops): Update.
4104 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4106 Turn process_stratum_target's stopped_by_watchpoint and
4107 stopped_data_address ops into methods of process_target.
4109 * target.h (struct process_stratum_target): Remove the target ops.
4110 (class process_target): Add the target ops.
4111 * target.cc (process_target::stopped_by_watchpoint): Define.
4112 (process_target::stopped_data_address): Define.
4114 Update the derived classes and callers below.
4116 * remote-utils.cc (prepare_resume_reply): Update.
4117 * linux-low.cc (linux_target_ops): Update.
4118 (linux_stopped_by_watchpoint): Turn into ...
4119 (linux_process_target::stopped_by_watchpoint): ... this.
4120 (linux_stopped_data_address): Turn into ...
4121 (linux_process_target::stopped_data_address): ... this.
4122 * linux-low.h (class linux_process_target): Update.
4123 * lynx-low.cc (lynx_target_ops): Update.
4124 * nto-low.cc (nto_target_ops): Update.
4125 (nto_stopped_by_watchpoint): Turn into ...
4126 (nto_process_target::stopped_by_watchpoint): ... this.
4127 (nto_stopped_data_address): Turn into ...
4128 (nto_process_target::stopped_data_address): ... this.
4129 * nto-low.h (class nto_process_target): Update.
4130 * win32-low.cc (win32_target_ops): Update.
4131 (win32_stopped_by_watchpoint): Turn into ...
4132 (win32_process_target::stopped_by_watchpoint): ... this.
4133 (win32_stopped_data_address): Turn into ...
4134 (win32_process_target::stopped_data_address): ... this.
4135 * win32-low.h (class win32_process_target): Update.
4137 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4139 Turn process_stratum_target's supports_hardware_single_step op into
4140 a method of process_target.
4142 * target.h (struct process_stratum_target): Remove the target op.
4143 (class process_target): Add the target op.
4144 (target_supports_hardware_single_step): Update the macro.
4145 (target_can_do_hardware_single_step): Remove declaration.
4146 * target.cc (process_target::supports_hardware_single_step): Define.
4147 (target_can_do_hardware_single_step): Remove.
4149 Update the derived classes and callers below.
4151 * linux-low.h (class linux_process_target): Update.
4152 * linux-low.cc (linux_target_ops): Update.
4153 (linux_supports_hardware_single_step): Turn into ...
4154 (linux_process_target::supports_hardware_single_step): ... this.
4155 * lynx-low.h (class lynx_process_target): Update.
4156 * lynx-low.cc (lynx_target_ops): Update.
4157 (lynx_process_target::supports_hardware_single_step): Define.
4158 * nto-low.h (class nto_process_target): Update.
4159 * nto-low.cc (nto_target_ops): Update.
4160 (nto_process_target::supports_hardware_single_step): Define.
4161 * win32-low.h (class win32_process_target): Update.
4162 * win32-low.cc (win32_target_ops): Update.
4163 (win32_process_target::supports_hardware_single_step): Define.
4165 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4167 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
4168 ops into methods of process_target.
4170 * target.h (struct process_stratum_target): Remove the target ops.
4171 (class process_target): Add the target ops.
4172 (target_stopped_by_hw_breakpoint): Update the macro.
4173 (target_supports_stopped_by_hw_breakpoint): Update the macro.
4174 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
4175 (process_target::supports_stopped_by_hw_breakpoint): Define.
4177 Update the derived classes and callers below.
4179 * linux-low.cc (linux_target_ops): Update.
4180 (linux_stopped_by_hw_breakpoint): Turn into ...
4181 (linux_process_target::stopped_by_hw_breakpoint): ... this.
4182 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
4183 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
4184 * linux-low.h (class linux_process_target): Update.
4185 * lynx-low.cc (lynx_target_ops): Update.
4186 * nto-low.cc (nto_target_ops): Update.
4187 * win32-low.cc (win32_target_ops): Update.
4189 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4191 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
4192 ops into methods of process_target.
4194 * target.h (struct process_stratum_target): Remove the target ops.
4195 (class process_target): Add the target ops.
4196 (target_stopped_by_sw_breakpoint): Update the macro.
4197 (target_supports_stopped_by_sw_breakpoint): Update the macro.
4198 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
4199 (process_target::supports_stopped_by_sw_breakpoint): Define.
4201 Update the derived classes and callers below.
4203 * linux-low.cc (linux_target_ops): Update.
4204 (linux_stopped_by_sw_breakpoint): Turn into ...
4205 (linux_process_target::stopped_by_sw_breakpoint): ... this.
4206 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
4207 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
4208 * linux-low.h (class linux_process_target): Update.
4209 * lynx-low.cc (lynx_target_ops): Update.
4210 * nto-low.cc (nto_target_ops): Update.
4211 * win32-low.cc (win32_target_ops): Update.
4213 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4215 Turn process_stratum_target's insert_point and remove_point ops
4216 into methods of process_target.
4218 * target.h (struct process_stratum_target): Remove the target ops.
4219 (class process_target): Add the target ops.
4220 * target.cc (process_target::insert_point): Define.
4221 (process_target::remove_point): Define.
4223 Update the derived classes and callers below.
4225 * mem-break.cc (set_raw_breakpoint_at): Update.
4226 (delete_raw_breakpoint): Update.
4227 (uninsert_raw_breakpoint): Update.
4228 (reinsert_raw_breakpoint): Update.
4229 * linux-low.cc (linux_target_ops): Update.
4230 (linux_insert_point): Turn into ...
4231 (linux_process_target::insert_point): ... this.
4232 (linux_remove_point): Turn into ...
4233 (linux_process_target::remove_point): ... this.
4234 * linux-low.h (class linux_process_target): Update.
4235 * lynx-low.cc (lynx_target_ops): Update.
4236 * nto-low.cc (nto_target_ops): Update.
4237 (nto_insert_point): Turn into ...
4238 (nto_process_target::insert_point): ... this.
4239 (nto_remove_point): Turn into ...
4240 (nto_process_target::remove_point): ... this.
4241 * nto-low.h (class nto_process_target): Update.
4242 * win32-low.cc (win32_target_ops): Update.
4243 (win32_insert_point): Turn into ...
4244 (win32_process_target::insert_point): ... this.
4245 (win32_remove_point): Turn into ...
4246 (win32_process_target::remove_point): ... this.
4247 * win32-low.h (class win32_process_target): Update.
4249 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4251 Turn process_stratum_target's supports_z_point_type op into a
4252 method of process_target.
4254 * target.h (struct process_stratum_target): Remove the target op.
4255 (class process_target): Add the target op.
4256 * target.cc (process_target::supports_z_point_type): Define.
4258 Update the derived classes and callers below.
4260 * mem-break.cc (z_type_supported): Update.
4261 * linux-low.cc (linux_target_ops): Update.
4262 (linux_supports_z_point_type): Turn into ...
4263 (linux_process_target::supports_z_point_type): ... this.
4264 * linux-low.h (class linux_process_target): Update.
4265 * lynx-low.cc (lynx_target_ops): Update.
4266 * nto-low.cc (nto_target_ops): Update.
4267 (nto_supports_z_point_type): Turn into ...
4268 (nto_process_target::supports_z_point_type): ... this.
4269 * nto-low.h (class nto_process_target): Update.
4270 * win32-low.cc (win32_target_ops): Update.
4271 (win32_supports_z_point_type): Turn into ...
4272 (win32_process_target::supports_z_point_type): ... this.
4273 * win32-low.h (class win32_process_target): Update.
4275 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4277 Turn process_stratum_target's read_auxv op into a method of
4280 * target.h (class process_stratum_target): Remove the target op.
4281 (struct process_target): Add the target op. Also add
4282 'supports_read_auxv'.
4283 * target.cc (process_target::read_auxv): Define.
4284 (process_target::supports_read_auxv): Define.
4286 Update the derived classes and callers below.
4288 * server.cc (handle_qxfer_auxv): Update.
4289 (handle_query): Update.
4290 * linux-low.cc (linux_target_ops): Update.
4291 (linux_process_target::supports_read_auxv): Define.
4292 (linux_read_auxv): Turn into ...
4293 (linux_process_target::read_auxv): ... this.
4294 * linux-low.h (class linux_process_target): Update.
4295 * lynx-low.cc (lynx_target_ops): Update.
4296 * nto-low.cc (nto_target_ops): Update.
4297 (nto_process_target::supports_read_auxv): Define.
4298 (nto_read_auxv): Turn into ...
4299 (nto_process_target::read_auxv): ... this.
4300 * nto-low.h (class nto_process_target): Update.
4301 * win32-low.cc (win32_target_ops): Update.
4303 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4305 Turn process_stratum_target's request_interrupt op into a method of
4308 * target.h (struct process_stratum_target): Remove the target op.
4309 (class process_target): Add the target op.
4311 Update the derived classes and callers below.
4313 * remote-utils.cc (putpkt_binary_1): Update.
4314 (input_interrupt): Update.
4316 * server.cc (handle_v_requests): Update.
4317 * linux-low.cc (linux_target_ops): Update.
4318 (linux_request_interrupt): Turn into ...
4319 (linux_process_target::request_interrupt): ... this.
4320 * linux-low.h (class linux_process_target): Update.
4321 * lynx-low.cc (lynx_target_ops): Update.
4322 (lynx_request_interrupt): Turn into ...
4323 (lynx_process_target::request_interrupt): ... this.
4324 * lynx-low.h (class lynx_process_target): Update.
4325 * nto-low.cc (nto_target_ops): Update.
4326 (nto_request_interrupt): Turn into ...
4327 (nto_process_target::request_interrupt): ... this.
4328 * nto-low.h (class nto_process_target): Update.
4329 * win32-low.cc (win32_target_ops): Update.
4330 (win32_request_interrupt): Turn into ...
4331 (win32_process_target::request_interrupt): ... this.
4332 * win32-low.h (class win32_process_target): Update.
4334 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4336 Turn process_stratum_target's look_up_symbols op into a method of
4339 * target.h (struct process_stratum_target): Remove the target op.
4340 (class process_target): Add the target op.
4341 * target.cc (process_target::look_up_symbols): Define.
4343 Update the derived classes and callers below.
4345 * server.cc (handle_query): Update.
4346 * linux-low.cc (linux_target_ops): Update.
4347 (linux_look_up_symbols): Turn into ...
4348 (linux_process_target::look_up_symbols): ... this.
4349 * linux-low.h (class linux_process_target): Update.
4350 * lynx-low.cc (lynx_target_ops): Update.
4351 * nto-low.cc (nto_target_ops): Update.
4352 * win32-low.cc (win32_target_ops): Update.
4354 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4356 Turn process_stratum_target's read_memory and write_memory
4357 ops into methods of process_target.
4359 * target.h (struct process_stratum_target): Remove the target ops.
4360 (class process_target): Add the target ops.
4362 Update the derived classes and callers below.
4364 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
4365 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
4366 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
4367 (arm_get_syscall_trapinfo): Update.
4368 * linux-cris-low.cc (cris_breakpoint_at): Update.
4369 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
4370 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
4371 * linux-mips-low.cc (mips_breakpoint_at): Update.
4372 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
4373 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
4374 * linux-sh-low.cc (sh_breakpoint_at): Update.
4375 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
4376 (sparc_store_gregset_from_stack): Update.
4377 (sparc_breakpoint_at): Update.
4378 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
4379 * linux-tile-low.cc (tile_breakpoint_at): Update.
4380 * linux-x86-low.cc (x86_breakpoint_at): Update.
4381 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
4382 * mem-brea.cc (insert_memory_breakpoint): Update.
4383 (validate_inserted_breakpoint): Update.
4384 * target.cc (read_inferior_memory): Update.
4385 (target_write_memory): Update.
4386 * linux-low.cc (linux_target_ops): Update.
4387 (linux_read_memory): Make a wrapper around the read_memory target
4389 (linux_process_target::read_memory): Rename from linux_read_memory.
4390 (linux_write_memory): Turn into ...
4391 (linux_process_target::write_memory): ... this.
4392 * linux-low.h (class linux_process_target): Update.
4393 * lynx-low.cc (lynx_target_ops): Update.
4394 (lynx_read_memory): Turn into ...
4395 (lynx_process_target::read_memory): ... this.
4396 (lynx_write_memory): Turn into ...
4397 (lynx_process_target::write_memory): ... this.
4398 * lynx-low.h (class lynx_process_target): Update.
4399 * nto-low.cc (nto_target_ops): Update.
4400 (nto_read_memory): Turn into ...
4401 (nto_process_target::read_memory): ... this.
4402 (nto_write_memory): Turn into ...
4403 (nto_process_target::write_memory): ... this.
4404 * nto-low.h (class nto_process_target): Update.
4405 * win32-low.cc (win32_target_ops): Update.
4406 (win32_read_inferior_memory): Turn into ...
4407 (win32_process_target::read_memory): ... this.
4408 (win32_write_inferior_memory): Turn into ...
4409 (win32_process_target::write_memory): ... this.
4410 * win32-low.h (class win32_process_target): Update.
4412 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4414 Turn process_stratum_target's prepare_to_access_memory and
4415 done_accessing_memory ops into methods of process_target.
4417 * target.h (struct process_stratum_target): Remove the target ops.
4418 (class process_target): Add the target ops.
4419 * target.cc (process_target::prepare_to_access_memory): Define.
4420 (process_target::done_accessing_memory): Define.
4421 (prepare_to_access_memory): Update.
4422 (done_accessing_memory): Update.
4424 Update the derived classes and callers below.
4426 * linux-low.cc (linux_target_ops): Update.
4427 (linux_prepare_to_access_memory): Turn into ...
4428 (linux_process_target::prepare_to_access_memory): ... this.
4429 (linux_done_accessing_memory): Turn into ...
4430 (linux_process_target::done_accessing_memory): ... this.
4431 * linux-low.h (class linux_process_target): Update.
4432 * lynx-low.cc (lynx_target_ops): Update.
4433 * nto-low.cc (nto_target_ops): Update.
4434 * win32-low.cc (win32_target_ops): Update.
4436 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4438 Turn process_stratum_target's fetch_registers and store_registers
4439 ops into methods of process_target.
4441 * target.h (struct process_stratum_target): Remove the target ops.
4442 (class process_target): Add the target ops.
4443 (fetch_inferior_registers): Update the macro.
4444 (store_inferior_registers): Update the macro.
4446 Update the derived classes and callers below.
4448 * linux-low.cc (linux_target_ops): Update.
4449 (linux_fetch_registers): Turn into ...
4450 (linux_process_target::fetch_registers): ... this.
4451 (linux_store_registers): Turn into ...
4452 (linux_process_target::store_registers): ... this.
4453 * linux-low.h (class linux_process_target): Update.
4454 * lynx-low.cc (lynx_target_ops): Update.
4455 (lynx_fetch_registers): Turn into ...
4456 (lynx_process_target::fetch_registers): ... this.
4457 (lynx_store_registers): Turn into ...
4458 (lynx_process_target::store_registers): ... this.
4459 * lynx-low.h (class lynx_process_target): Update.
4460 * nto-low.cc (nto_target_ops): Update.
4461 (nto_fetch_registers): Turn into ...
4462 (nto_process_target::fetch_registers): ... this.
4463 (nto_store_registers): Turn into ...
4464 (nto_process_target::store_registers): ... this.
4465 * nto-low.h (class nto_process_target): Update.
4466 * win32-low.cc (win32_target_ops): Update.
4467 (win32_fetch_inferior_registers): Turn into ...
4468 (win32_process_target::fetch_registers): ... this.
4469 (win32_store_inferior_registers): Turn into ...
4470 (win32_process_target::store_registers): ... this.
4471 * win32-low.h (class win32_process_target): Update.
4473 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4475 Turn process_stratum_target's wait op into a method of
4478 * target.h (struct process_stratum_target): Remove the target op.
4479 (class process_target): Add the target op.
4481 Update the derived classes and callers below.
4483 * target.cc (target_wait): Update.
4484 * linux-low.cc (linux_target_ops): Update.
4485 (linux_wait): Turn into ...
4486 (linux_process_target::wait): ... this.
4487 * linux-low.h (class linux_process_target): Update.
4488 * lynx-low.cc (lynx_target_ops): Update.
4489 (lynx_wait): Turn into ...
4490 (lynx_process_target::wait): ... this.
4491 * lynx-low.h (class lynx_process_target): Update.
4492 * nto-low.cc (nto_target_ops): Update.
4493 (nto_wait): Turn into ...
4494 (nto_process_target::wait): ... this.
4495 * nto-low.h (class nto_process_target): Update.
4496 * win32-low.cc (win32_target_ops): Update.
4497 (win32_wait): Turn into ...
4498 (win32_process_target::wait): ... this.
4499 (do_initial_child_stuff): Update.
4500 * win32-low.h (class win32_process_target): Update.
4502 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4504 Turn process_stratum_target's resume op into a method of
4507 * target.h (struct process_stratum_target): Remove the target op.
4508 (class process_target): Add the target op.
4510 Update the derived classes and callers below.
4512 * server.cc (resume): Update.
4513 * target.cc (target_stop_and_wait): Update.
4514 (target_continue_no_signal): Update.
4515 (target_continue): Update.
4516 * linux-low.cc (linux_target_ops): Update.
4517 (linux_resume): Turn into ...
4518 (linux_process_target::resume): ... this.
4519 * linux-low.h (class linux_process_target): Update.
4520 * lynx-low.cc (lynx_target_ops): Update.
4521 (lynx_resume): Turn into ...
4522 (lynx_process_target::resume): ... this.
4523 * lynx-low.h (class lynx_process_target): Update.
4524 * nto-low.cc (nto_target_ops): Update.
4525 (nto_resume): Turn into ...
4526 (nto_process_target::resume): ... this.
4527 * nto-low.h (class nto_process_target): Update.
4528 * win32-low.cc (win32_target_ops): Update.
4529 (win32_resume): Turn into ...
4530 (win32_process_target::resume): ... this.
4531 (win32_process_target::detach): Update.
4532 (do_initial_child_stuff): Update.
4533 * win32-low.h (class win32_process_target): Update.
4535 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4537 Turn process_stratum_target's thread_alive op into a method of
4540 * target.h (struct process_stratum_target): Remove the target op.
4541 (class process_target): Add the target op.
4542 (mythread_alive): Update the macro.
4544 Update the derived classes and callers below.
4546 * linux-low.cc (linux_target_ops): Update.
4547 (linux_thread_alive): Turn into ...
4548 (linux_process_target::thread_alive): ... this.
4549 (wait_for_sigstop): Update.
4550 * linux-low.h (class linux_process_target): Update.
4551 * lynx-low.cc (lynx_target_ops): Update.
4552 (lynx_thread_alive): Turn into ...
4553 (lynx_process_target::thread_alive): ... this.
4554 * lynx-low.h (class lynx_process_target): Update.
4555 * nto-low.cc (nto_target_ops): Update.
4556 (nto_thread_alive): Turn into ...
4557 (nto_process_target::thread_alive): ... this.
4558 * nto-low.h (class nto_process_target): Update.
4559 * win32-low.cc (win32_target_ops): Update.
4560 (win32_thread_alive): Turn into ...
4561 (win32_process_target::thread_alive): ... this.
4562 * win32-low.h (class win32_process_target): Update.
4564 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4566 Turn process_stratum_target's join op into a method of
4569 * target.h (struct process_stratum_target): Remove the target op.
4570 (class process_target): Add the target op.
4571 (join_inferior): Update the macro.
4573 Update the derived classes and callers below.
4575 * linux-low.cc (linux_target_ops): Update.
4576 (linux_join): Turn into ...
4577 (linux_process_target::join): ... this.
4578 * linux-low.h (class linux_process_target): Update.
4579 * lynx-low.cc (lynx_target_ops): Update.
4580 (lynx_join): Turn into ...
4581 (lynx_process_target::join): ... this.
4582 * lynx-low.h (class lynx_process_target): Update.
4583 * nto-low.cc (nto_target_ops): Update.
4584 (nto_process_target::join): Define.
4585 * nto-low.h (class nto_process_target): Update.
4586 * win32-low.cc (win32_target_ops): Update.
4587 (win32_join): Turn into ...
4588 (win32_process_target::join): ... this.
4589 * win32-low.h (class win32_process_target): Update.
4591 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4593 Turn process_stratum_target's mourn op into a method of
4596 * target.h (struct process_stratum_target): Remove the target op.
4597 (class process_target): Add the target op.
4599 Update the derived classes and callers below.
4601 * target.cc (target_mourn_inferior): Update.
4602 * linux-low.cc (linux_target_ops): Update.
4603 (linux_mourn): Turn into ...
4604 (linux_process_target::mourn): ... this.
4605 (handle_extended_wait): Update.
4606 (linux_process_target::kill): Update.
4607 (linux_process_target::detach): Update.
4608 * linux-low.h (class linux_process_target): Update.
4609 * lynx-low.cc (lynx_target_ops): Update.
4610 (lynx_mourn): Turn into ...
4611 (lynx_process_target::mourn): ... this.
4612 * lynx-low.h (class lynx_process_target): Update.
4613 * nto-low.cc (nto_target_ops): Update.
4614 (nto_mourn): Turn into ...
4615 (nto_process_target::mourn): ... this.
4616 * nto-low.h (class nto_process_target): Update.
4617 * win32-low.cc (win32_target_ops): Update.
4618 (win32_mourn): Turn into ...
4619 (win32_process_target::mourn): ... this.
4620 * win32-low.h (class win32_process_target): Update.
4622 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4624 Turn process_stratum_target's detach op into a method of
4627 * target.h (struct process_stratum_target): Remove the target op.
4628 (class process_target): Add the target op.
4629 (detach_inferior): Update the macro.
4631 Update the derived classes and callers below.
4633 * linux-low.cc (linux_target_ops): Update.
4634 (linux_detach): Turn into ...
4635 (linux_process_target::detach): ... this.
4636 * linux-low.h (class linux_process_target): Update.
4637 * lynx-low.cc (lynx_target_ops): Update.
4638 (lynx_detach): Turn into ...
4639 (lynx_process_target::detach): ... this.
4640 * lynx-low.h (class lynx_process_target): Update.
4641 * nto-low.cc (nto_target_ops): Update.
4642 (nto_detach): Turn into ...
4643 (nto_process_target::detach): ... this.
4644 * nto-low.h (class nto_process_target): Update.
4645 * win32-low.cc (win32_target_ops): Update.
4646 (win32_detach): Turn into ...
4647 (win32_process_target::detach): ... this.
4648 * win32-low.h (class win32_process_target): Update.
4650 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4652 Turn process_stratum_target's kill op into a method of
4655 * target.h (struct process_stratum_target): Remove the target op.
4656 (class process_target): Add the target op.
4658 Update the derived classes and callers below.
4660 * target.cc (kill_inferior): Update.
4661 * linux-low.cc (linux_target_ops): Update.
4662 (linux_kill): Turn into ...
4663 (linux_process_target::kill): ... this.
4664 * linux-low.h (class linux_process_target): Update.
4665 * lynx-low.cc (lynx_target_ops): Update.
4666 (lynx_kill): Turn into ...
4667 (lynx_process_target::kill): ... this.
4668 * lynx-low.h (class lynx_process_target): Update.
4669 * nto-low.cc (nto_target_ops): Update.
4670 (nto_kill): Turn into ...
4671 (nto_process_target::kill): ... this.
4672 * nto-low.h (class nto_process_target): Update.
4673 * win32-low.cc (win32_target_ops): Update.
4674 (win32_kill): Turn into ...
4675 (win32_process_target::kill): ... this.
4676 * win32-low.h (class win32_process_target): Update.
4678 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4680 Turn process_stratum_target's attach op into a method of
4683 * target.h (struct process_stratum_target): Remove the target op.
4684 (class process_target): Add the target op.
4685 (myattach): Update the macro.
4687 Update the derived classes and callers below.
4689 * linux-low.cc (linux_target_ops): Update.
4690 (linux_attach): Turn into ...
4691 (linux_process_target::attach): ... this.
4692 * linux-low.h (class linux_process_target): Update.
4693 * lynx-low.cc (lynx_target_ops): Update.
4694 (lynx_attach): Turn into ...
4695 (lynx_process_target::attach): ... this.
4696 * lynx-low.h (class lynx_process_target): Update.
4697 * nto-low.cc (nto_target_ops): Update.
4698 (nto_attach): Turn into ...
4699 (nto_process_target::attach): ... this.
4700 * nto-low.h (class nto_process_target): Update.
4701 * win32-low.cc (win32_target_ops): Update.
4702 (win32_attach): Turn into ...
4703 (win32_process_target::attach): ... this.
4704 * win32-low.h (class win32_process_target): Update.
4706 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4708 Turn process_stratum_target's post_create_inferior op into a method
4711 * target.h (struct process_stratum_target): Remove the target op.
4712 (class process_target): Add the target op.
4713 (target_post_create_inferior): Update the macro.
4714 * target.cc (process_target::post_create_inferior): Define.
4716 Update the derived classes and callers below.
4718 * linux-low.cc (linux_target_ops): Update.
4719 (linux_post_create_inferior): Turn into ...
4720 (linux_process_target::post_create_inferior): ... this.
4721 * linux-low.h (class linux_process_target): Update.
4722 * lynx-low.cc (lynx_target_ops): Update.
4723 * nto-low.cc (nto_target_ops): Update.
4724 * win32-low.cc (win32_target_ops): Update.
4726 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4728 Turn process_stratum_target's create_inferior op into a method of
4731 * target.h (struct process_stratum_target): Remove the target op.
4732 (class process_target): Add the target op.
4733 (create_inferior): Rename the macro to ...
4734 (target_create_inferior): ... this.
4736 Update the derived classes and callers below.
4738 * server.cc (handle_v_run): Update.
4739 (captured_main): Update.
4740 (process_serial_event): Update.
4741 * linux-low.cc (linux_target_ops): Update.
4742 (linux_create_inferior): Turn into ...
4743 (linux_process_target::create_inferior): ... this.
4744 * linux-low.h (class linux_process_target): Update.
4745 * lynx-low.cc (lynx_target_ops): Update.
4746 (lynx_create_inferior): Turn into ...
4747 (lynx_process_target::create_inferior): ... this.
4748 * lynx-low.h (class lynx_process_target): Update.
4749 * nto-low.cc (nto_target_ops): Update.
4750 (nto_create_inferior): Turn into ...
4751 (nto_process_target::create_inferior): ... this.
4752 * nto-low.h (class nto_process_target): Update.
4753 * win32-low.cc (win32_target_ops): Update.
4754 (win32_create_inferior): Turn into ...
4755 (win32_process_target::create_inferior): ... this.
4756 * win32-low.h (class win32_process_target): Update.
4758 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4760 * target.h (class process_target): New class definition.
4761 (struct process_stratum_target) <pt>: New field with type
4763 * linux-low.h (class linux_process_target): Define as a derived
4764 class of 'process_target'.
4765 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4767 * lynx-low.h (class lynx_process_target): Define as a derived
4768 class of 'process_target'.
4769 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4771 * nto-low.h (class nto_process_target): Define as a derived
4772 class of 'process_target'.
4773 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4775 * win32-low.h (class win32_process_target): Define as a derived
4776 class of 'process_target'.
4777 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4780 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4782 * configure: Regenerate.
4784 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4785 Andrew Burgess <andrew.burgess@embecosm.com>
4787 * linux-riscv-low.cc: New file.
4788 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4789 and nat/riscv-linux-tdesc.c.
4790 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4791 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4794 2020-02-14 Tom Tromey <tom@tromey.com>
4796 * acinclude.m4: Don't include acx_configure_dir.m4.
4797 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4798 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4799 (all, install-only, uninstall, clean-info, clean)
4800 (maintainer-clean): Don't recurse.
4801 (subdir_do, all-lib): Remove.
4802 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4804 (generated_files): Update.
4805 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4806 * configure: Rebuild.
4807 * configure.ac: Don't configure gnulib or libiberty.
4810 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4812 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4813 preparing the command line for CreateProcess.
4814 (win32_create_inferior): Reflect the program name in debugging
4815 output that shows the process and its command line.
4817 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4819 * Makefile.in: Rename source files from .c to .cc.
4820 * %.c: Rename to %.cc.
4821 * configure.ac: Rename server.c to server.cc.
4822 * configure: Re-generate.
4824 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4826 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4828 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4830 * win32-low.c (win32_create_inferior): Set signal_pid.
4832 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4833 Pedro Alves <palves@redhat.com>
4835 Skip building gdbserver in a cross-configuration.
4836 * configure.srv: Set $gdbserver_host depending on whether $target
4837 is $host. Use $gdbserver_host instead of $host.
4839 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4841 * configure: Re-generate.
4843 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4845 * configure: Re-generate.
4847 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4849 * acinclude.m4: Update warning.m4 path.
4851 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4853 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4854 (handle_exception): Set siginfo_er.
4855 (win32_xfer_siginfo): New function.
4857 2020-02-07 Tom Tromey <tom@tromey.com>
4858 Pedro Alves <palves@redhat.com>
4860 * README: Update build documentation.
4861 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4863 * configure.ac: Update paths.
4864 * configure: Rebuild.
4865 * acinclude.m4: Update paths.
4866 * Makefile.in: Update include paths.
4867 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4868 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4869 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4870 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4871 (%-generated.c): Update paths.
4872 * Move entire directory from ../gdb/gdbserver.
4874 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4876 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4878 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4880 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4881 assignment instead of srv_linux_obj.
4883 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4885 * server.c (handle_qxfer_libraries): Write segment-address with
4888 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4890 * Makefile.in (install-strip): New target.
4891 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4892 * aclocal.m4: Regenerate.
4893 * configure: Regenerate.
4894 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4896 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4898 * Makefile.in (SFILES): Adjust paths to point to real files.
4899 (OBS): Move waitstatus.o to target/waitstatus.o.
4900 (TAGS): Transform paths appropriately.
4902 (nat/%.o): ... this pattern rule.
4904 (target/%.o): ... this pattern rule.
4905 * configure.srv: Adjust paths throughout to include nat/ prefix
4906 with the revant files.
4907 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4908 * configure: Regenerate.
4910 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4912 * Makefile.in (TAGS): Remove config files from the recipe.
4914 2020-01-14 Tom Tromey <tom@tromey.com>
4916 * configure: Rebuild.
4917 * configure.ac: Remove any checks that were added to common.m4.
4918 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4921 2020-01-14 Tom Tromey <tom@tromey.com>
4923 * server.h: Include config.h.
4924 * gdbreplay.c: Include config.h.
4925 * configure: Rebuild.
4926 * configure.ac: Don't source common.host.
4927 * acinclude.m4: Update path.
4928 * Makefile.in (INCSUPPORT): New variable.
4929 (INCLUDE_CFLAGS): Add INCSUPPORT.
4930 (SFILES): Update paths.
4931 (version-generated.c): Update path to create-version.sh.
4932 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4934 2020-01-14 Tom Tromey <tom@tromey.com>
4936 * configure.ac (LIBS): Use WIN32APILIBS.
4937 (USE_WIN32API): Don't define.
4938 * configure: Rebuild.
4940 2020-01-14 Tom Tromey <tom@tromey.com>
4942 * configure: Rebuild.
4944 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4946 * Makefile.in (%-generated.c): Remove rule for files from
4949 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4951 * configure: Re-generate.
4953 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4955 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4957 * tracepoint.c (stop_tracing, flush_trace_buffer,
4958 about_to_request_buffer_space, get_trace_state_variable_value,
4959 set_trace_state_variable_value, gdb_collect): Add declaration.
4961 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4963 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4964 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4965 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4966 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4967 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4970 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4972 * inferiors.c: Include gdbsupport/common-inferior.h.
4974 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4976 * hostio-errno.c: Include hostio.h.
4978 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4980 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4983 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4985 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4986 * linux-arm-tdesc.h: Include arch/arm.h.
4988 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4990 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4992 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4994 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4995 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4997 2020-01-10 Pedro Alves <palves@redhat.com>
4999 * fork-child.c (post_fork_inferior): Pass target down to
5001 * inferiors.c (switch_to_thread): Add process_stratum_target
5003 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
5004 * nto-low.c (nto_target_ops): Now a process_stratum_target.
5005 * linux-low.c (linux_target_ops): Now a process_stratum_target.
5006 * remote-utils.c (prepare_resume_reply): Pass the target to
5008 * target.c (the_target): Now a process_stratum_target.
5009 (done_accessing_memory): Pass the target to switch_to_thread.
5010 (set_target_ops): Ajust to use process_stratum_target.
5011 * target.h (struct target_ops): Rename to ...
5012 (struct process_stratum_target): ... this.
5013 (the_target, set_target_ops): Adjust.
5014 (prepare_to_access_memory): Adjust comment.
5015 * win32-low.c (child_xfer_memory): Adjust to use
5016 process_stratum_target.
5017 (win32_target_ops): Now a process_stratum_target.
5019 2020-01-06 Eli Zaretskii <eliz@gnu.org>
5020 Pedro Alves <palves@redhat.com>
5022 * win32-low.c (get_child_debug_event): Extract the fatal exception
5023 from the exit status and convert to the equivalent Posix signal
5025 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
5026 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
5028 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
5030 * Makefile.in: Use INSTALL_PROGRAM_ENV.
5032 2020-01-01 Joel Brobecker <brobecker@adacore.com>
5034 * server.c (gdbserver_version): Change copyright year to 2020.
5035 * gdbreplay.c (gdbreplay_version): Likewise.
5037 2019-12-19 Christian Biesinger <cbiesinger@google.com>
5039 * configure: Regenerate.
5040 * configure.ac: Quote variable arguments of test.
5042 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
5044 * Makefile.in: Fix build with GNU Make 3.81
5046 2019-12-16 Tom Tromey <tromey@adacore.com>
5048 * server.c (get_exec_file): Constify result.
5050 2019-12-10 Christian Biesinger <cbiesinger@google.com>
5052 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
5053 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
5054 * config.in: Regenerate.
5055 * configure: Regenerate.
5056 * configure.ac: Don't check for strerror.
5057 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
5058 Call safe_strerror instead of strerror.
5059 * server.h (strerror): Remove this now-unnecessary declaration.
5060 * tracepoint.c (init_named_socket): Call safe_strerror instead of
5062 (gdb_agent_helper_thread): Likewise.
5063 * utils.c (perror_with_name): Likewise.
5065 2019-11-26 Tom Tromey <tom@tromey.com>
5067 * configure, config.in: Rebuild.
5069 2019-11-26 Tom Tromey <tom@tromey.com>
5071 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
5072 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
5074 * configure, config.in: Rebuild.
5076 2019-11-26 Tom Tromey <tom@tromey.com>
5078 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
5079 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
5080 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
5081 * acinclude.m4: Include ax_pthread.m4.
5082 * config.in, configure: Rebuild.
5084 2019-11-26 Christian Biesinger <cbiesinger@google.com>
5086 * debug.c (debug_set_output): Call safe_strerror instead of
5088 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
5089 (linux_kill_one_lwp): Likewise.
5090 (linux_detach_one_lwp): Likewise.
5091 (linux_wait_for_event_filtered): Likewise.
5092 (store_register): Likewise.
5093 * lynx-low.c (lynx_attach): Likewise.
5094 * mem-break.c (insert_memory_breakpoint): Likewise.
5095 (remove_memory_breakpoint): Likewise.
5096 (delete_fast_tracepoint_jump): Likewise.
5097 (set_fast_tracepoint_jump): Likewise.
5098 (uninsert_fast_tracepoint_jumps_at): Likewise.
5099 (reinsert_fast_tracepoint_jumps_at): Likewise.
5100 * nto-low.c (nto_xfer_memory): Likewise.
5101 (nto_resume): Likewise.
5103 2019-11-20 Luis Machado <luis.machado@linaro.org>
5105 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
5106 instead of register count.
5107 * tdesc.c (tdesc_contains_feature): New function.
5108 * tdesc.h (tdesc_contains_feature): New prototype.
5110 2019-11-15 Christian Biesinger <cbiesinger@google.com>
5112 * Makefile.in: Add safe-strerror.c.
5113 * configure: Regenerate.
5114 * configure.ac: Don't source common.host.
5116 2019-11-15 Christian Biesinger <cbiesinger@google.com>
5118 * config.in: Regenerate.
5119 * configure: Regenerate.
5121 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
5123 * ax.c (ax_printf): Handle size_t_arg.
5125 2019-11-06 Christian Biesinger <cbiesinger@google.com>
5127 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
5128 * mi/mi-main.c (output_cores): Likewise.
5129 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
5130 (linux_xfer_osdata_modules): Likewise.
5131 * remote.c (register_remote_support_xml): Likewise.
5132 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
5133 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
5135 2019-11-01 Christian Biesinger <cbiesinger@google.com>
5137 * configure: Regenerate.
5138 * configure.ac: Remove check for strerror_r.
5140 2019-10-31 Christian Biesinger <cbiesinger@google.com>
5142 * config.in: Regenerate.
5143 * configure: Regenerate.
5144 * configure.ac: Also check for strerror_r.
5146 2019-10-31 Christian Biesinger <cbiesinger@google.com>
5148 * ax.h (debug_agent): Remove duplicate declaration.
5150 2019-10-26 Tom de Vries <tdevries@suse.de>
5152 * linux-aarch64-low.c: Fix typos in comments.
5153 * linux-arm-low.c: Same.
5154 * linux-low.c: Same.
5155 * linux-ppc-low.c: Same.
5156 * proc-service.c: Same.
5159 * tracepoint.c: Same.
5160 * win32-low.c: Same.
5162 2019-10-25 Tom Tromey <tromey@adacore.com>
5164 * utils.c (xstrdup): Remove.
5166 2019-10-23 Tom Tromey <tom@tromey.com>
5168 * configure, config.in: Rebuild.
5170 2019-10-23 Tom Tromey <tom@tromey.com>
5172 * configure: Rebuild.
5173 * acinclude.m4: Use m4_include, not sinclude.
5175 2019-10-17 Tom Tromey <tromey@adacore.com>
5177 * configure: Rebuild.
5178 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
5179 in AC_CONFIG_FILES invocation.
5180 * Makefile.in (stamp-h, Makefile): Use new-style config.status
5183 2019-10-16 Christian Biesinger <cbiesinger@google.com>
5185 * server.c: Include xml-builtin.h.
5186 (get_xml_features): Don't declare xml_builtins here.
5188 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5190 * Makefile.in: Remove references to vec-ipa.o.
5192 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5194 * Makefile.in: Remove references to vec.c.
5196 2019-10-02 Christian Biesinger <cbiesinger@google.com>
5198 * server.c (server_waiting): Change to bool.
5199 (extended_protocol): Likewise.
5200 (response_needed): Likewise.
5201 (exit_requested): Likewise.
5202 (run_once): Likewise.
5203 (report_no_resumed): Likewise.
5204 (non_stop): Likewise.
5205 (disable_packet_vCont): Likewise.
5206 (disable_packet_Tthread): Likewise.
5207 (disable_packet_qC): Likewise.
5208 (disable_packet_qfThreadInfo): Likewise.
5209 (handle_general_set): Update.
5210 (handle_detach): Update.
5211 (handle_monitor_command): Update.
5212 (handle_query): Update.
5213 (captured_main): Update.
5214 (process_serial_event): Update.
5215 * server.h (server_waiting): Change to bool.
5216 (disable_packet_vCont): Likewise.
5217 (disable_packet_Tthread): Likewise.
5218 (disable_packet_qC): Likewise.
5219 (disable_packet_qfThreadInfo): Likewise.
5220 (run_once): Likewise.
5221 (non_stop): Likewise.
5222 * target.c (target_stop_and_wait): Update.
5224 2019-10-02 Tom Tromey <tromey@adacore.com>
5226 * Makefile.in (SFILES): Add common-inferior.c.
5227 (OBS): Add common-inferior.o.
5228 * server.c (startup_with_shell): Don't define.
5230 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
5232 * linux-low.c (linux_low_read_btrace): Update for change to
5235 2019-09-20 Christian Biesinger <cbiesinger@google.com>
5237 * debug.c (debug_threads): Remove comment in favor of the header.
5238 * debug.h (using_threads): Add declaration.
5239 (debug_threads): Add comment.
5240 * linux-aarch64-low.c: Include debug.h and remove declaration of
5242 * nto-low.c: Likewise.
5243 * remote-utils.c: Likewise.
5244 * thread-db.c: Likewise.
5246 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
5248 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
5249 and powerpc-cell64l-ipa.o.
5250 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
5251 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
5252 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
5255 * spu-low.c: Remove file.
5257 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
5258 (parse_spufs_run): Remove.
5259 (ppc_get_pc): Remove Cell/B.E. support.
5260 (ppc_set_pc): Likewise.
5261 (ppc_breakpoint_at): Likewise.
5262 (ppc_arch_setup): Likewise.
5263 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
5264 tdesc_powerpc_cell32l.
5265 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
5266 or init_registers_powerpc_cell32l.
5267 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
5268 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
5269 or init_registers_powerpc_cell32l.
5270 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
5271 (init_registers_powerpc_cell32l): Remove prototype.
5272 (init_registers_powerpc_cell64l): Likewise.
5274 * target.h (struct target_ops): Remove qxfer_spu member.
5275 * server.c (handle_qxfer_spu): Remove.
5276 (qxfer_packets): Remove entry for "spu".
5277 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
5278 * linux-low.c (SPUFS_MAGIC): Remove.
5279 (spu_enumerate_spu_ids): Remove.
5280 (linux_qxfer_spu): Remove.
5281 (linux_target_ops): Remove qxfer_spu member.
5282 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
5283 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
5284 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
5286 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5288 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
5289 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
5290 * config.in: Regenerate.
5291 * configure: Regenerate.
5293 2019-08-15 Tom Tromey <tromey@adacore.com>
5295 * target.c (target_write_memory): Use gdb::byte_vector.
5297 2019-08-15 Tom Tromey <tromey@adacore.com>
5299 * tracepoint.c (write_inferior_data_pointer)
5300 (write_inferior_integer, write_inferior_int8)
5301 (write_inferior_uinteger, m_tracepoint_action_download)
5302 (r_tracepoint_action_download, x_tracepoint_action_download)
5303 (l_tracepoint_action_download, clear_inferior_trace_buffer)
5304 (download_agent_expr, download_tracepoint_1)
5305 (download_trace_state_variables, upload_fast_traceframes): Update.
5306 * server.c (gdb_write_memory): Update.
5307 * remote-utils.c (relocate_instruction): Update.
5308 * proc-service.c (ps_pdwrite): Update.
5309 * mem-break.c (remove_memory_breakpoint)
5310 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
5311 (uninsert_fast_tracepoint_jumps_at)
5312 (reinsert_fast_tracepoint_jumps_at): Update.
5313 * linux-x86-low.c (append_insns)
5314 (i386_install_fast_tracepoint_jump_pad)
5315 (amd64_write_goto_address, i386_write_goto_address): Update.
5316 * linux-s390-low.c (append_insns, s390_write_goto_address):
5318 * linux-ppc-low.c (ppc_relocate_instruction)
5319 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
5320 (ppc_write_goto_address): Update.
5321 * linux-aarch64-low.c (append_insns): Update.
5322 * target.h (struct target_ops): Update.
5323 (write_inferior_memory): Don't declare.
5324 * target.c (target_write_memory): Rename from
5325 write_inferior_memory. Remove old target_write_memory.
5327 2019-08-15 Tom Tromey <tromey@adacore.com>
5329 * target.c (write_inferior_memory): Use std::vector.
5331 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5334 * configure.ac: Drop enable-libmcheck support.
5335 * configure, config.in: Rebuild.
5336 * acinclude.m4: Don't include it.
5338 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5340 * configure.srv: Remove Arm xml files.
5342 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5344 * configure.srv: Add new files. Remove xml generated files.
5345 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
5347 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
5348 * linux-aarch32-tdesc.c: New file.
5349 * linux-aarch32-tdesc.h: New file.
5350 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
5351 * linux-arm-low.c (init_registers_arm, tdesc_arm)
5352 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
5353 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
5354 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
5355 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
5356 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
5357 (arm_read_description): Call arm_linux_read_description.
5358 (initialize_low_arch): Don't init registers.
5359 * linux-arm-tdesc.c: New file.
5360 * linux-arm-tdesc.h: New file.
5362 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5364 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
5365 Move counter inside for.
5366 (arm_read_description): Check ptrace earlier.
5367 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
5369 2019-07-09 Tom Tromey <tom@tromey.com>
5371 * configure: Rebuild.
5372 * configure.ac: Change common to gdbsupport.
5373 * acinclude.m4: Change common to gdbsupport.
5374 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
5375 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
5376 common to gdbsupport.
5377 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
5378 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
5379 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
5380 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
5381 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
5382 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
5383 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
5384 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
5385 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
5386 common to gdbsupport.
5388 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5390 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
5392 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
5394 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5396 * configure.srv: Remove legacy xml.
5397 * linux-aarch64-low.c (initialize_low_arch): Remove
5398 initialize_low_tdesc call.
5399 * linux-aarch64-tdesc-selftest.c: Remove file.
5400 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
5401 * linux-x86-low.c (initialize_low_arch): Remove
5402 initialize_low_tdesc call.
5403 * linux-x86-tdesc-selftest.c: Remove file.
5404 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
5406 2019-06-20 Tom de Vries <tdevries@suse.de>
5408 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
5409 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
5411 2019-06-19 Tom de Vries <tdevries@suse.de>
5413 * debug.h (debug_write): Change return type to ssize_t.
5414 * debug.c (debug_write): Same.
5416 2019-06-14 Tom Tromey <tom@tromey.com>
5418 * configure.ac: Use new path to gnulib.
5419 * configure: Rebuild.
5420 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
5423 2019-06-11 Tom Tromey <tom@tromey.com>
5425 * Makefile.in (SFILES): Add alloc.c.
5427 (IPA_OBJS): Add alloc-ipa.o.
5428 (alloc-ipa.o): New target.
5429 (%.o: ../%.c): New pattern rule.
5431 2019-06-10 Tom Tromey <tromey@adacore.com>
5433 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
5434 end warning with a newline.
5435 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
5437 * thread-db.c (attach_thread): Don't end warning with a newline.
5438 (thread_db_notice_clone): Likewise.
5439 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
5441 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
5442 end warning with a newline.
5444 2019-06-04 Pedro Alves <palves@redhat.com>
5446 * server.c (captured_main): Use make_unique_xstrdup.
5448 2019-06-02 Tom Tromey <tom@tromey.com>
5450 * gdbreplay.c (fromhex): Remove.
5451 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
5453 2019-05-29 Tom Tromey <tromey@adacore.com>
5455 * configure: Rebuild.
5457 2019-05-06 Kevin Buettner <kevinb@redhat.com>
5459 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
5460 sign extension code on 32-bit builds.
5462 2019-05-03 Eli Zaretskii <eliz@gnu.org>
5465 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
5467 2019-04-19 Tom Tromey <tom@tromey.com>
5469 * server.c (struct vstop_notif): Derive from notif_event.
5471 (queue_stop_reply): Update.
5472 (remove_all_on_match_ptid): Change type. Rewrite.
5473 (discard_queued_stop_replies): Rewrite.
5474 (in_queued_stop_replies_ptid): Change type.
5475 (in_queued_stop_replies): Rewrite.
5476 (notif_stop): Update.
5477 (queue_stop_reply_callback): Update.
5478 (captured_main): Don't call initialize_notif.
5479 (push_stop_notification): Update.
5480 * notif.c (notif_write_event, handle_notif_ack)
5481 (notif_event_enque, notif_push): Update.
5482 (notif_event_xfree, initialize_notif): Remove.
5483 * notif.h (struct notif_event): Include <list>, not
5485 (struct notif_server) <queue>: Now a std::list.
5486 (notif_event_p): Remove typedef.
5487 (initialize_notif): Don't declare.
5488 (struct notif_event): Add virtual destructor.
5490 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5492 * ax.c (ax_vdebug): Call debug_printf.
5493 * debug.c (debug_write): New function.
5494 * debug.h (debug_write): New declaration.
5495 * linux-low.c (sigchld_handler): Call debug_write.
5497 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5499 * debug.c (debug_set_output): New function.
5500 (debug_vprintf): Send output to debug_file.
5501 (debug_flush): Likewise.
5502 * debug.h (debug_set_output): New declaration.
5503 * server.c (handle_monitor_command): Add debug-file option.
5504 (captured_main): Likewise.
5506 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5508 * debug.c (remote_debug): Add definition.
5509 * debug.h (remote_debug): Add declaration.
5510 * hostio.c (remote_debug): Remove declaration.
5511 * remote-utils.c (struct ui_file): Likewise.
5512 (remote_debug): Likewise.
5513 * remote-utils.h (remote_debug): Likewise,
5514 * server.c (remote_debug): Remove definition.
5516 2019-04-10 Kevin Buettner <kevinb@redhat.com>
5518 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5519 when using a 64-bit gdbserver.
5521 2019-04-09 Tom Tromey <tromey@adacore.com>
5523 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5525 2019-04-08 Tom Tromey <tom@tromey.com>
5527 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5529 (linux_resume_one_lwp): Likewise.
5531 2019-04-08 Tom Tromey <tom@tromey.com>
5533 * gdbreplay.c: Update.
5534 * linux-low.c: Update.
5537 2019-04-08 Tom Tromey <tom@tromey.com>
5539 * server.c: Use C++ exception handling.
5540 * linux-low.c: Use C++ exception handling.
5541 * gdbreplay.c: Use C++ exception handling.
5543 2019-04-08 Tom Tromey <tom@tromey.com>
5545 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5546 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5547 (captured_main, main): Update.
5548 * gdbreplay.c (main): Update.
5550 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5552 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5553 value in argument pointer, return 1 if the entry is found and 0
5554 otherwise. Move comment.
5555 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5556 * linux-low.h (linux_get_auxv): Declare.
5557 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5559 2019-04-05 Tom Tromey <tromey@adacore.com>
5561 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5564 2019-03-28 Alan Hayward <alan.hayward@arm.com>
5566 * linux-low.c (AT_HWCAP2): Add define if not already included.
5568 2019-03-26 Alan Hayward <alan.hayward@arm.com>
5570 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5571 (aarch64_arch_setup): Call linux_get_hwcap.
5572 * linux-arm-low.c (arm_get_hwcap): Remove function.
5573 (arm_read_description): Call linux_get_hwcap.
5574 * linux-low.c (linux_get_auxv): New function.
5575 (linux_get_hwcap): Likewise.
5576 (linux_get_hwcap2): Likewise.
5577 * linux-low.h (linux_get_hwcap): New declaration.
5578 (linux_get_hwcap2): Likewise.
5579 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5580 (ppc_arch_setup): Call linux_get_hwcap.
5581 * linux-s390-low.c (s390_get_hwcap): Remove function.
5582 (s390_arch_setup): Call linux_get_hwcap.
5584 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5585 Jiong Wang <jiong.wang@arm.com>
5587 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5588 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5590 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5592 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5593 Jiong Wang <jiong.wang@arm.com>
5595 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5596 (aarch64_get_hwcap): New function.
5597 (aarch64_arch_setup): Read APIA hwcap.
5599 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5600 Jiong Wang <jiong.wang@arm.com>
5602 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5603 (initialize_low_tracepoint): Likewise.
5604 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5605 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5606 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5607 (aarch64_linux_read_description): Likewise.
5608 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5610 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5612 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5613 i386_create_target_description for 'segments' parameter.
5614 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5615 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5616 * win32-i386-low.c (i386_arch_setup): Likewise.
5618 2019-03-12 Tom Tromey <tromey@adacore.com>
5620 * linux-low.c (iterate_over_lwps): Update.
5622 2019-03-06 Tom Tromey <tom@tromey.com>
5624 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5625 (captured_main): Use SCOPE_EXIT.
5627 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5629 * configure.srv: Use '$enable_unittest' instead of '$development'
5630 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5633 2019-02-27 Tom Tromey <tromey@adacore.com>
5635 * gdbreplay.c (logchar): Handle \r\n.
5637 2019-02-07 Alan Hayward <alan.hayward@arm.com>
5639 * linux-low.c (linux_attach): Add process before lwp.
5640 * server.c (attach_inferior): Check if already attached.
5642 2019-02-07 Tom Tromey <tom@tromey.com>
5644 * x86-tdesc.h: Rename include guard.
5645 * x86-low.h: Add include guard.
5646 * wincecompat.h: Rename include guard.
5647 * win32-low.h: Add include guard.
5648 * utils.h: Rename include guard.
5649 * tracepoint.h: Rename include guard.
5650 * tdesc.h: Rename include guard.
5651 * target.h: Rename include guard.
5652 * server.h: Rename include guard.
5653 * remote-utils.h: Rename include guard.
5654 * regcache.h: Rename include guard.
5655 * nto-low.h: Rename include guard.
5656 * notif.h: Add include guard.
5657 * mem-break.h: Rename include guard.
5658 * lynx-low.h: Add include guard.
5659 * linux-x86-tdesc.h: Add include guard.
5660 * linux-s390-tdesc.h: Add include guard.
5661 * linux-ppc-tdesc-init.h: Add include guard.
5662 * linux-low.h: Add include guard.
5663 * linux-aarch64-tdesc.h: Add include guard.
5664 * linux-aarch32-low.h: Add include guard.
5665 * inferiors.h: Rename include guard.
5666 * i387-fp.h: Rename include guard.
5667 * hostio.h: Rename include guard.
5668 * gdbthread.h: Rename include guard.
5669 * gdb_proc_service.h: Rename include guard.
5670 * event-loop.h: Rename include guard.
5671 * dll.h: Rename include guard.
5672 * debug.h: Rename include guard.
5673 * ax.h: Rename include guard.
5675 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5678 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5679 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5681 2019-01-25 Tom Tromey <tom@tromey.com>
5683 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5685 2019-01-25 Tom Tromey <tom@tromey.com>
5687 * win32-low.c: Fix common/ includes.
5688 * win32-i386-low.c: Fix common/ includes.
5689 * tracepoint.c: Fix common/ includes.
5690 * thread-db.c: Fix common/ includes.
5691 * target.h: Fix common/ includes.
5692 * symbol.c: Fix common/ includes.
5693 * spu-low.c: Fix common/ includes.
5694 * server.h: Fix common/ includes.
5695 * server.c: Fix common/ includes.
5696 * remote-utils.c: Fix common/ includes.
5697 * regcache.h: Fix common/ includes.
5698 * regcache.c: Fix common/ includes.
5699 * nto-x86-low.c: Fix common/ includes.
5700 * notif.h: Fix common/ includes.
5701 * mem-break.h: Fix common/ includes.
5702 * lynx-low.c: Fix common/ includes.
5703 * lynx-i386-low.c: Fix common/ includes.
5704 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5705 * linux-x86-low.c: Fix common/ includes.
5706 * linux-low.c: Fix common/ includes.
5707 * inferiors.h: Fix common/ includes.
5708 * i387-fp.c: Fix common/ includes.
5709 * hostio.c: Fix common/ includes.
5710 * hostio-errno.c: Fix common/ includes.
5711 * gdbthread.h: Fix common/ includes.
5712 * gdbreplay.c: Fix common/ includes.
5713 * fork-child.c: Fix common/ includes.
5714 * event-loop.c: Fix common/ includes.
5716 (enum gdb_agent_op): Fix common/ includes.
5718 2019-01-21 Tom Tromey <tom@tromey.com>
5720 * tracepoint.c: Fix includes.
5721 * remote-utils.c: Fix includes.
5722 * linux-x86-low.c: Fix includes.
5724 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5726 * gdbreplay.c (gdbreplay_version): Update copyright year in
5728 * server.c (gdbserver_version): Likewise.
5730 2018-12-05 Alan Hayward <alan.hayward@arm.com>
5732 * linux-low.c (add_lwp): Switch ordering.
5734 2018-11-29 Tom Tromey <tom@tromey.com>
5736 * win32-low.c (win32_join): Take pid, not process.
5737 * target.h (struct target_ops) <join>: Change argument type.
5738 (join_inferior): Change argument name.
5739 * spu-low.c (spu_join): Take pid, not process.
5740 * server.c (handle_detach): Preserve pid before destroying
5742 * lynx-low.c (lynx_join): Take pid, not process.
5743 * linux-low.c (linux_join): Take pid, not process.
5745 2018-11-23 Alan Hayward <alan.hayward@arm.com>
5747 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5748 (aarch64_cannot_fetch_register): Likewise.
5749 (struct linux_target_ops): Update references.
5751 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5753 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5755 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5757 * configure.srv (ipa_ppc_linux_regobj): Add
5758 powerpc-isa207-htm-vsx32l-ipa.o and
5759 powerpc-isa207-htm-vsx64l-ipa.o.
5760 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5761 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5762 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5763 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5764 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5765 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5766 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5767 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5768 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5769 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5770 (init_registers_powerpc_isa207_htm_vsx32l)
5771 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5772 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5773 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5774 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5775 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5776 (ppc_store_tm_ctarregset): New functions.
5777 (ppc_regsets): Add entries for HTM regsets.
5778 (ppc_arch_setup): Set htm in features struct when needed. Set
5779 sizes for the HTM regsets.
5780 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5781 (initialize_low_arch): Call
5782 init_registers_powerpc_isa207_htm_vsx32l and
5783 init_registers_powerpc_isa207_htm_vsx64l.
5784 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5785 PPC_TDESC_ISA207_HTM_VSX.
5786 (initialize_low_tracepoint): Call
5787 init_registers_powerpc_isa207_htm_vsx32l and
5788 init_registers_powerpc_isa207_htm_vsx64l.
5790 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5792 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5793 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5794 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5795 (ppc_store_pmuregset): New functions.
5796 (ppc_regsets): Add entries for ebb and pmu regsets.
5797 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5798 pmu regsets are available. Set sizes for these regsets.
5800 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5802 * configure.srv (ipa_ppc_linux_regobj): Add
5803 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5804 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5805 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5806 rs6000/powerpc-isa207-vsx32l.xml, and
5807 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5808 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5809 <PPC_TDESC_ISA207_VSX>: New enum value.
5810 (init_registers_powerpc_isa207_vsx32l): Declare.
5811 (init_registers_powerpc_isa207_vsx64l): Declare.
5812 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5813 (ppc_store_tarregset): New function.
5814 (ppc_regsets): Add entry for the TAR regset.
5815 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5816 size for the TAR regsets.
5817 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5818 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5819 and init_registers_powerpc_isa207_vsx64l.
5820 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5821 (initialize_low_tracepoint): Call
5822 init_registers_powerpc_isa207_vsx32l and
5823 init_registers_powerpc_isa207_vsx64l.
5825 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5826 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5828 * configure.srv (ipa_ppc_linux_regobj): Add
5829 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5830 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5831 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5832 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5833 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5834 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5835 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5836 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5837 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5838 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5839 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5840 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5841 (ppc_hwcap): Add comment.
5842 (ppc_hwcap2): New global.
5843 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5844 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5845 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5846 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5847 when needed. Set sizes for the the DSCR and PPR regsets.
5848 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5849 (initialize_low_arch): Call
5850 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5851 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5852 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5853 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5854 (initialize_low_tracepoint): Call
5855 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5856 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5858 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5860 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5862 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5863 Simon Marchi <simark@simark.ca>
5865 * acinclude.m4: Include "../selftest.m4".
5866 * configure: Regenerate.
5867 * configure.ac: Use "GDB_AC_SELFTEST".
5868 * configure.srv: Use "$enable_unittests" instead of
5869 "$development" when checking whether unit tests have been
5871 * server.c (captured_main): Update message informing that
5872 selftests have been disabled.
5874 2018-10-04 Tom Tromey <tom@tromey.com>
5876 * configure: Rebuild.
5878 2018-10-04 Tom Tromey <tom@tromey.com>
5880 * server.c (handle_status): Rename inner "thread".
5881 (process_serial_event): Declare "res" in 'm' case.
5882 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5883 (iterate_over_lwps): Rename inner "thread".
5884 (linux_qxfer_libraries_svr4): Rename inner "len".
5885 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5887 2018-10-01 Gary Benson <gbenson@redhat.com>
5889 * gdb_proc_service.h: Moved common code to
5890 common/gdb_proc_service.h.
5892 2018-10-01 Gary Benson <gbenson@redhat.com>
5894 * gdb_proc_service.h: Synchronize comments and whitespace with
5895 GDB's version of this file.
5897 2018-09-25 Tom Tromey <tom@tromey.com>
5899 * configure: Rebuild.
5900 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5902 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5904 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5905 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5906 ($(IPA_LIB)): Sort IPA_OBJS.
5908 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5910 * Makefile.in: Remove references to $(ADD_DEPS).
5912 2018-09-16 Tom Tromey <tom@tromey.com>
5914 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5916 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5919 2018-09-05 Tom Tromey <tom@tromey.com>
5921 * configure: Rebuild.
5923 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5926 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5928 2018-08-27 Tom Tromey <tom@tromey.com>
5931 * configure: Rebuild.
5933 2018-08-27 Tom Tromey <tom@tromey.com>
5935 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5936 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5937 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5938 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5939 (s390x_emit_stack_adjust): Add casts to unsigned char.
5941 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5945 * server.h (struct client_state) <disable_randomization>:
5948 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5950 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5952 (mips_supply_ptrace_register): Likewise.
5954 2018-07-22 Tom Tromey <tom@tromey.com>
5956 * configure: Rebuild.
5958 2018-07-22 Tom Tromey <tom@tromey.com>
5960 * win32-low.c (win32_create_inferior): Remove unused variables.
5961 * gdbreplay.c (remote_open): Remove unused variable.
5962 * remote-utils.c (remote_prepare): Remove unused variable.
5963 * x86-tdesc.h (X86_TDESC_H): Define.
5964 (amd64_expedite_regs): Define conditionally.
5965 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5966 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5967 * remote-utils.c (readchar): Remove unused variable.
5969 2018-07-13 Pedro Alves <palves@redhat.com>
5971 * linux-low.c (linux_kill): Change parameter to process_info
5972 pointer instead of pid. Adjust.
5973 * lynx-low.c (lynx_kill): Likewise.
5974 * nto-low.c (nto_kill): Likewise.
5975 * spu-low.c (spu_kill): Likewise.
5976 * win32-low.c (win32_kill): Likewise.
5977 * server.c (handle_v_kill, kill_inferior_callback)
5978 (detach_or_kill_for_exit): Adjust.
5979 * target.c (kill_inferior): Change parameter to process_info
5980 pointer instead of pid. Adjust.
5981 * target.h (struct target_ops) <kill>: Change parameter to
5982 process_info pointer instead of pid. Adjust all implementations
5984 (kill_inferior): Likewise.
5986 2018-07-13 Pedro Alves <palves@redhat.com>
5988 * linux-low.c (linux_detach, linux_join): Change parameter to
5989 process_info pointer instead of pid. Adjust.
5990 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5991 * nto-low.c (nto_detach): Likewise.
5992 * spu-low.c (spu_detach, spu_join): Likewise.
5993 * win32-low.c (win32_detach, win32_join): Likewise.
5994 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5995 * target.h (struct target_ops) <detach, join>: Change parameter to
5996 process_info pointer instead of pid. Adjust all implementations
5998 (detach_inferior, join_inferior): Rename 'pid' parameter to
6001 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
6002 Jan Kratochvil <jan.kratochvil@redhat.com>
6003 Paul Fertser <fercerpav@gmail.com>
6004 Tsutomu Seki <sekiriki@gmail.com>
6006 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
6007 (OBS): Add 'common/netstuff.o'.
6008 (GDBREPLAY_OBS): Likewise.
6009 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
6010 (remote_open): Implement support for IPv6
6012 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
6014 (handle_accept_event): Accept connections from IPv6 sources.
6015 (remote_prepare): Handle IPv6-style hostnames; implement
6016 support for IPv6 connections.
6017 (remote_open): Implement support for printing connections from
6020 2018-07-11 Pedro Alves <palves@redhat.com>
6023 * mem-break.c (any_persistent_commands): Add process_info
6024 parameter and use it instead of relying on the current process.
6025 Change return type to bool.
6026 * mem-break.h (any_persistent_commands): Add process_info
6027 parameter and change return type to bool.
6028 * server.c (handle_detach): Remove require_running_or_return call.
6029 Look up the process_info for the process we're about to detach.
6030 If not found, return back error to GDB. Adjust
6031 any_persistent_commands call to pass down a process pointer.
6033 2018-07-11 Pedro Alves <palves@redhat.com>
6035 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
6036 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
6037 instead of collect_register_by_name.
6038 * regcache.c (regcache_raw_get_unsigned_by_name): New.
6039 * regcache.h (regcache_raw_get_unsigned_by_name): New.
6041 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
6042 Pedro Alves <palves@redhat.com>
6044 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
6046 2018-07-03 Tom Tromey <tom@tromey.com>
6048 * linux-low.c: Update.
6049 * lynx-low.c: Update.
6050 * mem-break.c: Update.
6051 * nto-low.c: Update.
6052 * remote-utils.c: Update.
6054 * spu-low.c: Update.
6056 * win32-low.c: Update.
6058 2018-07-03 Tom Tromey <tom@tromey.com>
6062 2018-07-03 Tom Tromey <tom@tromey.com>
6064 * linux-low.c: Update.
6066 2018-07-03 Tom Tromey <tom@tromey.com>
6070 2018-07-03 Tom Tromey <tom@tromey.com>
6072 * linux-low.c: Update.
6073 * linux-mips-low.c: Update.
6074 * lynx-low.c: Update.
6075 * nto-low.c: Update.
6076 * remote-utils.c: Update.
6078 * spu-low.c: Update.
6080 * thread-db.c: Update.
6082 2018-07-03 Tom Tromey <tom@tromey.com>
6084 * linux-low.c: Update.
6085 * linux-mips-low.c: Update.
6086 * lynx-low.c: Update.
6087 * mem-break.c: Update.
6088 * nto-low.c: Update.
6089 * remote-utils.c: Update.
6091 * spu-low.c: Update.
6093 * tracepoint.c: Update.
6095 2018-07-03 Tom Tromey <tom@tromey.com>
6097 * linux-low.c: Update.
6098 * linux-ppc-low.c: Update.
6099 * linux-x86-low.c: Update.
6100 * proc-service.c: Update.
6102 * spu-low.c: Update.
6103 * thread-db.c: Update.
6104 * win32-low.c: Update.
6106 2018-07-03 Tom Tromey <tom@tromey.com>
6108 * linux-low.c: Update.
6109 * lynx-low.c: Update.
6110 * nto-low.c: Update.
6111 * remote-utils.c: Update.
6112 * spu-low.c: Update.
6113 * thread-db.c: Update.
6114 * win32-low.c: Update.
6116 2018-06-29 Joel Brobecker <brobecker@adacore.com>
6118 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
6119 parameter in call to 'amd64_create_target_description'.
6121 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6123 * x86-tdesc.h: Remove executable permission flag.
6125 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
6127 * configure.ac: Remove AC_PREREQ, add missing quoting.
6128 * configure: Re-generate.
6129 * config.in: Re-generate.
6130 * aclocal.m4: Re-generate.
6132 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
6134 * tracepoint.h (current_traceframe): Remove declaration.
6136 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6138 * linux-aarch64-low.c (is_sve_tdesc): New function.
6139 (aarch64_sve_regs_copy_to_regcache): Likewise.
6140 (aarch64_sve_regs_copy_from_regcache): Likewise.
6141 (aarch64_regs_info): Add SVE checks.
6142 (initialize_low_arch): Initialize SVE.
6144 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6146 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
6148 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6150 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
6151 (initialize_low_tracepoint): Likewise
6152 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
6153 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
6155 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
6157 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
6159 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6161 * server.h (PBUFSIZ): Increase size
6163 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6165 * regcache.c (regcache::raw_compare): New function.
6166 * regcache.h (regcache::raw_compare): New declaration.
6168 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6170 * regcache.c (new_register_cache): Use new.
6171 (free_register_cache): Use delete.
6172 (register_data): Use const.
6173 (supply_register): Move body inside regcache.
6174 (regcache::raw_supply): New override function.
6175 (collect_register): Move body inside regcache.
6176 (regcache::raw_collect): New override function.
6177 (regcache::get_register_status): New override function.
6178 * regcache.h (struct regcache): Inherit from reg_buffer_common.
6180 2018-06-09 Tom Tromey <tom@tromey.com>
6182 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
6184 (event_queue): Use std::queue.
6185 (gdb_event_xfree): Remove.
6186 (initialize_event_loop, process_event, wait_for_event): Update.
6188 2018-06-08 Stan Cox <scox@redhat.com>
6190 * win32-low.c (win32_create_inferior): last_ptid and last_status
6191 moved to client_state.
6193 2018-06-08 Pedro Alves <palves@redhat.com>
6195 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
6196 common/common-exceptions.o, common/common-utils.o,
6197 common/errors.o, common/print-utils.o and utils.o.
6198 * gdbreplay.c: Include "common-defs.h" instead of the two
6199 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
6200 string.h or alloca.h.
6201 (perror_with_name): Delete.
6202 (remote_open): Use xstrdup instead of strdup.
6203 (main): Rename to ...
6204 (captured_main): ... this.
6207 2018-06-08 Tom Tromey <tom@tromey.com>
6209 * linux-low.c (linux_low_read_btrace): Update.
6211 2018-06-04 Stan Cox <scox@redhat.com>
6213 * server.h (struct client_state): New.
6214 * server.c (cont_thread, general_thread, multi_process)
6215 (report_fork_events, report_vfork_events, report_exec_events)
6216 (report_thread_events, swbreak_feature, hwbreak_feature)
6217 (vCont_supported, disable_randomization, pass_signals)
6218 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
6219 Moved to client_state.
6220 * remote-utils.c (remote_debug, noack_mode)
6221 (transport_is_reliable): Moved to client_state.
6222 * tracepoint.c (current_traceframe): Moved to client_state.
6225 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
6226 linux-low.c, remote-utils.h, target.c: Use client_state.
6228 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6230 * configure.srv: Add new c/h file.
6232 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6234 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
6237 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6239 * gdb.arch/mips-fpregset-core.exp: New test.
6240 * gdb.arch/mips-fpregset-core.c: New test source.
6242 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
6245 * hostio.c (require_int): Do not report overflow for integers
6246 between 0xfffffff and 0x7fffffff.
6248 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6250 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
6251 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
6252 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
6254 (the_low_target): Wire them.
6256 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6258 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
6259 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
6260 mode. Call collect_register_by_name with vscr using
6261 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
6262 (ppc_store_vrregset): Add and set vscr_offset variable as in
6263 ppc_fill_vrregset. Call supply_register_by_name with vscr using
6266 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6268 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6269 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
6270 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
6272 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6274 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
6275 (ppc_store_vsxregset): Likewise.
6276 (ppc_fill_vrregset): Likewise.
6277 (ppc_store_vrregset): Likewise.
6278 (ppc_fill_evrregset): Likewise.
6279 (ppc_store_evrregset): Likewise.
6280 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
6281 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
6284 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6286 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
6287 wordsize of the inferior. Call ppc_linux_target_wordsize.
6289 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6291 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
6292 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
6293 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
6294 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6295 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6296 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6297 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6298 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6299 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6300 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6301 (tdesc_powerpc_e500l): Remove.
6302 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
6303 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
6304 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
6305 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
6307 (ppc_arch_setup): Remove target description matching code. Fill a
6308 ppc_linux_features struct and call ppc_linux_match_description
6311 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6313 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
6314 width of the requested register exceeds the width of the
6316 (mips_cannot_store_register): Likewise.
6318 2018-05-21 Maciej W. Rozycki <macro@mips.com>
6320 * linux-mips-low.c (mips_fetch_register): New function. Update
6322 (mips_store_gregset): Supply 0 rather than $restart for $zero.
6323 (the_low_target): Wire `mips_fetch_register'.
6325 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6327 * lynx-i386-low.c (LYNXOS_178): New macro.
6328 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
6329 the layout on LynxOS-178.
6330 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
6331 handle floating point registers that are not supported by
6334 2018-05-10 Tom Tromey <tom@tromey.com>
6336 * configure: Rebuild.
6338 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6341 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
6342 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
6343 Use it to set the expedite_regs field in the given tdesc.
6344 * x86-tdesc.h: New file.
6345 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
6346 Adjust following the addition of the new expedite_regs parameter
6347 to init_target_desc.
6348 * linux-tic6x-low.c (tic6x_read_description): Likewise.
6349 * linux-x86-tdesc.c: #include "x86-tdesc.h".
6350 (i386_linux_read_description, amd64_linux_read_description):
6351 Adjust following the addition of the new expedite_regs parameter
6352 to init_target_desc.
6353 * lynx-i386-low.c: #include "x86-tdesc.h".
6354 (lynx_i386_arch_setup): Adjust following the addition of the new
6355 expedite_regs parameter to init_target_desc.
6356 * nto-x86-low.c: #include "x86-tdesc.h".
6357 (nto_x86_arch_setup): Adjust following the addition of the new
6358 expedite_regs parameter to init_target_desc.
6359 * win32-i386-low.c: #include "x86-tdesc.h".
6360 (i386_arch_setup): Adjust following the addition of the new
6361 expedite_regs parameter to init_target_desc.
6363 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6366 * win32-low.c (win32_create_inferior): Add call to my_wait
6367 setting last_status global.
6369 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6372 * win32-low.c (create_process): Only call gdb_tilde_expand if
6373 inferior_cwd is not NULL.
6375 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6377 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
6378 registers to the cache if their values have changed.
6379 (i387_xsave_to_cache): Provide default values for x87 control
6380 registers when these features are available, but disabled.
6381 * regcache.c (supply_register_by_name_zeroed): New function.
6382 * regcache.h (supply_register_by_name_zeroed): Declare new
6385 2018-05-07 Tom Tromey <tom@tromey.com>
6387 * configure: Rebuild.
6389 2018-05-04 Tom Tromey <tom@tromey.com>
6391 * configure: Rebuild.
6393 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6394 Pedro Alves <palves@redhat.com>
6396 * linux-aarch64-low.c (aarch64_stopped_data_address):
6399 2018-04-27 Tom Tromey <tom@tromey.com>
6401 * configure: Rebuild.
6403 2018-04-23 Tom Tromey <tom@tromey.com>
6405 * configure: Rebuild.
6407 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
6409 * Makefile.in (depcomp): Add "..".
6410 (all_deps_files): New and use it.
6412 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6414 * configure.srv (aarch64*-*-linux*): Don't include xml.
6415 (i[34567]86-*-cygwin*): Likewise.
6416 (i[34567]86-*-linux*): Likewise.
6417 (i[34567]86-*-lynxos*): Likewise.
6418 (i[34567]86-*-mingw32ce*): Likewise.
6419 (i[34567]86-*-mingw*): Likewise.
6420 (i[34567]86-*-nto*): Likewise.
6421 (tic6x-*-uclinux): Likewise.
6422 (x86_64-*-linux*): Likewise.
6423 (x86_64-*-mingw*): Likewise.
6424 (x86_64-*-cygwin*): Likewise.
6426 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6428 * tdesc.c: Remove xml parameter.
6430 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6432 * server.c (get_features_xml): Remove cast.
6433 * tdesc.c (void target_desc::accept): Fill in function.
6434 (tdesc_get_features_xml): Remove old xml creation.
6435 (print_xml_feature::visit_pre): Add xml vistor.
6436 * tdesc.h (struct target_desc): Make xmltarget mutable.
6437 (tdesc_get_features_xml): Remove declaration.
6439 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6441 * tdesc.c (tdesc_architecture_name): Add new function.
6442 (tdesc_osabi_name): Likewise.
6443 (tdesc_get_features_xml): Use new functions.
6445 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6447 * tdesc.c (tdesc_create_flags): Remove.
6448 (tdesc_add_flag): Likewise.
6449 (tdesc_named_type): Likewise.
6450 (tdesc_create_union): Likewise.
6451 (tdesc_create_struct): Likewise.
6452 (tdesc_create_vector): Likewise.
6453 (tdesc_add_bitfield): Likewise.
6454 (tdesc_add_field): Likewise.
6455 (tdesc_set_struct_size): Likewise.
6457 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6459 * tdesc.c (~target_desc): Remove implictly deleted items.
6460 (init_target_desc): Iterate all features.
6461 (tdesc_get_features_xml): Use vector.
6462 (tdesc_create_feature): Create feature.
6463 * tdesc.h (tdesc_feature) Remove
6464 (target_desc): Add features.
6466 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6468 * Makefile.in: Add common/tdesc.c
6469 * tdesc.c (init_target_desc): init all reg_defs from register
6471 (tdesc_create_reg): Create tdesc_reg.
6472 * tdesc.h (tdesc_feature): Add register vector.
6474 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6476 * tdesc.h (struct target_desc) <features>: Change type to
6477 std::vector<std::string>.
6478 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6480 (tdesc_get_features_xml): Likewise.
6481 (tdesc_create_feature): Likewise.
6483 2018-03-26 Alan Hayward <alan.hayward@arm.com>
6485 * regcache.c (find_register_by_number): Return a ref.
6486 (find_regno): Use references.
6487 (register_size): Likewise.
6488 (register_data): Likewise.
6489 * tdesc.c (target_desc::~target_desc): Remove free calls.
6490 (target_desc::operator==): Use std::vector compare.
6491 (init_target_desc): Use reference.
6492 (tdesc_create_reg): Use reg constructors.
6493 * tdesc.h (struct target_desc): Replace pointer with object.
6495 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6497 * regcache.c (find_register_by_number): Make static.
6498 (find_regno): Use find_register_by_number
6499 * regcache.h (struct reg): Remove declaration.
6501 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6503 * tdesc.c (target_desc::~target_desc): Move to here.
6504 (target_desc::operator==): Likewise.
6505 * tdesc.h (target_desc::~target_desc): Move from here.
6506 (target_desc::operator==): Likewise.
6508 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6510 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6512 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6514 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6516 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6517 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6518 and init_registers_s390_gs_linux64.
6520 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6522 * linux-s390-low.c (s390_fill_gs): Remove function.
6523 (s390_fill_gsbc): Remove function.
6524 (s390_regsets): Set fill functions for the guarded storage regsets
6527 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6529 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6530 the word size. Add comment.
6531 (s390_get_wordsize): New function.
6532 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6533 pswm with it. Instead, use s390_get_wordsize to determine the
6534 word size first and derive the correct tdesc from that directly.
6536 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6538 * Makefile.in: Include silent-rules.mk.
6539 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6540 (COMPILE): Add ECHO_CXX.
6541 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6542 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6543 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6544 (version-generated.c): Add ECHO_GEN.
6545 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6546 (IPAGENT_COMPILE): Add ECHO_CXX.
6547 (%-generated.c): Add ECHO_REGDAT.
6549 2018-03-14 Tom Tromey <tom@tromey.com>
6552 * ax.c (ax_printf): Special case for NULL.
6554 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6556 * linux-low.c (linux_qxfer_libraries_svr4): Use
6557 xml_escape_text_append.
6559 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6561 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6563 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6565 * server.c (handle_general_set): Remove unnecessary xstrdup.
6567 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6569 * server.c (parse_debug_format_options): Adjust to
6570 delim_string_to_char_ptr_vec changes.
6571 * thread-db.c (thread_db_load_search): Adjust to
6572 dirnames_to_char_ptr_vec changes.
6574 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6576 * target.h (target_enable_btrace, target_disable_btrace)
6577 (target_read_btrace, target_read_btrace_conf): Turn macro into
6578 inline function. Throw error if target method is not defined.
6579 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6580 check for btrace target method. Be prepared to handle exceptions
6581 from btrace target methods.
6583 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6585 * server.c (captured_main): Change order of error message printed
6586 when the current working directory cannot be found.
6588 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6590 * server.c: Include "filenames.h" and "pathstuff.h".
6591 (program_name): Delete variable.
6592 (program_path): New anonymous class.
6593 (get_exec_wrapper): Use "program_path" instead of
6595 (handle_v_run): Likewise.
6596 (captured_main): Likewise.
6597 (process_serial_event): Likewise.
6599 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6601 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6602 (OBJS): Add "pathstuff.o".
6603 * server.c (current_directory): New global variable.
6604 (captured_main): Initialize "current_directory".
6606 2018-02-26 Alan Hayward <alan.hayward@arm.com>
6608 * tdesc.c: Use common/tdesc.h.
6609 * tdesc.h: Likewise.
6611 2018-02-20 Alan Hayward <alan.hayward@arm.com>
6612 Simon Marchi <simon.marchi@ericsson.com>
6614 * Makefile.in: Switch order of make rules.
6616 2018-02-19 Alan Hayward <alan.hayward@arm.com>
6618 * Makefile.in: Add common directory in build.
6619 * configure.ac: Add common reference.
6620 * configure: Regenerate.
6622 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6624 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6625 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6626 * spu-low.c (spu_target_ops): Likewise.
6627 * win32-low.c (win32_target_ops): Likewise.
6628 * server.c (supported_btrace_packets): Report packets unconditionally.
6629 * target.h (target_ops) <supports_btrace>: Remove.
6630 (target_supports_btrace): Remove.
6632 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6634 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6635 (handle_btrace_disable): Change return type to void. Use exceptions
6637 (handle_btrace_general_set): Catch exception and copy message to
6640 2018-02-08 Tom Tromey <tom@tromey.com>
6642 * linux-low.c (install_software_single_step_breakpoints): Use
6643 make_scoped_restore.
6644 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6645 (do_restore_current_thread_cleanup): Remove.
6646 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6649 2018-02-08 Tom Tromey <tom@tromey.com>
6651 * mem-break.c (set_raw_breakpoint_at): Use
6652 gdb::unique_xmalloc_ptr.
6654 2018-01-30 Pedro Alves <palves@redhat.com>
6657 * target.c (target_terminal::terminal_state): Rename to ...
6658 (target_terminal::m_terminal_state): ... this.
6660 2018-01-19 James Clarke <jrtc27@jrtc27.com>
6662 * linux-low.c (handle_extended_wait): Surround call to
6663 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6665 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6667 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6668 linux_ptrace_attach_fail_reason_string now returning an
6670 (linux_attach): Likewise.
6671 * thread-db.c (attach_thread): Likewise.
6673 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6676 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6677 checking for fs_base/gs_base fields in struct user_regs_struct.
6678 * configure: Regenerate.
6680 2018-01-16 Yao Qi <yao.qi@linaro.org>
6683 * linux-low.c (fetch_register): Call supply_register instead of
6686 2018-01-08 Yao Qi <yao.qi@linaro.org>
6687 Simon Marchi <simon.marchi@ericsson.com>
6689 * Makefile.in (OBS): Remove selftest.o.
6690 * configure.ac: Set srv_selftest_objs if $development is true.
6691 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6692 * configure: Re-generated.
6693 * server.c (captured_main): Wrap variable selftest_filter with
6696 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6698 * server.c (parse_debug_format_options): Return std::string.
6699 (handle_monitor_command, captured_main): Adjust.
6701 2018-01-05 Pedro Alves <palves@redhat.com>
6704 * server.c (captured_main): Pass quiet=false to
6705 save_original_signals_state.
6707 2018-01-01 Joel Brobecker <brobecker@adacore.com>
6709 * gdbreplay.c (gdbreplay_version): Update copyright year in
6711 * server.c (gdbserver_version): Likewise.
6713 2017-12-08 Tom Tromey <tom@tromey.com>
6715 * ax.c (ax_printf): Update.
6717 2017-12-07 Yao Qi <yao.qi@linaro.org>
6719 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6720 aarch64_linux_read_description.
6721 * linux-amd64-ipa.c (idx2mask): New array.
6722 (get_ipa_tdesc): Move idx2mask out.
6723 (initialize_low_tracepoint): Initialize target descriptions.
6724 * linux-i386-ipa.c (idx2mask): New array.
6725 (get_ipa_tdesc): Move idx2mask out.
6726 (initialize_low_tracepoint): Initialize target descriptions.
6728 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6730 * tdesc.c (struct tdesc_type): Change return type.
6731 (tdesc_add_flag): Change parameter type.
6732 (tdesc_add_bitfield): Likewise.
6733 (tdesc_add_field): Likewise.
6734 (tdesc_set_struct_size): Likewise.
6736 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6738 * regcache.c (registers_to_string): Remove unused variable.
6740 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6742 * inferiors.c (for_each_inferior_with_data): Remove.
6743 * inferiors.h (for_each_inferior_with_data): Remove.
6744 * server.c (handle_qxfer_threads_worker): Change parameter type.
6745 (handle_qxfer_threads_proper): Use for_each_thread.
6747 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6749 * inferiors.c (for_each_inferior): Remove.
6750 (clear_inferiors): Use for_each_thread.
6751 * inferiors.h (for_each_inferior): Remove.
6752 * linux-low.c (linux_wait_for_event_filtered): Use
6754 (linux_stabilize_threads): Likewise.
6755 * regcache.c (regcache_release): Likewise.
6756 * server.c (gdb_wants_all_threads_stopped): Likewise.
6757 (clear_pending_status_callback): Remove.
6758 (handle_status): Use for_each_thread.
6759 (captured_main): Likewise.
6760 * win32-low.c (child_init_thread_list): Likewise.
6761 (win32_clear_inferiors): Likewise.
6762 (fake_breakpoint_event): Likewise.
6764 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6766 * inferiors.h (find_inferior): Remove.
6767 * inferiors.c (find_inferior): Remove.
6769 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6771 * linux-low.c (resume_status_pending_p): Update comment.
6772 (need_step_over_p): Update comment.
6774 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6776 * linux-low.c (proceed_one_lwp): Return void, change parameter
6778 (unsuspend_and_proceed_one_lwp): Likewise.
6779 (proceed_all_lwps): Use for_each_thread.
6780 (unstop_all_lwps): Likewise.
6782 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6784 * linux-low.c (linux_resume_one_thread): Return void, take
6786 (linux_resume): Use for_each_thread.
6788 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6790 * linux-low.c (send_sigstop_callback): Return void, change
6791 parameter type. Rename to...
6792 (send_sigstop): ... this.
6793 (suspend_and_send_sigstop_callback): Return void, change parameter
6795 (suspend_and_send_sigstop): ... this.
6796 (stop_all_lwps): Use for_each_thread.
6798 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6800 * linux-low.c (lwp_running): Return bool, remove unused
6802 (linux_stabilize_threads): Use find_thread.
6804 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6806 * linux-low.c (select_singlestep_lwp_callback): Remove.
6807 (count_events_callback): Remove.
6808 (select_event_lwp_callback): Remove.
6809 (select_event_lwp): Use find_thread/for_each_thread.
6811 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6813 * linux-low.c (not_stopped_callback): Return bool, take filter
6815 (linux_wait_for_event_filtered): Use find_thread.
6816 (linux_wait_1): Likewise.
6818 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6820 * linux-low.c (same_lwp): Remove.
6821 (find_lwp_pid): Use find_thread.
6823 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6825 * linux-low.c (delete_lwp_callback): Remove.
6826 (linux_mourn): Use for_each_thread.
6828 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6830 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6831 args parameter, don't check for pid.
6832 (linux_detach): Use for_each_thread.
6834 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6836 * linux-low.c (struct counter): Remove.
6837 (second_thread_of_pid_p): Remove.
6838 (last_thread_of_process_p): Use find_thread.
6840 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6842 * inferiors.c (find_inferior_in_random): Remove.
6843 * inferiors.h (find_inferior_in_random): Remove.
6844 * linux-low.c (status_pending_p_callback): Return bool, accept
6845 parameter ptid directly.
6846 (linux_wait_for_event_filtered): Use find_thread_in_random.
6847 (linux_wait_1): Likewise.
6849 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6851 * inferiors.c (find_inferior_id): Remove.
6852 (find_thread_ptid): Move implemention from find_inferior_id to
6854 * inferiors.h (find_inferior_id): Remove.
6855 * server.c (handle_status): Use find_thread_ptid.
6856 (process_serial_event): Likewise.
6857 * thread-db.c (find_one_thread): Likewise.
6858 (thread_db_thread_handle): Likewise.
6859 * win32-low.c (thread_rec): Likewise.
6860 (child_delete_thread): Likewise.
6861 (win32_thread_alive): Likewise.
6862 (get_child_debug_event): Likewise.
6864 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6866 * linux-mips-low.c (update_watch_registers_callback): Return
6867 void, remove pid_p parameter, don't check for pid.
6868 (mips_insert_point, mips_remove_point): Use for_each_thread.
6870 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6872 * lynx.low (lynx_delete_thread_callback): Remove.
6873 (lynx_mourn): Use for_each_thread.
6875 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6877 * regcache.c (regcache_invalidate_one): Remove.
6878 (regcache_invalidate_pid): use for_each_thread.
6880 2017-11-26 Tom Tromey <tom@tromey.com>
6882 * linux-low.c (linux_create_inferior): Update.
6884 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6886 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6888 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6890 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6891 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6892 * linux-aarch64-tdesc-selftest.c: New file.
6893 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6895 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6897 * configure.srv: Add new file.
6898 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6899 * linux-aarch64-tdesc-selftest.c: New file.
6900 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6902 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6904 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6905 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6906 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6908 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6910 * configure.srv: Add new files.
6911 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6912 aarch64_linux_read_description.
6913 * linux-aarch64-low.c (aarch64_linux_read_description):
6914 Merge with aarch64_arch_setup.
6915 (aarch64_arch_setup): Call aarch64_linux_read_description.
6916 * linux-aarch64-tdesc.c: New file.
6917 * linux-aarch64-tdesc.h: New file.
6919 2017-11-24 Yao Qi <yao.qi@linaro.org>
6921 * configure.srv: Set $srv_regobj for tic6x-linux.
6922 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6923 (tic6x_read_description): Move some code to tic6x_arch_setup.
6924 (tic6x_tdesc_test): New function.
6925 (initialize_low_arch): Call selftests::register_test.
6927 2017-11-22 Yao Qi <yao.qi@linaro.org>
6929 * remote-utils.c (prepare_resume_reply): Use memcpy.
6931 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6933 * linux-low.c (kill_one_lwp_callback): Return void, take
6934 argument directly, don't filter on pid.
6935 (linux_kill): Use for_each_thread.
6937 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6939 * linux-low.c (need_step_over_p): Return bool, remove dummy
6941 (linux_resume, proceed_all_lwps): Use find_thread.
6943 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6945 * linux-low.c (resume_status_pending_p): Return bool, remove
6947 (linux_resume): Use find_thread.
6949 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6951 * linux-low.c (struct thread_resume_array): Remove.
6952 (linux_set_resume_request): Return void, take arguments
6954 (linux_resume): Use for_each_thread.
6956 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6958 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6959 return bool, remove data argument.
6960 (linux_stabilize_threads): Use find_thread.
6962 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6964 * linux-low.c (unsuspend_one_lwp): Remove.
6965 (unsuspend_all_lwps): Use for_each_thread, inline code from
6968 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6970 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6971 * linux-low.c (struct iterate_over_lwps_args): Remove.
6972 (iterate_over_lwps_filter): Remove.
6973 (iterate_over_lwps): Use find_thread.
6975 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6977 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6978 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6979 code from reset_lwp_ptrace_options_callback.
6981 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6983 * linux-arm-low.c (struct update_registers_data): Remove.
6984 (update_registers_callback): Return void, take arguments
6985 directly, don't check thread's pid.
6986 (arm_insert_point, arm_remove_point): Use for_each_thread.
6988 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6990 * win32-low.c (continue_one_thread): Return void, take argument
6992 (child_continue): Use for_each_thread.
6994 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6996 * win32-i386-low.c (update_debug_registers_callback): Rename
6998 (update_debug_registers): ... this, return void, remove pid_p arg.
6999 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
7001 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7003 * inferiors.h (struct process_info): Add constructor, initialize
7005 <syscalls_to_catch>: Change type to std::vector<int>.
7006 * inferiors.c (add_process): Allocate process_info with new.
7007 (remove_process): Free process_info with delete.
7008 * linux-low.c (handle_extended_wait): Adjust.
7009 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
7010 * server.c (handle_general_set): Adjust.
7012 2017-11-16 Pedro Alves <palves@redhat.com>
7014 * remote-utils.c (remote_close): Block SIGIO signals instead of
7015 uninstalling the SIGIO handler.
7017 2017-11-16 Alan Hayward <alan.hayward@arm.com>
7019 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
7021 2017-11-16 Yao Qi <yao.qi@linaro.org>
7023 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
7024 (tic6x_store_gregset): Likewise.
7025 (tic6x_usrregs_info): Move it up.
7027 2017-11-15 Alan Hayward <alan.hayward@arm.com>
7029 * Makefile.in: Update arch rules.
7030 * configure.srv: Explicitly mark arch/ files.
7032 2017-11-13 Andreas Schwab <schwab@suse.de>
7034 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
7036 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7038 2017-11-06 Pedro Alves <palves@redhat.com>
7040 * config.in, configure: Regenerate.
7042 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7044 * target.c (struct thread_search): Remove.
7045 (thread_search_callback): Remove.
7046 (prepare_to_access_memory): Use for_each_thread instead of
7047 find_inferior. Inline code from thread_search_callback.
7049 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7051 * server.c (struct visit_actioned_threads_data): Remove.
7052 (visit_actioned_threads): Change prototype to take arguments
7054 (resume): Use find_thread instead of find_inferior.
7056 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7058 * server.c (queue_stop_reply_callback): Change prototype, return
7060 (find_status_pending_thread_callback): Remove.
7061 (handle_status): Replace find_inferior with find_thread and
7064 2017-10-25 Alan Hayward <alan.hayward@arm.com>
7066 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
7068 (aarch64_store_gregset): Likewise.
7069 (aarch64_fill_fpregset): Likewise.
7070 (aarch64_store_fpregset): Likewise.
7072 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
7074 * gdbthread.h (find_thread, for_each_thread): New functions.
7075 * inferiors.c (thread_of_pid): Remove.
7076 (find_any_thread_of_pid): Use find_thread.
7077 * linux-low.c (num_lwps): Use for_each_thread.
7079 2017-10-17 Yao Qi <yao.qi@linaro.org>
7081 * Makefile.in: Remove one rule.
7082 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
7084 2017-10-17 Yao Qi <yao.qi@linaro.org>
7086 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
7087 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
7089 2017-10-17 Yao Qi <yao.qi@linaro.org>
7091 * configure.srv: Rename arm.o with arch/arm.o.
7093 2017-10-17 Yao Qi <yao.qi@linaro.org>
7095 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
7096 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
7097 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
7098 (arch-i386.o, arch-amd64.o): Remove rules.
7099 (arch/%.o): New rule.
7100 Update POSTCOMPILE and COMPILE.pre.
7101 * configure.ac: Invoke AC_CONFIG_COMMANDS.
7102 * configure: Re-generated.
7103 * configure.srv: Replace arch-i386.o with arch/i386.o.
7104 Replace arch-amd64.o with arch/amd64.o.
7106 2017-10-16 Yao Qi <yao.qi@linaro.org>
7108 * configure: Regenerated.
7110 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7112 * inferiors.h: (struct inferior_list): Remove.
7113 (struct inferior_list_entry); Remove.
7114 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
7115 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
7116 get_first_inferior): Remove.
7117 (for_each_inferior, for_each_inferior_with_data, find_inferior,
7118 find_inferior_id, find_inferior_in_random): Change signature.
7119 * inferiors.c (all_threads): Change type to
7120 std::list<thread_info *>.
7121 (get_thread): Remove macro.
7122 (find_inferior, find_inferior_id): Change signature, implement
7124 (find_inferior_in_random): Change signature, implement using
7125 find_thread_in_random.
7126 (for_each_inferior, for_each_inferior_with_data): Change
7127 signature, implement using for_each_thread.
7128 (add_inferior_to_list, remove_inferior): Remove.
7129 (add_thread, get_first_thread, thread_of_pid,
7130 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
7131 (get_first_inferior, one_inferior_p, clear_inferior_list):
7133 (clear_inferiors, get_thread_process): Update.
7134 * gdbthread.h: Include <list>.
7135 (struct thread_info) <entry>: Remove field.
7137 (all_threads): Change type to std::list<thread_info *>.
7138 (get_first_inferior): Add doc.
7139 (find_thread, for_each_thread, find_thread_in_random): New
7141 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
7142 * linux-arm-low.c (update_registers_callback): Update.
7143 * linux-low.c (second_thread_of_pid_p): Update.
7144 (kill_one_lwp_callback, linux_detach_lwp_callback,
7145 delete_lwp_callback, status_pending_p_callback, same_lwp,
7146 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
7147 iterate_over_lwps, not_stopped_callback,
7148 resume_stopped_resumed_lwps, count_events_callback,
7149 select_singlestep_lwp_callback, select_event_lwp_callback,
7150 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
7151 suspend_and_send_sigstop_callback, wait_for_sigstop,
7152 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
7153 lwp_running, linux_set_resume_request, resume_status_pending_p,
7154 need_step_over_p, start_step_over, linux_resume_one_thread,
7155 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
7156 reset_lwp_ptrace_options_callback): Update.
7157 * linux-mips-low.c (update_watch_registers_callback): Update.
7158 * regcache.c (regcache_invalidate_one, regcache_invalidate):
7160 (free_register_cache_thread_one): Remove.
7161 (regcache_release): Update.
7162 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
7163 handle_qxfer_threads_worker): Update.
7164 (handle_query): Update, use list iterator.
7165 (visit_actioned_threads, handle_pending_status,
7166 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
7167 clear_pending_status_callback, set_pending_status_callback,
7168 find_status_pending_thread_callback, handle_status,
7169 process_serial_event): Update.
7170 * target.c (thread_search_callback): Update.
7171 * thread-db.c (thread_db_get_tls_address): Update.
7172 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
7174 * win32-i386-low.c (update_debug_registers_callback): Update.
7175 * win32-low.c (delete_thread_info, child_delete_thread,
7176 continue_one_thread, suspend_one_thread,
7177 get_child_debug_event): Adjust.
7179 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7181 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
7182 * inferiors.h: Include <list>.
7183 (struct process_info) <entry>: Remove field.
7185 (pid_of): Change macro to function.
7186 (ptid_of, lwpid_of): Remove macro.
7187 (all_processes): Change type to std::list<process_info *>.
7188 (ALL_PROCESSES): Remove macro.
7189 (for_each_process, find_process): New function.
7190 * inferiors.c (all_processes): Change type to
7191 std::list<process_info *>.
7192 (find_thread_process): Adjust.
7193 (add_process): Likewise.
7194 (remove_process): Likewise.
7195 (find_process_pid): Likewise.
7196 (get_first_process): Likewise.
7197 (started_inferior_callback): Remove.
7198 (have_started_inferiors_p): Adjust.
7199 (attached_inferior_callback): Remove.
7200 (have_attached_inferiors_p): Adjust.
7201 * linux-low.c (check_zombie_leaders): Likewise.
7202 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
7203 (x86_linux_update_xmltarget): Adjust.
7204 * server.c (handle_query): Likewise.
7205 (gdb_reattached_process): Remove.
7206 (handle_status): Adjust.
7207 (kill_inferior_callback): Likewise.
7208 (detach_or_kill_inferior): Remove.
7209 (print_started_pid): Likewise.
7210 (print_attached_pid): Likewise.
7211 (detach_or_kill_for_exit): Update.
7212 (process_serial_event): Likewise.
7213 * linux-arm-low.c (arm_new_fork): Likewise.
7215 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7217 * dll.h: Include <list>.
7218 (struct dll_info): Add constructor.
7219 <entry>: Remove field.
7220 (all_dlls): Change type to std::list<dll_info>.
7221 * dll.c: Include <algorithm>.
7222 (get_dll): Remove macro.
7223 (all_dlls): Change type to std::list<dll_info *>.
7224 (free_one_dll): Remove.
7225 (match_dll): Likewise.
7226 (loaded_dll): Adjust.
7227 (unloaded_dll): Adjust to all_dlls type change, use
7228 std::find_if. Inline code from match_dll.
7229 (clear_dlls): Adjust to all_dlls type change.
7230 * server.c (emit_dll_description): Remove.
7231 (handle_qxfer_libraries): Adjust to all_dlls type change,
7232 integrate emit_dll_description's functionality.
7234 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7236 * linux-low.h (struct linux_target_ops) <delete_process>: New
7238 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
7239 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
7240 (struct linux_target_ops): Add delete_process callback.
7241 * linux-arm-low.c (arm_delete_process): New.
7242 (struct linux_target_ops): Add delete_process callback.
7243 * linux-bfin-low.c (struct linux_target_ops): Likewise.
7244 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
7245 * linux-m32r-low.c (struct linux_target_ops): Likewise.
7246 * linux-mips-low.c (mips_linux_delete_process): New.
7247 (struct linux_target_ops): Add delete_process callback.
7248 * linux-ppc-low.c (struct linux_target_ops): Likewise.
7249 * linux-s390-low.c (struct linux_target_ops): Likewise.
7250 * linux-sh-low.c (struct linux_target_ops): Likewise.
7251 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
7252 * linux-tile-low.c (struct linux_target_ops): Likewise.
7253 * linux-x86-low.c (x86_linux_delete_process): New.
7254 (struct linux_target_ops): Add delete_process callback.
7255 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
7257 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7259 * linux-aarch64-low.c (the_low_target): Add thread delete
7261 * linux-arm-low.c (arm_delete_thread): New function.
7262 (the_low_target): Add thread delete callback.
7263 * linux-bfin-low.c (the_low_target): Likewise.
7264 * linux-crisv32-low.c (the_low_target): Likewise.
7265 * linux-low.c (delete_lwp): Invoke delete_thread callback if
7267 * linux-low.h (struct linux_target_ops) <delete_thread>: New
7269 * linux-m32r-low.c (the_low_target): Add thread delete callback.
7270 * linux-mips-low.c (mips_linux_delete_thread): New function.
7271 (the_low_target): Add thread delete callback.
7272 * linux-ppc-low.c (the_low_target): Likewise.
7273 * linux-s390-low.c (the_low_target): Likewise.
7274 * linux-sh-low.c (the_low_target): Likewise.
7275 * linux-tic6x-low.c (the_low_target): Likewise.
7276 * linux-tile-low.c (the_low_target): Likewise.
7277 * linux-x86-low.c (the_low_target): Likewise.
7278 * linux-xtensa-low.c (the_low_target): Likewise.
7280 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
7282 * win32-low.c: Include "common-inferior.h".
7284 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7286 * inferiors.c (set_inferior_cwd): New function.
7287 * server.c (handle_general_set): Handle QSetWorkingDir packet.
7288 (handle_query): Inform that QSetWorkingDir is supported.
7289 * win32-low.c (create_process): Pass the inferior's cwd to
7292 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7294 * inferiors.c (current_inferior_cwd): New global variable.
7295 (get_inferior_cwd): New function.
7296 * inferiors.h (struct process_info) <cwd>: New field.
7298 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7300 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
7301 (OBS): Add gdb_tilde_expand.o.
7303 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
7305 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
7306 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
7308 2017-09-29 Pedro Alves <palves@redhat.com>
7310 * ax.c (gdb_parse_agent_expr): Constify.
7311 * ax.h (gdb_parse_agent_expr): Constify.
7312 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7314 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
7315 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
7316 * remote-utils.h (read_ptid): Constify.
7317 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
7318 (process_point_options, process_serial_event): Constify.
7319 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
7320 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
7321 (cmd_qtbuffer): Constify.
7323 2017-09-29 Pedro Alves <palves@redhat.com>
7325 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
7328 2017-09-29 Pedro Alves <palves@redhat.com>
7330 * linux-low.c (handle_extended_wait): Pass parent thread instead
7331 of process to thread_db_notice_clone.
7332 * linux-low.h (thread_db_notice_clone): Replace parent process
7333 parameter with parent thread parameter.
7334 * thread-db.c (find_one_thread): Add comment.
7335 (thread_db_notice_clone): Replace parent process parameter with
7336 parent thread parameter. Temporarily switch to the parent thread.
7338 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
7340 * gdbthread.h: Include "common-gdbthread.h".
7341 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
7342 "if" when validating the ptid.
7343 * remote-utils.c: Include "gdbthread.h".
7344 (prepare_resume_reply): Use "switch_to_thread".
7345 * target.c (done_accessing_memory): Likewise.
7347 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7349 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
7350 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
7351 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
7352 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
7353 s390x-gs-linux64-ipa.o to ipa_obj.
7354 * linux-s390-low.c (HWCAP_S390_GS): New define.
7355 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
7357 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
7358 (s390_arch_setup): Check for guarded-storage support and choose
7360 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
7361 init_registers_s390x_gs_linux64.
7362 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
7364 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
7365 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
7367 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
7369 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
7371 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7373 * linux-low.h (struct lwp_info): Add new field, thread_handle.
7374 (thread_db_thread_handle): Declare.
7375 * linux-low.c (linux_target_ops): Initialize thread_handle.
7376 * server.c (handle_qxfer_threads_worker): Add support for
7378 * target.h (struct target_ops): Add new function pointer,
7380 (target_thread_handle): Define.
7381 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
7383 (thread_db_thread_handle): New function.
7385 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7387 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
7388 * linux-low.h (thread_db_notice_clone): Declare.
7389 * thread-db.c (thread_db_notice_clone): New function.
7391 2017-09-21 Pedro Alves <palves@redhat.com>
7393 * server.c (gdb_read_memory, handle_status, process_serial_event)
7394 (handle_serial_event, handle_target_event): Adjust to
7395 set_desired_thread prototype change.
7396 * target.c (set_desired_thread): Remove 'use_general' parameter
7398 * target.h (set_desired_thread): Remove 'use_general' parameter.
7400 2017-09-20 Tom Tromey <tom@tromey.com>
7402 * target.c (target_terminal::terminal_state): Define.
7403 (target_terminal::init): Rename from target_terminal_init.
7404 (target_terminal::inferior): Rename from
7405 target_terminal_inferior.
7406 (target_terminal::ours): Rename from target_terminal_ours.
7407 (target_terminal::ours_for_output, target_terminal::info): New.
7409 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7411 * server.c (accumulate_file_name_length): Remove.
7412 (emit_dll_description): Adjust to std::string change.
7413 (handle_qxfer_libraries): Use std::string to hold document.
7415 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7417 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
7418 return type of xml_escape_text.
7419 * server.c (emit_dll_description): Likewise.
7421 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7423 * server.c (captured_main): Accept argument for --selftest.
7424 Update run_tests call.
7425 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
7426 when registering selftests.
7428 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
7430 * regcache.c (get_thread_regcache): Update code to use "std::vector"
7431 instead of "VEC" for "target_desc.reg_defs".
7432 (regcache_cpy): Likewise.
7433 (registers_to_string): Likewise.
7434 (registers_from_string): Likewise.
7435 (find_regno): Likewise.
7436 (supply_regblock): Likewise.
7437 (regcache_raw_read_unsigned): Likewise.
7438 * tdesc.c (init_target_desc): Likewise.
7439 (tdesc_create_reg): Likewise.
7440 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
7441 (struct target_desc) <reg_defs>: Convert to "std::vector".
7442 (target_desc): Do not initialize "reg_defs".
7443 (~target_desc): Update code to use "std::vector" instead of "VEC"
7444 for "target_desc.reg_defs".
7445 (operator==): Likewise.
7447 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7449 * inferiors.h (thread_to_gdb_id): Remove.
7450 * inferiors.c (thread_to_gdb_id): Remove.
7451 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
7452 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
7453 lynx_store_registers, lynx_read_memory, lynx_write_memory):
7455 * nto-low.c (nto_fetch_registers, nto_store_registers,
7456 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
7458 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7460 * inferiors.h (gdb_id_to_thread_id): Remove.
7461 * inferiors.c (gdb_id_to_thread_id): Remove.
7462 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
7463 removal. Move pid declaration closer to where it's used.
7465 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7467 * server.c (handle_detach): New function.
7468 (process_serial_event): Move code out, call handle_detach.
7470 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7472 * server.c (require_running): Rename to ...
7473 (require_running_or_return): ... this ...
7474 (require_running_or_break): ... and this.
7475 (handle_query, process_serial_event): Adjust.
7477 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7479 * linux-low.c (linux_set_resume_request): Remove unused
7482 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7484 * server.c (first_thread_of): Remove.
7485 (process_serial_event): Replace usage of first_thread_of with
7486 find_any_thread_of_pid.
7487 * tracepoint.c (same_process_p): Remove.
7488 (gdb_agent_about_to_close): Replace usage of same_process_p with
7489 find_any_thread_of_pid.
7490 * linux-x86-low.c (same_process_callback): Remove.
7491 (x86_arch_setup_process_callback): Replace usage of
7492 same_process_callback with find_any_thread_of_pid.
7493 * thread-db.c (any_thread_of): Remove.
7494 (switch_to_process): Replace usage of any_thread_of with
7495 find_any_thread_of_pid.
7496 * inferiors.c (thread_pid_matches_callback): Remove.
7497 (find_thread_process): Adjust to use find_any_thread_of_pid.
7499 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7501 * regcache.c (get_thread_regcache): Guard calls to "memset"
7504 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7506 * linux-low.c (handle_extended_wait): Use
7507 "allocate_target_description" instead of "XNEW".
7508 * linux-x86-low.c (initialize_low_arch): Likewise.
7510 2017-09-05 Yao Qi <yao.qi@linaro.org>
7512 * configure.srv (srv_i386_regobj): Remove.
7513 (srv_amd64_regobj): Remove.
7514 (srv_regobj): Set it to "" for x86 non-linux targets.
7515 * linux-x86-tdesc.c (i386_linux_read_description):
7516 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7517 (init_registers_i386): Remove the declaration.
7518 (tdesc_i386): Remove the declaration.
7519 (lynx_i386_arch_setup): Call i386_create_target_description.
7520 * nto-x86-low.c: Likewise.
7521 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7522 [!__x86_64__]: include arch/i386.h.
7523 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7525 2017-09-05 Yao Qi <yao.qi@linaro.org>
7527 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7528 i386/amd64-XXX-linux from it.
7530 2017-09-05 Yao Qi <yao.qi@linaro.org>
7532 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7534 (ipa_amd64_linux_regobj): Remove.
7535 (ipa_x32_linux_regobj): Remove.
7537 2017-09-05 Yao Qi <yao.qi@linaro.org>
7539 * Makefile.in (arch-amd64.o): New rule.
7540 * configure.srv: Append arch-amd64.o.
7541 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7542 (get_ipa_tdesc): Call amd64_linux_read_description.
7543 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7544 and init_registers_amd64_XXX.
7545 * linux-x86-low.c (x86_linux_read_description): Call
7546 amd64_linux_read_description.
7547 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7548 (initialize_low_arch): Don't call init_registers_x32_XXX and
7549 init_registers_amd64_XXX.
7550 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7551 and tdesc_amd64_XXX.
7552 [__x86_64__] (amd64_tdesc_test): New function.
7553 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7554 and init_registers_amd64_XXX.
7555 * linux-x86-tdesc.c: Include arch/amd64.h.
7556 (xcr0_to_tdesc_idx): New function.
7557 (i386_linux_read_description): New function.
7558 (amd64_get_ipa_tdesc_idx): New function.
7559 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7560 (amd64_get_ipa_tdesc): Declare.
7562 2017-09-05 Yao Qi <yao.qi@linaro.org>
7564 * configure.srv (srv_i386_linux_xmlfiles): Remove
7565 i386/i386-XXX-linux.xml from it.
7567 2017-09-05 Yao Qi <yao.qi@linaro.org>
7569 * configure.srv: Set srv_i386_linux_regobj empty if $development
7571 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7572 initialize_low_tdesc.
7573 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7574 with #if initialize_low_tdesc.
7575 * linux-x86-tdesc-selftest.c: New file.
7576 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7578 2017-09-05 Yao Qi <yao.qi@linaro.org>
7580 * Makefile.in (arch-i386.o): New rule.
7581 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7582 (x86_64-*-linux*): Likewise.
7583 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7584 include arch/i386.h.
7585 (i386_linux_read_description): Remove code and call
7586 i386_create_target_description.
7587 * tdesc.c (allocate_target_description): New function.
7588 * tdesc.h (set_tdesc_architecture): Remove declaration.
7589 (set_tdesc_osabi): Likewise.
7591 2017-09-05 Yao Qi <yao.qi@linaro.org>
7593 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7594 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7595 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7597 * server.c (get_features_xml): Call tdesc_get_features_xml.
7598 * tdesc.c (set_tdesc_architecture): New function.
7599 (set_tdesc_osabi): New function.
7600 (tdesc_get_features_xml): New function.
7601 (tdesc_create_feature): Add an argument.
7602 * tdesc.h (struct target_desc) <features>: New field.
7603 <arch, osabi>: New field.
7604 (~target_desc): xfree features, arch, and osabi.
7605 (target_desc::oerator==): Don't compare .xmltarget.
7606 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7607 (set_tdesc_osabi): Likewise.
7608 (tdesc_get_features_xml): Likewise.
7610 2017-09-05 Yao Qi <yao.qi@linaro.org>
7612 * linux-x86-tdesc.c: Include selftest.h.
7613 (i386_tdesc_test): New function.
7614 (initialize_low_tdesc): Call selftests::register_test.
7615 * tdesc.h: Include regdef.h.
7616 (target_desc): Override operator == and !=.
7618 2017-09-05 Yao Qi <yao.qi@linaro.org>
7620 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7621 (ipa_obj): Likewise.
7622 * linux-i386-ipa.c: Include common/x86-xstate.h
7623 (get_ipa_tdesc): Call i386_linux_read_description.
7624 (initialize_low_tracepoint): Don't call init_registers_XXX
7625 functions, call initialize_low_tdesc instead.
7626 * linux-x86-low.c (x86_linux_read_description): Call
7627 i386_linux_read_description.
7628 (initialize_low_arch): Don't call init_registers_i386_XXX
7629 functions, call initialize_low_tdesc.
7630 * linux-x86-tdesc.c: New file.
7631 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7632 (i386_get_ipa_tdesc_idx): Declare.
7633 (i386_get_ipa_tdesc): Declare.
7634 (initialize_low_tdesc): Declare.
7636 2017-09-05 Yao Qi <yao.qi@linaro.org>
7638 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7641 2017-09-05 Yao Qi <yao.qi@linaro.org>
7643 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7644 * regcache.c (get_thread_regcache): Use VEC_length.
7645 (init_register_cache): Likewise.
7646 (regcache_cpy): Likewise.
7647 (registers_to_string): Iterate reg_defs via VEC_iterate.
7648 (find_regno): Likewise.
7649 (find_register_by_number): Use VEC_index.
7650 (register_size): Call find_register_by_number.
7651 (register_data): Call find_register_by_number.
7652 (supply_regblock): Use VEC_length.
7653 (regcache_raw_read_unsigned): Likewise.
7654 * tdesc.c (init_target_desc): Iterate reg_defs via
7656 (default_description): Update initializer.
7657 (copy_target_description): Don't update field num_registers.
7658 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7659 <num_registers>: Remove.
7661 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7663 * Makefile.in (.SECONDARY): Define target.
7665 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7667 * linux-low.c (linux_wait_1): Adjust.
7668 * server.c (queue_stop_reply_callback): Adjust.
7670 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7672 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7673 QEnvironmentUnset and QEnvironmentReset packets.
7674 (handle_query): Inform remote that QEnvironmentHexEncoded,
7675 QEnvironmentUnset and QEnvironmentReset are supported.
7677 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7679 * inferiors.h (inferior_target_data): Rename to ...
7680 (thread_target_data): ... this.
7681 (inferior_regcache_data): Rename to ...
7682 (thread_regcache_data): ... this.
7683 (set_inferior_regcache_data): Rename to ...
7684 (set_thread_regcache_data): ... this.
7685 * inferiors.c (inferior_target_data): Rename to ...
7686 (thread_target_data): ... this.
7687 (inferior_regcache_data): Rename to ...
7688 (thread_regcache_data): ... this.
7689 (set_inferior_regcache_data): Rename to ...
7690 (set_thread_regcache_data): ... this.
7691 (free_one_thread): Update.
7692 * linux-low.h (get_thread_lwp): Update.
7693 * regcache.c (get_thread_regcache): Update.
7694 (regcache_invalidate_thread): Update.
7695 (free_register_cache_thread): Update.
7696 * win32-i386-low.c (update_debug_registers_callback): Update.
7697 (win32_get_current_dr): Update.
7698 * win32-low.c (thread_rec): Update.
7699 (delete_thread_info): Update.
7700 (continue_one_thread): Update.
7701 (suspend_one_thread): Update.
7703 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7705 * inferiors.c (set_inferior_target_data): Remove.
7706 * inferiors.h (set_inferior_target_data): Remove.
7708 2017-08-18 Yao Qi <yao.qi@linaro.org>
7710 * Makefile.in (OBS): Add selftest.o.
7711 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7712 * configure, config.in: Re-generated.
7713 * server.c: Include common/sefltest.h.
7714 (captured_main): Handle option --selftest.
7716 2017-08-09 Yao Qi <yao.qi@linaro.org>
7718 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7719 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7720 i386-avx-mpx.o and i386-mmx.o.
7721 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7722 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7723 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7724 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7725 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7726 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7727 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7728 i386/amd64-avx-mpx.xml.
7730 2017-08-09 Yao Qi <yao.qi@linaro.org>
7732 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7733 and x32-avx-avx512.o.
7734 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7735 i386/x32-avx-avx512.xml.
7737 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7739 * tracepoint.h (enum class fast_tpoint_collect_result): New
7741 (fast_tracepoint_collecting): Change return type to
7742 fast_tpoint_collect_result.
7743 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7744 * linux-low.h: Include tracepoint.h.
7745 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7746 fast_tpoint_collect_result.
7747 * linux-low.c (handle_tracepoints): Adjust.
7748 (linux_fast_tracepoint_collecting): Change return type to
7749 fast_tpoint_collect_result.
7750 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7751 linux_wait_1, stuck_in_jump_pad_callback,
7752 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7753 proceed_one_lwp): Adjust to type change.
7755 2017-07-10 Yao Qi <yao.qi@linaro.org>
7757 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7759 2017-06-29 Yao Qi <yao.qi@linaro.org>
7761 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7763 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7765 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7767 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7769 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7771 * linux-low.c (linux_create_inferior): Adjust code to access the
7772 environment information via 'gdb_environ' class.
7773 * lynx-low.c (lynx_create_inferior): Likewise.
7774 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7775 (get_environ): Return a pointer to 'our_environ'.
7776 (captured_main): Initialize 'our_environ'.
7777 * server.h (get_environ): Adjust prototype.
7778 * spu-low.c (spu_create_inferior): Adjust code to access the
7779 environment information via 'gdb_environ' class.
7781 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7783 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7784 usage of "register" keyword.
7786 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7788 * configure: Re-generate.
7790 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7792 * configure: Re-generate.
7794 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7796 * Makefile.in (COMPILE.pre): Add "-x c++".
7798 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7800 * fork-child.c: Conditionally include <signal.h>.
7802 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7804 * server.c (handle_general_set): Handle new packet
7805 "QStartupWithShell".
7806 (handle_query): Add "QStartupWithShell" to the list of supported
7808 (gdbserver_usage): Add help text explaining the
7809 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7811 (captured_main): Recognize and act upon the presence of the new
7814 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7815 Pedro Alves <palves@redhat.com>
7817 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7818 * configure: Regenerate.
7819 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7821 (i[34567]86-*-lynxos*): Likewise.
7822 (spu*-*-*): Likewise.
7823 * fork-child.c: New file.
7824 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7826 (linux_ptrace_fun): New function.
7827 (linux_create_inferior): Adjust function prototype to reflect
7828 change on "target.h". Adjust function code to use
7830 (linux_request_interrupt): Delete "signal_pid".
7831 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7832 (lynx_ptrace_fun): New function.
7833 (lynx_create_inferior): Adjust function prototype to reflect
7834 change on "target.h". Adjust function code to use
7836 * nto-low.c (nto_create_inferior): Adjust function prototype and
7837 code to reflect change on "target.h". Update comments.
7838 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7839 "common-terminal.h" and "environ.h".
7840 (terminal_fd): Moved to fork-child.c.
7841 (old_foreground_pgrp): Likewise.
7842 (restore_old_foreground_pgrp): Likewise.
7843 (last_status): Make it global.
7844 (last_ptid): Likewise.
7845 (our_environ): New variable.
7846 (startup_with_shell): Likewise.
7847 (program_name): Likewise.
7848 (program_argv): Rename to...
7849 (program_args): ...this.
7850 (wrapper_argv): New variable.
7851 (start_inferior): Delete function.
7852 (get_exec_wrapper): New function.
7853 (get_exec_file): Likewise.
7854 (get_environ): Likewise.
7855 (prefork_hook): Likewise.
7856 (post_fork_inferior): Likewise.
7857 (postfork_hook): Likewise.
7858 (postfork_child_hook): Likewise.
7859 (handle_v_run): Update code to deal with arguments coming from the
7860 remote host. Update calls from "start_inferior" to
7862 (captured_main): Likewise. Initialize environment variable. Call
7864 * server.h (post_fork_inferior): New prototype.
7865 (get_environ): Likewise.
7866 (last_status): Declare.
7867 (last_ptid): Likewise.
7868 (signal_pid): Likewise.
7869 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7870 (spu_ptrace_fun): New function.
7871 (spu_create_inferior): Adjust function prototype to reflect change
7872 on "target.h". Adjust function code to use "fork_inferior".
7873 * target.c (target_terminal_init): New function.
7874 (target_terminal_inferior): Likewise.
7875 (target_terminal_ours): Likewise.
7876 * target.h: Include <vector>.
7877 (struct target_ops) <create_inferior>: Update prototype.
7878 (create_inferior): Update macro.
7879 * utils.c (gdb_flush_out_err): New function.
7880 * win32-low.c (win32_create_inferior): Adjust function prototype
7881 and code to reflect change on "target.h".
7883 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7885 * inferiors.c (switch_to_thread): New function.
7887 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7889 * Makefile.in (SFILE): Add "common/job-control.c".
7890 (OBS): Add "job-control.o".
7892 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7894 * Makefile: Remove "@host_makefile_frag@".
7896 2017-05-05 Pedro Alves <palves@redhat.com>
7898 * configure: Regenerate.
7900 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7902 * configure: Regenerate.
7904 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7906 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7907 software_single_step change of return type to
7908 std::vector<CORE_ADDR>.
7909 * linux-low.c (install_software_single_step_breakpoints):
7911 * linux-low.h (install_software_single_step_breakpoints):
7914 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7916 * remote-utils.c: Include "gdb_termios.h" instead of
7918 * terminal.h: Delete file.
7920 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7922 * server.c: Include <vector>.
7923 <program_argv, wrapper_argv>: Convert to std::vector.
7924 (start_inferior): Rewrite function to use C++.
7925 (handle_v_run): Likewise. Update code that calculates the argv
7926 based on the vRun packet; use C++.
7927 (captured_main): Likewise.
7929 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7931 * server.c (handle_v_cont): Initialize thread_resume::thread
7934 2017-04-05 Pedro Alves <palves@redhat.com>
7936 * configure: Regenerate.
7938 2017-04-05 Pedro Alves <palves@redhat.com>
7940 * gdbreplay.c (sync_error): Constify.
7941 * linux-x86-low.c (push_opcode): Constify.
7943 2017-04-05 Pedro Alves <palves@redhat.com>
7945 * win32-low.c (get_child_debug_event)
7946 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7947 Report TARGET_WAITKIND_SPURIOUS instead.
7949 2017-04-05 Pedro Alves <palves@redhat.com>
7951 * remote-utils.c (remote_prepare, remote_open): Constify.
7952 * remote-utils.h (remote_prepare, remote_open): Constify.
7953 * server.c (captured_main): Constify 'port' handling.
7955 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7957 * Makefile.in (clean): Clear .deps.
7959 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7961 * .gitignore: Remove generated files, replace with wildcard.
7962 * (clean): Replace removal of generated files with wildcard.
7963 (version.c): Replace with...
7964 (version-generated.c): ...this.
7965 (xml-builtin.c): Replace with...
7966 (xml-builtin-generated.c): ...this.
7967 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7968 (%.c: *regformats*): Replace with...
7969 (%-generated.c: *regformats*): ...this.
7971 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7973 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7974 (xtensa_fill_gregset): Call collect_register_by_name for
7976 (xtensa_store_gregset): Call supply_register_by_name for
7979 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7981 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7982 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7983 (xtensa_store_gregset): Call supply_register for all registers in
7984 a0_regnum..a0_regnum + C0_NREGS range.
7986 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7988 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7989 (ax-ipa.o: ax.c): Remove.
7990 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7991 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7992 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7993 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7994 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7996 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7998 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7999 (print-utils-ipa.o: ../common/print-utils.c): Remove.
8000 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
8001 (errors-ipa.o: ../common/errors.c): Remove.
8002 (format-ipa.o: ../common/format.c): Remove.
8003 (common-utils-ipa.o: ../common/common-utils.c): Remove.
8005 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8007 * Makefile.in (%-ipa.o: %.c): New rule.
8008 (tracepoint-ipa.o: tracepoint.c): Remove.
8009 (utils-ipa.o: utils.c): Remove.
8010 (remote-utils-ipa.o: remote-utils.c): Remove.
8011 (regcache-ipa.o: regcache.c): Remove.
8012 (i386-linux-ipa.o: i386-linux.c): Remove.
8013 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
8014 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
8015 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
8016 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
8017 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
8018 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
8019 (amd64-linux-ipa.o: amd64-linux.c): Remove.
8020 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
8021 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
8022 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
8023 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
8024 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
8025 (aarch64-ipa.o: aarch64.c): Remove.
8026 (s390-linux32-ipa.o: s390-linux32.c): Remove.
8027 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
8028 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
8029 (s390-linux64-ipa.o: s390-linux64.c): Remove.
8030 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
8031 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
8032 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
8033 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
8034 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
8035 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
8036 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
8037 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
8038 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
8039 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
8040 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
8041 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
8042 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
8043 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
8044 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
8045 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
8046 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
8047 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
8048 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
8049 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
8050 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
8051 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
8052 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
8053 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
8054 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
8055 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
8056 (tdesc-ipa.o: tdesc.c): Remove.
8057 (x32-linux-ipa.o: x32-linux.c): Remove.
8058 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
8059 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
8061 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8063 * Makefile.in (%.o: ../arch/%.c): New rule.
8064 (arm.o: ../arch/arm.c): Remove.
8065 (arm-linux.o: ../arch/arm-linux.c): Remove.
8066 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
8067 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
8069 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8071 * Makefile.in (%.o: ../nat/%.c): New rule.
8072 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
8073 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
8074 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
8075 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
8076 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
8077 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
8078 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
8079 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
8080 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
8081 (linux-personality.o: ../nat/linux-personality.c): Remove.
8082 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
8083 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
8084 (x86-linux.o: ../nat/x86-linux.c): Remove.
8085 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
8086 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
8088 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8090 * Makefile.in (%.o: ../common/%.c): New rule.
8091 (signals.o: ../common/signals.c): Remove.
8092 (print-utils.o: ../common/print-utils.c): Remove.
8093 (rsp-low.o: ../common/rsp-low.c): Remove.
8094 (common-utils.o: ../common/common-utils.c): Remove.
8095 (posix-strerror.o: ../common/posix-strerror.c): Remove.
8096 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
8097 (vec.o: ../common/vec.c): Remove.
8098 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
8099 (xml-utils.o: ../common/xml-utils.c): Remove.
8100 (ptid.o: ../common/ptid.c): Remove.
8101 (buffer.o: ../common/buffer.c): Remove.
8102 (format.o: ../common/format.c): Remove.
8103 (filestuff.o: ../common/filestuff.c): Remove.
8104 (agent.o: ../common/agent.c): Remove.
8105 (errors.o: ../common/errors.c): Remove.
8106 (environ.o: ../common/environ.c): Remove.
8107 (common-debug.o: ../common/common-debug.c): Remove.
8108 (cleanups.o: ../common/cleanups.c): Remove.
8109 (common-exceptions.o: ../common/common-exceptions.c): Remove.
8110 (fileio.o: ../common/fileio.c): Remove.
8111 (common-regcache.o: ../common/common-regcache.c): Remove.
8112 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
8113 (new-op.o: ../common/new-op.c): Remove.
8114 (btrace-common.o: ../common/btrace-common.c): Remove.
8116 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8118 * Makefile.in (%.o: ../target/%.c): New rule.
8119 (waitstatus.o: ../target/waitstatus.c): Remove.
8121 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8124 (%.c: ../regformats/%.dat,
8125 (%.c: ../regformats/arm/%.dat,
8126 (%.c: ../regformats/i386/%.dat,
8127 (%.c: ../regformats/rs6000/%.dat): New rules.
8128 (aarch64.c): Remove.
8129 (reg-arm.c): Remove.
8130 (arm-with-iwmmxt.c): Remove.
8131 (arm-with-vfpv2.c): Remove.
8132 (arm-with-vfpv3.c): Remove.
8133 (arm-with-neon.c): Remove.
8134 (reg-bfin.c): Remove.
8135 (reg-cris.c): Remove.
8136 (reg-crisv32.c): Remove.
8138 (i386-linux.c): Remove.
8139 (i386-avx.c): Remove.
8140 (i386-avx-linux.c): Remove.
8141 (i386-avx-avx512.c): Remove.
8142 (i386-avx-avx512-linux.c): Remove.
8143 (i386-mpx.c): Remove.
8144 (i386-mpx-linux.c): Remove.
8145 (i386-avx-mpx-avx512-pku.c): Remove.
8146 (i386-avx-mpx-avx512-pku-linux.c): Remove.
8147 (i386-avx-mpx.c): Remove.
8148 (i386-avx-mpx-linux.c): Remove.
8149 (i386-mmx.c): Remove.
8150 (i386-mmx-linux.c): Remove.
8151 (reg-ia64.c): Remove.
8152 (reg-m32r.c): Remove.
8153 (reg-m68k.c): Remove.
8155 (mips-linux.c): Remove.
8156 (mips-dsp-linux.c): Remove.
8157 (mips64-linux.c): Remove.
8158 (mips64-dsp-linux.c): Remove.
8159 (nios2-linux.c): Remove.
8160 (powerpc-32.c): Remove.
8161 (powerpc-32l.c): Remove.
8162 (powerpc-altivec32l.c): Remove.
8163 (powerpc-cell32l.c): Remove.
8164 (powerpc-vsx32l.c): Remove.
8165 (powerpc-isa205-32l.c): Remove.
8166 (powerpc-isa205-altivec32l.c): Remove.
8167 (powerpc-isa205-vsx32l.c): Remove.
8168 (powerpc-e500l.c): Remove.
8169 (powerpc-64l.c): Remove.
8170 (powerpc-altivec64l.c): Remove.
8171 (powerpc-cell64l.c): Remove.
8172 (powerpc-vsx64l.c): Remove.
8173 (powerpc-isa205-64l.c): Remove.
8174 (powerpc-isa205-altivec64l.c): Remove.
8175 (powerpc-isa205-vsx64l.c): Remove.
8176 (s390-linux32.c): Remove.
8177 (s390-linux32v1.c): Remove.
8178 (s390-linux32v2.c): Remove.
8179 (s390-linux64.c): Remove.
8180 (s390-linux64v1.c): Remove.
8181 (s390-linux64v2.c): Remove.
8182 (s390-te-linux64.c): Remove.
8183 (s390-vx-linux64.c): Remove.
8184 (s390-tevx-linux64.c): Remove.
8185 (s390x-linux64.c): Remove.
8186 (s390x-linux64v1.c): Remove.
8187 (s390x-linux64v2.c): Remove.
8188 (s390x-te-linux64.c): Remove.
8189 (s390x-vx-linux64.c): Remove.
8190 (s390x-tevx-linux64.c): Remove.
8191 (tic6x-c64xp-linux.c): Remove.
8192 (tic6x-c64x-linux.c): Remove.
8193 (tic6x-c62x-linux.c): Remove.
8195 (reg-sparc64.c): Remove.
8196 (reg-spu.c): Remove.
8198 (amd64-linux.c): Remove.
8199 (amd64-avx.c): Remove.
8200 (amd64-avx-linux.c): Remove.
8201 (amd64-avx-avx512.c): Remove.
8202 (amd64-avx-avx512-linux.c): Remove.
8203 (amd64-mpx.c): Remove.
8204 (amd64-mpx-linux.c): Remove.
8205 (amd64-avx-mpx-avx512-pku.c): Remove.
8206 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
8207 (amd64-avx-mpx.c): Remove.
8208 (amd64-avx-mpx-linux.c): Remove.
8210 (x32-linux.c): Remove.
8211 (x32-avx.c): Remove.
8212 (x32-avx-linux.c): Remove.
8213 (x32-avx-avx512.c): Remove.
8214 (x32-avx-avx512-linux.c): Remove.
8215 (reg-xtensa.c): Remove.
8216 (reg-tilegx.c): Remove.
8217 (reg-tilegx32.c): Remove.
8219 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
8221 * Makefile.in (SFILES): Add "common/environ.c".
8222 (OBJS): Add "common/environ.h".
8224 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8226 * configure.ac: Check if the fs_base and gs_base members of
8227 `struct user_regs_struct' exist.
8228 * config.in: Regenerated.
8229 * configure: Likewise.
8231 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
8233 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
8235 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
8236 (get_next_pcs_syscall_next_pc): Likewise.
8238 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
8240 * win32-i386-low.c: Fix incorrect reference to a couple source files.
8241 * nto-x86-low.c: Likewise.
8243 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
8245 * Makefile.in: Include disable-implicit-rules.mk.
8247 2016-11-23 Pedro Alves <palves@redhat.com>
8249 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
8250 (debug_vprintf): Use std::chrono::steady_clock instead of
8251 gettimeofday. Use '.' instead of ':'.
8252 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
8253 (get_timestamp): Use std::chrono::steady_clock instead of
8256 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8258 * Makefile.in: Fix whitespace formatting.
8260 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8262 * Makefile.in (SFILES, OBS): Flatten list and order
8265 2016-11-23 Pedro Alves <palves@redhat.com>
8267 * event-loop.c (handle_file_event): Use warning.
8268 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
8269 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
8272 2016-11-23 Pedro Alves <palves@redhat.com>
8274 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
8276 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
8277 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
8278 debug_printf and debug_flush for debug output.
8279 * server.c (handle_general_set): Likewise.
8280 * thread-db.c (try_thread_db_load): Use debug_printf for debug
8283 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8285 * Makefile.in (.c.o): Replace rule with ...
8286 (%.o: %.c): ... this one.
8288 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8290 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
8291 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
8293 * configure.ac: Remove checks for the make program.
8294 * configure: Re-generate.
8296 2016-10-28 Pedro Alves <palves@redhat.com>
8298 * Makefile.in (CXX_DIALECT): Get from configure.
8299 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
8300 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
8301 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
8302 * config.in: Regenerate.
8303 * configure: Regenerate.
8305 2016-10-27 Yao Qi <yao.qi@linaro.org>
8307 * linux-low.c (linux_supports_range_stepping): Return true if
8308 can_software_single_step return true.
8310 2016-10-27 Yao Qi <yao.qi@linaro.org>
8312 * inferiors.c (find_inferior_in_random): New function.
8313 * inferiors.h (find_inferior_in_random): Declare.
8314 * linux-low.c (linux_wait_for_event_filtered): Call
8315 find_inferior_in_random instead of find_inferior.
8317 2016-10-27 Yao Qi <yao.qi@linaro.org>
8319 * linux-low.c (linux_wait_1): If single-step breakpoints are
8320 inserted, remove them.
8322 2016-10-26 Pedro Alves <palves@redhat.com>
8324 * linux-low.c (handle_extended_wait): Link parent/child fork
8326 (linux_wait_1): Unlink them.
8327 (linux_set_resume_request): Ignore resume requests for
8328 already-resumed and unhandled fork child threads.
8329 * linux-low.h (struct lwp_info) <fork_relative>: New field.
8330 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
8332 (handle_v_requests) <vCont>: Don't call require_running.
8333 * server.h (in_queued_stop_replies): New declaration.
8335 2016-10-24 Yao Qi <yao.qi@linaro.org>
8338 * linux-aarch64-low.c (append_insns): Cast the return value to
8341 2016-10-10 Yao Qi <yao.qi@linaro.org>
8343 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
8345 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
8347 * target.c (target_supports_multi_process): New function, moved
8349 * target.h (target_supports_multi_process): ... here. Remove
8352 2016-10-05 Tom Tromey <tom@tromey.com>
8355 * tracepoint.c (handle_tracepoint_bkpts): Check
8356 ipa_error_tracepoint, not ipa_stopping_tracepoint.
8358 2016-10-05 Yao Qi <yao.qi@linaro.org>
8360 * configure.srv: Update the path of arm-*.xml files.
8362 2016-10-05 Terry Guo <terry.guo@arm.com>
8363 Yao Qi <yao.qi@linaro.org>
8365 * Makefile.in: Adjust the path of rules.
8366 * configure.srv: Update the path of xml files.
8367 * regformats/arm-with-iwmmxt.dat: Regenerated.
8368 * regformats/arm-with-neon.dat: Likewise.
8369 * regformats/arm-with-vfpv2.dat: Likewise.
8370 * regformats/arm-with-vfpv3.dat Likewise.
8372 2016-09-30 Yao Qi <yao.qi@linaro.org>
8375 * target.c (target_stop_and_wait): Don't call
8376 target_continue_no_signal, use resume_stop instead.
8378 2016-09-26 Yao Qi <yao.qi@linaro.org>
8380 * linux-low.c (linux_wait_1): Call debug_exit.
8382 2016-09-23 Pedro Alves <palves@redhat.com>
8384 * Makefile.in (SFILES): Add common/new-op.c.
8385 (OBS): Add common/new-op.o.
8386 (new-op.o): New rule.
8388 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
8390 * .gitinore: Ignore more files.
8392 2016-09-21 Yao Qi <yao.qi@linaro.org>
8394 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
8397 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
8399 * server.c (start_inferior): Call target_mourn_inferior instead of
8400 mourn_inferior; pass ptid_t argument to it.
8402 (handle_target_event): Likewise.
8403 * target.c (target_mourn_inferior): New function.
8404 * target.h (mourn_inferior): Delete macro.
8406 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
8408 * linux-low.c (lwp_is_stepping): New function.
8410 2016-09-06 Carl Love <cel@us.ibm.com>
8412 * server.c (start_inferior): Fixed comment, requested comment change
8413 didn't get updated correctly. Removed reference to ptrace () call as
8414 it is only true on Linux systems.
8416 2016-09-06 Carl Love <cel@us.ibm.com>
8418 * server.c (start_inferior): Do not call
8419 function target_post_create_inferior () if the
8420 inferior process has already exited.
8422 2016-09-05 Pedro Alves <palves@redhat.com>
8424 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
8425 (COMPILE.pre, CC_LD): Use CXX directly.
8426 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
8427 * acinclude.m4: Don't include build-with-cxx.m4.
8428 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
8429 * configure: Regenerate.
8431 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
8434 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
8435 call writing data to own_buf.
8437 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8439 * target.c (mywait): Call target_wait instead of
8441 (target_wait): New function.
8443 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8445 * server.c (start_inferior): New variable 'ptid'. Replace calls
8446 to the_target->resume by target_continue{,_no_signal}, depending
8448 * target.c (target_stop_and_wait): Call target_continue_no_signal
8449 instead of the_target->resume.
8450 (target_continue): New function.
8452 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8454 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
8456 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8459 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
8461 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
8462 * linux-arm-low.c (ps_get_thread_area): Likewise.
8463 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
8464 * linux-m68k-low.c (ps_get_thread_area): Likewise.
8465 * linux-mips-low.c (ps_get_thread_area): Likewise.
8466 * linux-nios2-low.c (ps_get_thread_area): Likewise.
8467 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
8468 * linux-x86-low.c (ps_get_thread_area): Likewise.
8469 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
8471 2016-08-19 Pedro Alves <palves@redhat.com>
8473 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
8475 2016-08-19 Pedro Alves <palves@redhat.com>
8477 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8478 comment. Use memcpy instead of casting through unsigned long.
8480 2016-08-19 Pedro Alves <palves@redhat.com>
8482 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8483 allocating around 0x80000000.
8485 2016-08-19 Pedro Alves <palves@redhat.com>
8488 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8489 (x32-avx512-linux-ipa.o): New rules.
8490 * configure.ac (x86_64-*-linux*): New x32 check.
8491 * configure.srv (ipa_x32_linux_regobj): New.
8492 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8493 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8495 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8497 * configure: Regenerate.
8499 2016-08-09 Pedro Alves <palves@redhat.com>
8502 * Makefile.in (OBS): Add signals-state-save-restore.o.
8503 (signals-state-save-restore.o): New rule.
8504 * config.in: Regenerate.
8505 * configure: Regenerate.
8506 * linux-low.c: Include "signals-state-save-restore.h".
8507 (linux_create_inferior): Call
8508 restore_original_signals_state.
8509 * server.c: Include "dispositions-save-restore.h".
8510 (captured_main): Call save_original_signals_state.
8512 2016-08-05 Pedro Alves <palves@redhat.com>
8514 * configure: Regenerate.
8516 2016-08-04 Yao Qi <yao.qi@linaro.org>
8518 * linux-low.c (regsets_fetch_inferior_registers): Check
8519 errno is ESRCH or not.
8521 2016-08-02 Yao Qi <yao.qi@linaro.org>
8523 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8524 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8525 (thread_db_load_search): Update.
8526 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8527 td_ta_set_event and td_ta_event_getmsg.
8529 2016-07-26 Pedro Alves <palves@redhat.com>
8532 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8533 of unsigned long for 64-bit registers and use uint32_t instead of
8534 unsigned int for 32-bit registers.
8536 2016-07-26 Pedro Alves <palves@redhat.com>
8538 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8541 2016-07-21 Tom Tromey <tom@tromey.com>
8543 * configure: Rebuild.
8545 2016-07-21 Yao Qi <yao.qi@linaro.org>
8547 * mem-break.c (find_gdb_breakpoint): Cast bp to
8548 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8550 2016-07-21 Yao Qi <yao.qi@linaro.org>
8552 * server.c (handle_v_requests): Support s and S actions
8553 if target_supports_software_single_step return true.
8555 2016-07-21 Yao Qi <yao.qi@linaro.org>
8557 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8558 is resume_step, call maybe_hw_step.
8559 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8561 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8563 (proceed_one_lwp): If resume request is resume_step, install
8564 reinsert breakpoints and call maybe_hw_step.
8566 2016-07-21 Yao Qi <yao.qi@linaro.org>
8568 * linux-low.c (proceed_one_lwp): Declare.
8569 (linux_resume_one_thread): Remove local variable 'step'.
8570 Lift code enqueue signal. Call proceed_one_lwp instead of
8571 linux_resume_one_lwp.
8573 2016-07-21 Yao Qi <yao.qi@linaro.org>
8575 * linux-low.c (linux_resume_one_thread): Call
8576 enqueue_pending_signal.
8578 2016-07-21 Yao Qi <yao.qi@linaro.org>
8580 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8581 * inferiors.c (do_restore_current_thread_cleanup): New function.
8582 (make_cleanup_restore_current_thread): Likewise.
8583 * linux-low.c (install_software_single_step_breakpoints): Call
8584 make_cleanup_restore_current_thread. Switch current_thread to
8587 2016-07-21 Yao Qi <yao.qi@linaro.org>
8589 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8590 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8591 (clone_one_breakpoint): Likewise.
8592 (delete_reinsert_breakpoints): Change parameter to thread.
8594 (has_reinsert_breakpoints): Likewise.
8595 (uninsert_reinsert_breakpoints): Likewise.
8596 (reinsert_reinsert_breakpoints): Likewise.
8597 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8598 (delete_reinsert_breakpoints): Likewise.
8599 (reinsert_reinsert_breakpoints): Likewise.
8600 (uninsert_reinsert_breakpoints): Likewise.
8601 (has_reinsert_breakpoints): Likewise.
8603 2016-07-21 Yao Qi <yao.qi@linaro.org>
8605 * inferiors.c (get_thread_process): Make parameter const.
8606 * inferiors.h (get_thread_process): Update declaration.
8607 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8608 Add new parameters child_thread and parent_thread. Callers
8610 * mem-break.h (clone_all_breakpoints): Update declaration.
8612 2016-07-21 Yao Qi <yao.qi@linaro.org>
8614 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8615 <command_list, handler>: Remove.
8616 (struct gdb_breakpoint): New.
8617 (struct other_breakpoint): New.
8618 (struct reinsert_breakpoint): New.
8619 (is_gdb_breakpoint): New function.
8620 (any_persistent_commands): Update command_list if
8621 is_gdb_breakpoint returns true.
8622 (set_breakpoint): Create breakpoints according to their types.
8623 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8624 (set_gdb_breakpoint_1): Likewise.
8625 (set_gdb_breakpoint): Likewise.
8626 (clear_breakpoint_conditions): Change parameter type to
8627 'struct gdb_breakpoint *'.
8628 (clear_breakpoint_commands): Likewise.
8629 (clear_breakpoint_conditions_and_commands): Likewise.
8630 (add_condition_to_breakpoint): Likewise.
8631 (add_breakpoint_condition): Likewise.
8632 (add_commands_to_breakpoint): Likewise.
8633 (check_breakpoints): Check other_breakpoint.
8634 (clone_one_breakpoint): Clone breakpopint according to its type.
8635 * mem-break.h (struct gdb_breakpoint): Declare.
8636 (set_gdb_breakpoint): Update declaration.
8637 (clear_breakpoint_conditions_and_commands): Likewise.
8638 (add_breakpoint_condition): Likewise.
8639 (add_breakpoint_commands): Likewise.
8640 * server.c (process_point_options): Change parameter type to
8641 'struct gdb_breakpoint *'.
8643 2016-07-21 Yao Qi <yao.qi@linaro.org>
8645 * mem-break.c (set_breakpoint_at): Rename it to ...
8646 (set_breakpoint_type_at): ... it.
8647 (set_breakpoint_at): Call set_breakpoint_type_at.
8648 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8649 * mem-break.h (set_breakpoint_at): Update comments.
8651 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8653 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8655 (nios2_store_gregset): Likewise.
8657 2016-07-01 Pedro Alves <palves@redhat.com>
8658 Antoine Tremblay <antoine.tremblay@ericsson.com>
8660 * linux-low.c: Change interface to take the target lwp_info
8661 pointer directly and return void. Handle detaching from a zombie
8663 (linux_detach_lwp_callback): New function.
8664 (linux_detach): Detach from the leader thread after detaching from
8667 2016-06-28 Yao Qi <yao.qi@linaro.org>
8669 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8670 for variable new_offset.
8671 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8672 (aarch64_ftrace_insn_reloc_cb): Likewise.
8673 (aarch64_ftrace_insn_reloc_tb): Likewise.
8674 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8675 PRIx64 instead of PRIx32.
8677 2016-06-28 Yao Qi <yao.qi@linaro.org>
8679 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8680 (the_low_target): Install arm_get_syscall_trapinfo.
8682 2016-06-28 Yao Qi <yao.qi@linaro.org>
8684 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8686 (the_low_target): Install aarch64_get_syscall_trapinfo.
8688 2016-06-28 Yao Qi <yao.qi@linaro.org>
8690 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8692 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8693 Remove parameter sysno.
8694 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8697 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8699 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8700 (s390_emit_ne_goto): Likewise.
8701 (s390_emit_lt_goto): Likewise.
8702 (s390_emit_le_goto): Likewise.
8703 (s390_emit_gt_goto): Likewise.
8704 (s390_emit_ge_goto): Likewise.
8705 (s390x_emit_eq_goto): Likewise.
8706 (s390x_emit_ne_goto): Likewise.
8707 (s390x_emit_lt_goto): Likewise.
8708 (s390x_emit_le_goto): Likewise.
8709 (s390x_emit_gt_goto): Likewise.
8710 (s390x_emit_ge_goto): Likewise.
8711 (s390_emit_ops_impl): Mark variable static.
8712 (s390x_emit_ops): Likewise.
8714 2016-06-17 Yao Qi <yao.qi@linaro.org>
8716 * linux-low.c (handle_extended_wait): Call
8717 uninsert_reinsert_breakpoints for the parent process. Remove
8718 reinsert breakpoints from the child process. Reinsert them to
8719 the parent process when vfork is done.
8720 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8721 (reinsert_reinsert_breakpoints): New function.
8722 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8723 (reinsert_reinsert_breakpoints): Declare.
8725 2016-06-17 Yao Qi <yao.qi@linaro.org>
8727 * linux-low.c (handle_extended_wait): If the parent is doing
8728 step-over, remove the reinsert breakpoints from the forked child.
8730 2016-06-17 Yao Qi <yao.qi@linaro.org>
8732 * linux-low.c (unsuspend_all_lwps): Declare.
8733 (linux_low_filter_event): If thread exited, call finish_step_over.
8734 If step-over is finished, unsuspend other threads.
8736 2016-06-17 Yao Qi <yao.qi@linaro.org>
8738 * linux-low.c (linux_resume_one_lwp_throw): Assert
8739 has_reinsert_breakpoints returns false.
8740 * mem-break.c (delete_disabled_breakpoints): Assert
8741 bp type isn't reinsert_breakpoint.
8743 2016-06-17 Yao Qi <yao.qi@linaro.org>
8745 * linux-low.c (maybe_hw_step): New function.
8746 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8747 (finish_step_over): Switch current_thread to lwp temporarily,
8748 and assert has_reinsert_breakpoints returns true.
8749 (proceed_one_lwp): Call maybe_hw_step.
8750 * mem-break.c (has_reinsert_breakpoints): New function.
8751 * mem-break.h (has_reinsert_breakpoints): Declare.
8753 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8755 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8757 2016-05-17 Yao Qi <yao.qi@linaro.org>
8759 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8760 instead of find_inferior.
8762 2016-05-05 Yao Qi <yao.qi@linaro.org>
8764 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8765 Initialize res to zero.
8767 2016-05-05 Yao Qi <yao.qi@linaro.org>
8769 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8772 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8774 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8775 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8776 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8778 2016-04-28 Par Olsson <par.olsson@windriver.com>
8779 Simon Marchi <simon.marchi@ericsson.com>
8781 * tracepoint.c (write_inferior_int8): New function.
8782 (cmd_qtenable_disable): Write enable flag using
8783 write_inferior_int8.
8785 2016-04-25 Yao Qi <yao.qi@linaro.org>
8787 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8788 (need_step_over_p): Return zero if the LWP has pending signals
8789 can be delivered on software single step target.
8791 2016-04-25 Yao Qi <yao.qi@linaro.org>
8793 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8794 return instead of error.
8796 2016-04-22 Yao Qi <yao.qi@linaro.org>
8798 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8801 2016-04-22 Yao Qi <yao.qi@linaro.org>
8803 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8804 signal when stepping over breakpoint with software single
8807 2016-04-21 Pedro Alves <palves@redhat.com>
8809 * linux-s390-low.c (s390_collect_ptrace_register)
8810 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8812 (s390_check_regset): Use void * instead of gdb_byte *.
8814 2016-04-20 Pedro Alves <palves@redhat.com>
8816 * configure: Renegerate.
8818 2016-04-20 Yao Qi <yao.qi@linaro.org>
8820 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8821 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8823 (arm_store_gregset): Likewise.
8825 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8827 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8828 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8829 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8830 (amd64-avx-mpx-linux.c): New rules.
8831 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8832 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8833 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8834 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8835 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8836 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8837 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8838 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8839 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8840 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8841 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8842 * linux-x86-low.c (x86_linux_read_description): Add case for
8843 X86_XSTATE_AVX_MPX_MASK.
8844 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8845 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8846 init_registers_i386_avx_mpx_linux.
8847 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8848 (initialize_low_tracepoint): Call
8849 init_registers_i386_avx_mpx_linux.
8850 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8851 (initialize_low_tracepoint): Call
8852 init_registers_amd64_avx_mpx_linux.
8853 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8854 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8855 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8858 2016-04-18 Pedro Alves <palves@redhat.com>
8860 * configure: Regenerate.
8862 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8864 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8865 (aarch64_emit_sub): Likewise.
8867 2016-04-12 Pedro Alves <palves@redhat.com>
8869 * utils.c (prepare_to_throw_exception): Delete.
8871 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8873 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8875 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8877 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8879 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8881 * linux-aarch64-ipa.c: Add <elf.h> include.
8882 * linux-ppc-ipa.c: Add <elf.h> include.
8883 * linux-s390-ipa.c: Add <elf.h> include.
8885 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8887 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8888 (get_raw_reg_ptr): Likewise.
8889 (get_trace_state_variable_value_ptr): Likewise.
8890 (set_trace_state_variable_value_ptr): Likewise.
8891 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8894 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8895 Marcin Kościelnicki <koriakin@0x04.net>
8898 * linux-ppc-low.c (emit_insns): New function.
8899 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8900 (ppc_emit_prologue): New function.
8901 (ppc_emit_epilogue): New function.
8902 (ppc_emit_add): New function.
8903 (ppc_emit_sub): New function.
8904 (ppc_emit_mul): New function.
8905 (ppc_emit_lsh): New function.
8906 (ppc_emit_rsh_signed): New function.
8907 (ppc_emit_rsh_unsigned): New function.
8908 (ppc_emit_ext): New function.
8909 (ppc_emit_zero_ext): New function.
8910 (ppc_emit_log_not): New function.
8911 (ppc_emit_bit_and): New function.
8912 (ppc_emit_bit_or): New function.
8913 (ppc_emit_bit_xor): New function.
8914 (ppc_emit_bit_not): New function.
8915 (ppc_emit_equal): New function.
8916 (ppc_emit_less_signed): New function.
8917 (ppc_emit_less_unsigned): New function.
8918 (ppc_emit_ref): New function.
8919 (ppc_emit_const): New function.
8920 (ppc_emit_reg): New function.
8921 (ppc_emit_pop): New function.
8922 (ppc_emit_stack_flush): New function.
8923 (ppc_emit_swap): New function.
8924 (ppc_emit_stack_adjust): New function.
8925 (ppc_emit_call): New function.
8926 (ppc_emit_int_call_1): New function.
8927 (ppc_emit_void_call_2): New function.
8928 (ppc_emit_if_goto): New function.
8929 (ppc_emit_goto): New function.
8930 (ppc_emit_eq_goto): New function.
8931 (ppc_emit_ne_goto): New function.
8932 (ppc_emit_lt_goto): New function.
8933 (ppc_emit_le_goto): New function.
8934 (ppc_emit_gt_goto): New function.
8935 (ppc_emit_ge_goto): New function.
8936 (ppc_write_goto_address): New function.
8937 (ppc_emit_ops_impl): New static variable.
8938 (ppc64v1_emit_prologue): New function.
8939 (ppc64v2_emit_prologue): New function.
8940 (ppc64_emit_epilogue): New function.
8941 (ppc64_emit_add): New function.
8942 (ppc64_emit_sub): New function.
8943 (ppc64_emit_mul): New function.
8944 (ppc64_emit_lsh): New function.
8945 (ppc64_emit_rsh_signed): New function.
8946 (ppc64_emit_rsh_unsigned): New function.
8947 (ppc64_emit_ext): New function.
8948 (ppc64_emit_zero_ext): New function.
8949 (ppc64_emit_log_not): New function.
8950 (ppc64_emit_bit_and): New function.
8951 (ppc64_emit_bit_or): New function.
8952 (ppc64_emit_bit_xor): New function.
8953 (ppc64_emit_bit_not): New function.
8954 (ppc64_emit_equal): New function.
8955 (ppc64_emit_less_signed): New function.
8956 (ppc64_emit_less_unsigned): New function.
8957 (ppc64_emit_ref): New function.
8958 (ppc64_emit_const): New function.
8959 (ppc64v1_emit_reg): New function.
8960 (ppc64v2_emit_reg): New function.
8961 (ppc64_emit_pop): New function.
8962 (ppc64_emit_stack_flush): New function.
8963 (ppc64_emit_swap): New function.
8964 (ppc64v1_emit_call): New function.
8965 (ppc64v2_emit_call): New function.
8966 (ppc64v1_emit_int_call_1): New function.
8967 (ppc64v2_emit_int_call_1): New function.
8968 (ppc64v1_emit_void_call_2): New function.
8969 (ppc64v2_emit_void_call_2): New function.
8970 (ppc64_emit_if_goto): New function.
8971 (ppc64_emit_eq_goto): New function.
8972 (ppc64_emit_ne_goto): New function.
8973 (ppc64_emit_lt_goto): New function.
8974 (ppc64_emit_le_goto): New function.
8975 (ppc64_emit_gt_goto): New function.
8976 (ppc64_emit_ge_goto): New function.
8977 (ppc64v1_emit_ops_impl): New static variable.
8978 (ppc64v2_emit_ops_impl): New static variable.
8979 (ppc_emit_ops): New function.
8980 (linux_low_target): Wire in ppc_emit_ops.
8982 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8983 Marcin Kościelnicki <koriakin@0x04.net>
8986 * Makefile.in: Add powerpc-*-ipa.o
8987 * configure.srv: Add ipa_obj for powerpc*-linux.
8988 * linux-ppc-ipa.c: New file.
8989 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8991 (PPC_FIELD): New macro.
8992 (PPC_SEXT): New macro.
8993 (PPC_OP6): New macro.
8994 (PPC_BO): New macro.
8995 (PPC_LI): New macro.
8996 (PPC_BD): New macro.
8997 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8998 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8999 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
9000 (ppc_get_thread_area): New function.
9001 (is_elfv2_inferior): New function.
9002 (gen_ds_form): New function.
9003 (GEN_STD): New macro.
9004 (GEN_STDU): New macro.
9005 (GEN_LD): New macro.
9006 (GEN_LDU): New macro.
9007 (gen_d_form): New function.
9008 (GEN_ADDI): New macro.
9009 (GEN_ADDIS): New macro.
9010 (GEN_LI): New macro.
9011 (GEN_LIS): New macro.
9012 (GEN_ORI): New macro.
9013 (GEN_ORIS): New macro.
9014 (GEN_LWZ): New macro.
9015 (GEN_STW): New macro.
9016 (GEN_STWU): New macro.
9017 (gen_xfx_form): New function.
9018 (GEN_MFSPR): New macro.
9019 (GEN_MTSPR): New macro.
9020 (GEN_MFCR): New macro.
9021 (GEN_MTCR): New macro.
9022 (GEN_SYNC): New macro.
9023 (GEN_LWSYNC): New macro.
9024 (gen_x_form): New function.
9025 (GEN_OR): New macro.
9026 (GEN_MR): New macro.
9027 (GEN_LWARX): New macro.
9028 (GEN_STWCX): New macro.
9029 (GEN_CMPW): New macro.
9030 (gen_md_form): New function.
9031 (GEN_RLDICL): New macro.
9032 (GEN_RLDICR): New macro.
9033 (gen_i_form): New function.
9035 (GEN_BL): New macro.
9036 (gen_b_form): New function.
9037 (GEN_BNE): New macro.
9038 (GEN_LOAD): New macro.
9039 (GEN_STORE): New macro.
9040 (gen_limm): New function.
9041 (gen_atomic_xchg): New function.
9042 (gen_call): New function.
9043 (ppc_relocate_instruction): New function.
9044 (ppc_install_fast_tracepoint_jump_pad): New function.
9045 (ppc_get_min_fast_tracepoint_insn_len): New function.
9046 (ppc_get_ipa_tdesc_idx): New function.
9047 (the_low_target): Wire in the new functions.
9048 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
9050 * linux-ppc-tdesc.h: New file.
9052 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
9054 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
9055 (alloc_jump_pad_buffer): New function.
9056 * linux-amd64-ipa.c: Add <sys/mman.h> include.
9057 (alloc_jump_pad_buffer): New function.
9058 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
9059 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
9060 (alloc_jump_pad_buffer): New function.
9061 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
9062 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
9063 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
9064 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
9066 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
9068 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
9069 * linux-amd64-ipa.c: Likewise.
9070 * linux-i386-ipa.c: Likewise.
9071 * linux-s390-ipa.c: Likewise.
9072 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
9073 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
9074 set_trace_state_variable_value_ptr.
9075 (struct ipa_sym_addresses): Likewise.
9076 (symbol_list): Likewise.
9077 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
9078 accessing gdb_collect directly.
9079 (gdb_collect_ptr_type): New typedef.
9080 (get_raw_reg_ptr_type): New typedef.
9081 (get_trace_state_variable_value_ptr_type): New typedef.
9082 (set_trace_state_variable_value_ptr_type): New typedef.
9083 (gdb_collect_ptr): New global.
9084 (get_raw_reg_ptr): New global.
9085 (get_trace_state_variable_value_ptr): New global.
9086 (set_trace_state_variable_value_ptr): New global.
9087 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
9088 accessing get_raw_reg directly.
9089 (get_get_tsv_func_addr): Likewise for
9090 get_trace_state_variable_value_ptr.
9091 (get_set_tsv_func_addr): Likewise for
9092 set_trace_state_variable_value_ptr.
9093 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
9095 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
9097 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
9099 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
9101 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
9103 (relocate_instruction): Remove own_buf.
9104 * server.c (own_buf): Make global.
9105 (handle_v_requests): Make global.
9106 * server.h (own_buf): New declaration.
9107 (handle_v_requests): New prototype.
9109 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9112 * linux-s390-low.c (add_insns): New function.
9113 (s390_emit_prologue): New function.
9114 (s390_emit_epilogue): New function.
9115 (s390_emit_add): New function.
9116 (s390_emit_sub): New function.
9117 (s390_emit_mul): New function.
9118 (s390_emit_lsh): New function.
9119 (s390_emit_rsh_signed): New function.
9120 (s390_emit_rsh_unsigned): New function.
9121 (s390_emit_ext): New function.
9122 (s390_emit_log_not): New function.
9123 (s390_emit_bit_and): New function.
9124 (s390_emit_bit_or): New function.
9125 (s390_emit_bit_xor): New function.
9126 (s390_emit_bit_not): New function.
9127 (s390_emit_equal): New function.
9128 (s390_emit_less_signed): New function.
9129 (s390_emit_less_unsigned): New function.
9130 (s390_emit_ref): New function.
9131 (s390_emit_if_goto): New function.
9132 (s390_emit_goto): New function.
9133 (s390_write_goto_address): New function.
9134 (s390_emit_litpool): New function.
9135 (s390_emit_const): New function.
9136 (s390_emit_call): New function.
9137 (s390_emit_reg): New function.
9138 (s390_emit_pop): New function.
9139 (s390_emit_stack_flush): New function.
9140 (s390_emit_zero_ext): New function.
9141 (s390_emit_swap): New function.
9142 (s390_emit_stack_adjust): New function.
9143 (s390_emit_set_r2): New function.
9144 (s390_emit_int_call_1): New function.
9145 (s390_emit_void_call_2): New function.
9146 (s390_emit_eq_goto): New function.
9147 (s390_emit_ne_goto): New function.
9148 (s390_emit_lt_goto): New function.
9149 (s390_emit_le_goto): New function.
9150 (s390_emit_gt_goto): New function.
9151 (s390_emit_ge_goto): New function.
9152 (s390x_emit_prologue): New function.
9153 (s390x_emit_epilogue): New function.
9154 (s390x_emit_add): New function.
9155 (s390x_emit_sub): New function.
9156 (s390x_emit_mul): New function.
9157 (s390x_emit_lsh): New function.
9158 (s390x_emit_rsh_signed): New function.
9159 (s390x_emit_rsh_unsigned): New function.
9160 (s390x_emit_ext): New function.
9161 (s390x_emit_log_not): New function.
9162 (s390x_emit_bit_and): New function.
9163 (s390x_emit_bit_or): New function.
9164 (s390x_emit_bit_xor): New function.
9165 (s390x_emit_bit_not): New function.
9166 (s390x_emit_equal): New function.
9167 (s390x_emit_less_signed): New function.
9168 (s390x_emit_less_unsigned): New function.
9169 (s390x_emit_ref): New function.
9170 (s390x_emit_if_goto): New function.
9171 (s390x_emit_const): New function.
9172 (s390x_emit_call): New function.
9173 (s390x_emit_reg): New function.
9174 (s390x_emit_pop): New function.
9175 (s390x_emit_stack_flush): New function.
9176 (s390x_emit_zero_ext): New function.
9177 (s390x_emit_swap): New function.
9178 (s390x_emit_stack_adjust): New function.
9179 (s390x_emit_int_call_1): New function.
9180 (s390x_emit_void_call_2): New function.
9181 (s390x_emit_eq_goto): New function.
9182 (s390x_emit_ne_goto): New function.
9183 (s390x_emit_lt_goto): New function.
9184 (s390x_emit_le_goto): New function.
9185 (s390x_emit_gt_goto): New function.
9186 (s390x_emit_ge_goto): New function.
9187 (s390_emit_ops): New function.
9188 (struct linux_target_ops): Fill in emit_ops hook.
9190 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9193 * Makefile.in: Add s390 IPA files.
9194 * configure.srv: Build IPA for s390.
9195 * linux-s390-ipa.c: New file.
9196 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
9197 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
9198 (tdesc_s390_linux32): Likewise.
9199 (init_registers_s390_linux32v1): Likewise.
9200 (tdesc_s390_linux32v1): Likewise.
9201 (init_registers_s390_linux32v2): Likewise.
9202 (tdesc_s390_linux32v2): Likewise.
9203 (init_registers_s390_linux64): Likewise.
9204 (tdesc_s390_linux64): Likewise.
9205 (init_registers_s390_linux64v1): Likewise.
9206 (tdesc_s390_linux64v1): Likewise.
9207 (init_registers_s390_linux64v2): Likewise.
9208 (tdesc_s390_linux64v2): Likewise.
9209 (init_registers_s390_te_linux64): Likewise.
9210 (tdesc_s390_te_linux64): Likewise.
9211 (init_registers_s390_vx_linux64): Likewise.
9212 (tdesc_s390_vx_linux64): Likewise.
9213 (init_registers_s390_tevx_linux64): Likewise.
9214 (tdesc_s390_tevx_linux64): Likewise.
9215 (init_registers_s390x_linux64): Likewise.
9216 (tdesc_s390x_linux64): Likewise.
9217 (init_registers_s390x_linux64v1): Likewise.
9218 (tdesc_s390x_linux64v1): Likewise.
9219 (init_registers_s390x_linux64v2): Likewise.
9220 (tdesc_s390x_linux64v2): Likewise.
9221 (init_registers_s390x_te_linux64): Likewise.
9222 (tdesc_s390x_te_linux64): Likewise.
9223 (init_registers_s390x_vx_linux64): Likewise.
9224 (tdesc_s390x_vx_linux64): Likewise.
9225 (init_registers_s390x_tevx_linux64): Likewise.
9226 (tdesc_s390x_tevx_linux64): Likewise.
9227 (have_hwcap_s390_vx): New static variable.
9228 (s390_arch_setup): Fill have_hwcap_s390_vx.
9229 (s390_get_thread_area): New function.
9230 (s390_ft_entry_gpr_esa): New const.
9231 (s390_ft_entry_gpr_zarch): New const.
9232 (s390_ft_entry_misc): New const.
9233 (s390_ft_entry_fr): New const.
9234 (s390_ft_entry_vr): New const.
9235 (s390_ft_main_31): New const.
9236 (s390_ft_main_64): New const.
9237 (s390_ft_exit_fr): New const.
9238 (s390_ft_exit_vr): New const.
9239 (s390_ft_exit_misc): New const.
9240 (s390_ft_exit_gpr_esa): New const.
9241 (s390_ft_exit_gpr_zarch): New const.
9242 (append_insns): New function.
9243 (s390_relocate_instruction): New function.
9244 (s390_install_fast_tracepoint_jump_pad): New function.
9245 (s390_get_min_fast_tracepoint_insn_len): New function.
9246 (s390_get_ipa_tdesc_idx): New function.
9247 (struct linux_target_ops): Wire in the above functions.
9248 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
9249 * linux-s390-tdesc.h: New file.
9251 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9253 * linux-s390-low.c (s390_supports_tracepoints): New function.
9254 (struct linux_target_ops): Fill supports_tracepoints hook.
9256 2016-03-18 Yao Qi <yao.qi@linaro.org>
9258 * linux-low.c (lwp_signal_can_be_delivered): New function.
9259 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
9261 2016-03-18 Yao Qi <yao.qi@linaro.org>
9263 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
9264 0 if signal is enqueued. Remove 'signal' from one debugging
9265 message. Move one debugging message to some lines below.
9266 Remove code setting 'signal' to 0.
9268 2016-03-18 Yao Qi <yao.qi@linaro.org>
9270 * linux-low.c (linux_low_filter_event): Remove redundant
9271 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
9273 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
9275 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
9276 (struct linux_target_ops): Wire in the above.
9278 2016-03-03 Yao Qi <yao.qi@linaro.org>
9280 * linux-low.c: Update comments to start_step_over.
9282 2016-03-03 Yao Qi <yao.qi@linaro.org>
9285 * linux-low.c (handle_extended_wait): Set child suspended
9286 if event_lwp->bp_reinsert isn't zero.
9288 2016-03-02 Yao Qi <yao.qi@linaro.org>
9290 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
9291 enqueue_pending_signal.
9293 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
9295 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
9298 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9300 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
9301 (s390_regmap_3264) [!__s390x__]: New global.
9302 (s390_collect_ptrace_register): Skip map entries containing -1.
9303 (s390_supply_ptrace_register): Ditto.
9304 (s390_fill_gprs_high): New function.
9305 (s390_store_gprs_high): New function.
9306 (s390_regsets): Add NT_S390_HIGH_GPRS.
9307 (s390_get_hwcap): Enable on 31-bit.
9308 (have_hwcap_s390_high_gprs): Enable on 31-bit.
9309 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
9310 Detect NT_S390_HIGH_GPRS.
9311 (s390_usrregs_info_3264): Enable on 31-bit.
9312 (s390_regs_info): Enable regs_info_3264 on 31-bit.
9313 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
9315 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9318 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
9319 * configure.srv: Ditto.
9320 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
9321 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
9322 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
9323 (init_registers_amd64_linux): Remove prototype.
9324 (tdesc_amd64_linux): Remove declaration.
9325 (get_ipa_tdesc): New function.
9326 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9327 initialize remaining tdescs.
9328 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
9329 (init_registers_i386_linux): Remove prototype.
9330 (tdesc_i386_linux): Remove declaration.
9331 (get_ipa_tdesc): New function.
9332 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9333 initialize remaining tdescs.
9334 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
9335 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
9336 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
9337 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
9338 (x86_get_ipa_tdesc_idx): New function.
9339 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
9340 * linux-x86-tdesc.h: New file.
9341 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
9342 (target_get_ipa_tdesc_idx): New macro.
9343 * tracepoint.c (ipa_tdesc_idx): New macro.
9344 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
9345 (symbol_list): Add ipa_tdesc_idx.
9346 (cmd_qtstart): Write ipa_tdesc_idx in the target.
9347 (ipa_tdesc): Remove.
9348 (ipa_tdesc_idx): New variable.
9349 (get_context_regcache): Use get_ipa_tdesc.
9350 (gdb_collect): Ditto.
9352 * tracepoint.h (get_ipa_tdesc): New prototype.
9353 (ipa_tdesc): Remove.
9355 2016-02-24 Pedro Alves <palves@redhat.com>
9357 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
9358 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
9359 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
9360 Factor out common code between the USE_SIGTRAP_SIGINFO and
9361 !USE_SIGTRAP_SIGINFO blocks.
9362 (linux_low_filter_event): Call save_stop_reason instead of
9363 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
9365 (linux_wait_1): Update comments.
9367 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
9369 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
9370 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
9371 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
9372 ppc_insert_point, ppc_remove_point.
9374 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
9376 * linux-s390-low.c (s390_supports_z_point_type): New function.
9377 (struct linux_target_ops): Wire s390_supports_z_point_type in.
9379 2016-02-16 Yao Qi <yao.qi@linaro.org>
9381 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
9382 PC. Get pc from regcache_read_pc.
9384 2016-02-12 Yao Qi <yao.qi@linaro.org>
9386 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
9387 or linux_get_pc_32bit.
9388 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
9390 2016-02-12 Yao Qi <yao.qi@linaro.org>
9392 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
9393 arm_linux_get_next_pcs_fixup.
9395 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
9397 * tracepoint.c (x_tracepoint_action_download): Change
9398 write_inferior_data_ptr to write_inferior_data_pointer.
9399 (cmd_qtstart): Likewise.
9400 (write_inferior_data_ptr): Remove.
9401 (download_agent_expr): Change write_inferior_data_ptr to
9402 write_inferior_data_pointer.
9403 (download_tracepoint_1): Likewise.
9404 (download_tracepoint): Likewise.
9405 (download_trace_state_variables): Likewise.
9407 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
9408 Marcin Kościelnicki <koriakin@0x04.net>
9410 * tracepoint.c (struct tracepoint_action_ops): Remove.
9411 (struct tracepoint_action): Remove ops.
9412 (m_tracepoint_action_download, r_tracepoint_action_download)
9413 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
9414 size and offset accordingly.
9415 (m_tracepoint_action_ops, r_tracepoint_action_ops)
9416 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
9417 (tracepoint_action_send, tracepoint_action_download): New functions.
9418 Helpers for trace action handlers.
9419 (add_tracepoint_action): Remove setup actions ops.
9420 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
9422 2016-02-10 Yao Qi <yao.qi@linaro.org>
9424 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
9426 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9428 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
9430 * configure: Regenerate.
9432 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9434 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
9435 void * to gdb_byte *.
9436 * linux-low.c (siginfo_fixup): Likewise.
9437 (linux_xfer_siginfo): Likewise.
9438 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
9440 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
9442 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9444 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
9446 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
9448 * linux-x86-low.c [__x86_64__]: Include
9449 "nat/amd64-linux-siginfo.h".
9450 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
9451 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
9452 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
9453 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
9454 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
9455 (cpt_si_fd, si_timerid, si_overrun): Move from
9456 nat/amd64-linux-siginfo.c.
9457 * Makefile.in (amd64-linux-siginfo.o:): New rule.
9459 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9461 * server.c (skip_to_semicolon): Remove.
9462 (process_point_options): Use strchrnul instead of
9465 2016-01-26 Yao Qi <yao.qi@linaro.org>
9467 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
9468 * linux-low.c (install_software_single_step_breakpoints): Don't
9469 call regcache_read_pc.
9470 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
9473 2016-01-26 Yao Qi <yao.qi@linaro.org>
9475 * linux-low.c (install_software_single_step_breakpoints): Call
9476 regcache_read_pc instead of get_pc.
9478 2016-01-26 Yao Qi <yao.qi@linaro.org>
9480 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9481 (unblock_async_io): Rename to ...
9482 (block_unblock_async_io): ... it. New function.
9483 (enable_async_io): Don't install SIGIO handler. Unblock it
9485 (disable_async_io): Don't ignore SIGIO. Block it instead.
9486 (initialize_async_io): Install SIGIO handler. Don't call
9489 2016-01-26 Yao Qi <yao.qi@linaro.org>
9491 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9492 first character is '\003', call *the_target->request_interrupt.
9494 2016-01-25 Yao Qi <yao.qi@linaro.org>
9496 * remote-utils.c (new_thread_notify): Remove.
9497 (dead_thread_notify): Likewise.
9498 * remote-utils.h (new_thread_notify): Remove declaration.
9499 (dead_thread_notify): Likewise.
9501 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9503 * gdb.trace/pending.exp: Fix expected message on continue.
9505 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9507 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9508 it works properly on big-endian machines where sizeof (CORE_ADDR)
9511 2016-01-21 Pedro Alves <palves@redhat.com>
9513 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9514 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9515 * configure: Regenerate.
9517 2016-01-21 Yao Qi <yao.qi@linaro.org>
9519 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9520 is_thumb and set it according to CPSR saved on the stack.
9521 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9522 arm_sigreturn_next_pc.
9524 2016-01-18 Yao Qi <yao.qi@linaro.org>
9526 * linux-low.c (linux_set_pc_64bit): New function.
9527 (linux_get_pc_64bit): New function.
9528 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9530 * linux-sparc-low.c (debug_threads): Remove declaration.
9531 (sparc_get_pc): Remove.
9532 (the_low_target): Use linux_get_pc_64bit instead of
9534 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9535 (the_low_target): Use linux_get_pc_64bit and
9538 2016-01-18 Yao Qi <yao.qi@linaro.org>
9540 * linux-arm-low.c (debug_threads): Remove declaration.
9541 (arm_get_pc, arm_set_pc): Remove.
9542 (the_low_target): Use linux_get_pc_32bit and
9544 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9545 (the_low_target): Use linux_get_pc_32bit and
9547 * linux-cris-low.c (debug_threads): Remove declaration.
9548 (cris_get_pc, cris_set_pc,): Remove.
9549 (the_low_target): Use linux_get_pc_32bit and
9551 * linux-crisv32-low.c (debug_threads): Remove declaration.
9552 (cris_get_pc, cris_set_pc): Remove.
9553 (the_low_target): Use linux_get_pc_32bit and
9555 * linux-low.c: Include inttypes.h.
9556 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9557 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9558 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9559 (the_low_target): Use linux_get_pc_32bit and
9561 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9562 (the_low_target): Use linux_get_pc_32bit and
9564 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9565 (the_low_target): Use linux_get_pc_32bit and
9567 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9568 (the_low_target): Use linux_get_pc_32bit and
9570 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9571 (the_low_target): Use linux_get_pc_32bit and
9574 2016-01-18 Gary Benson <gbenson@redhat.com>
9576 * configure.ac (AC_FUNC_FORK): New check.
9577 * config.in: Regenerate.
9578 * configure: Likewise.
9580 2016-01-14 Yao Qi <yao.qi@linaro.org>
9582 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9583 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9584 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9585 arm_get_next_pcs_ctor.
9587 2016-01-12 Josh Stone <jistone@redhat.com>
9588 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9590 * inferiors.h: Include "gdb_vecs.h".
9591 (struct process_info): Add syscalls_to_catch.
9592 * inferiors.c (remove_process): Free syscalls_to_catch.
9593 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9594 syscall_return stops.
9595 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9596 * server.c (handle_general_set): Handle QCatchSyscalls.
9597 (handle_query): Report support for QCatchSyscalls.
9598 * target.h (struct target_ops): Add supports_catch_syscall.
9599 (target_supports_catch_syscall): New macro.
9600 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9601 (struct lwp_info): Add syscall_state.
9602 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9603 Maintain syscall_state and syscalls_to_catch across exec.
9604 (get_syscall_trapinfo): New function, proxy to the_low_target.
9605 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9606 (linux_low_filter_event): Toggle syscall_state entry/return for
9607 syscall traps, and set it ignored for all others.
9608 (gdb_catching_syscalls_p): New function.
9609 (gdb_catch_this_syscall_p): New function.
9610 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9611 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9612 (linux_supports_catch_syscall): New function.
9613 (linux_target_ops): Install it.
9614 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9615 (the_low_target): Install it.
9617 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9619 * acinclude.m4: Include new ../warning.m4 file.
9620 * configure: Regenerated.
9621 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9623 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9625 * ax.c (is_goto_target): Mark static.
9626 * linux-low.c (register_addr): Likewise.
9627 (linux_fetch_registers, linux_store_registers): Likewise.
9628 * mem-break.c (any_persistent_commands): Fix old prototype.
9629 (add_commands_to_breakpoint): Mark static.
9630 * regcache.c (find_register_by_name): Delete unused func.
9631 * remote-utils.c (hex_or_minus_one): Mark static.
9632 * server.c (monitor_show_help): Mark static.
9633 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9634 handle_v_requests): Likewise.
9636 2016-01-12 Pedro Alves <palves@redhat.com>
9638 Remove use of the registered trademark symbol throughout.
9640 2016-01-08 Yao Qi <yao.qi@linaro.org>
9642 * remote-utils.c (getpkt): If c is '\003', call target hook
9645 2016-01-06 Yao Qi <yao.qi@linaro.org>
9647 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9648 linux-aarch32-low.c.
9649 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9650 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9651 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9652 (thumb2_breakpoint): Declare.
9653 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9654 linux-aarch32-low.h.
9655 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9656 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9657 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9659 2016-01-01 Joel Brobecker <brobecker@adacore.com>
9661 * gdbreplay.c (gdbreplay_version): Change copyright year in
9663 * server.c (gdbserver_version): Likewise.
9665 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9667 * server.c (crc32_table): Delete.
9668 (crc32): Use libiberty's xcrc32 function.
9670 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9672 * lynx-low.c (lynx_delete_thread_callback): New function.
9673 (lynx_mourn): Properly delete our process and all of its
9674 threads. Remove call to clear_inferiors.
9676 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9678 * target.c (thread_search_callback): Add check that
9679 the thread_stopped target callback is not NULL before
9682 2015-12-21 Yao Qi <yao.qi@linaro.org>
9684 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9687 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9689 * server.c (handle_query): Call target_supports_software_single_step.
9691 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9693 * linux-low.c (single_step): New function.
9694 (linux_resume_one_lwp_throw): Call single_step.
9695 (start_step_over): Likewise.
9697 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9699 * Makefile.in (SFILES): Append arch/arm-linux.c,
9700 arch/arm-get-next-pcs.c.
9701 (arm-linux.o): New rule.
9702 (arm-get-next-pcs.o): New rule.
9703 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9705 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9706 to linux-aarch32-low.c.
9707 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9708 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9709 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9710 (thumb2_breakpoint_len): Likewise.
9711 (arm_is_thumb_mode): Make non-static.
9712 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9713 from linux-aarch32-low.c.
9714 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9715 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9716 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9717 (thumb2_breakpoint_len): Likewise.
9718 (arm_is_thumb_mode): New declaration.
9719 * linux-arm-low.c: Include arch/arm-linux.h
9720 aarch/arm-get-next-pcs.h, sys/syscall.h.
9721 (get_next_pcs_ops): New struct.
9722 (get_next_pcs_addr_bits_remove): New function.
9723 (get_next_pcs_is_thumb): New function.
9724 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9725 (arm_sigreturn_next_pc): Likewise.
9726 (get_next_pcs_syscall_next_pc): Likewise.
9727 (arm_gdbserver_get_next_pcs): Likewise.
9728 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9730 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9731 * server.h: Include gdb_vecs.h.
9733 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9735 * Makefile.in (SFILES): Append common/common-regcache.c.
9736 (OBS): Append common-regcache.o.
9737 (common-regcache.o): New rule.
9738 * regcache.c (init_register_cache): Initialize cache to
9740 (regcache_raw_read_unsigned): New function.
9741 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9742 register_status enum.
9744 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9746 * linux-aarch64-low.c (the_low_targets): Rename
9747 breakpoint_reinsert_addr to get_next_pcs.
9748 * linux-arm-low.c (the_low_targets): Likewise.
9749 * linux-bfin-low.c (the_low_targets): Likewise.
9750 * linux-cris-low.c (the_low_targets): Likewise.
9751 * linux-crisv32-low.c (the_low_targets): Likewise.
9752 * linux-low.c (can_software_single_step): Likewise.
9753 (install_software_single_step_breakpoints): New function.
9754 (start_step_over): Use install_software_single_step_breakpoints.
9755 * linux-low.h: New CORE_ADDR vector.
9756 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9758 * linux-mips-low.c (the_low_targets): Likewise.
9759 * linux-nios2-low.c (the_low_targets): Likewise.
9760 * linux-sparc-low.c (the_low_targets): Likewise.
9762 2015-12-17 Pedro Alves <palves@redhat.com>
9764 * linux-low.c (linux_kill_one_lwp): Remove references to
9766 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9768 (linux_init_signals): Delete.
9769 (initialize_low): Adjust.
9770 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9772 2015-12-16 Pedro Alves <palves@redhat.com>
9774 * configure.ac (compiler warning flags): When testing a
9775 -Wno-foo option, check whether -Wfoo works instead.
9776 * configure: Regenerate.
9778 2015-12-11 Don Breazeal <donb@codesourcery.com>
9780 * server.c (process_serial_event): Don't exit from gdbserver
9781 in remote mode if there are still active inferiors.
9783 2015-12-11 Yao Qi <yao.qi@linaro.org>
9785 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9786 arm_breakpoint_at if the process is 32-bit.
9788 2015-12-11 Yao Qi <yao.qi@linaro.org>
9790 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9793 2015-12-07 Yao Qi <yao.qi@linaro.org>
9795 * configure.srv: Append arm.o to srv_tgtobj for
9796 aarch64*-*-linux* target.
9797 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9798 from linux-arm-low.c.
9799 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9800 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9801 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9802 (thumb2_breakpoint_len): Likewise.
9803 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9804 (arm_breakpoint_kinds): Likewise.
9805 (arm_breakpoint_kind_from_pc): Likewise.
9806 (arm_sw_breakpoint_from_kind): Likewise.
9807 (arm_breakpoint_kind_from_current_state): Likewise.
9808 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9809 (arm_sw_breakpoint_from_kind): Declare.
9810 (arm_breakpoint_kind_from_current_state): Declare.
9811 (arm_breakpoint_at): Declare.
9812 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9813 arm_sw_breakpoint_from_kind if process is 32-bit.
9814 (aarch64_breakpoint_kind_from_pc): New function.
9815 (aarch64_breakpoint_kind_from_current_state): New function.
9816 (the_low_target): Initialize fields breakpoint_kind_from_pc
9817 and breakpoint_kind_from_current_state.
9818 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9819 linux-aarch32-low.c.
9820 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9821 (arm_breakpoint, arm_breakpoint_len): Likewise.
9822 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9823 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9824 (arm_is_thumb_mode): Likewise.
9825 (arm_breakpoint_at): Likewise.
9826 (arm_breakpoint_kind_from_pc): Likewise.
9827 (arm_sw_breakpoint_from_kind): Likewise.
9828 (arm_breakpoint_kind_from_current_state): Likewise.
9831 2015-08-04 Yao Qi <yao.qi@linaro.org>
9833 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9834 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9835 * server.c (extended_protocol): Remove "static".
9836 * server.h (extended_protocol): Declare it.
9838 2015-12-04 Josh Stone <jistone@redhat.com>
9840 * target.h (struct target_ops) <arch_setup>: Rename to ...
9841 (struct target_ops) <post_create_inferior>: ... this.
9842 (target_arch_setup): Rename to ...
9843 (target_post_create_inferior): ... this, calling post_create_inferior.
9844 * server.c (start_inferior): Update target_arch_setup calls to
9845 target_post_create_inferior.
9846 * linux-low.c (linux_low_ptrace_options): Forward declare.
9847 (linux_arch_setup): Update its comment for general use.
9848 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9849 (struct linux_target_ops): Use linux_post_create_inferior.
9850 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9851 to post_create_inferior.
9852 * nto-low.c (struct nto_target_ops): Likewise.
9853 * spu-low.c (struct spu_target_ops): Likewise.
9854 * win32-low.c (struct win32_target_ops): Likewise.
9856 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9858 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9860 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9862 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9863 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9864 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9865 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9866 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9867 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9868 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9869 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9870 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9871 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9872 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9873 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9875 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9877 * linux-low.c (linux_look_up_symbols): Don't call
9878 linux_supports_traceclone.
9879 * linux-low.h (thread_db_init): Remove use_events argument.
9880 * thread-db.c (thread_db_use_event): Remove global variable.
9881 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9882 (struct thread_db) <td_create_bp>: Remove field.
9883 (thread_db_create_event): Remove function.
9884 (thread_db_enable_reporting): Likewise.
9885 (find_one_thread): Don't check for thread_db_use_events.
9886 (attach_thread): Likewise.
9887 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9888 (try_thread_db_load_1): Don't check for thread_db_use_events.
9889 (thread_db_init): Remove use_events argument and thread events
9891 (remove_thread_event_breakpoints): Remove function.
9892 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9894 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9896 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9898 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9899 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9900 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9901 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9902 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9904 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9906 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9907 * linux-low.c (can_hardware_single_step): Use
9908 supports_hardware_single_step.
9909 (can_software_single_step): New function.
9910 (start_step_over): Call can_software_single_step.
9911 (linux_supports_hardware_single_step): New function.
9912 (struct target_ops) <supports_software_single_step>: Initialize.
9913 * linux-low.h (struct linux_target_ops)
9914 <supports_hardware_single_step>: Initialize.
9915 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9916 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9917 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9918 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9919 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9920 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9921 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9922 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9923 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9924 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9926 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9927 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9929 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9930 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9931 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9933 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9934 * target.h (struct target_ops): <supports_software_single_step>:
9936 (target_supports_software_single_step): New macro.
9938 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9940 * linux-low.c (linux_wait_1): Fix pc advance condition.
9941 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9942 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9944 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9946 * linux-arm-low.c (arm_is_thumb_mode): New function.
9947 (arm_breakpoint_at): Use arm_is_thumb_mode.
9948 (arm_breakpoint_kind_from_current_state): New function.
9949 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9951 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9952 (linux_breakpoint_kind_from_current_state): New function.
9953 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9954 * linux-low.h (struct linux_target_ops)
9955 <breakpoint_kind_from_current_state>: New field.
9956 * target.h (struct target_ops): Likewise.
9957 (target_breakpoint_kind_from_current_state): New macro.
9959 2015-11-30 Pedro Alves <palves@redhat.com>
9961 * linux-low.c (linux_resume): Wake up the event loop before
9964 2015-11-30 Pedro Alves <palves@redhat.com>
9966 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9968 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9970 * target.c (struct thread_search): New structure.
9971 (thread_search_callback): New function.
9972 (prev_general_thread): New global.
9973 (prepare_to_access_memory, done_accessing_memory): New functions.
9974 * target.h (prepare_to_access_memory, done_accessing_memory):
9975 Replace macros with function declarations.
9977 2015-11-30 Pedro Alves <palves@redhat.com>
9980 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9981 report TARGET_WAITKIND_NO_RESUMED.
9982 * remote-utils.c (prepare_resume_reply): Handle
9983 TARGET_WAITKIND_NO_RESUMED.
9984 * server.c (report_no_resumed): New global.
9985 (handle_query) <qSupported>: Handle "no-resumed+". Report
9986 "no-resumed+" support.
9987 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9988 return error if the client doesn't support no-resumed events.
9989 (push_stop_notification): New function.
9990 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9991 events if the client supports them.
9993 2015-11-30 Pedro Alves <palves@redhat.com>
9995 * linux-low.c (thread_still_has_status_pending_p): Don't check
9997 (lwp_resumed): New function.
9998 (status_pending_p_callback): Return early if the LWP is not
9999 supposed to be resumed.
10001 2015-11-30 Pedro Alves <palves@redhat.com>
10003 * linux-low.c (handle_extended_wait): Assert that the LWP's
10004 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
10005 thread create events, leave the new child's status pending.
10006 (linux_low_filter_event): If GDB wants to hear about thread exit
10007 events, leave the LWP marked dead and don't delete it.
10008 (linux_wait_for_event_filtered): Don't check for thread exit.
10009 (filter_exit_event): New function.
10010 (linux_wait_1): Use it, when returning an exit event.
10011 (linux_resume_one_lwp_throw): Assert that the LWP's
10012 waitstatus is TARGET_WAITKIND_IGNORE.
10013 * remote-utils.c (prepare_resume_reply): Handle
10014 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
10015 * server.c (report_thread_events): New global.
10016 (handle_general_set): Handle QThreadEvents.
10017 (handle_query) <qSupported>: Handle and report QThreadEvents+;
10018 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
10019 TARGET_WAITKIND_THREAD_EXITED.
10020 * server.h (report_thread_events): Declare.
10022 2015-11-30 Pedro Alves <palves@redhat.com>
10024 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
10025 the thread's last_resume_kind was resume_stop.
10027 2015-11-30 Pedro Alves <palves@redhat.com>
10029 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
10032 2015-11-30 Pedro Alves <palves@redhat.com>
10034 * server.c (handle_v_requests): Handle vCtrlC.
10036 2015-11-30 Pedro Alves <palves@redhat.com>
10038 * gdbthread.h (find_any_thread_of_pid): Declare.
10039 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
10041 * server.c (handle_query): If current_thread is NULL, look for
10042 another thread of the selected process.
10044 2015-11-26 Daniel Colascione <dancol@dancol.org>
10045 Simon Marchi <simon.marchi@ericsson.com>
10047 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
10048 * server.c (handle_qxfer_threads_worker): Refactor to include thread
10050 * target.h (struct target_ops) <thread_name>: New field.
10051 (target_thread_name): New macro.
10053 2015-11-23 Joel Brobecker <brobecker@adacore.com>
10055 * regcache.h (regcache_invalidate_pid): Add declaration.
10056 * regcache.c (regcache_invalidate_pid): New function, extracted
10057 from regcache_invalidate.
10058 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
10059 Add trivial documentation comment.
10060 * lynx-low.c: Use regcache_invalidate_pid instead of
10061 regcache_invalidate.
10063 2015-11-23 Joel Brobecker <brobecker@adacore.com>
10065 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
10066 and Elf64_auxv_t if the target is Android.
10068 2015-11-22 Doug Evans <xdje42@gmail.com>
10070 * target.h: #include <sys/types.h>.
10072 2015-11-19 Pedro Alves <palves@redhat.com>
10074 * linux-low.c (linux_process_qsupported): Change prototype.
10076 * linux-low.h (struct linux_target_ops) <process_qsupported>:
10078 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
10079 and adjust to loop over all features.
10080 * server.c (handle_query) <qSupported>: Adjust to call
10081 target_process_qsupported once, passing it a vector of unprocessed
10083 * target.h (struct target_ops) <process_qsupported>: Change
10085 (target_process_qsupported): Adjust.
10087 2015-11-19 Pedro Alves <palves@redhat.com>
10089 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
10091 * configure: Regenerate.
10093 2015-11-19 Pedro Alves <palves@redhat.com>
10095 * configure: Regenerate.
10097 2015-11-19 Yao Qi <yao.qi@linaro.org>
10099 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
10102 2015-11-19 Yao Qi <yao.qi@linaro.org>
10104 * linux-aarch64-low.c (enum aarch64_operand_type): New.
10105 (struct aarch64_operand): Move enum out.
10107 2015-11-19 Yao Qi <yao.qi@linaro.org>
10109 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
10110 struct user_fpsimd_state *.
10111 (aarch64_store_fpregset): Likewise.
10113 2015-11-19 Yao Qi <yao.qi@linaro.org>
10115 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
10116 struct user_pt_regs *.
10117 (aarch64_store_gregset): Likewise.
10119 2015-11-18 Pedro Alves <palves@redhat.com>
10121 * Makefile.in (all_object_files): Add $IPA_OBJS.
10123 2015-11-17 Pedro Alves <palves@redhat.com>
10125 * win32-low.c (win32_resume): Use gdb_signal_from_host,
10126 GDB_SIGNAL_0 and gdb_signal_to_string.
10128 2015-11-17 Pedro Alves <palves@redhat.com>
10130 * win32-low.c (handle_output_debug_string): Remove parameter.
10131 (win32_kill): Remove our_status local and adjust call to
10132 handle_output_debug_string.
10133 (get_child_debug_event): Adjust call to
10134 handle_output_debug_string.
10136 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10138 * linux-mips-low.c (mips_fill_gregset): Add cast.
10139 (mips_store_gregset): Likewise.
10140 (mips_fill_fpregset): Likewise.
10141 (mips_store_fpregset): Likewise.
10143 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10145 * linux-mips-low.c (mips_add_watchpoint): Rename private to
10148 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10150 * linux-mips-low.c (mips_linux_new_thread): Change type of
10151 watch_type to enum target_hw_bp_type.
10153 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10155 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
10156 Change return type to arm_hwbp_type.
10158 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10160 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
10161 (arm_store_gregset): Likewise.
10162 * linux-arm-low.c (arm_get_hwcap): Likewise.
10163 (arm_read_description): Likewise.
10165 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10167 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
10169 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10171 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
10172 (ppc_fill_vsxregset): Likewise.
10173 (ppc_store_vsxregset): Likewise.
10174 (ppc_fill_vrregset): Likewise.
10175 (ppc_store_vrregset): Likewise.
10176 (ppc_fill_evrregset): Likewise.
10177 (ppc_store_evrregset): Likewise.
10179 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10181 * linux-ppc-low.c (ppc_usrregs_info): Remove
10182 forward-declaration.
10183 (ppc_arch_setup): Move lower in file.
10185 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
10187 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
10188 (ps_pdwrite): Likewise.
10190 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
10192 * linux-arm-low.c (arm_new_thread): Move pointer dereference
10193 to after assert checks.
10195 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
10197 * proc-service.c (ps_pdread): Add/adjust casts.
10198 (ps_pdwrite): Add/adjust casts.
10200 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10202 * server.c (handle_search_memory_1): Cast return value of
10205 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10207 * server.c (write_qxfer_response): Change type of data to
10210 2015-10-29 Pedro Alves <palves@redhat.com>
10212 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
10214 2015-10-29 Pedro Alves <palves@redhat.com>
10216 * tracepoint.c (clear_installed_tracepoints): Add casts.
10218 2015-10-29 Pedro Alves <palves@redhat.com>
10220 * server.c (handle_v_cont, process_serial_event): Add enum
10221 gdb_signal casts to signal parsing code.
10223 2015-10-29 Pedro Alves <palves@redhat.com>
10225 * linux-low.h (NULL_REGSET): Define.
10226 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10227 * linux-arm-low.c (arm_regsets): Likewise.
10228 * linux-crisv32-low.c (cris_regsets): Likewise.
10229 * linux-m68k-low.c (m68k_regsets): Likewise.
10230 * linux-mips-low.c (mips_regsets): Likewise.
10231 * linux-nios2-low.c (nios2_regsets): Likewise.
10232 * linux-ppc-low.c (ppc_regsets): Likewise.
10233 * linux-s390-low.c (s390_regsets): Likewise.
10234 * linux-sh-low.c (sh_regsets): Likewise.
10235 * linux-sparc-low.c (sparc_regsets): Likewise.
10236 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10237 * linux-tile-low.c (tile_regsets): Likewise.
10238 * linux-x86-low.c (x86_regsets): Likewise.
10239 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10241 2015-10-29 Pedro Alves <palves@redhat.com>
10243 * linux-low.h (NULL_REGSET): Define.
10244 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10245 * linux-arm-low.c (arm_regsets): Likewise.
10246 * linux-crisv32-low.c (cris_regsets): Likewise.
10247 * linux-m68k-low.c (m68k_regsets): Likewise.
10248 * linux-mips-low.c (mips_regsets): Likewise.
10249 * linux-nios2-low.c (nios2_regsets): Likewise.
10250 * linux-ppc-low.c (ppc_regsets): Likewise.
10251 * linux-s390-low.c (s390_regsets): Likewise.
10252 * linux-sh-low.c (sh_regsets): Likewise.
10253 * linux-sparc-low.c (sparc_regsets): Likewise.
10254 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10255 * linux-tile-low.c (tile_regsets): Likewise.
10256 * linux-x86-low.c (x86_regsets): Likewise.
10257 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10259 2015-10-26 Doug Evans <dje@google.com>
10261 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
10263 2015-10-26 Doug Evans <dje@google.com>
10265 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
10267 2015-10-26 Doug Evans <dje@google.com>
10269 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
10271 (attach_thread, find_new_threads_callback): Ditto.
10273 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10275 * mem-break.h (set_breakpoint_data): Remove.
10277 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10279 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
10280 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10281 (initialize_low): Remove set_breakpoint_data call.
10282 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
10283 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
10284 (initialize_low): Remove set_breakpoint_data call.
10285 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
10286 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10287 (initialize_low): Remove set_breakpoint_data call.
10289 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10291 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
10292 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
10293 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
10294 * target.h (target_breakpoint_kind_from_pc): New macro.
10296 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
10298 * linux-low.c (default_breakpoint_kind_from_pc): New function.
10299 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
10300 the default breakpoint kind.
10302 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10304 * linux-arm-low.c (arm_supports_z_point_type): Add software
10305 breakpoint support.
10307 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10309 * linux-arm-low.c: Refactor breakpoint definitions.
10310 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
10311 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
10313 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10315 * Makefile.in: Add arm.c/o.
10316 * configure.srv: Likewise.
10317 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
10318 (arm_breakpoint_kind_from_pc): New function.
10319 (arm_sw_breakpoint_from_kind): Return proper kind.
10320 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
10322 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10324 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
10326 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
10327 (struct raw_breakpoint) <size>: Remove.
10328 (struct raw_breakpoint) <kind>: Add.
10329 (bp_size): New function.
10330 (bp_opcode): Likewise.
10331 (find_raw_breakpoint_at): Adjust for kind.
10332 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
10333 (remove_memory_breakpoint): Adjust for kind call bp_size.
10334 (set_raw_breakpoint_at): Adjust for kind.
10335 (set_breakpoint): Likewise.
10336 (set_breakpoint_at): Call breakpoint_kind_from_pc.
10337 (delete_raw_breakpoint): Adjust for kind.
10338 (delete_breakpoint): Likewise.
10339 (find_gdb_breakpoint): Likewise.
10340 (set_gdb_breakpoint_1): Likewise.
10341 (set_gdb_breakpoint): Likewise.
10342 (delete_gdb_breakpoint_1): Likewise.
10343 (delete_gdb_breakpoint): Likewise.
10344 (uninsert_raw_breakpoint): Likewise.
10345 (reinsert_raw_breakpoint): Likewise.
10346 (set_breakpoint_data): Remove.
10347 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
10348 (check_mem_read): Adjust for kind call bp_size.
10349 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
10350 (clone_one_breakpoint): Adjust for kind.
10351 * mem-break.h (set_gdb_breakpoint): Likewise.
10352 (delete_gdb_breakpoint): Likewise.
10353 * server.c (process_serial_event): Likewise.
10355 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10357 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
10358 (struct linux_target_ops) <breakpoint>: Remove.
10359 (struct linux_target_ops) <breakpoint_len>: Remove.
10360 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10361 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10362 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
10363 (arm_sw_breakpoint_from_kind): New function.
10364 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
10365 (struct linux_target_ops) <breakpoint>: Remove.
10366 (struct linux_target_ops) <breakpoint_len>: Remove.
10367 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10368 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10369 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
10370 (struct linux_target_ops) <breakpoint>: Remove.
10371 (struct linux_target_ops) <breakpoint_len>: Remove.
10372 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10373 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10374 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
10375 (struct linux_target_ops) <breakpoint>: Remove.
10376 (struct linux_target_ops) <breakpoint_len>: Remove.
10377 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10378 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10379 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
10380 and sw_breakpoint_from_kind to increment the pc.
10381 (linux_breakpoint_kind_from_pc): New function.
10382 (linux_sw_breakpoint_from_kind): New function.
10383 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
10384 (initialize_low): Call breakpoint_kind_from_pc and
10385 sw_breakpoint_from_kind to replace breakpoint_data/len.
10386 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
10388 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
10389 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
10390 (struct linux_target_ops) <breakpoint>: Remove.
10391 (struct linux_target_ops) <breakpoint_len>: Remove.
10392 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10393 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10394 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
10395 (struct linux_target_ops) <breakpoint>: Remove.
10396 (struct linux_target_ops) <breakpoint_len>: Remove.
10397 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10398 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10399 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
10400 (struct linux_target_ops) <breakpoint>: Remove.
10401 (struct linux_target_ops) <breakpoint_len>: Remove.
10402 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10403 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10404 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
10405 (struct linux_target_ops) <breakpoint>: Remove.
10406 (struct linux_target_ops) <breakpoint_len>: Remove.
10407 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10408 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10409 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
10410 (struct linux_target_ops) <breakpoint>: Remove.
10411 (struct linux_target_ops) <breakpoint_len>: Remove.
10412 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10413 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10414 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
10415 (struct linux_target_ops) <breakpoint>: Remove.
10416 (struct linux_target_ops) <breakpoint_len>: Remove.
10417 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10418 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10419 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
10420 (struct linux_target_ops) <breakpoint>: Remove.
10421 (struct linux_target_ops) <breakpoint_len>: Remove.
10422 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10423 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10424 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
10425 (struct linux_target_ops) <breakpoint>: Remove.
10426 (struct linux_target_ops) <breakpoint_len>: Remove.
10427 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10428 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10429 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
10430 (struct linux_target_ops) <breakpoint>: Remove.
10431 (struct linux_target_ops) <breakpoint_len>: Remove.
10432 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10433 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10434 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
10435 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
10436 (struct linux_target_ops) <breakpoint>: Remove.
10437 (struct linux_target_ops) <breakpoint_len>: Remove.
10438 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10439 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10440 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
10441 (struct linux_target_ops) <breakpoint>: Remove.
10442 (struct linux_target_ops) <breakpoint_len>: Remove.
10443 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10444 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10446 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10448 * linux-cris-low.c (cris_get_pc): Remove void arg.
10450 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10452 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
10455 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10457 * inferiors.c (thread_pid_matches_callback): New function.
10458 (find_thread_process): New function.
10459 (remove_thread): Reset current_thread.
10460 (remove_process): Assert threads have been removed first.
10462 2015-10-15 Yao Qi <yao.qi@linaro.org>
10464 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
10466 (aarch64_remove_point): Likewise.
10467 * regcache.c (regcache_register_size): New function.
10469 2015-10-12 Yao Qi <yao.qi@linaro.org>
10471 * linux-aarch64-low.c: Update all callers as emit_load_store
10472 is renamed to aarch64_emit_load_store.
10474 2015-10-12 Yao Qi <yao.qi@linaro.org>
10476 * linux-aarch64-low.c: Update all callers of function renaming
10477 from emit_insn to aarch64_emit_insn.
10479 2015-10-12 Yao Qi <yao.qi@linaro.org>
10481 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10482 arch/aarch64-insn.h.
10483 (struct aarch64_memory_operand): Likewise.
10484 (ENCODE): Likewise.
10485 (emit_insn): Move to arch/aarch64-insn.c.
10486 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10487 (emit_load_store): Move to arch/aarch64-insn.c.
10488 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10489 (can_encode_int32): Remove.
10491 2015-10-12 Yao Qi <yao.qi@linaro.org>
10493 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10494 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10495 (aarch64_relocate_instruction): Likewise.
10496 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10497 (struct aarch64_insn_visitor): Likewise.
10499 2015-10-12 Yao Qi <yao.qi@linaro.org>
10501 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10502 (struct aarch64_insn_visitor): New.
10503 (struct aarch64_insn_relocation_data): New.
10504 (aarch64_ftrace_insn_reloc_b): New function.
10505 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10506 (aarch64_ftrace_insn_reloc_cb): Likewise.
10507 (aarch64_ftrace_insn_reloc_tb): Likewise.
10508 (aarch64_ftrace_insn_reloc_adr): Likewise.
10509 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10510 (aarch64_ftrace_insn_reloc_others): Likewise.
10512 (aarch64_relocate_instruction): Use visitor.
10514 2015-10-12 Yao Qi <yao.qi@linaro.org>
10516 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10517 int. Add argument buf.
10518 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10519 aarch64_relocate_instruction.
10521 2015-10-12 Yao Qi <yao.qi@linaro.org>
10523 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10524 argument insn. Remove local variable insn. Don't call
10525 target_read_uint32.
10526 (aarch64_install_fast_tracepoint_jump_pad): Call
10527 target_read_uint32.
10529 2015-09-30 Yao Qi <yao.qi@linaro.org>
10531 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10532 (emit_load_store_pair): Likewise.
10534 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10536 * dll.c (match_dll): Add cast(s).
10537 (unloaded_dll): Likewise.
10538 * linux-low.c (second_thread_of_pid_p): Likewise.
10539 (delete_lwp_callback): Likewise.
10540 (count_events_callback): Likewise.
10541 (select_event_lwp_callback): Likewise.
10542 (linux_set_resume_request): Likewise.
10543 * server.c (accumulate_file_name_length): Likewise.
10544 (emit_dll_description): Likewise.
10545 (handle_qxfer_threads_worker): Likewise.
10546 (visit_actioned_threads): Likewise.
10547 * thread-db.c (any_thread_of): Likewise.
10548 * tracepoint.c (same_process_p): Likewise.
10549 (match_blocktype): Likewise.
10550 (build_traceframe_info_xml): Likewise.
10552 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10554 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10556 (gdb_unparse_agent_expr): Likewise.
10557 * hostio.c (require_data): Likewise.
10558 (handle_pread): Likewise.
10559 * linux-low.c (disable_regset): Likewise.
10560 (fetch_register): Likewise.
10561 (store_register): Likewise.
10562 (get_dynamic): Likewise.
10563 (linux_qxfer_libraries_svr4): Likewise.
10564 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10565 (set_fast_tracepoint_jump): Likewise.
10566 (uninsert_fast_tracepoint_jumps_at): Likewise.
10567 (reinsert_fast_tracepoint_jumps_at): Likewise.
10568 (validate_inserted_breakpoint): Likewise.
10569 (clone_agent_expr): Likewise.
10570 * regcache.c (init_register_cache): Likewise.
10571 * remote-utils.c (putpkt_binary_1): Likewise.
10572 (decode_M_packet): Likewise.
10573 (decode_X_packet): Likewise.
10574 (look_up_one_symbol): Likewise.
10575 (relocate_instruction): Likewise.
10576 (monitor_output): Likewise.
10577 * server.c (handle_search_memory): Likewise.
10578 (handle_qxfer_exec_file): Likewise.
10579 (handle_qxfer_libraries): Likewise.
10580 (handle_qxfer): Likewise.
10581 (handle_query): Likewise.
10582 (handle_v_cont): Likewise.
10583 (handle_v_run): Likewise.
10584 (captured_main): Likewise.
10585 * target.c (write_inferior_memory): Likewise.
10586 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10587 * tracepoint.c (init_trace_buffer): Likewise.
10588 (add_tracepoint_action): Likewise.
10589 (add_traceframe): Likewise.
10590 (add_traceframe_block): Likewise.
10591 (cmd_qtdpsrc): Likewise.
10592 (cmd_qtdv): Likewise.
10593 (cmd_qtstatus): Likewise.
10594 (response_source): Likewise.
10595 (response_tsv): Likewise.
10596 (cmd_qtnotes): Likewise.
10597 (gdb_collect): Likewise.
10598 (initialize_tracepoint): Likewise.
10600 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10602 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10603 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10604 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10606 (enum aarch64_condition_codes): New enum.
10607 (w0): New static global.
10610 (struct aarch64_memory_operand) <type>: New
10611 MEMORY_OPERAND_POSTINDEX type.
10612 (postindex_memory_operand): New helper function.
10613 (emit_ret): New function.
10614 (emit_load_store_pair): New function, factored out of emit_stp
10615 with support for MEMORY_OPERAND_POSTINDEX.
10616 (emit_stp): Rewrite using emit_load_store_pair.
10617 (emit_ldp): New function.
10618 (emit_load_store): Likewise.
10619 (emit_ldr): Mention post-index instruction in comment.
10620 (emit_ldrh): New function.
10621 (emit_ldrb): New function.
10622 (emit_ldrsw): Mention post-index instruction in comment.
10623 (emit_str): Likewise.
10624 (emit_subs): New function.
10625 (emit_cmp): Likewise.
10626 (emit_and): Likewise.
10627 (emit_orr): Likewise.
10628 (emit_orn): Likewise.
10629 (emit_eor): Likewise.
10630 (emit_mvn): Likewise.
10631 (emit_lslv): Likewise.
10632 (emit_lsrv): Likewise.
10633 (emit_asrv): Likewise.
10634 (emit_mul): Likewise.
10635 (emit_sbfm): Likewise.
10636 (emit_sbfx): Likewise.
10637 (emit_ubfm): Likewise.
10638 (emit_ubfx): Likewise.
10639 (emit_csinc): Likewise.
10640 (emit_cset): Likewise.
10641 (emit_nop): Likewise.
10642 (emit_ops_insns): New helper function.
10643 (emit_pop): Likewise.
10644 (emit_push): Likewise.
10645 (aarch64_emit_prologue): New function.
10646 (aarch64_emit_epilogue): Likewise.
10647 (aarch64_emit_add): Likewise.
10648 (aarch64_emit_sub): Likewise.
10649 (aarch64_emit_mul): Likewise.
10650 (aarch64_emit_lsh): Likewise.
10651 (aarch64_emit_rsh_signed): Likewise.
10652 (aarch64_emit_rsh_unsigned): Likewise.
10653 (aarch64_emit_ext): Likewise.
10654 (aarch64_emit_log_not): Likewise.
10655 (aarch64_emit_bit_and): Likewise.
10656 (aarch64_emit_bit_or): Likewise.
10657 (aarch64_emit_bit_xor): Likewise.
10658 (aarch64_emit_bit_not): Likewise.
10659 (aarch64_emit_equal): Likewise.
10660 (aarch64_emit_less_signed): Likewise.
10661 (aarch64_emit_less_unsigned): Likewise.
10662 (aarch64_emit_ref): Likewise.
10663 (aarch64_emit_if_goto): Likewise.
10664 (aarch64_emit_goto): Likewise.
10665 (aarch64_write_goto_address): Likewise.
10666 (aarch64_emit_const): Likewise.
10667 (aarch64_emit_call): Likewise.
10668 (aarch64_emit_reg): Likewise.
10669 (aarch64_emit_pop): Likewise.
10670 (aarch64_emit_stack_flush): Likewise.
10671 (aarch64_emit_zero_ext): Likewise.
10672 (aarch64_emit_swap): Likewise.
10673 (aarch64_emit_stack_adjust): Likewise.
10674 (aarch64_emit_int_call_1): Likewise.
10675 (aarch64_emit_void_call_2): Likewise.
10676 (aarch64_emit_eq_goto): Likewise.
10677 (aarch64_emit_ne_goto): Likewise.
10678 (aarch64_emit_lt_goto): Likewise.
10679 (aarch64_emit_le_goto): Likewise.
10680 (aarch64_emit_gt_goto): Likewise.
10681 (aarch64_emit_ge_got): Likewise.
10682 (aarch64_emit_ops_impl): New static global variable.
10683 (aarch64_emit_ops): New target function, return
10684 &aarch64_emit_ops_impl.
10685 (struct linux_target_ops): Install it.
10687 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10689 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10690 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10692 * linux-aarch64-ipa.c: New file.
10693 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10695 (aarch64_get_thread_area): New target method.
10696 (extract_signed_bitfield): New helper function.
10697 (aarch64_decode_ldr_literal): New function.
10698 (enum aarch64_opcodes): New enum.
10699 (struct aarch64_register): New struct.
10700 (struct aarch64_operand): New struct.
10701 (x0): New static global.
10710 (aarch64_register): New helper function.
10711 (register_operand): Likewise.
10712 (immediate_operand): Likewise.
10713 (struct aarch64_memory_operand): New struct.
10714 (offset_memory_operand): New helper function.
10715 (preindex_memory_operand): Likewise.
10716 (enum aarch64_system_control_registers): New enum.
10717 (ENCODE): New macro.
10718 (emit_insn): New helper function.
10719 (emit_b): New function.
10720 (emit_bcond): Likewise.
10721 (emit_cb): Likewise.
10722 (emit_tb): Likewise.
10723 (emit_blr): Likewise.
10724 (emit_stp): Likewise.
10725 (emit_ldp_q_offset): Likewise.
10726 (emit_stp_q_offset): Likewise.
10727 (emit_load_store): Likewise.
10728 (emit_ldr): Likewise.
10729 (emit_ldrsw): Likewise.
10730 (emit_str): Likewise.
10731 (emit_ldaxr): Likewise.
10732 (emit_stxr): Likewise.
10733 (emit_stlr): Likewise.
10734 (emit_data_processing_reg): Likewise.
10735 (emit_data_processing): Likewise.
10736 (emit_add): Likewise.
10737 (emit_sub): Likewise.
10738 (emit_mov): Likewise.
10739 (emit_movk): Likewise.
10740 (emit_mov_addr): Likewise.
10741 (emit_mrs): Likewise.
10742 (emit_msr): Likewise.
10743 (emit_sevl): Likewise.
10744 (emit_wfe): Likewise.
10745 (append_insns): Likewise.
10746 (can_encode_int32_in): New helper function.
10747 (aarch64_relocate_instruction): New function.
10748 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10749 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10750 (struct linux_target_ops): Install aarch64_get_thread_area,
10751 aarch64_install_fast_tracepoint_jump_pad and
10752 aarch64_get_min_fast_tracepoint_insn_len.
10754 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10756 * Makefile.in (aarch64-insn.o): New rule.
10757 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10759 2015-09-21 Yao Qi <yao.qi@linaro.org>
10761 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10763 2015-09-21 Yao Qi <yao.qi@linaro.org>
10765 * tracepoint.c (max_jump_pad_size): Remove.
10767 2015-09-18 Yao Qi <yao.qi@linaro.org>
10769 * linux-aarch64-low.c: Don't include sys/uio.h.
10770 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10772 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
10774 * tracepoint.c (eval_result_type): Change prototype.
10775 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10777 2015-09-15 Pedro Alves <palves@redhat.com>
10779 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10780 Check whether to report exec events instead of checking whether
10781 multiprocess is enabled.
10783 2015-09-15 Pedro Alves <palves@redhat.com>
10786 * remote-utils.c (prepare_resume_reply): Merge
10787 TARGET_WAITKIND_VFORK_DONE switch case with the
10788 TARGET_WAITKIND_FORKED case.
10790 2015-09-15 Yao Qi <yao.qi@linaro.org>
10792 * server.c (handle_query): Check string comparison using
10793 "else if" instead of "if".
10795 2015-09-15 Yao Qi <yao.qi@linaro.org>
10797 * server.c (vCont_supported): New global variable.
10798 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10799 matches. Append ";vContSupported+" to own_buf.
10800 (handle_v_requests): Append ";s;S" to own_buf if target supports
10801 hardware single step or vCont_supported is false.
10802 (capture_main): Set vCont_supported to zero.
10804 2015-09-15 Yao Qi <yao.qi@linaro.org>
10806 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10808 (linux_supports_hardware_single_step): ... New function.
10809 (linux_target_ops): Update.
10810 * lynx-low.c (lynx_target_ops): Set field
10811 supports_hardware_single_step to target_can_do_hardware_single_step.
10812 * nto-low.c (nto_target_ops): Likewise.
10813 * spu-low.c (spu_target_ops): Likewise.
10814 * win32-low.c (win32_target_ops): Likewise.
10815 * target.c (target_can_do_hardware_single_step): New function.
10816 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10817 Remove. <supports_hardware_single_step>: New field.
10818 (target_supports_conditional_breakpoints): Remove.
10819 (target_supports_hardware_single_step): New macro.
10820 (target_can_do_hardware_single_step): Declare.
10821 * server.c (handle_query): Use target_supports_hardware_single_step
10822 instead of target_supports_conditional_breakpoints.
10824 2015-09-15 Yao Qi <yao.qi@linaro.org>
10826 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10828 (struct linux_target_ops the_low_target): Install
10829 aarch64_linux_siginfo_fixup.
10831 2015-09-11 Don Breazeal <donb@codesourcery.com>
10832 Luis Machado <lgustavo@codesourcery.com>
10834 * linux-low.c (linux_mourn): Static declaration.
10835 (linux_arch_setup): Move in front of
10836 handle_extended_wait.
10837 (linux_arch_setup_thread): New function.
10838 (handle_extended_wait): Handle exec events. Call
10839 linux_arch_setup_thread. Make event_lwp argument a
10840 pointer-to-a-pointer.
10841 (check_zombie_leaders): Do not check stopped threads.
10842 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10843 (linux_low_filter_event): Add lwp and thread for exec'ing
10844 non-leader thread if leader thread has been deleted.
10845 Refactor code into linux_arch_setup_thread and call it.
10846 Pass child lwp pointer by reference to handle_extended_wait.
10847 (linux_wait_for_event_filtered): Update comment.
10848 (linux_wait_1): Prevent clobbering exec event status.
10849 (linux_supports_exec_events): New function.
10850 (linux_target_ops) <supports_exec_events>: Initialize new member.
10851 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10853 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10854 * server.c (report_exec_events): New global variable.
10855 (handle_query): Handle qSupported query for exec-events feature.
10856 (captured_main): Initialize report_exec_events.
10857 * server.h (report_exec_events): Declare new global variable.
10858 * target.h (struct target_ops) <supports_exec_events>: New
10860 (target_supports_exec_events): New macro.
10861 * win32-low.c (win32_target_ops) <supports_exec_events>:
10862 Initialize new member.
10864 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10866 * linux-low.c (linux_low_enable_btrace): Remove.
10867 (linux_target_ops): Replace linux_low_enable_btrace with
10868 linux_enable_btrace.
10870 2015-09-03 Yao Qi <yao.qi@linaro.org>
10872 * linux-aarch64-low.c (aarch64_insert_point): Call
10873 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10876 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10878 * linux-low.c (check_stopped_by_breakpoint): Use
10879 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10881 2015-08-27 Pedro Alves <palves@redhat.com>
10883 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10885 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10887 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10888 the XNEW-family equivalent.
10889 (compile_bytecodes): Likewise.
10890 * dll.c (loaded_dll): Likewise.
10891 * event-loop.c (append_callback_event): Likewise.
10892 (create_file_handler): Likewise.
10893 (create_file_event): Likewise.
10894 * hostio.c (handle_open): Likewise.
10895 * inferiors.c (add_thread): Likewise.
10896 (add_process): Likewise.
10897 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10898 * linux-arm-low.c (arm_new_process): Likewise.
10899 (arm_new_thread): Likewise.
10900 * linux-low.c (add_to_pid_list): Likewise.
10901 (linux_add_process): Likewise.
10902 (handle_extended_wait): Likewise.
10903 (add_lwp): Likewise.
10904 (enqueue_one_deferred_signal): Likewise.
10905 (enqueue_pending_signal): Likewise.
10906 (linux_resume_one_lwp_throw): Likewise.
10907 (linux_resume_one_thread): Likewise.
10908 (linux_read_memory): Likewise.
10909 (linux_write_memory): Likewise.
10910 * linux-mips-low.c (mips_linux_new_process): Likewise.
10911 (mips_linux_new_thread): Likewise.
10912 (mips_add_watchpoint): Likewise.
10913 * linux-x86-low.c (initialize_low_arch): Likewise.
10914 * lynx-low.c (lynx_add_process): Likewise.
10915 * mem-break.c (set_raw_breakpoint_at): Likewise.
10916 (set_breakpoint): Likewise.
10917 (add_condition_to_breakpoint): Likewise.
10918 (add_commands_to_breakpoint): Likewise.
10919 (clone_agent_expr): Likewise.
10920 (clone_one_breakpoint): Likewise.
10921 * regcache.c (new_register_cache): Likewise.
10922 * remote-utils.c (look_up_one_symbol): Likewise.
10923 * server.c (queue_stop_reply): Likewise.
10924 (start_inferior): Likewise.
10925 (queue_stop_reply_callback): Likewise.
10926 (handle_target_event): Likewise.
10927 * spu-low.c (fetch_ppc_memory): Likewise.
10928 (store_ppc_memory): Likewise.
10929 * target.c (set_target_ops): Likewise.
10930 * thread-db.c (thread_db_load_search): Likewise.
10931 (try_thread_db_load_1): Likewise.
10932 * tracepoint.c (add_tracepoint): Likewise.
10933 (add_tracepoint_action): Likewise.
10934 (create_trace_state_variable): Likewise.
10935 (cmd_qtdpsrc): Likewise.
10936 (cmd_qtro): Likewise.
10937 (add_while_stepping_state): Likewise.
10938 * win32-low.c (child_add_thread): Likewise.
10939 (get_image_name): Likewise.
10941 2015-08-25 Yao Qi <yao.qi@linaro.org>
10943 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10945 2015-08-25 Yao Qi <yao.qi@linaro.org>
10947 * Makefile.in (aarch64-linux.o): New rule.
10948 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10950 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10951 (aarch64_init_debug_reg_state): Make it extern.
10952 (aarch64_linux_prepare_to_resume): Remove.
10954 2015-08-25 Yao Qi <yao.qi@linaro.org>
10956 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10957 lwp_arch_private_info and ptid_of_lwp.
10959 2015-08-25 Yao Qi <yao.qi@linaro.org>
10961 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10962 Find proc_info by find_process_pid. All callers updated.
10964 2015-08-25 Yao Qi <yao.qi@linaro.org>
10966 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10968 (debug_reg_change_callback): Remove.
10969 (aarch64_notify_debug_reg_change): Remove.
10971 2015-08-25 Yao Qi <yao.qi@linaro.org>
10973 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10974 Call current_lwp_ptid.
10976 2015-08-25 Yao Qi <yao.qi@linaro.org>
10978 * linux-aarch64-low.c (debug_reg_change_callback): Use
10981 2015-08-25 Yao Qi <yao.qi@linaro.org>
10983 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10985 2015-08-25 Yao Qi <yao.qi@linaro.org>
10987 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10989 2015-08-25 Yao Qi <yao.qi@linaro.org>
10991 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10994 2015-08-25 Yao Qi <yao.qi@linaro.org>
10996 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10998 (debug_reg_change_callback): Remove argument entry and add argument
10999 lwp. Remove local variable thread. Don't print thread id in the
11000 debugging output. Don't check whether pid of thread equals to pid.
11001 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
11002 iterate_over_lwps instead find_inferior.
11004 2015-08-24 Pedro Alves <palves@redhat.com>
11006 * inferiors.c (get_first_process): New function.
11007 * inferiors.h (get_first_process): New declaration.
11008 * remote-utils.c (read_ptid): Default to the first process in the
11009 list, instead of to the current thread's process.
11011 2015-08-24 Pedro Alves <palves@redhat.com>
11013 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
11014 * event-loop.c: Likewise.
11015 * remote-utils.c: Likewise.
11016 * tracepoint.c: Likewise.
11018 2015-08-24 Pedro Alves <palves@redhat.com>
11020 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
11023 2015-08-21 Pedro Alves <palves@redhat.com>
11025 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
11026 instead of literal 1.
11028 2015-08-21 Pedro Alves <palves@redhat.com>
11030 * tdesc.c (default_description): Explicitly zero-initialize.
11032 2015-08-21 Pedro Alves <palves@redhat.com>
11035 * inferiors.c (remove_thread): Discard any pending stop reply for
11037 * server.c (remove_all_on_match_pid): Rename to ...
11038 (remove_all_on_match_ptid): ... this. Work with a filter ptid
11040 (discard_queued_stop_replies): Change parameter to a ptid. Now
11042 (handle_v_kill, kill_inferior_callback, captured_main)
11043 (process_serial_event): Adjust.
11044 * server.h (discard_queued_stop_replies): Declare.
11046 2015-08-21 Pedro Alves <palves@redhat.com>
11048 * linux-low.c (wait_for_sigstop): Always switch to no thread
11049 selected if the previously current thread dies.
11050 * lynx-low.c (lynx_request_interrupt): Use the first thread's
11051 process instead of the current thread's.
11052 * remote-utils.c (input_interrupt): Don't check if there's no
11054 * server.c (gdb_read_memory, gdb_write_memory): If setting the
11055 current thread to the general thread fails, error out.
11056 (handle_qxfer_auxv, handle_qxfer_libraries)
11057 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
11058 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
11059 (handle_query): Check if there's a thread selected instead of
11060 checking whether there's any thread in the thread list.
11061 (handle_qxfer_threads, handle_qxfer_btrace)
11062 (handle_qxfer_btrace_conf): Don't error out early if there's no
11063 thread in the thread list.
11064 (handle_v_cont, myresume): Don't set the current thread to the
11066 (process_serial_event) <Hg handling>: Also set thread_id if the
11067 previous general thread is still alive.
11068 (process_serial_event) <g/G handling>: If setting the current
11069 thread to the general thread fails, error out.
11070 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
11071 thread's lwp instead of the current thread's.
11072 * target.c (set_desired_thread): If the desired thread was not
11073 found, leave the current thread pointing to NULL. Return an int
11074 (boolean) indicating success.
11075 * target.h (set_desired_thread): Change return type to int.
11077 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
11079 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
11080 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
11082 (ps_get_thread_area): New function.
11084 2015-08-19 Gary Benson <gbenson@redhat.com>
11086 * hostio.c (handle_pread): Do not attempt to read more data
11087 than hostio_reply_with_data can fit in a packet.
11089 2015-08-18 Joel Brobecker <brobecker@adacore.com>
11091 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
11093 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
11095 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
11097 2015-08-06 Pedro Alves <palves@redhat.com>
11099 * tracepoint.c (expr_eval_result): Now an int.
11101 2015-08-06 Pedro Alves <palves@redhat.com>
11103 * gdbthread.h (struct regcache): Forward declare.
11104 (struct thread_info) <regcache_data>: Now a struct regcache
11106 * inferiors.c (inferior_regcache_data)
11107 (set_inferior_regcache_data): Now work with struct regcache
11109 * inferiors.h (struct regcache): Forward declare.
11110 (inferior_regcache_data, set_inferior_regcache_data): Now work
11111 with struct regcache pointers.
11112 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
11113 (free_register_cache_thread): Remove struct regcache pointer
11116 2015-08-06 Pedro Alves <palves@redhat.com>
11118 * server.c (captured_main): On error, print the exception message
11119 to stderr, and if run_once is set, throw a quit.
11121 2015-08-06 Pedro Alves <palves@redhat.com>
11123 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
11124 the current thread.
11126 2015-08-06 Pedro Alves <palves@redhat.com>
11128 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
11129 reading beyond the passed in buffer length.
11131 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
11133 * tracepoint.c (symbol_list) <required>: Remove.
11135 2015-08-06 Pedro Alves <palves@redhat.com>
11137 * linux-low.c (handle_extended_wait): Set the fork child's suspend
11138 count if stopping and suspending threads.
11139 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
11140 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
11141 (linux_detach): Complete an ongoing step-over.
11142 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
11144 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
11145 (linux_wait_1): If passing a signal to the inferior after
11146 finishing a step-over, unsuspend and re-resume all lwps. If we
11147 see a single-step event but the thread should be continuing, don't
11148 pass the trap to gdb.
11149 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
11150 internal_error instead of gdb_assert.
11151 (enqueue_pending_signal): New function.
11152 (check_ptrace_stopped_lwp_gone): Add debug output.
11153 (start_step_over): Use internal_error instead of gdb_assert.
11154 (complete_ongoing_step_over): New function.
11155 (linux_resume_one_thread): Don't resume a suspended thread.
11156 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
11159 2015-08-06 Pedro Alves <palves@redhat.com>
11161 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
11162 (linux_thread_alive): Use lwp_is_marked_dead.
11163 (extended_event_reported): Delete.
11164 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
11165 instead of extended_event_reported.
11166 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
11168 (lwp_is_marked_dead): New function.
11169 (lwp_running): Use lwp_is_marked_dead.
11170 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
11173 2015-08-06 Pedro Alves <palves@redhat.com>
11175 * linux-low.c (linux_wait_1): Move fork event output out of the
11176 !report_to_gdb check. Pass event_child->waitstatus to
11177 target_waitstatus_to_string instead of ourstatus.
11179 2015-08-04 Yao Qi <yao.qi@linaro.org>
11181 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
11182 if current_thread is 32 bit.
11184 2015-08-04 Yao Qi <yao.qi@linaro.org>
11186 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
11187 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
11188 * server.c (extended_protocol): Remove "static".
11189 * server.h (extended_protocol): Declare it.
11191 2015-08-04 Yao Qi <yao.qi@linaro.org>
11193 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
11194 both aarch64 and aarch32.
11195 (aarch64_set_pc): Likewise.
11197 2015-08-04 Yao Qi <yao.qi@linaro.org>
11199 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
11200 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
11201 arm-with-neon.xml to srv_xmlfiles.
11202 * linux-aarch64-low.c: Include linux-aarch32-low.h.
11203 (is_64bit_tdesc): New function.
11204 (aarch64_linux_read_description): New function.
11205 (aarch64_arch_setup): Call aarch64_linux_read_description.
11206 (regs_info): Rename to regs_info_aarch64.
11207 (aarch64_regs_info): Return right regs_info.
11208 (initialize_low_arch): Call initialize_low_arch_aarch32.
11210 2015-08-04 Yao Qi <yao.qi@linaro.org>
11212 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
11213 * linux-aarch32-low.c: New file.
11214 * linux-aarch32-low.h: New file.
11215 * linux-arm-low.c (arm_fill_gregset): Move it to
11216 linux-aarch32-low.c.
11217 (arm_store_gregset): Likewise.
11218 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
11219 (arm_store_vfpregset): Call arm_store_vfpregset_num.
11220 (arm_arch_setup): Check if PTRACE_GETREGSET works.
11221 (regs_info): Rename to regs_info_arm.
11222 (arm_regs_info): Return regs_info_aarch32 if
11223 have_ptrace_getregset is 1 and target description is
11224 arm_with_neon or arm_with_vfpv3.
11225 (initialize_low_arch): Don't call init_registers_arm_with_neon.
11226 Call initialize_low_arch_aarch32 instead.
11228 2015-08-04 Yao Qi <yao.qi@linaro.org>
11230 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
11231 * linux-low.c: ... here.
11232 * linux-low.h (have_ptrace_getregset): Declare it.
11234 2015-08-04 Pedro Alves <palves@redhat.com>
11236 * thread-db.c (struct thread_db): Use new typedefs.
11237 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
11239 (disable_thread_event_reporting): Cast result of dlsym to
11240 destination function pointer type.
11241 (thread_db_mourn): Use td_ta_delete_ftype.
11243 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
11245 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
11247 (CDX_BREAKPOINT): Define for R2.
11248 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
11249 (the_low_target): Add comments.
11251 2015-07-30 Yao Qi <yao.qi@linaro.org>
11253 * linux-arm-low.c (arm_hwcap): Remove it.
11254 (arm_read_description): New local variable arm_hwcap. Don't
11255 set arm_hwcap to zero.
11257 2015-07-30 Yao Qi <yao.qi@linaro.org>
11259 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
11260 Use regcache->tdesc instead.
11261 (arm_store_wmmxregset): Likewise.
11262 (arm_fill_vfpregset): Likewise.
11263 (arm_store_vfpregset): Likewise.
11265 2015-07-30 Yao Qi <yao.qi@linaro.org>
11267 * linux-arm-low.c: Include arch/arm.h.
11268 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
11269 (arm_store_gregset): Likewise.
11271 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
11273 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
11274 ptrace's 4th parameter.
11276 2015-07-27 Yao Qi <yao.qi@linaro.org>
11278 * configure.srv (case aarch64*-*-linux*): Don't set
11281 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
11283 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
11285 * linux-arm-low.c: Likewise.
11286 * linux-cris-low.c: Likewise.
11287 * linux-crisv32-low.c: Likewise.
11288 * linux-low.c: Likewise.
11289 * linux-m68k-low.c: Likewise.
11290 * linux-mips-low.c: Likewise.
11291 * linux-nios2-low.c: Likewise.
11292 * linux-s390-low.c: Likewise.
11293 * linux-sparc-low.c: Likewise.
11294 * linux-tic6x-low.c: Likewise.
11295 * linux-tile-low.c: Likewise.
11296 * linux-x86-low.c: Likewise.
11298 2015-07-24 Pedro Alves <palves@redhat.com>
11300 * config.in: Regenerate.
11301 * configure: Regenerate.
11303 2015-07-24 Pedro Alves <palves@redhat.com>
11305 * acinclude.m4: Include ../ptrace.m4.
11306 * configure.ac: Call GDB_AC_PTRACE.
11307 * config.in, configure: Regenerate.
11309 2015-07-24 Yao Qi <yao.qi@linaro.org>
11311 * linux-low.c (linux_create_inferior): Remove setting to
11312 proc->priv->new_inferior.
11313 (linux_attach): Likewise.
11314 (linux_low_filter_event): Likewise.
11315 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
11317 2015-07-24 Yao Qi <yao.qi@linaro.org>
11319 * linux-low.c (linux_arch_setup): New function.
11320 (linux_low_filter_event): If proc->tdesc is NULL and
11321 proc->attached is true, call the_low_target.arch_setup.
11322 Otherwise, keep status pending, and return.
11323 (linux_resume_one_lwp_throw): Don't call get_pc if
11324 thread->while_stepping isn't NULL. Don't call
11325 get_thread_regcache if proc->tdesc is NULL.
11326 (need_step_over_p): Return 0 if proc->tdesc is NULL.
11327 (linux_target_ops): Install arch_setup.
11328 * server.c (start_inferior): Call the_target->arch_setup.
11329 * target.h (struct target_ops) <arch_setup>: New field.
11330 (target_arch_setup): New marco.
11331 * lynx-low.c (lynx_target_ops): Update.
11332 * nto-low.c (nto_target_ops): Update.
11333 * spu-low.c (spu_target_ops): Update.
11334 * win32-low.c (win32_target_ops): Update.
11336 2015-07-24 Yao Qi <yao.qi@linaro.org>
11338 * linux-low.c (linux_add_process): Don't set
11339 proc->priv->new_inferior.
11340 (linux_create_inferior): Set proc->priv->new_inferior to 1.
11341 (linux_attach): Likewise.
11343 2015-07-24 Yao Qi <yao.qi@linaro.org>
11345 * server.c (start_inferior): Code refactor.
11347 2015-07-24 Yao Qi <yao.qi@linaro.org>
11349 * server.c (process_serial_event): Set general_thread.
11351 2015-07-21 Yao Qi <yao.qi@linaro.org>
11353 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
11354 aarch64_linux_get_debug_reg_capacity.
11356 2015-07-17 Yao Qi <yao.qi@linaro.org>
11358 * Makefile.in (aarch64-linux-hw-point.o): New rule.
11359 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
11360 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
11361 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
11362 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
11363 (AARCH64_HWP_ALIGNMENT): Likewise.
11364 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
11365 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
11366 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
11367 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
11368 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
11369 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
11370 (struct aarch64_debug_reg_state): Likewise.
11371 (struct arch_lwp_info): Likewise.
11372 (aarch64_align_watchpoint): Likewise.
11373 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
11374 (aarch64_watchpoint_length): Likewise.
11375 (aarch64_point_encode_ctrl_reg): Likewise
11376 (aarch64_point_is_aligned): Likewise.
11377 (aarch64_align_watchpoint): Likewise.
11378 (aarch64_linux_set_debug_regs):
11379 (aarch64_dr_state_insert_one_point): Likewise.
11380 (aarch64_dr_state_remove_one_point): Likewise.
11381 (aarch64_handle_breakpoint): Likewise.
11382 (aarch64_handle_aligned_watchpoint): Likewise.
11383 (aarch64_handle_unaligned_watchpoint): Likewise.
11384 (aarch64_handle_watchpoint): Likewise.
11386 2015-07-17 Yao Qi <yao.qi@linaro.org>
11388 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
11389 and don't aarch64_get_debug_reg_state. All callers update.
11390 (aarch64_handle_aligned_watchpoint): Likewise.
11391 (aarch64_handle_unaligned_watchpoint): Likewise.
11392 (aarch64_handle_watchpoint): Likewise.
11393 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
11394 (aarch64_remove_point): Likewise.
11396 2015-07-17 Yao Qi <yao.qi@linaro.org>
11398 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
11400 (aarch64_handle_unaligned_watchpoint): Likewise.
11402 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11404 Revert the previous 3 commits:
11405 Move gdb_regex* to common/
11406 Move linux_find_memory_regions_full & co.
11407 gdbserver build-id attribute generator
11409 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11410 Jan Kratochvil <jan.kratochvil@redhat.com>
11412 gdbserver build-id attribute generator.
11413 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
11414 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
11415 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
11417 (get_dynamic): Use find_pdhr to traverse program headers.
11418 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
11419 (compare_mapping_entry_range, struct find_memory_region_callback_data)
11420 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
11421 (get_hex_build_id): New.
11422 (linux_qxfer_libraries_svr4): Add optional build-id attribute
11423 to reply XML document.
11425 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11426 Jan Kratochvil <jan.kratochvil@redhat.com>
11428 * target.c: Include target/target-utils.h and fcntl.h.
11429 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
11430 (target_fileio_read_stralloc): New functions.
11432 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11434 * Makefile.in (OBS): Add gdb_regex.o.
11435 (gdb_regex.o): New.
11436 * config.in: Rebuilt.
11437 * configure: Rebuilt.
11439 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11440 Jan Kratochvil <jan.kratochvil@redhat.com>
11442 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
11443 * Makefile.in (OBS): Add target-utils.o.
11444 (linux-maps.o, target-utils.o): New.
11445 * configure.srv (srv_linux_obj): Add linux-maps.o.
11447 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
11449 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
11450 function, return 1.
11451 (the_low_target): Install it.
11453 2015-07-14 Pedro Alves <palves@redhat.com>
11455 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
11456 Instead, ignore ECHILD, and throw an error for other errnos.
11458 2015-07-10 Pedro Alves <palves@redhat.com>
11460 * event-loop.c (struct callback_event) <data>: Change type to
11461 gdb_client_data instance instead of gdb_client_data pointer.
11462 (append_callback_event): Adjust.
11464 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
11466 * linux-aarch64-low.c: Add comments for each linux_target_ops
11467 method. Remove comments already covered in target_ops and
11468 linux_target_ops definitions.
11469 (the_low_target): Add comments for each unimplemented method.
11471 2015-07-09 Yao Qi <yao.qi@linaro.org>
11473 * linux-aarch64-low.c (aarch64_regmap): Remove.
11474 (aarch64_usrregs_info): Remove.
11475 (regs_info): Set field usrregs to NULL.
11477 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11479 * linux-low.c: Include "rsp-low.h"
11480 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11481 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11482 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11483 (handle_btrace_enable_pt): New.
11484 (handle_btrace_general_set): Support "pt".
11485 (handle_btrace_conf_general_set): Support "pt:size".
11487 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11489 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11492 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11494 * linux-aarch64-low.c: Remove comment about endianness.
11495 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11496 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11499 2015-06-24 Gary Benson <gbenson@redhat.com>
11501 * linux-i386-ipa.c (stdint.h): Do not include.
11502 * lynx-i386-low.c (stdint.h): Likewise.
11503 * lynx-ppc-low.c (stdint.h): Likewise.
11504 * mem-break.c (stdint.h): Likewise.
11505 * thread-db.c (stdint.h): Likewise.
11506 * tracepoint.c (stdint.h): Likewise.
11507 * win32-low.c (stdint.h): Likewise.
11509 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11511 * server.c (write_qxfer_response): Update call to
11512 remote_escape_output.
11514 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11515 Jan Kratochvil <jan.kratochvil@redhat.com>
11517 Merge multiple hex conversions.
11518 * gdbreplay.c (tohex): Rename to 'fromhex'.
11519 (logchar): Use fromhex.
11521 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11523 * server.c (handle_qxfer_libraries): Set `version' attribute for
11526 2015-06-10 Gary Benson <gbenson@redhat.com>
11528 * target.h (struct target_ops) <multifs_open>: New field.
11529 <multifs_unlink>: Likewise.
11530 <multifs_readlink>: Likewise.
11531 * linux-low.c (nat/linux-namespaces.h): New include.
11532 (linux_target_ops): Initialize the_target->multifs_open,
11533 the_target->multifs_unlink and the_target->multifs_readlink.
11534 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11535 * hostio.c (hostio_fs_pid): New static variable.
11536 (hostio_handle_new_gdb_connection): New function.
11537 (handle_setfs): Likewise.
11538 (handle_open): Use the_target->multifs_open as appropriate.
11539 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11540 (handle_readlink): Use the_target->multifs_readlink as
11542 (handle_vFile): Handle vFile:setfs packets.
11543 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11544 after target_handle_new_gdb_connection.
11546 2015-06-10 Gary Benson <gbenson@redhat.com>
11548 * configure.ac (AC_CHECK_FUNCS): Add setns.
11549 * config.in: Regenerate.
11550 * configure: Likewise.
11551 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11552 (linux-namespaces.o): New rule.
11553 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11555 2015-06-09 Gary Benson <gbenson@redhat.com>
11557 * hostio.c (handle_open): Process mode argument with
11558 fileio_to_host_mode.
11560 2015-06-01 Yao Qi <yao.qi@linaro.org>
11562 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11563 * linux-x86-low.c: Likewise.
11565 2015-05-28 Don Breazeal <donb@codesourcery.com>
11567 * linux-low.c (handle_extended_wait): Initialize
11568 thread_info.last_resume_kind for new fork children.
11570 2015-05-15 Pedro Alves <palves@redhat.com>
11572 * target.h (target_handle_new_gdb_connection): Rewrite using if
11573 wrapped in do/while.
11575 2015-05-14 Joel Brobecker <brobecker@adacore.com>
11577 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11578 * configure, config.in: Regenerate.
11579 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11582 2015-05-12 Don Breazeal <donb@codesourcery.com>
11584 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11585 PTRACE_EVENT_VFORK_DONE.
11586 (linux_low_ptrace_options, extended_event_reported): Add vfork
11588 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11589 and "vforkdone" for RSP 'T' Stop Reply Packet.
11590 * server.h (report_vfork_events): Declare
11593 2015-05-12 Don Breazeal <donb@codesourcery.com>
11595 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11596 (the_low_target) <new_fork>: Initialize new member.
11597 * linux-arm-low.c (arm_new_fork): New function.
11598 (the_low_target) <new_fork>: Initialize new member.
11599 * linux-low.c (handle_extended_wait): Call new target function
11601 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11602 * linux-mips-low.c (mips_add_watchpoint): New function
11603 extracted from mips_insert_point.
11604 (the_low_target) <new_fork>: Initialize new member.
11605 (mips_linux_new_fork): New function.
11606 (mips_insert_point): Call mips_add_watchpoint.
11607 * linux-x86-low.c (x86_linux_new_fork): New function.
11608 (the_low_target) <new_fork>: Initialize new member.
11610 2015-05-12 Don Breazeal <donb@codesourcery.com>
11612 * linux-low.c (handle_extended_wait): Implement return value,
11613 rename argument 'event_child' to 'event_lwp', handle
11614 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11615 (linux_low_ptrace_options): New function.
11616 (linux_low_filter_event): Call linux_low_ptrace_options,
11617 use different argument fo linux_enable_event_reporting,
11618 use return value from handle_extended_wait.
11619 (extended_event_reported): New function.
11620 (linux_wait_1): Call extended_event_reported and set
11621 status to report fork events.
11622 (linux_write_memory): Add pid to debug message.
11623 (reset_lwp_ptrace_options_callback): New function.
11624 (linux_handle_new_gdb_connection): New function.
11625 (linux_target_ops): Initialize new structure member.
11626 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11627 * lynx-low.c: Initialize new structure member.
11628 * remote-utils.c (prepare_resume_reply): Implement stop reason
11629 "fork" for "T" stop message.
11630 * server.c (handle_query): Call handle_new_gdb_connection.
11631 * server.h (report_fork_events): Declare global flag.
11632 * target.h (struct target_ops) <handle_new_gdb_connection>:
11634 (target_handle_new_gdb_connection): New macro.
11635 * win32-low.c: Initialize new structure member.
11637 2015-05-12 Don Breazeal <donb@codesourcery.com>
11639 * mem-break.c (APPEND_TO_LIST): Define macro.
11640 (clone_agent_expr): New function.
11641 (clone_one_breakpoint): New function.
11642 (clone_all_breakpoints): New function.
11643 * mem-break.h: Declare new functions.
11645 2015-05-12 Don Breazeal <donb@codesourcery.com>
11647 * linux-low.c (linux_supports_fork_events): New function.
11648 (linux_supports_vfork_events): New function.
11649 (linux_target_ops): Initialize new structure members.
11650 (initialize_low): Call linux_check_ptrace_features.
11651 * lynx-low.c (lynx_target_ops): Initialize new structure
11653 * server.c (report_fork_events, report_vfork_events):
11655 (handle_query): Add new features to qSupported packet and
11657 (captured_main): Initialize new global variables.
11658 * target.h (struct target_ops) <supports_fork_events>:
11660 <supports_vfork_events>: New member.
11661 (target_supports_fork_events): New macro.
11662 (target_supports_vfork_events): New macro.
11663 * win32-low.c (win32_target_ops): Initialize new structure
11666 2015-05-12 Gary Benson <gbenson@redhat.com>
11668 * server.c (handle_qxfer_exec_file): Use current process
11671 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11673 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11674 Remove HAVE_PTRACE_GETREGS conditionals.
11675 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11676 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11678 2015-05-08 Yao Qi <yao.qi@linaro.org>
11680 * linux-low.c (linux_supports_conditional_breakpoints): New
11682 (linux_target_ops): Install new target method.
11683 * lynx-low.c (lynx_target_ops): Install NULL hook for
11684 supports_conditional_breakpoints.
11685 * nto-low.c (nto_target_ops): Likewise.
11686 * spu-low.c (spu_target_ops): Likewise.
11687 * win32-low.c (win32_target_ops): Likewise.
11688 * server.c (handle_query): Check
11689 target_supports_conditional_breakpoints.
11690 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11692 (target_supports_conditional_breakpoints): New macro.
11694 2015-05-06 Pedro Alves <palves@redhat.com>
11697 * server.c (start_inferior): If the process exits, mourn it.
11699 2015-04-21 Gary Benson <gbenson@redhat.com>
11701 * hostio.c (fileio_open_flags_to_host): Factored out to
11702 fileio_to_host_openflags in common/fileio.c. Single use
11705 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11707 * linux-xtensa-low.c (xtensa_fill_gregset)
11708 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11711 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11713 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11714 (regs_info): Replace usrregs pointer with NULL.
11716 2015-04-17 Gary Benson <gbenson@redhat.com>
11718 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11719 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11720 * server.c (handle_qxfer_exec_file): New function.
11721 (qxfer_packets): Add exec-file entry.
11722 (handle_query): Report qXfer:exec-file:read as supported packet.
11724 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11726 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11728 2015-04-09 Gary Benson <gbenson@redhat.com>
11730 * hostio-errno.c (errno_to_fileio_error): Remove function.
11731 Update caller to use remote_fileio_to_fio_error.
11733 2015-04-09 Yao Qi <yao.qi@linaro.org>
11735 * linux-low.c (linux_insert_point): Call
11736 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11737 (linux_remove_point): Call remove_memory_breakpoint if type is
11739 * linux-x86-low.c (x86_insert_point): Don't call
11740 insert_memory_breakpoint.
11741 (x86_remove_point): Don't call remove_memory_breakpoint.
11743 2015-04-01 Pedro Alves <palves@redhat.com>
11744 Cleber Rosa <crosa@redhat.com>
11746 * server.c (gdbserver_usage): Reorganize and extend the usage
11749 2015-03-24 Pedro Alves <palves@redhat.com>
11751 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11752 output. Also dump TRAP_TRACE.
11753 (linux_low_filter_event): In debug output, distinguish a
11754 resume_stop SIGSTOP from a delayed SIGSTOP.
11756 2015-03-24 Gary Benson <gbenson@redhat.com>
11758 * linux-x86-low.c (x86_linux_new_thread): Moved to
11760 (x86_linux_prepare_to_resume): Likewise.
11762 2015-03-24 Gary Benson <gbenson@redhat.com>
11764 * Makefile.in (x86-linux-dregs.o): New rule.
11765 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11766 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11767 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11768 (x86_linux_dr_get): Likewise.
11769 (x86_linux_dr_set): Likewise.
11770 (update_debug_registers_callback): Likewise.
11771 (x86_linux_dr_set_addr): Likewise.
11772 (x86_linux_dr_get_addr): Likewise.
11773 (x86_linux_dr_set_control): Likewise.
11774 (x86_linux_dr_get_control): Likewise.
11775 (x86_linux_dr_get_status): Likewise.
11776 (x86_linux_update_debug_registers): Likewise.
11778 2015-03-24 Gary Benson <gbenson@redhat.com>
11780 * linux-x86-low.c (x86_linux_update_debug_registers):
11781 New function, factored out from...
11782 (x86_linux_prepare_to_resume): ...this.
11784 2015-03-24 Gary Benson <gbenson@redhat.com>
11786 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11787 (x86_linux_dr_set): Likewise.
11788 (update_debug_registers_callback): Likewise.
11789 (x86_linux_dr_set_addr): Likewise.
11790 (x86_linux_dr_get_addr): Likewise.
11791 (x86_linux_dr_set_control): Likewise.
11792 (x86_linux_dr_get_control): Likewise.
11793 (x86_linux_dr_get_status): Likewise.
11794 (x86_linux_prepare_to_resume): Likewise.
11796 2015-03-24 Gary Benson <gbenson@redhat.com>
11798 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11799 Use perror_with_name. Pass string through gettext.
11800 (x86_linux_dr_set): Likewise.
11802 2015-03-24 Gary Benson <gbenson@redhat.com>
11804 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11805 (x86_linux_dr_set_addr): ...this.
11806 (x86_dr_low_get_addr): Rename to...
11807 (x86_linux_dr_get_addr): ...this.
11808 (x86_dr_low_set_control): Rename to...
11809 (x86_linux_dr_set_control): ...this.
11810 (x86_dr_low_get_control): Rename to...
11811 (x86_linux_dr_get_control): ...this.
11812 (x86_dr_low_get_status): Rename to...
11813 (x86_linux_dr_get_status): ...this.
11814 (x86_dr_low): Update with new function names.
11816 2015-03-24 Gary Benson <gbenson@redhat.com>
11818 * Makefile.in (x86-linux.o): New rule.
11819 * configure.srv: Add x86-linux.o to relevant targets.
11820 * linux-low.c (lwp_set_arch_private_info): New function.
11821 (lwp_arch_private_info): Likewise.
11822 * linux-x86-low.c: Include nat/x86-linux.h.
11823 (arch_lwp_info): Removed structure.
11824 (update_debug_registers_callback):
11825 Use lwp_set_debug_registers_changed.
11826 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11827 and lwp_set_debug_registers_changed.
11828 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11830 2015-03-24 Gary Benson <gbenson@redhat.com>
11832 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11833 * linux-arm-low.c (arm_new_thread): Likewise.
11834 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11835 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11836 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11837 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11839 2015-03-24 Gary Benson <gbenson@redhat.com>
11841 * linux-low.c (ptid_of_lwp): New function.
11842 (lwp_is_stopped): Likewise.
11843 (lwp_stop_reason): Likewise.
11844 * linux-x86-low.c (update_debug_registers_callback):
11845 Use lwp_is_stopped.
11846 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11849 2015-03-24 Gary Benson <gbenson@redhat.com>
11851 * linux-low.h (linux_stop_lwp): Remove declaration.
11853 2015-03-24 Gary Benson <gbenson@redhat.com>
11855 * linux-low.h: Include nat/linux-nat.h.
11856 * linux-low.c (iterate_over_lwps_args): New structure.
11857 (iterate_over_lwps_filter): New function.
11858 (iterate_over_lwps): Likewise.
11859 * linux-x86-low.c (update_debug_registers_callback):
11860 Update signature to what iterate_over_lwps expects.
11861 Remove PID check that iterate_over_lwps now performs.
11862 (x86_dr_low_set_addr): Use iterate_over_lwps.
11863 (x86_dr_low_set_control): Likewise.
11865 2015-03-24 Gary Benson <gbenson@redhat.com>
11867 * linux-x86-low.c (x86_debug_reg_state): New function.
11868 (x86_linux_prepare_to_resume): Use the above.
11870 2015-03-24 Gary Benson <gbenson@redhat.com>
11872 * linux-low.c (current_lwp_ptid): New function.
11873 * linux-x86-low.c: Include nat/linux-nat.h.
11874 (x86_dr_low_get_addr): Use current_lwp_ptid.
11875 (x86_dr_low_get_control): Likewise.
11876 (x86_dr_low_get_status): Likewise.
11878 2015-03-20 Pedro Alves <palves@redhat.com>
11880 * tracepoint.c (cmd_qtstatus): Make "str" const.
11882 2015-03-20 Pedro Alves <palves@redhat.com>
11884 * server.c (handle_general_set): Make "req_str" const.
11886 2015-03-19 Pedro Alves <palves@redhat.com>
11888 * linux-low.c (linux_resume_one_lwp): Rename to ...
11889 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11890 instead call perror_with_name.
11891 (check_ptrace_stopped_lwp_gone): New function.
11892 (linux_resume_one_lwp): Reimplement as wrapper around
11893 linux_resume_one_lwp_throw that swallows errors if the LWP is
11896 2015-03-19 Pedro Alves <palves@redhat.com>
11898 * linux-low.c (count_events_callback, select_event_lwp_callback):
11899 No longer check whether the thread has resume_stop as last resume
11902 2015-03-19 Pedro Alves <palves@redhat.com>
11904 * linux-low.c (count_events_callback, select_event_lwp_callback):
11905 Use the lwp's status_pending_p field, not the thread's.
11907 2015-03-19 Pedro Alves <palves@redhat.com>
11909 * linux-low.c (select_event_lwp_callback): Update comments to
11910 no longer mention SIGTRAP.
11912 2015-03-18 Gary Benson <gbenson@redhat.com>
11914 * server.c (handle_query): Do not report vFile:fstat as supported.
11916 2015-03-11 Gary Benson <gbenson@redhat.com>
11918 * hostio.c (sys/types.h): New include.
11919 (sys/stat.h): Likewise.
11920 (common-remote-fileio.h): Likewise.
11921 (handle_fstat): New function.
11922 (handle_vFile): Handle vFile:fstat packets.
11924 2015-03-11 Gary Benson <gbenson@redhat.com>
11926 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11927 struct stat.st_blocks and struct stat.st_blksize.
11928 * configure: Regenerate.
11929 * config.in: Likewise.
11930 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11931 (OBS): Add common-remote-fileio.o.
11932 (common-remote-fileio.o): New rule.
11934 2015-03-09 Pedro Alves <palves@redhat.com>
11936 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11937 'struct sockaddr' pointer in 'accept' call.
11939 2015-03-09 Pedro Alves <palves@redhat.com>
11942 2015-03-07 Pedro Alves <palves@redhat.com>
11943 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11944 or <winsock2.h> here. Instead include "gdb_socket.h".
11945 (remote_open): Use union gdb_sockaddr_u.
11946 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11947 or <winsock2.h> here. Instead include "gdb_socket.h".
11948 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11949 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11951 (init_named_socket, gdb_agent_helper_thread): Use union
11954 2015-03-07 Pedro Alves <palves@redhat.com>
11956 * configure.ac (build_warnings): Move
11957 -Wdeclaration-after-statement to the C-specific set.
11958 * configure: Regenerate.
11960 2015-03-07 Pedro Alves <palves@redhat.com>
11962 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11963 or <winsock2.h> here. Instead include "gdb_socket.h".
11964 (remote_open): Use union gdb_sockaddr_u.
11965 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11966 or <winsock2.h> here. Instead include "gdb_socket.h".
11967 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11968 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11970 (init_named_socket, gdb_agent_helper_thread): Use union
11973 2015-03-07 Pedro Alves <palves@redhat.com>
11975 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11978 2015-03-06 Yao Qi <yao.qi@linaro.org>
11980 * linux-aarch64-low.c (aarch64_insert_point): Use
11981 show_debug_regs as a boolean.
11982 (aarch64_remove_point): Likewise.
11984 2015-03-05 Pedro Alves <palves@redhat.com>
11986 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11987 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11988 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11989 * nto-low.c (nto_target_ops): Likewise.
11990 * spu-low.c (spu_target_ops): Likewise.
11991 * win32-low.c (win32_target_ops): Likewise.
11993 2015-03-04 Pedro Alves <palves@redhat.com>
11995 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11996 Decide whether a breakpoint triggered based on the SIGTRAP's
11998 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11999 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
12000 (linux_low_filter_event): Check for breakpoints before checking
12002 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
12004 (linux_stopped_by_sw_breakpoint)
12005 (linux_supports_stopped_by_sw_breakpoint)
12006 (linux_stopped_by_hw_breakpoint)
12007 (linux_supports_stopped_by_hw_breakpoint): New functions.
12008 (linux_target_ops): Install new target methods.
12010 2015-03-04 Pedro Alves <palves@redhat.com>
12012 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
12013 * server.c (swbreak_feature, hwbreak_feature): New globals.
12014 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
12015 (captured_main): Clear swbreak_feature and hwbreak_feature.
12016 * server.h (swbreak_feature, hwbreak_feature): Declare.
12017 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
12018 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
12019 supports_stopped_by_hw_breakpoint>: New fields.
12020 (target_supports_stopped_by_sw_breakpoint)
12021 (target_stopped_by_sw_breakpoint)
12022 (target_supports_stopped_by_hw_breakpoint)
12023 (target_stopped_by_hw_breakpoint): Declare.
12025 2015-03-04 Pedro Alves <palves@redhat.com>
12027 enum lwp_stop_reason -> enum target_stop_reason
12028 * linux-low.c (check_stopped_by_breakpoint): Adjust.
12029 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
12030 (linux_wait_1, stuck_in_jump_pad_callback)
12031 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
12032 (linux_stopped_by_watchpoint):
12033 * linux-low.h (enum lwp_stop_reason): Delete.
12034 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
12035 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12037 2015-03-04 Yao Qi <yao.qi@linaro.org>
12039 * Makefile.in (SFILES): Add linux-aarch64-low.c.
12041 2015-03-03 Gary Benson <gbenson@redhat.com>
12043 * hostio.c (handle_vFile): Fix prefix lengths.
12045 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
12047 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
12050 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
12052 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
12053 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
12054 (clean): Add "rm -f" for above C files.
12055 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
12056 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
12057 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
12058 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
12059 * linux-s390-low.c (HWCAP_S390_VX): New macro.
12060 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
12061 (init_registers_s390x_vx_linux64)
12062 (init_registers_s390x_tevx_linux64)
12063 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
12064 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
12066 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
12067 (s390_store_vxrs_high): New functions.
12068 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
12070 (s390_arch_setup): Add logic for selecting one of the new target
12071 descriptions. Activate the new vector regsets if applicable.
12072 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
12073 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
12074 and init_registers_s390x_tevx_linux64.
12076 2015-03-01 Pedro Alves <palves@redhat.com>
12078 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
12081 2015-02-27 Pedro Alves <palves@redhat.com>
12083 * linux-x86-low.c (u_debugreg_offset): New function.
12084 (x86_linux_dr_get, x86_linux_dr_set): Use it.
12086 2015-02-27 Pedro Alves <palves@redhat.com>
12088 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
12089 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
12090 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
12091 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
12092 (ps_lsetfpregs, ps_getpid)
12093 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
12094 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
12095 (ps_lsetxregs, ps_plog): Declare.
12097 2015-02-27 Pedro Alves <palves@redhat.com>
12099 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
12100 IP_AGENT_EXPORT_FUNC.
12101 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
12102 IP_AGENT_EXPORT_FUNC.
12103 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
12104 (IP_AGENT_EXPORT): Delete.
12105 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12106 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
12107 (gdb_trampoline_buffer_error, collecting, gdb_collect)
12108 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
12109 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
12110 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
12111 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
12112 (traceframe_read_count, traceframe_write_count)
12113 (traceframes_created, trace_state_variables, get_raw_reg)
12114 (get_trace_state_variable_value, set_trace_state_variable_value)
12115 (ust_loaded, helper_thread_id, cmd_buf): Use
12116 IPA_SYM_EXPORTED_NAME.
12117 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
12118 (tracepoints) Use IP_AGENT_EXPORT_VAR.
12119 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
12120 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12121 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
12122 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
12123 EXTERN_C_PUSH/EXTERN_C_POP.
12124 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
12125 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
12126 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12127 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
12128 (traceframe_write_count, traceframe_read_count)
12129 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
12130 (about_to_request_buffer_space, get_trace_state_variable_value)
12131 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
12132 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
12133 EXTERN_C_PUSH/EXTERN_C_POP.
12134 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
12135 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
12136 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
12137 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12138 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12139 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
12140 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
12141 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
12143 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
12144 (IP_AGENT_EXPORT_VAR_DECL): Define.
12145 (tracing): Declare.
12146 (gdb_agent_get_raw_reg): Declare.
12148 2015-02-27 Tom Tromey <tromey@redhat.com>
12149 Pedro Alves <palves@redhat.com>
12151 Rename symbols whose names are reserved C++ keywords throughout.
12153 2015-02-27 Pedro Alves <palves@redhat.com>
12155 * Makefile.in (COMPILER): New, get it from autoconf.
12156 (CXX): Get from autoconf instead.
12157 (COMPILE.pre): Use COMPILER.
12158 (CC-LD): Rename to ...
12159 (CC_LD): ... this. Use COMPILER.
12160 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
12161 (CXX_FOR_TARGET): Default to g++ instead of gcc.
12162 * acinclude.m4: Include build-with-cxx.m4.
12163 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
12164 Disable -Werror by default if building in C++ mode.
12165 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
12166 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
12167 the C++ compiler. Save/restore CXXFLAGS too.
12168 * configure: Regenerate.
12170 2015-02-27 Pedro Alves <palves@redhat.com>
12172 * acinclude.m4: Include libiberty.m4.
12173 * configure.ac: Call libiberty_INIT.
12174 * config.in, configure: Regenerate.
12176 2015-02-26 Pedro Alves <palves@redhat.com>
12178 * linux-low.c (linux_wait_1): When incrementing the PC past a
12179 program breakpoint always use the_low_target.breakpoint_len as
12180 increment, rather than the maximum between that and
12181 the_low_target.decr_pc_after_break.
12183 2015-02-23 Pedro Alves <palves@redhat.com>
12185 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
12186 thread was doing a step-over; always adjust the PC if
12187 we stepped over a permanent breakpoint.
12188 (linux_wait_1): If we stepped over breakpoint that was on top of a
12189 permanent breakpoint, manually advance the PC past it.
12191 2015-02-23 Pedro Alves <palves@redhat.com>
12193 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
12195 (x86_fill_gregset, x86_store_gregset): Use it when handling
12198 2015-02-20 Pedro Alves <palves@redhat.com>
12200 * thread-db.c: Include "nat/linux-procfs.h".
12201 (thread_db_init): Skip listing new threads if the kernel supports
12202 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
12204 2015-02-20 Pedro Alves <palves@redhat.com>
12206 * linux-low.c (status_pending_p_callback): Use ptid_match.
12208 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
12210 PR breakpoints/16812
12211 * linux-low.c (wstatus_maybe_breakpoint): Remove.
12212 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
12213 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
12215 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
12217 PR breakpoints/15956
12218 * tracepoint.c (cmd_qtinit): Add check for current_thread.
12220 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12222 * linux-low.c (linux_low_btrace_conf): Print size.
12223 * server.c (handle_btrace_conf_general_set): New.
12224 (hanle_general_set): Call handle_btrace_conf_general_set.
12225 (handle_query): Report Qbtrace-conf:bts:size as supported.
12227 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12229 * linux-low.c (linux_low_enable_btrace): Update parameters.
12230 (linux_low_btrace_conf): New.
12231 (linux_target_ops)<to_btrace_conf>: Initialize.
12232 * server.c (current_btrace_conf): New.
12233 (handle_btrace_enable): Rename to ...
12234 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
12235 to target_enable_btrace. Update comment. Update users.
12236 (handle_qxfer_btrace_conf): New.
12237 (qxfer_packets): Add btrace-conf entry.
12238 (handle_query): Report qXfer:btrace-conf:read as supported packet.
12239 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
12240 (target_ops)<read_btrace_conf>: New.
12241 (target_enable_btrace): Update parameters.
12242 (target_read_btrace_conf): New.
12244 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12246 * server.c (handle_btrace_general_set): Remove call to
12247 target_supports_btrace.
12248 (supported_btrace_packets): New.
12249 (handle_query): Call supported_btrace_packets.
12250 * target.h: include btrace-common.h.
12251 (btrace_target_info): Removed.
12252 (supports_btrace, target_supports_btrace): Update parameters.
12254 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12256 * Makefile.in (SFILES): Add common/btrace-common.c.
12257 (OBS): Add common/btrace-common.o.
12258 (btrace-common.o): Add build rules.
12259 * linux-low: Include btrace-common.h.
12260 (linux_low_read_btrace): Use struct btrace_data. Call
12261 btrace_data_init and btrace_data_fini.
12263 2015-02-06 Pedro Alves <palves@redhat.com>
12265 * thread-db.c (find_new_threads_callback): Add debug output.
12267 2015-02-04 Pedro Alves <palves@redhat.com>
12269 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
12270 (resume_stopped_resumed_lwps): New function.
12271 (linux_wait_for_event_filtered): Use it.
12273 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12275 * Makefile.in (SFILES): Add linux-personality.c.
12276 (linux-personality.o): New rule.
12277 * configure.srv (srv_linux_obj): Add linux-personality.o to the
12278 list of objects to be built.
12279 * linux-low.c: Include nat/linux-personality.h.
12280 (linux_create_inferior): Remove code to disable address space
12281 randomization (moved to ../nat/linux-personality.c). Create
12282 cleanup to disable address space randomization.
12284 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12286 * Makefile.in (posix-strerror.o): New rule.
12287 (mingw-strerror.o): Likewise.
12288 * configure: Regenerated.
12289 * configure.ac: Source file ../common/common.host. Initialize new
12290 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
12292 2015-01-14 Yao Qi <yao@codesourcery.com>
12294 * Makefile.in (SFILES): Add nat/ppc-linux.c.
12295 (ppc-linux.o): New rule.
12296 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
12297 * configure.ac: AC_CHECK_FUNCS(getauxval).
12298 * config.in: Re-generated.
12299 * configure: Re-generated.
12300 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
12301 ppc64_64bit_inferior_p
12303 2015-01-14 Yao Qi <yao@codesourcery.com>
12305 * linux-ppc-low.c: Include "nat/ppc-linux.h".
12306 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
12307 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
12308 (PT_ORIG_R3, PT_TRAP): Likewise.
12309 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12310 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12311 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12313 2015-01-10 Joel Brobecker <brobecker@adacore.com>
12315 * i387-fp.c (i387_cache_to_xsave): In look over
12316 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
12317 zmmh_low_space field by use of zmmh_high_space.
12319 2015-01-09 Pedro Alves <palves@redhat.com>
12321 * linux-low.c (step_over_bkpt): Move higher up in the file.
12322 (handle_extended_wait): Don't store the stop_pc here.
12323 (get_stop_pc): Adjust comments and rename to ...
12324 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12325 stopped for a software breakpoint or hardware breakpoint.
12326 (thread_still_has_status_pending_p): New function.
12327 (status_pending_p_callback): Use
12328 thread_still_has_status_pending_p. If the event is no longer
12329 interesting, resume the LWP.
12330 (handle_tracepoints): Add assert.
12331 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
12332 (wstatus_maybe_breakpoint): New function.
12333 (cancel_breakpoint): Delete function.
12334 (check_stopped_by_watchpoint): New function, factored out from
12335 linux_low_filter_event.
12336 (lp_status_maybe_breakpoint): Delete function.
12337 (linux_low_filter_event): Remove filter_ptid argument.
12338 Leave thread group exits pending here. Store the LWP's stop PC.
12339 Always leave events pending.
12340 (linux_wait_for_event_filtered): Pull all events out of the
12341 kernel, and leave them all pending.
12342 (count_events_callback, select_event_lwp_callback): Consider all
12344 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
12345 (select_event_lwp): Only give preference to the stepping LWP in
12346 all-stop mode. Adjust comments.
12347 (ignore_event): New function.
12348 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
12349 references to cancel_breakpoints. Adjust to renames. Also give
12350 equal priority to all LWPs that have had events in non-stop mode.
12351 If reporting a software breakpoint event, unadjust the LWP's PC.
12352 (linux_wait): If linux_wait_1 returned an ignored event, retry.
12353 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
12355 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
12356 (resume_status_pending_p): Use thread_still_has_status_pending_p.
12357 (linux_stopped_by_watchpoint): Adjust.
12358 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
12359 * linux-low.h (enum lwp_stop_reason): New.
12360 (struct lwp_info) <stop_pc>: Adjust comment.
12361 <stopped_by_watchpoint>: Delete field.
12362 <stop_reason>: New field.
12363 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12364 * mem-break.c (software_breakpoint_inserted_here)
12365 (hardware_breakpoint_inserted_here): New function.
12366 * mem-break.h (software_breakpoint_inserted_here)
12367 (hardware_breakpoint_inserted_here): Declare.
12368 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
12369 (cancel_breakpoints): Delete.
12370 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
12371 (upload_fast_traceframes): Remove references to
12372 cancel_breakpoints.
12374 2015-01-09 Pedro Alves <palves@redhat.com>
12376 * thread-db.c (find_new_threads_callback): Ignore thread if the
12377 kernel thread ID is -1.
12379 2015-01-09 Pedro Alves <palves@redhat.com>
12381 * linux-low.c (linux_attach_fail_reason_string): Move to
12382 nat/linux-ptrace.c, and rename.
12383 (linux_attach_lwp): Update comment.
12384 (attach_proc_task_lwp_callback): New function.
12385 (linux_attach): Adjust to rename and use
12386 linux_proc_attach_tgid_threads.
12387 (linux_attach_fail_reason_string): Delete declaration.
12389 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12391 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
12392 * server.c (gdbserver_version): Likewise.
12394 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
12396 * remote-utils.c: Include ctype.h.
12397 (input_interrupt): Explicitly handle the case when the char
12398 received is the NUL byte. Improve the printing of non-ASCII
12401 2014-12-16 Joel Brobecker <brobecker@adacore.com>
12403 * linux-low.c (linux_low_filter_event): Update call to
12404 linux_enable_event_reporting following the addition of
12405 a new parameter to that function.
12407 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
12410 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
12411 (AARCH64_FPCR_REGNO): Likewise.
12412 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
12413 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
12414 (aarch64_store_fpregset): Likewise.
12416 2014-12-15 Joel Brobecker <brobecker@adacore.com>
12418 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
12419 Remove FIXME comment about assumption about N.
12421 2014-12-13 Joel Brobecker <brobecker@adacore.com>
12423 * configure.ac: If large-file support is disabled in GDBserver,
12424 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
12425 * configure: Regenerate.
12427 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12429 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
12430 warning upon ENODATA from ptrace.
12431 * linux-s390-low.c (s390_store_tdb): New.
12432 (s390_regsets): Add regset for NT_S390_TDB.
12434 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12436 * linux-low.c (regsets_store_inferior_registers): Skip regsets
12437 without a fill_function.
12438 * linux-s390-low.c (s390_fill_last_break): Remove.
12439 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
12440 (s390_arch_setup): Use regset's size instead of fill_function for
12441 loop end condition.
12443 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12445 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
12446 the regset's store function when ptrace returned an error.
12447 * regcache.c (get_thread_regcache): Invalidate register cache
12448 before fetching inferior's registers.
12450 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12452 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
12453 while-loop as for-loop.
12454 (regsets_store_inferior_registers): Likewise.
12456 2014-11-28 Yao Qi <yao@codesourcery.com>
12458 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
12459 * config.in, configure: Re-generate.
12460 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
12463 2014-11-21 Yao Qi <yao@codesourcery.com>
12465 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
12466 (AC_CHECK_HEADERS): Remove malloc.h.
12467 * configure: Re-generated.
12468 * config.in: Re-generated.
12469 * server.h: Don't include alloca.h and malloc.h.
12470 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
12471 Don't include malloc.h.
12473 2014-11-17 Joel Brobecker <brobecker@adacore.com>
12475 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12476 corresponding ERRNO check in same block.
12478 2014-11-12 Pedro Alves <palves@redhat.com>
12480 * server.c (cont_thread): Update comment.
12481 (start_inferior, attach_inferior): No longer clear cont_thread.
12482 (handle_v_cont): No longer set cont_thread.
12483 (captured_main): Clear cont_thread each time a GDB connects.
12485 2014-11-12 Pedro Alves <palves@redhat.com>
12487 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12488 thread, and don't resume all threads if the Hc thread has exited.
12490 2014-11-12 Pedro Alves <palves@redhat.com>
12492 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12493 the process group instead of to a specific LWP.
12495 2014-10-15 Pedro Alves <palves@redhat.com>
12498 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12500 (arm_set_thread_context): Delete.
12501 (the_low_target): Adjust.
12502 * win32-i386-low.c (debug_registers_changed)
12503 (debug_registers_used): Delete.
12504 (update_debug_registers_callback): New function.
12505 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12506 needing to update their debug registers.
12507 (win32_get_current_dr): New function.
12508 (x86_dr_low_get_addr, x86_dr_low_get_control)
12509 (x86_dr_low_get_status): Fetch the debug register from the thread
12511 (i386_initial_stuff): Adjust.
12512 (i386_get_thread_context): Remove current_event parameter. Don't
12513 clear debug_registers_changed nor copy DR values to
12515 (i386_set_thread_context): Delete.
12516 (i386_prepare_to_resume): New function.
12517 (i386_thread_added): Mark the thread as needing to update irs
12519 (the_low_target): Remove i386_set_thread_context and install
12520 i386_prepare_to_resume.
12521 * win32-low.c (win32_get_thread_context): Adjust.
12522 (win32_set_thread_context): Use SetThreadContext
12524 (win32_prepare_to_resume): New function.
12525 (win32_require_context): New function, factored out from ...
12526 (thread_rec): ... this.
12527 (continue_one_thread): Call win32_prepare_to_resume on each thread
12528 we're about to continue.
12529 (win32_resume): Call win32_prepare_to_resume on the event thread.
12530 * win32-low.h (struct win32_thread_info)
12531 <debug_registers_changed>: New field.
12532 (struct win32_target_ops): Change prototype of set_thread_context,
12533 delete set_thread_context and add prepare_to_resume.
12534 (win32_require_context): New declaration.
12536 2014-10-08 Gary Benson <gbenson@redhat.com>
12538 * server.h: Do not include common-exceptions.h.
12540 2014-10-08 Gary Benson <gbenson@redhat.com>
12542 * server.h: Do not include cleanups.h.
12544 2014-09-30 James Hogan <james.hogan@imgtec.com>
12546 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12547 mips64-dsp-linux.c.
12549 2014-09-23 Yao Qi <yao@codesourcery.com>
12551 * linux-low.c (lp_status_maybe_breakpoint): New function.
12552 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12553 (count_events_callback): Likewise.
12554 (select_event_lwp_callback): Likewise.
12555 (cancel_breakpoints_callback): Likewise.
12557 2014-09-19 Don Breazeal <donb@codesourcery.com>
12559 * linux-low.c (handle_extended_wait): Call
12560 linux_ptrace_get_extended_event.
12561 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12562 linux_is_extended_waitstatus.
12564 2014-09-16 Joel Brobecker <brobecker@adacore.com>
12566 * Makefile.in (CPPFLAGS): Define.
12567 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12568 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12570 2014-09-16 Gary Benson <gbenson@redhat.com>
12572 * inferiors.h (current_inferior): Renamed as...
12573 (current_thread): New variable. All uses updated.
12574 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12575 (maybe_move_out_of_jump_pad): Likewise.
12576 (cancel_breakpoint): Likewise.
12577 (linux_low_filter_event): Likewise.
12578 (wait_for_sigstop): Likewise.
12579 (linux_resume_one_lwp): Likewise.
12580 (need_step_over_p): Likewise.
12581 (start_step_over): Likewise.
12582 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12583 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12584 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12585 and save_inferior as saved_thread.
12586 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12588 (regcache_invalidate_thread): Likewise.
12589 * remote-utils.c (prepare_resume_reply): Likewise.
12590 * thread-db.c (thread_db_get_tls_address): Likewise.
12591 (disable_thread_event_reporting): Likewise.
12592 (remove_thread_event_breakpoints): Likewise.
12593 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12595 * target.h (set_desired_inferior): Renamed as...
12596 (set_desired_thread): New declaration. All uses updated.
12597 * server.c (myresume): Updated comment to reference thread instead
12599 (handle_serial_event): Likewise.
12600 (handle_target_event): Likewise.
12602 2014-09-12 Tom Tromey <tromey@redhat.com>
12603 Gary Benson <gbenson@redhat.com>
12605 * regcache.h: Include common-regcache.h.
12606 (regcache_read_pc): Don't declare.
12607 * regcache.c (get_thread_regcache_for_ptid): New function.
12609 2014-09-11 Tom Tromey <tromey@redhat.com>
12610 Gary Benson <gbenson@redhat.com>
12612 * symbol.c: New file.
12613 * Makefile.in (SFILES): Add symbol.c.
12614 (OBS): Add symbol.o.
12616 2014-09-11 Gary Benson <gbenson@redhat.com>
12618 * target.c (target_stop_ptid, target_continue_ptid): New
12621 2014-09-11 Tom Tromey <tromey@redhat.com>
12622 Gary Benson <gbenson@redhat.com>
12624 * target.h: Include target/target.h.
12625 * target.c (target_read_memory, target_read_uint32)
12626 (target_write_memory): New functions.
12628 2014-09-11 Gary Benson <gbenson@redhat.com>
12630 * server.h (debug_hw_points): Don't declare.
12631 * server.c (debug_hw_points): Don't define. Replace all uses
12632 with show_debug_regs.
12633 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12634 all uses with show_debug_regs.
12636 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12638 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12639 endianness into account.
12640 (ppc_supply_ptrace_register): Likewise.
12642 2014-09-03 James Hogan <james.hogan@imgtec.com>
12644 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12645 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12647 2014-09-03 Gary Benson <gbenson@redhat.com>
12649 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12650 ALL_DEBUG_ADDRESS_REGISTERS.
12652 2014-09-02 Gary Benson <gbenson@redhat.com>
12654 * i386-low.h: Renamed as...
12655 * x86-low.h: New file. All type, function and variable name
12656 prefixes changed from "i386_" to "x86_". All references updated.
12657 * i386-low.c: Renamed as...
12658 * x86-low.c: New file. All type, function and variable name
12659 prefixes changed from "i386_" to "x86_". All references updated.
12661 2014-09-02 Gary Benson <gbenson@redhat.com>
12663 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12664 (x86_linux_new_thread): Likewise.
12666 2014-08-29 Gary Benson <gbenson@redhat.com>
12668 * server.h (setjmp.h): Do not include.
12669 (toplevel): Do not declare.
12670 (common-exceptions.h): Include.
12671 (cleanups.h): Likewise.
12672 * server.c (toplevel): Do not define.
12673 (exit_code): New static global.
12674 (detach_or_kill_for_exit_cleanup): New function.
12675 (main): New function. Original main renamed to...
12676 (captured_main): New function.
12677 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12679 2014-08-29 Gary Benson <gbenson@redhat.com>
12681 * Makefile.in (SFILES): Add common/common-exceptions.c.
12682 (OBS): Add common-exceptions.o.
12683 (common-exceptions.o): New rule.
12684 * utils.c (prepare_to_throw_exception): New function.
12686 2014-08-29 Gary Benson <gbenson@redhat.com>
12688 * config.in: Regenerate.
12689 * configure: Likewise.
12691 2014-08-29 Gary Benson <gbenson@redhat.com>
12693 * Makefile.in (SFILES): Add common/cleanups.c.
12695 (cleanups.o): New rule.
12697 2014-08-29 Gary Benson <gbenson@redhat.com>
12699 * utils.c (internal_vwarning): New function.
12701 2014-08-28 Gary Benson <gbenson@redhat.com>
12703 * utils.h (fatal): Remove declaration.
12704 * utils.c (fatal): Remove function.
12706 2014-08-28 Gary Benson <gbenson@redhat.com>
12708 * tracepoint.c (gdb_agent_init): Replace fatal with
12710 (initialize_tracepoint): Likewise.
12712 2014-08-28 Gary Benson <gbenson@redhat.com>
12714 * remote-utils.c (remote_prepare): Replace fatal with error.
12716 2014-08-28 Gary Benson <gbenson@redhat.com>
12718 * linux-low.c (linux_async): Replace fatal with warning.
12719 Tidy up and return.
12720 (linux_start_non_stop): Return -1 if linux_async failed.
12722 2014-08-28 Gary Benson <gbenson@redhat.com>
12724 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12726 (i386_dr_low_get_addr): Remove vague comment.
12727 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12730 2014-08-28 Gary Benson <gbenson@redhat.com>
12732 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12733 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12735 (linux_resume_one_lwp): Likewise.
12736 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12738 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12739 with internal_error.
12740 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12741 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12742 (find_register_by_name): Replace fatal with internal_error.
12743 (find_regno): Likewise.
12744 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12745 * thread-db.c (thread_db_create_event): Likewise.
12746 (thread_db_load_search): Likewise.
12747 (try_thread_db_load_1): Likewise.
12748 * tracepoint.c (get_jump_space_head): Replace fatal with
12750 (claim_trampoline_space): Likewise.
12751 (have_fast_tracepoint_trampoline_buffer): Likewise.
12752 (cmd_qtstart): Likewise.
12753 (stop_tracing): Likewise.
12754 (fast_tracepoint_collecting): Likewise.
12755 (target_malloc): Likewise.
12756 (download_tracepoint): Likewise.
12757 (download_trace_state_variables): Replace check with gdb_assert.
12758 (upload_fast_traceframes): Replace fatal with internal_error.
12760 2014-08-19 Tom Tromey <tromey@redhat.com>
12761 Gary Benson <gbenson@redhat.com>
12763 * Makefile.in (SFILES): Add common/common-debug.c.
12764 (OBS): Add common-debug.o.
12765 (common-debug.o): New rule.
12766 * debug.h (debug_printf): Don't declare.
12767 * debug.c (debug_printf): Renamed and rewritten as...
12768 (debug_vprintf): New function.
12770 2014-08-19 Gary Benson <gbenson@redhat.com>
12772 * utils.h: Do not include print-utils.h.
12774 2014-08-19 Tom Tromey <tromey@redhat.com>
12775 Gary Benson <gbenson@redhat.com>
12777 * server.h: Add static assertion.
12778 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12780 2014-08-19 Tom Tromey <tromey@redhat.com>
12781 Gary Benson <gbenson@redhat.com>
12783 * Makefile.in (SFILES): Add common/errors.c.
12784 (OBS): Add errors.o.
12785 (IPA_OBS): Add errors-ipa.o.
12786 (errors.o): New rule.
12787 (errors-ipa.o): Likewise.
12788 * utils.h (perror_with_name, error, warning): Don't declare.
12789 * utils.c (warning): Renamed and rewritten as...
12790 (vwarning): New function.
12791 (error): Renamed and rewritten as...
12792 (verror): New function.
12793 (internal_error): Renamed and rewritten as...
12794 (internal_verror): New function.
12796 2014-08-07 Gary Benson <gbenson@redhat.com>
12798 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12799 * configure: Regenerate.
12800 * config.in: Likewise.
12801 * server.h: Do not include errno.h.
12802 * event-loop.c: Likewise.
12803 * hostio-errno.c: Likewise.
12804 * linux-low.c: Likewise.
12805 * remote-utils.c: Likewise.
12806 * spu-low.c: Likewise.
12807 * utils.c: Likewise.
12808 * gdbreplay.c: Unconditionally include errno.h.
12810 2014-08-07 Gary Benson <gbenson@redhat.com>
12812 * server.h: Do not include string.h.
12813 * event-loop.c: Likewise.
12814 * linux-low.c: Likewise.
12815 * regcache.c: Likewise.
12816 * remote-utils.c: Likewise.
12817 * spu-low.c: Likewise.
12818 * utils.c: Likewise.
12820 2014-08-07 Gary Benson <gbenson@redhat.com>
12822 * server.h: Do not include gdb_assert.h.
12824 2014-08-07 Gary Benson <gbenson@redhat.com>
12826 * server.h: Do not include common-utils.h.
12828 2014-08-07 Gary Benson <gbenson@redhat.com>
12830 * server.h: Do not include ptid.h.
12831 * notif.h: Likewise.
12833 2014-08-07 Gary Benson <gbenson@redhat.com>
12835 * server.h: Do not include gdb_locale.h.
12837 2014-08-07 Gary Benson <gbenson@redhat.com>
12839 * server.h: Do not include gdb/signals.h.
12840 * win32-low.c: Likewise.
12842 2014-08-07 Gary Benson <gbenson@redhat.com>
12844 * server.h: Do not include pathmax.h.
12846 2014-08-07 Gary Benson <gbenson@redhat.com>
12848 * server.h: Do not include libiberty.h.
12849 * linux-bfin-low.c: Likewise.
12851 2014-08-07 Gary Benson <gbenson@redhat.com>
12853 * server.h: Do not include ansidecl.h.
12855 2014-08-07 Gary Benson <gbenson@redhat.com>
12857 * linux-x86-low.c: Do not include stddef.h.
12858 * lynx-ppc-low.c: Likewise.
12859 * tracepoint.c: Likewise.
12861 2014-08-07 Gary Benson <gbenson@redhat.com>
12863 * server.h: Do not include stdarg.h.
12864 * nto-low.c: Likewise.
12866 2014-08-07 Gary Benson <gbenson@redhat.com>
12868 * server.h: Do not include stdlib.h.
12869 * inferiors.c: Likewise.
12870 * linux-low.c: Likewise.
12871 * regcache.c: Likewise.
12872 * spu-low.c: Likewise.
12873 * tracepoint.c: Likewise.
12874 * utils.c: Likewise.
12876 2014-08-07 Gary Benson <gbenson@redhat.com>
12878 * server.h: Do not include stdio.h.
12879 * linux-low.c: Likewise.
12880 * remote-utils.c: Likewise.
12881 * spu-low.c: Likewise.
12882 * utils.c: Likewise.
12883 * wincecompat.c: Likewise.
12885 2014-08-06 Gary Benson <gbenson@redhat.com>
12887 * regcache.c (init_register_cache): Move conditionals inside if.
12889 2014-08-06 Gary Benson <gbenson@redhat.com>
12891 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12893 2014-07-31 Gary Benson <gbenson@redhat.com>
12895 * ax.h: Do not include server.h.
12896 * gdbthread.h: Likewise.
12897 * lynx-low.h: Likewise.
12898 * notif.h: Likewise.
12900 2014-07-30 Gary Benson <gbenson@redhat.com>
12902 * server.h: Include common-defs.h.
12903 Do not include config.h or build-gnulib-gdbserver/config.h.
12905 2014-07-30 Gary Benson <gbenson@redhat.com>
12907 * hostio-errno.c: Move server.h to top of includes list.
12908 * inferiors.c: Likewise.
12909 * linux-x86-low.c: Likewise.
12910 * notif.c: Include server.h.
12912 2014-07-24 Tom Tromey <tromey@redhat.com>
12913 Gary Benson <gbenson@redhat.com>
12915 * server.h (CORE_ADDR): Now unsigned.
12917 2014-07-16 Pedro Alves <palves@redhat.com>
12919 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12921 2014-07-15 Pedro Alves <palves@redhat.com>
12923 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12926 2014-07-11 Pedro Alves <palves@redhat.com>
12928 * linux-low.c (kill_wait_lwp): New function, based on
12929 kill_one_lwp_callback, but use my_waitpid directly.
12930 (kill_one_lwp_callback, linux_kill): Use it.
12932 2014-06-23 Pedro Alves <palves@redhat.com>
12934 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12935 before setting DR0..DR3.
12937 2014-06-20 Gary Benson <gbenson@redhat.com>
12939 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12940 * configure: Regenerated.
12941 * config.in: Likewise.
12943 2014-06-20 Gary Benson <gbenson@redhat.com>
12945 * Makefile.in (SFILES): Update locations for files moved
12946 from common to nat.
12947 (object file files): Reordered.
12949 2014-06-20 Gary Benson <gbenson@redhat.com>
12951 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12952 (i386_dr_low_set_addr): Likewise.
12953 (i386_dr_low_get_addr): Likewise.
12954 (i386_dr_low_can_set_control): Likewise.
12955 (i386_dr_low_set_control): Likewise.
12956 (i386_dr_low_get_control): Likewise.
12957 (i386_dr_low_get_status): Likewise.
12958 (i386_get_debug_register_length): Likewise.
12959 * linux-x86-low.c (i386_dr_low_set_addr):
12960 Changed signature. Made static.
12961 (i386_dr_low_get_addr): Likewise.
12962 (i386_dr_low_set_control): Likewise.
12963 (i386_dr_low_get_control): Likewise.
12964 (i386_dr_low_get_status): Likewise.
12965 (i386_dr_low): New global variable.
12966 * win32-i386-low.c (i386_dr_low_set_addr):
12967 Changed signature. Made static.
12968 (i386_dr_low_get_addr): Likewise.
12969 (i386_dr_low_set_control): Likewise.
12970 (i386_dr_low_get_control): Likewise.
12971 (i386_dr_low_get_status): Likewise.
12972 (i386_dr_low): New global variable.
12974 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12976 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12977 * Makefile.in (AR, AR_FLAGS): Define.
12978 * configure: Regenerate.
12980 2014-06-19 Gary Benson <gbenson@redhat.com>
12982 * Makefile.in (i386-dregs.o): New rule.
12983 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12984 * i386-low.c (target.h): Remove include.
12985 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12986 (DR_CONTROL_SHIFT): Likewise.
12987 (DR_CONTROL_SIZE): Likewise.
12988 (DR_RW_EXECUTE): Likewise.
12989 (DR_RW_WRITE): Likewise.
12990 (DR_RW_READ): Likewise.
12991 (DR_RW_IORW): Likewise.
12992 (DR_LEN_1): Likewise.
12993 (DR_LEN_2): Likewise.
12994 (DR_LEN_4): Likewise.
12995 (DR_LEN_8): Likewise.
12996 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12997 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12998 (DR_ENABLE_SIZE): Likewise.
12999 (DR_LOCAL_SLOWDOWN): Likewise.
13000 (DR_GLOBAL_SLOWDOWN): Likewise.
13001 (DR_CONTROL_RESERVED): Likewise.
13002 (I386_DR_CONTROL_MASK): Likewise.
13003 (I386_DR_VACANT): Likewise.
13004 (I386_DR_LOCAL_ENABLE): Likewise.
13005 (I386_DR_GLOBAL_ENABLE): Likewise.
13006 (I386_DR_DISABLE): Likewise.
13007 (I386_DR_SET_RW_LEN): Likewise.
13008 (I386_DR_GET_RW_LEN): Likewise.
13009 (I386_DR_WATCH_HIT): Likewise.
13010 (i386_wp_op_t): Likewise.
13011 (i386_show_dr): Likewise.
13012 (i386_length_and_rw_bits): Likewise.
13013 (i386_insert_aligned_watchpoint): Likewise.
13014 (i386_remove_aligned_watchpoint): Likewise.
13015 (i386_handle_nonaligned_watchpoint): Likewise.
13016 i386_update_inferior_debug_regs(): Likewise.
13017 (i386_dr_insert_watchpoint): Likewise.
13018 (i386_dr_remove_watchpoint): Likewise.
13019 (i386_dr_region_ok_for_watchpoint): Likewise.
13020 (i386_dr_stopped_data_address): Likewise.
13021 (i386_dr_stopped_by_watchpoint): Likewise.
13023 2014-06-19 Gary Benson <gbenson@redhat.com>
13025 * i386-low.c (i386_dr_show): Renamed to
13026 i386_show_dr and made static. All uses updated.
13027 (i386_dr_length_and_rw_bits): Renamed to
13028 i386_length_and_rw_bits and made static.
13030 (i386_dr_insert_aligned_watchpoint): Renamed to
13031 i386_insert_aligned_watchpoint and made static.
13033 (i386_dr_remove_aligned_watchpoint): Renamed to
13034 i386_remove_aligned_watchpoint and made static.
13036 (i386_dr_update_inferior_debug_regs): Renamed to
13037 i386_update_inferior_debug_regs and made static.
13040 2014-06-18 Gary Benson <gbenson@redhat.com>
13042 * i386-low.h (i386_dr_low_can_set_addr): New macro.
13043 (i386_dr_low_can_set_control): Likewise.
13044 (i386_get_debug_register_length): Likewise.
13045 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
13046 (i386_dr_low_can_set_control): Likewise.
13047 (i386_get_debug_register_length): Likewise.
13049 2014-06-17 Gary Benson <gbenson@redhat.com>
13051 * i386-low.h (i386-dregs.h): New include.
13052 (DR_FIRSTADDR): Now in i386-dregs.h.
13053 (DR_LASTADDR): Likewise.
13054 (DR_NADDR): Likewise.
13055 (DR_STATUS): Likewise.
13056 (DR_CONTROL): Likewise.
13057 (i386_debug_reg_state): Likewise.
13058 (i386_dr_insert_watchpoint): Likewise.
13059 (i386_dr_remove_watchpoint): Likewise.
13060 (i386_dr_region_ok_for_watchpoint): Likewise.
13061 (i386_dr_stopped_data_address): Likewise.
13062 (i386_dr_stopped_by_watchpoint): Likewise.
13063 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
13065 2014-06-18 Gary Benson <gbenson@redhat.com>
13067 * i386-low.h (i386_low_insert_watchpoint): Renamed to
13068 i386_dr_insert_watchpoint.
13069 (i386_low_remove_watchpoint): Renamed to
13070 i386_dr_remove_watchpoint.
13071 (i386_low_region_ok_for_watchpoint): Renamed to
13072 i386_dr_region_ok_for_watchpoint.
13073 (i386_low_stopped_data_address): Renamed to
13074 i386_dr_stopped_data_address.
13075 (i386_low_stopped_by_watchpoint): Renamed to
13076 i386_dr_stopped_by_watchpoint.
13077 * i386-low.c (i386_show_dr): Renamed to
13078 i386_dr_show and made nonstatic. All uses updated.
13079 (i386_length_and_rw_bits): Renamed to
13080 i386_dr_length_and_rw_bits and made nonstatic.
13082 (i386_insert_aligned_watchpoint): Renamed to
13083 i386_dr_insert_aligned_watchpoint and made nonstatic.
13085 (i386_remove_aligned_watchpoint): Renamed to
13086 i386_dr_remove_aligned_watchpoint and made nonstatic.
13088 (i386_update_inferior_debug_regs): Renamed to
13089 i386_dr_update_inferior_debug_regs and made nonstatic.
13091 (i386_low_insert_watchpoint): Renamed to
13092 i386_dr_insert_watchpoint. All uses updated.
13093 (i386_low_remove_watchpoint): Renamed to
13094 i386_dr_remove_watchpoint. All uses updated.
13095 (i386_low_region_ok_for_watchpoint): Renamed to
13096 i386_dr_region_ok_for_watchpoint. All uses updated.
13097 (i386_low_stopped_data_address): Renamed to
13098 i386_dr_stopped_data_address. All uses updated.
13099 (i386_low_stopped_by_watchpoint): Renamed to
13100 i386_dr_stopped_by_watchpoint. All uses updated.
13102 2014-06-18 Gary Benson <gbenson@redhat.com>
13104 * i386-low.c (i386_dr_low_can_set_addr): New macro.
13105 (i386_dr_low_can_set_control): Likewise.
13106 (i386_insert_aligned_watchpoint): New check.
13108 2014-06-18 Gary Benson <gbenson@redhat.com>
13110 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
13113 2014-06-18 Gary Benson <gbenson@redhat.com>
13115 * i386-low.c (i386_length_and_rw_bits): Use internal_error
13116 instead of fatal and error.
13117 (i386_handle_nonaligned_watchpoint): Likewise.
13119 2014-06-18 Gary Benson <gbenson@redhat.com>
13121 * i386-low.c (i386_get_debug_register_length): New macro.
13122 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
13123 (i386_show_dr): Use debug_printf instead of fprintf. Use
13124 phex to format values.
13126 2014-06-18 Gary Benson <gbenson@redhat.com>
13128 * i386-low.h: Comment changes.
13129 * i386-low.c: Likewise.
13131 2014-06-18 Gary Benson <gbenson@redhat.com>
13133 * i386-low.c: Whitespace changes.
13135 2014-06-12 Tom Tromey <tromey@redhat.com>
13137 * utils.c (freeargv): Remove.
13139 2014-06-12 Tom Tromey <tromey@redhat.com>
13141 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
13142 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
13143 (parse_debug_format_options): Likewise.
13144 (gdbserver_usage): Likewise.
13145 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
13146 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
13147 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
13149 ($(LIBGNU)): Depend on libiberty.
13150 (all-lib): Recurse into all subdirs.
13151 (install-only): Invoke "install" target in subdirs.
13152 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
13154 * configure: Rebuild.
13155 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
13156 for vasprintf, vsnprintf, or gettimeofday.
13157 * configure.srv: Don't add safe-ctype.o or lbasename.o to
13160 2014-06-05 Joel Brobecker <brobecker@adacore.com>
13162 * development.sh: Delete.
13163 * Makefile.in (config.status): Adjust dependency on development.sh.
13164 * configure.ac: Adjust development.sh source call.
13165 * configure: Regenerate.
13167 2014-06-02 Pedro Alves <palves@redhat.com>
13169 * ax.c (gdb_free_agent_expr): New function.
13170 * ax.h (gdb_free_agent_expr): New declaration.
13171 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
13173 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
13175 (clear_breakpoint_conditions_and_commands): New function.
13176 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
13177 (clear_breakpoint_conditions_and_commands): New declaration.
13179 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13181 * linux-aarch64-low.c (asm/ptrace.h): Include.
13183 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13185 Fix TLS access for -static -pthread.
13186 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
13187 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
13188 (thread_db_load_search, try_thread_db_load_1): Initialize it.
13190 2014-05-20 Pedro Alves <palves@redhat.com>
13192 * linux-aarch64-low.c (aarch64_insert_point)
13193 (aarch64_remove_point): No longer check whether the type is
13194 supported here. Adjust to new interface.
13195 (the_low_target): Install aarch64_supports_z_point_type as
13196 supports_z_point_type method.
13197 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
13198 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
13199 instead of a Z packet char. Adjust.
13200 (arm_supports_z_point_type): New function.
13201 (arm_insert_point, arm_remove_point): Adjust to new interface.
13202 (the_low_target): Install arm_supports_z_point_type.
13203 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
13204 (cris_insert_point, cris_remove_point): Adjust to new interface.
13205 Don't check whether the type is supported here.
13206 (the_low_target): Install cris_supports_z_point_type.
13207 * linux-low.c (linux_supports_z_point_type): New function.
13208 (linux_insert_point, linux_remove_point): Adjust to new interface.
13209 * linux-low.h (struct linux_target_ops) <insert_point,
13210 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
13211 raw_breakpoint pointer parameter.
13212 <supports_z_point_type>: New method.
13213 * linux-mips-low.c (mips_supports_z_point_type): New function.
13214 (mips_insert_point, mips_remove_point): Adjust to new interface.
13215 Use mips_supports_z_point_type.
13216 (the_low_target): Install mips_supports_z_point_type.
13217 * linux-ppc-low.c (the_low_target): Install NULL as
13218 supports_z_point_type method.
13219 * linux-s390-low.c (the_low_target): Install NULL as
13220 supports_z_point_type method.
13221 * linux-sparc-low.c (the_low_target): Install NULL as
13222 supports_z_point_type method.
13223 * linux-x86-low.c (x86_supports_z_point_type): New function.
13224 (x86_insert_point): Adjust to new insert_point interface. Use
13225 insert_memory_breakpoint. Adjust to new
13226 i386_low_insert_watchpoint interface.
13227 (x86_remove_point): Adjust to remove_point interface. Use
13228 remove_memory_breakpoint. Adjust to new
13229 i386_low_remove_watchpoint interface.
13230 (the_low_target): Install x86_supports_z_point_type.
13231 * lynx-low.c (lynx_target_ops): Install NULL as
13232 supports_z_point_type callback.
13233 * nto-low.c (nto_supports_z_point_type): New.
13234 (nto_insert_point, nto_remove_point): Adjust to new interface.
13235 (nto_target_ops): Install nto_supports_z_point_type.
13236 * mem-break.c: Adjust intro comment.
13237 (struct raw_breakpoint) <raw_type, size>: New fields.
13238 <inserted>: Update comment.
13239 <shlib_disabled>: Delete field.
13240 (enum bkpt_type) <gdb_breakpoint>: Delete value.
13241 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
13242 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
13243 (raw_bkpt_type_to_target_hw_bp_type): New function.
13244 (find_enabled_raw_code_breakpoint_at): New function.
13245 (find_raw_breakpoint_at): New type and size parameters. Use them.
13246 (insert_memory_breakpoint): New function, based off
13247 set_raw_breakpoint_at.
13248 (remove_memory_breakpoint): New function.
13249 (set_raw_breakpoint_at): Reimplement.
13250 (set_breakpoint): New, based on set_breakpoint_at.
13251 (set_breakpoint_at): Reimplement.
13252 (delete_raw_breakpoint): Go through the_target->remove_point
13253 instead of assuming memory breakpoints.
13254 (find_gdb_breakpoint_at): Delete.
13255 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
13256 (find_gdb_breakpoint): New function.
13257 (set_gdb_breakpoint_at): Delete.
13258 (z_type_supported): New function.
13259 (set_gdb_breakpoint_1): New function, loosely based off
13260 set_gdb_breakpoint_at.
13261 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
13262 (delete_gdb_breakpoint_at): Delete.
13263 (delete_gdb_breakpoint_1): New function, loosely based off
13264 delete_gdb_breakpoint_at.
13265 (delete_gdb_breakpoint): New function.
13266 (clear_gdb_breakpoint_conditions): Rename to ...
13267 (clear_breakpoint_conditions): ... this. Don't handle a NULL
13269 (add_condition_to_breakpoint): Make static.
13270 (add_breakpoint_condition): Take a struct breakpoint pointer
13271 instead of an address. Adjust.
13272 (gdb_condition_true_at_breakpoint): Rename to ...
13273 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
13275 (gdb_condition_true_at_breakpoint): Reimplement.
13276 (add_breakpoint_commands): Take a struct breakpoint pointer
13277 instead of an address. Adjust.
13278 (gdb_no_commands_at_breakpoint): Rename to ...
13279 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
13280 parameter. Return true if no breakpoint was found. Change debug
13282 (gdb_no_commands_at_breakpoint): Reimplement.
13283 (run_breakpoint_commands): Rename to ...
13284 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
13285 and change return type to boolean.
13286 (run_breakpoint_commands): New function.
13287 (gdb_breakpoint_here): Also check for Z1 breakpoints.
13288 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
13289 breakpoint. Go through the_target->remove_point instead of
13290 assuming memory breakpoint.
13291 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
13292 software and hardware breakpoints.
13293 (reinsert_raw_breakpoint): Go through the_target->insert_point
13294 instead of assuming memory breakpoint.
13295 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
13296 software and hardware breakpoints.
13297 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
13298 Check both software and hardware breakpoints.
13299 (validate_inserted_breakpoint): Assert the breakpoint is a
13300 software breakpoint. Set the inserted flag to -1 instead of
13301 setting shlib_disabled.
13302 (delete_disabled_breakpoints): Adjust.
13303 (validate_breakpoints): Only validate software breakpoints.
13304 Adjust to inserted flag change.
13305 (check_mem_read, check_mem_write): Skip breakpoint types other
13306 than software breakpoints. Adjust to inserted flag change.
13307 * mem-break.h (enum raw_bkpt_type): New enum.
13308 (raw_breakpoint, struct process_info): Forward declare.
13309 (Z_packet_to_target_hw_bp_type): Delete declaration.
13310 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
13311 (set_gdb_breakpoint, delete_gdb_breakpoint)
13312 (clear_breakpoint_conditions): New declarations.
13313 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
13314 (breakpoint_inserted_here): Update comment.
13315 (add_breakpoint_condition, add_breakpoint_commands): Replace
13316 address parameter with a breakpoint pointer parameter.
13317 (gdb_breakpoint_here): Update comment.
13318 (delete_gdb_breakpoint_at): Delete.
13319 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
13320 * server.c (process_point_options): Take a struct breakpoint
13321 pointer instead of an address. Adjust.
13322 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
13323 delete_gdb_breakpoint.
13324 * spu-low.c (spu_target_ops): Install NULL as
13325 supports_z_point_type method.
13326 * target.h: Include mem-break.h.
13327 (struct target_ops) <prepare_to_access_memory>: Update comment.
13328 <supports_z_point_type>: New field.
13329 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13330 instead of a char. Also take a raw breakpoint pointer.
13331 * win32-arm-low.c (the_low_target): Install NULL as
13332 supports_z_point_type.
13333 * win32-i386-low.c (i386_supports_z_point_type): New function.
13334 (i386_insert_point, i386_remove_point): Adjust to new interface.
13335 (the_low_target): Install i386_supports_z_point_type.
13336 * win32-low.c (win32_supports_z_point_type): New function.
13337 (win32_insert_point, win32_remove_point): Adjust to new interface.
13338 (win32_target_ops): Install win32_supports_z_point_type.
13339 * win32-low.h (struct win32_target_ops):
13340 <supports_z_point_type>: New method.
13341 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13342 instead of a char. Also take a raw breakpoint pointer.
13344 2014-05-20 Pedro Alves <palves@redhat.com>
13346 * mem-break.h: Include break-common.h.
13347 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13348 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
13349 (Z_packet_to_target_hw_bp_type): New declaration.
13350 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
13351 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
13352 (Z_PACKET_ACCESS_WP): Delete macros.
13353 (Z_packet_to_hw_type): Delete function.
13354 * i386-low.h: Don't include break-common.h here.
13355 (Z_packet_to_hw_type): Delete declaration.
13356 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
13357 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13358 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
13359 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13360 * linux-aarch64-low.c: Don't include break-common.h here.
13361 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13362 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
13363 (Z_packet_to_target_hw_bp_type): Delete function.
13364 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
13366 (mips_insert_point, mips_remove_point): Use
13367 Z_packet_to_target_hw_bp_type.
13369 2014-05-20 Pedro Alves <palves@redhat.com>
13371 * linux-aarch64-low.c: Include break-common.h.
13372 (enum target_point_type): Delete.
13373 (Z_packet_to_point_type): Rename to ...
13374 (Z_packet_to_target_hw_bp_type): ... this, and return a
13375 target_hw_bp_type instead.
13376 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
13377 instead of an enum target_point_type.
13378 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
13380 (aarch64_dr_state_insert_one_point)
13381 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
13382 (aarch64_handle_aligned_watchpoint)
13383 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
13384 Take an enum target_hw_bp_type instead of an enum
13386 (aarch64_supports_z_point_type): New function.
13387 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
13388 use Z_packet_to_target_hw_bp_type.
13390 2014-05-20 Joel Brobecker <brobecker@adacore.com>
13392 * configure.ac: Only use -Werror by default when DEVELOPMENT
13394 * configure: Regenerate.
13396 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
13398 Fix gdbserver qGetTLSAddr for x86_64 -m32.
13399 * linux-x86-low.c (X86_64_USER_REGS): New.
13400 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
13402 2014-04-28 Yao Qi <yao@codesourcery.com>
13404 * Makefile.in (i386-avx512.c): Fix the typo of generated file
13407 2014-04-25 Pedro Alves <palves@redhat.com>
13410 * linux-low.c (linux_attach_fail_reason_string): New function.
13411 (linux_attach_lwp): Delete.
13412 (linux_attach_lwp_1): Rename to ...
13413 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
13414 argument. Remove "initial" parameter. Return int instead of
13415 void. Don't error or warn here.
13416 (linux_attach): Adjust to call linux_attach_lwp. Call error on
13417 failure to attach to the tgid. Call warning when failing to
13419 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
13420 argument. Remove "initial" parameter. Return int instead of
13421 void. Don't error or warn here.
13422 (linux_attach_fail_reason_string): New declaration.
13423 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
13424 interface change. Use linux_attach_fail_reason_string.
13426 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
13427 Walfred Tedeschi <walfred.tedeschi@intel.com>
13429 * Makefile.in: Added rules to handle new files
13430 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
13431 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
13432 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
13433 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
13434 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
13435 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
13436 x32-avx512-linux.o.
13437 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
13438 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
13439 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
13440 i386/x32-avx512.xml.
13441 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
13442 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
13443 i386/x32-avx512-linux.xml.
13444 * i387-fp.c (num_avx512_k_registers): New constant for number
13446 (num_avx512_zmmh_low_registers): New constant for number of
13447 lower ZMM registers (0-15).
13448 (num_avx512_zmmh_high_registers): New constant for number of
13449 higher ZMM registers (16-31).
13450 (num_avx512_ymmh_registers): New contant for number of higher
13451 YMM registers (ymm16-31 added by avx521 on x86_64).
13452 (num_avx512_xmm_registers): New constant for number of higher
13453 XMM registers (xmm16-31 added by AVX512 on x86_64).
13454 (struct i387_xsave): Add space for AVX512 registers.
13455 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
13456 Add code to handle AVX512 registers.
13457 (i387_xsave_to_cache): Add code to handle AVX512 registers.
13458 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
13459 prototypei from generated file.
13460 (tdesc_amd64_avx512_linux): Likewise.
13461 (init_registers_x32_avx512_linux): Likewise.
13462 (tdesc_x32_avx512_linux): Likewise.
13463 (init_registers_i386_avx512_linux): Likewise.
13464 (tdesc_i386_avx512_linux): Likewise.
13465 (x86_64_regmap): Add AVX512 registers.
13466 (x86_linux_read_description): Add code to handle AVX512 XSTATE
13468 (initialize_low_arch): Add code to initialize AVX512 registers.
13470 2014-04-23 Pedro Alves <palves@redhat.com>
13472 * mem-break.c (find_gdb_breakpoint_at): Make static.
13473 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
13475 2014-04-23 Pedro Alves <palves@redhat.com>
13477 * i386-low.c: Don't include break-common.h here.
13478 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13479 prototype to take target_hw_bp_type as argument instead of a Z
13481 * i386-low.h: Include break-common.h here.
13482 (Z_packet_to_hw_type): Declare.
13483 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13485 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13486 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13487 (x86_remove_point): Convert the packet number to a
13488 target_hw_bp_type before calling i386_low_remove_watchpoint.
13489 * win32-i386-low.c (i386_insert_point): Convert the packet number
13490 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13491 (i386_remove_point): Convert the packet number to a
13492 target_hw_bp_type before calling i386_low_remove_watchpoint.
13494 2014-04-23 Pedro Alves <palves@redhat.com>
13496 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13498 2014-04-10 Pedro Alves <palves@redhat.com>
13500 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13501 Check if the condition or command is NULL before checking if the
13502 breakpoint is known. On success, return true.
13503 * mem-break.h (add_breakpoint_condition): Document return.
13504 (add_breakpoint_commands): Add describing comment.
13505 * server.c (skip_to_semicolon): New function.
13506 (process_point_options): Use it.
13508 2014-04-09 Pedro Alves <palves@redhat.com>
13510 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13513 2014-02-27 Pedro Alves <palves@redhat.com>
13516 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13518 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13520 (last_thread_of_process_p): Take a PID argument instead of a
13522 (linux_wait_for_lwp): Delete.
13523 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13525 (linux_low_filter_event): New function, party factored out from
13526 linux_wait_for_event.
13527 (linux_wait_for_event): Rename to ...
13528 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13529 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13530 sigsuspend. Check for zombie leaders.
13531 (linux_wait_for_event): Reimplement as wrapper around
13532 linux_wait_for_event_filtered.
13533 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13534 a normal or signal exit is seen, it's the whole process exiting.
13535 (wait_for_sigstop): No longer a for_each_inferior callback.
13536 Rewrite on top of linux_wait_for_event_filtered.
13537 (stop_all_lwps): Call wait_for_sigstop directly.
13538 * server.c (resume, handle_target_event): Handle
13539 TARGET_WAITKIND_NO_RESUMED.
13541 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13543 * win32-low.c (psapi_get_dll_name,
13544 * win32_CreateToolhelp32Snapshot): Delete.
13545 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13546 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13548 (handle_load_dll): Add function description.
13549 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13551 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13553 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13555 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13556 base address when calling win32_add_one_solib.
13557 (handle_load_dll): Delete local variable load_addr.
13558 Remove 0x1000 offset applied to DLL base address when calling
13559 win32_add_one_solib.
13560 (handle_unload_dll): Add comment.
13562 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13564 * win32-low.c (win32_add_all_dlls): Renames
13565 win32_ensure_ntdll_loaded. Rewrite function documentation.
13566 Adjust implementation to always load all DLLs.
13567 Add 0x1000 offset to DLL base address when calling
13568 win32_add_one_solib.
13569 (child_initialization_done): New static global.
13570 (do_initial_child_stuff): Set child_initialization_done to
13571 zero during child initialization, and 1 after. Replace call
13572 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13574 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13575 (handle_unload_dll): Add function documentation.
13576 (get_child_debug_event): Ignore load and unload DLL events
13577 during child initialization.
13579 2014-02-20 Doug Evans <dje@google.com>
13581 Remove global all_lwps.
13582 * inferiors.h (ptid_of): Move here from linux-low.h.
13583 (pid_of, lwpid_of): Ditto.
13584 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13585 parameter is a struct thread_info * now.
13586 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13587 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13588 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13590 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13591 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13592 * linux-arm-low.c (update_registers_callback): Update, "entry"
13593 parameter is a struct thread_info * now.
13594 Fetch lwpid from current_inferior directly.
13595 (arm_insert_point): Pass &all_threads to find_inferior instead of
13597 (arm_remove_point): Ditto.
13598 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13599 (arm_prepare_to_resume): Fetch pid from thread.
13600 (arm_read_description): Fetch lwpid from current_inferior directly.
13601 * linux-low.c (all_lwps): Delete.
13602 (delete_lwp): Delete call to remove_inferior.
13603 (handle_extended_wait): Fetch lwpid from thread.
13604 (add_lwp): Don't set lwp->entry.id. Remove call to
13605 add_inferior_to_list.
13606 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13607 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13608 (kill_one_lwp_callback): Ditto.
13609 (linux_kill): Don't dereference NULL pointer.
13610 Fetch ptid,lwpid from thread.
13611 (get_detach_signal): Fetch ptid from thread.
13612 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13613 Simplify call to regcache_invalidate_thread.
13614 (delete_lwp_callback): Update, "entry" parameter is a
13615 struct thread_info * now. Fetch pid from thread.
13616 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13617 (status_pending_p_callback): Update, "entry" parameter is a
13618 struct thread_info * now. Fetch ptid from thread.
13619 (find_lwp_pid): Update, "entry" parameter is a
13620 struct thread_info * now.
13621 (linux_wait_for_lwp): Fetch pid from thread.
13622 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13623 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13624 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13625 (dequeue_one_deferred_signal): Ditto.
13626 (cancel_breakpoint): Fetch ptid from current_inferior.
13627 (linux_wait_for_event): Pass &all_threads to find_inferior,
13628 not &all_lwps. Fetch ptid, lwpid from thread.
13629 (count_events_callback): Update, "entry" parameter is a
13630 struct thread_info * now.
13631 (select_singlestep_lwp_callback): Ditto.
13632 (select_event_lwp_callback): Ditto.
13633 (cancel_breakpoints_callback): Ditto.
13634 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13636 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13637 (unsuspend_one_lwp): Update, "entry" parameter is a
13638 struct thread_info * now.
13639 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13641 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13642 Fetch lwpid from thread, not lwp.
13643 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13644 Pass &all_threads to find_inferior, not &all_lwps.
13645 (send_sigstop): Fetch lwpid from thread, not lwp.
13646 (send_sigstop_callback): Update, "entry" parameter is a
13647 struct thread_info * now.
13648 (suspend_and_send_sigstop_callback): Ditto.
13649 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13650 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13651 struct thread_info * now.
13652 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13654 (lwp_running): Update, "entry" parameter is a
13655 struct thread_info * now.
13656 (stop_all_lwps): Fetch ptid from thread.
13657 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13658 (linux_resume_one_lwp): Fetch lwpid from thread.
13659 (linux_set_resume_request): Update, "entry" parameter is a
13660 struct thread_info * now. Fetch pid, lwpid from thread.
13661 (resume_status_pending_p): Update, "entry" parameter is a
13662 struct thread_info * now.
13663 (need_step_over_p): Ditto. Fetch lwpid from thread.
13664 (start_step_over): Fetch lwpid from thread.
13665 (linux_resume_one_thread): Update, "entry" parameter is a
13666 struct thread_info * now. Fetch lwpid from thread.
13667 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13668 (proceed_one_lwp): Update, "entry" parameter is a
13669 struct thread_info * now. Fetch lwpid from thread.
13670 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13671 struct thread_info * now.
13672 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13673 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13674 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13676 (regsets_store_inferior_registers): Ditto.
13677 (fetch_register, store_register): Ditto.
13678 (linux_read_memory, linux_write_memory): Ditto.
13679 (linux_request_interrupt): Ditto.
13680 (linux_read_auxv): Ditto.
13681 (linux_xfer_siginfo): Ditto.
13682 (linux_qxfer_spu): Ditto.
13683 (linux_qxfer_libraries_svr4): Ditto.
13684 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13685 moved to inferiors.h.
13687 (get_thread_lwp): Update.
13688 (struct lwp_info): Delete member "entry". Simplify comment for
13690 (all_lwps): Delete.
13691 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13692 current_inferior directly.
13693 (update_watch_registers_callback): Update, "entry" parameter is a
13694 struct thread_info * now. Fetch pid from thread.
13695 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13696 (mips_insert_point): Fetch lwpid from current_inferior.
13697 Pass &all_threads to find_inferior, not &all_lwps.
13698 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13699 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13701 (mips_stopped_data_address): Ditto.
13702 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13704 * linux-tile-low.c (tile_arch_setup): Ditto.
13705 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13706 (update_debug_registers_callback): Update, "entry" parameter is a
13707 struct thread_info * now. Fetch pid from thread.
13708 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13709 Pass &all_threads to find_inferior, not &all_lwps.
13710 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13711 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13712 Pass &all_threads to find_inferior, not &all_lwps.
13713 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13714 (i386_dr_low_get_status): Ditto.
13715 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13716 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13717 (x86_linux_read_description): Ditto.
13718 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13720 2014-02-20 Doug Evans <dje@google.com>
13722 * inferiors.c (get_first_inferior): Fix buglet.
13724 2014-02-19 Doug Evans <dje@google.com>
13726 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13727 * inferiors.c (add_thread): Change result type to struct thread_info *.
13728 All callers updated.
13729 (add_lwp): Call add_thread here instead of in callers.
13730 All callers updated.
13731 * linux-low.h (get_lwp_thread): Rewrite.
13732 (struct lwp_info): New member "thread".
13734 2014-02-19 Doug Evans <dje@google.com>
13736 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13737 All callers updated.
13739 2014-02-19 Doug Evans <dje@google.com>
13741 * inferiors.c (add_thread): Fix whitespace.
13743 2014-02-19 Doug Evans <dje@google.com>
13745 * dll.c (clear_dlls): Replace accessing list implemention details
13747 * gdbthread.h (get_first_thread): Declare.
13748 * inferiors.c (for_each_inferior_with_data): New function.
13749 (get_first_thread): New function.
13750 (find_thread_ptid): Simplify.
13751 (get_first_inferior): New function.
13752 (clear_list): Delete.
13753 (one_inferior_p): New function.
13754 (clear_inferior_list): New function.
13755 (clear_inferiors): Update.
13756 * inferiors.h (for_each_inferior_with_data): Declare.
13757 (clear_inferior_list): Declare.
13758 (one_inferior_p): Declare.
13759 (get_first_inferior): Declare.
13760 * linux-low.c (linux_wait_for_event): Replace accessing list
13761 implemention details with API function.
13762 * server.c (target_running): Ditto.
13763 (accumulate_file_name_length): New function.
13764 (emit_dll_description): New function.
13765 (handle_qxfer_libraries): Replace accessing list implemention
13766 details with API function.
13767 (handle_qxfer_threads_worker): New function.
13768 (handle_qxfer_threads_proper): Replace accessing list implemention
13769 details with API function.
13770 (handle_query): Ditto.
13771 (visit_actioned_threads_callback_ftype): New typedef.
13772 (visit_actioned_threads_data): New struct.
13773 (visit_actioned_threads): Rewrite to be find_inferior callback.
13774 (resume): Call find_inferior.
13775 (handle_status): Replace accessing list implemention
13776 details with API function.
13777 (process_serial_event): Replace accessing list implemention details
13779 * target.c (set_desired_inferior): Replace accessing list implemention
13780 details with API function.
13781 * tracepoint.c (same_process_p): New function.
13782 (gdb_agent_about_to_close): Replace accessing list implemention
13783 details with API function.
13784 * win32-low.c (child_delete_thread): Replace accessing list
13785 implemention details with API function.
13786 (match_dll_by_basename): New function.
13787 (dll_is_loaded_by_basename): New function.
13788 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13789 details call to dll_is_loaded_by_basename.
13791 2014-02-19 Doug Evans <dje@google.com>
13793 * dll.h (struct dll_info): Add comment.
13794 * gdbthread.h (struct thread_info): Add comment.
13795 (current_ptid): Simplify.
13796 * inferiors.c (add_process): Update.
13797 (remove_process): Update.
13798 * inferiors.h (struct process_info): Rename member "head" to "entry".
13799 * linux-low.c (delete_lwp): Update.
13801 (last_thread_of_process_p): Update.
13802 (kill_one_lwp_callback, linux_kill): Update.
13803 (status_pending_p_callback): Update.
13804 (wait_for_sigstop): Update. Simplify read of ptid.
13805 (start_step_over): Update.
13806 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13807 (get_lwp_thread): Update.
13808 (struct lwp_info): Rename member "head" to "entry".
13809 * regcache.h (inferior_list_entry): Delete.
13810 * server.c (kill_inferior_callback): Update.
13811 (detach_or_kill_inferior_callback): Update.
13812 (print_started_pid): Update.
13813 (print_attached_pid): Update.
13814 (process_serial_event): Simplify read of ptid.
13815 * thread-db.c (thread_db_create_event): Update.
13816 (thread_db_get_tls_address): Update.
13817 * win32-low.c (current_inferior_ptid): Simplify.
13819 2014-02-19 Tom Tromey <tromey@redhat.com>
13821 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13823 (target_supports_btrace): Update.
13825 2014-02-14 Yao Qi <yao@codesourcery.com>
13827 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13828 (rsp-low-ipa.o): New target.
13830 2014-02-12 Tom Tromey <tromey@redhat.com>
13832 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13833 convert_ascii_to_int.
13834 * regcache.c (registers_to_string): Likewise.
13835 * remote-utils.c (decode_M_packet): Likewise.
13836 * server.c (process_serial_event): Likewise.
13838 2014-02-12 Tom Tromey <tromey@redhat.com>
13840 * server.c (handle_query, handle_v_run): Use hex2bin, not
13842 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13844 2014-02-12 Tom Tromey <tromey@redhat.com>
13846 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13847 convert_int_to_ascii.
13848 * regcache.c (registers_to_string, collect_register_as_string):
13850 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13852 * server.c (process_serial_event): Likewise.
13853 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13854 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13856 2014-02-12 Tom Tromey <tromey@redhat.com>
13858 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13859 bin2hex, not hexify.
13860 * tracepoint.c (cmd_qtstatus): Likewise.
13862 2014-02-12 Tom Tromey <tromey@redhat.com>
13864 * remote-utils.c (monitor_output): Pass explicit length to
13867 2014-02-12 Tom Tromey <tromey@redhat.com>
13869 * tracepoint.c: Include rsp-low.h.
13870 * server.c: Include rsp-low.h.
13871 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13872 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13874 * remote-utils.c: Include rsp-low.h.
13875 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13876 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13877 (convert_int_to_ascii, convert_ascii_to_int): Move to
13879 * regcache.c: Include rsp-low.h.
13880 * ax.c: Include rsp-low.h.
13881 * Makefile.in (SFILES): Add common/rsp-low.c.
13882 (OBS): Add rsp-low.o.
13883 (rsp-low.o): New target.
13885 2014-02-12 Tom Tromey <tromey@redhat.com>
13887 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13888 Include print-utils.h.
13889 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13890 (plongest, thirty_two, phex_nz): Remove.
13891 * Makefile.in (SFILES): Add common/print-utils.c.
13892 (OBS): Add print-utils.o.
13893 (print-utils-ipa.o): New target.
13894 (print-utils.o): New target.
13895 (IPA_OBJS): Add print-utils-ipa.o.
13897 2014-02-06 Tom Tromey <tromey@redhat.com>
13899 * Makefile.in (SFILES): Fix indentation.
13901 2014-02-05 Doug Evans <dje@google.com>
13903 * linux-low.c (linux_wait_for_event): Improve comment.
13904 (linux_wait_1): Keep current_inferior in sync with event_child.
13906 2014-01-22 Doug Evans <dje@google.com>
13908 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13910 2014-01-22 Doug Evans <dje@google.com>
13912 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13913 * configure: Regenerate.
13914 * config.in: Regenerate.
13915 * Makefile.in (SFILES): Add debug.c.
13916 (OBS): Add debug.o.
13917 * debug.c: New file.
13918 * debug.h: New file.
13919 * linux-aarch64-low.c (*): Update all debugging printfs to use
13920 debug_printf instead of fprintf.
13921 * linux-arm-low.c (*): Ditto.
13922 * linux-cris-low.c (*): Ditto.
13923 * linux-crisv32-low.c (*): Ditto.
13924 * linux-m32r-low.c (*): Ditto.
13925 * linux-sparc-low.c (*): Ditto.
13926 * linux-x86.c (*): Ditto.
13927 * linux-low.c (*): Ditto.
13928 (linux_wait_1): Add calls to debug_enter, debug_exit.
13929 (linux_wait): Remove redundant debugging printf.
13930 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13931 (linux_resume, unstop_all_lwps): Ditto.
13932 * mem-break.c (*): Update all debugging printfs to use
13933 debug_printf instead of fprintf.
13934 * remote-utils.c (*): Ditto.
13935 * thread-db.c (*): Ditto.
13936 * server.c #include <ctype.h>, "gdb_vecs.h".
13937 (debug_threads): Moved to debug.c.
13938 (*): Update all debugging printfs to use debug_printf instead of
13940 (start_inferior): Replace call to fflush with call to debug_flush.
13941 (monitor_show_help): Mention set debug-format.
13942 (parse_debug_format_options): New function.
13943 (handle_monitor_command): Handle "monitor set debug-format".
13944 (gdbserver_usage): Mention --debug-format.
13945 (main): Parse --debug-format.
13946 * server.h (debug_threads): Declaration moved to debug.h.
13947 #include "debug.h".
13948 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13949 trace_debug_1 that uses debug_printf.
13950 (tracepoint_look_up_symbols): Update all debugging printfs to use
13951 debug_printf instead of fprintf.
13953 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13955 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13958 2014-01-17 Pedro Alves <palves@redhat.com>
13961 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13962 defined after including gdb_proc_service.h.
13964 2014-01-16 Doug Evans <dje@google.com>
13966 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13967 (match_dll): Use it.
13969 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13971 * target.h (target_ops) <read_btrace>: Change parameters and
13972 return type to allow error reporting.
13973 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13974 trace reading errors on.
13975 * linux-low.c (linux_low_read_btrace): Pass trace reading
13977 (linux_low_disable_btrace): New.
13979 2014-01-15 Doug Evans <dje@google.com>
13981 * inferiors.c (thread_id_to_gdb_id): Delete.
13982 * inferiors.h (thread_id_to_gdb_id): Delete.
13984 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13986 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13987 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13990 2014-01-08 Pedro Alves <palves@redhat.com>
13992 * server.c (handle_status): Don't discard previous queued stop
13993 replies or thread's pending status here.
13994 (main) <disconnection>: Do it here instead.
13996 2014-01-08 Pedro Alves <palves@redhat.com>
13998 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13999 * server.c (visit_actioned_threads, handle_pending_status): New
14001 (handle_v_cont): Factor out parts to ...
14002 (resume): ... this new function. If in all-stop, and a thread
14003 being resumed has a pending status, report it without actually
14005 (myresume): Adjust to use the new 'resume' function.
14006 (clear_pending_status_callback, set_pending_status_callback)
14007 (find_status_pending_thread_callback): New functions.
14008 (handle_status): Handle the case of multiple threads having
14009 interesting statuses to report. Report threads' real last signal
14010 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
14011 with an interesting thread to report the status for, instead of
14012 always reporting the status of the first thread.
14014 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14016 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
14017 * gdbreplay.c (gdbreplay_version): Likewise.
14019 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
14021 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
14022 iov.iov_len with the real length in use.
14024 2013-12-13 Joel Brobecker <brobecker@adacore.com>
14026 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
14027 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
14028 for all targets that use win32-low.c.
14029 * win32-low.c (win32_ensure_ntdll_loaded): New function.
14030 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
14032 2013-12-13 Pedro Alves <palves@redhat.com>
14034 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
14035 if equal to TARGET_WAITKIND_LOADED.
14036 * win32-low.c (cached_status): New static global.
14037 (win32_wait): Add declaration.
14038 (do_initial_child_stuff): Flush all initial pending debug events
14039 up to the initial breakpoint.
14040 (win32_wait): If CACHED_STATUS was set, return that instead
14041 of doing a real wait. Remove the code resuming the execution
14042 of the inferior after receiving a TARGET_WAITKIND_LOADED event
14043 during the initial phase. Also remove the code changing
14044 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
14045 TARGET_WAITKIND_STOPPED.
14047 2013-12-11 Yao Qi <yao@codesourcery.com>
14049 * notif.c (handle_notif_ack): Return 0 if no notification
14052 2013-11-20 Doug Evans <dje@google.com>
14054 * linux-low.c (linux_set_resume_request): Fix comment.
14056 2013-11-20 Doug Evans <dje@google.com>
14058 * linux-low.c (resume_status_pending_p): Tweak comment.
14060 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
14062 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
14063 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
14064 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
14065 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
14066 (srv_amd64_regobj): Add amd64-mpx.o.
14067 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
14068 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
14069 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
14070 * i387-fp.c (num_pl_bnd_register) Added constant.
14071 (num_pl_bnd_cfg_registers) Added constant.
14072 (struct i387_xsave) Added reserved area and MPX fields.
14073 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
14074 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
14076 (tdesc_i386_mpx_linux): Add MPX amd64 target.
14077 (init_registers_amd64_mpx_linux): Declare new function.
14078 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
14079 (x86_64_regmap): Add MPX registers.
14080 (x86_linux_read_description): Add MPX case.
14081 (initialize_low_arch): Initialize MPX targets.
14083 2013-11-18 Tom Tromey <tromey@redhat.com>
14085 * configure: Rebuild.
14086 * configure.ac: Don't check for stdlib.h.
14087 * gdbreplay.c: Unconditionally include stdlib.h.
14089 2013-11-18 Tom Tromey <tromey@redhat.com>
14091 * config.in: Rebuild.
14092 * configure: Rebuild.
14093 * configure.ac: Don't use AC_HEADER_DIRENT.
14095 2013-11-18 Tom Tromey <tromey@redhat.com>
14097 * server.h: Don't check HAVE_STRING_H.
14098 * gdbreplay.c: Don't check HAVE_STRING_H.
14099 * configure: Rebuild.
14101 2013-11-18 Tom Tromey <tromey@redhat.com>
14103 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
14106 2013-11-08 Tom Tromey <tromey@redhat.com>
14108 * configure, config.in: Rebuild.
14109 * configure.ac: Remove unused configury.
14111 2013-11-08 Tom Tromey <tromey@redhat.com>
14113 * acinclude.m4: Include common.m4, codeset.m4.
14114 * configure, config.in: Rebuild.
14115 * configure.ac: Use GDB_AC_COMMON.
14117 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
14119 * linux-s390-low.c (HWCAP_S390_TE): New define.
14120 (s390_arch_setup): Consider the TE field in the HWCAP for
14121 determining 'have_regset_tdb'.
14123 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
14126 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
14129 2013-10-02 Pedro Alves <palves@redhat.com>
14131 * server.c (process_serial_event): Don't output "GDBserver
14132 exiting" if GDB is connected through stdio.
14133 * target.c (mywait): Likewise, be silent if GDB is connected
14136 2013-10-01 Joel Brobecker <brobecker@adacore.com>
14138 * lynx-low.c (lynx_add_threads_after_attach): New function.
14139 (lynx_attach): Remove call to add_thread. Add call to
14140 lynx_add_threads_after_attach instead.
14142 2013-09-28 Mike Frysinger <vapier@gentoo.org>
14144 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
14145 * config.in, configure: Regenerated.
14147 2013-09-18 Yao Qi <yao@codesourcery.com>
14150 * server.c (start_inferior): Clear 'resume_info'.
14152 2013-09-16 Jiong Wang <jiwang@tilera.com>
14154 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
14157 2013-09-16 Jiong Wang <jiwang@tilera.com>
14159 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
14160 linux-tile-low.o to srv_tgtobj.
14162 2013-09-16 Will Newton <will.newton@linaro.org>
14164 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
14167 2013-09-06 Pedro Alves <palves@redhat.com>
14169 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
14170 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
14171 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
14172 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
14173 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
14174 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
14176 2013-09-06 Pedro Alves <palves@redhat.com>
14178 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
14179 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
14181 2013-09-06 Pedro Alves <palves@redhat.com>
14183 * linux-amd64-ipa.c: Include tracepoint.h.
14184 * linux-i386-ipa.c: Include tracepoint.h.
14186 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
14188 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
14189 (ps_get_thread_area): New function.
14191 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
14193 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
14194 (initialize_low_arch): Call init_registers_crisv32 rather than
14195 init_register_crisv32.
14197 2013-09-05 Pedro Alves <palves@redhat.com>
14199 * server.h (handle_vFile, hostio_last_error_from_errno): Move
14201 * hostio.h: ... this new file.
14202 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
14203 win32-low.c: Include hostio.h.
14205 2013-09-05 Pedro Alves <palves@redhat.com>
14207 * server.h (gdb_client_data, handler_func, callback_handler_func)
14208 (delete_file_handler, add_file_handler, append_callback_event)
14209 (delete_callback_event, start_event_loop, initialize_event_loop):
14210 Move to event-loop.h and include it.
14211 * event-loop.h: New file.
14213 2013-09-05 Pedro Alves <palves@redhat.com>
14215 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
14216 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
14217 (loaded_dll, unloaded_dll): Move to ...
14218 * dll.h: ... this new file.
14219 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
14221 2013-09-05 Pedro Alves <palves@redhat.com>
14223 * server.h (current_process, get_thread_process, all_processes)
14224 (add_inferior_to_list, for_each_inferior, current_inferior)
14225 (remove_inferior, add_process, remove_process, find_process_pid)
14226 (have_started_inferiors_p, have_attached_inferiors_p)
14227 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
14228 (clear_inferiors, find_inferior, find_inferior_id)
14229 (inferior_target_data, set_inferior_target_data)
14230 (inferior_regcache_data, set_inferior_regcache_data): Move to
14231 inferiors.h, and include it.
14232 * inferiors.h: New file.
14234 2013-09-05 Pedro Alves <palves@redhat.com>
14236 * server.h (struct emit_ops, current_insn_ptr, emit_error):
14240 2013-09-05 Pedro Alves <palves@redhat.com>
14242 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
14244 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
14245 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
14246 (handle_tracepoint_general_set, handle_tracepoint_query)
14247 (tracepoint_finished_step, tracepoint_was_hit)
14248 (release_while_stepping_state_list, current_traceframe)
14249 (in_readonly_region, traceframe_read_mem)
14250 (fetch_traceframe_registers, traceframe_read_sdata)
14251 (traceframe_read_info, struct fast_tpoint_collect_status)
14252 (fast_tracepoint_collecting, force_unlock_trace_buffer)
14253 (handle_tracepoit_bkpts, initialize_low_tracepoint)
14254 (supply_fast_tracepoint_registers)
14255 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
14256 (ipa_tdesc, claim_trampoline_space)
14257 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
14258 (agent_mem_read, agent_get_trace_state_variable_value)
14259 (agent_set_trace_state_variable_value, agent_tsv_read)
14260 (agent_mem_read_string, get_raw_reg_func_addr)
14261 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
14262 * tracepoint.h: ... this new file.
14264 2013-09-05 Pedro Alves <palves@redhat.com>
14266 * server.h (perror_with_name, error, fatal, warning, paddress)
14267 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
14269 * utils.h: New file.
14271 2013-09-05 Pedro Alves <palves@redhat.com>
14273 * server.h (remote_debug, noack_mode, transport_is_reliable)
14274 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
14275 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
14276 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
14277 (write_enn, initialize_async_io, enable_async_io)
14278 (disable_async_io, check_remote_input_interrupt_request)
14279 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
14280 (dead_thread_notify, prepare_resume_reply)
14281 (decode_address_to_semicolon, decode_address, decode_m_packet)
14282 (decode_M_packet, decode_X_packet, decode_xfer_write)
14283 (decode_search_memory_packet, unhexify, hexify)
14284 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
14285 (look_up_one_symbol, relocate_instruction)
14286 (monitor_output): Move to remote-utils.h, and include it.
14287 * remote-utils.h: New file.
14289 2013-09-05 Pedro Alves <palves@redhat.com>
14291 * server.h (_): Delete.
14293 2013-09-02 Pedro Alves <palves@redhat.com>
14295 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
14296 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
14298 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
14300 2013-09-02 Pierre Muller <muller@sourceware.org>
14302 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
14303 or WriteProcessMemory complete successfully and handle
14304 ERROR_PARTIAL_COPY error.
14306 2013-09-02 Pedro Alves <palves@redhat.com>
14308 * server.c (gdb_read_memory): Return -1 on traceframe memory read
14309 error instead of EIO.
14311 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14314 * linux-low.c: Include filestuff.h.
14315 (linux_create_inferior) <pid == 0>: Call close_most_fds.
14316 * lynx-low.c: Include filestuff.h.
14317 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
14318 * server.c: Include filestuff.h.
14319 (main): Call notice_open_fds.
14320 * spu-low.c: Include filestuff.h.
14321 (spu_create_inferior) <pid == 0>: Call close_most_fds.
14323 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
14325 * Makefile.in: Explain why ../target and ../nat are not
14326 listed as include file search paths.
14327 (linux-waitpid.o): New object file rule.
14328 * configure.srv (srv_native_linux_obj): New variable.
14329 Replace all occurrences of linux native object files with
14330 $srv_native_linux_obj.
14331 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
14332 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
14333 (linux_enable_event_reporting): Remove declaration.
14334 (my_waitpid): Moved to common/linux-waitpid.c.
14335 (linux_wait_for_event): Pass ptid when calling
14336 linux_enable_event_reporting.
14337 (linux_supports_tracefork_flag): Remove.
14338 (linux_enable_event_reporting): Likewise.
14339 (linux_tracefork_grandchild): Remove.
14340 (STACK_SIZE): Moved to common/linux-ptrace.c.
14341 (linux_tracefork_child): Remove.
14342 (linux_test_for_tracefork): Remove.
14343 (linux_look_up_symbols): Call linux_supports_traceclone.
14344 (initialize_low): Remove call to linux_test_for_tracefork.
14345 * linux-low.h (PTRACE_TYPE_ARG3): Move to
14346 common/linux-ptrace.h.
14347 (PTRACE_TYPE_ARG4): Likewise.
14348 Include linux-ptrace.h.
14350 2013-08-21 Pedro Alves <palves@redhat.com>
14352 * config.in: Renegerate.
14354 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
14356 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
14357 (SFILES): Remove $(srcdir)/common/target-common.c and
14358 add $(srcdir)/target/waitstatus.c.
14359 (OBS): Remove target-common.o and add waitstatus.o.
14360 (server_h): Remove $(srcdir)/../common/target-common.h and
14361 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
14362 and $(srcdir)/../target/waitstatus.h.
14363 (target-common.o): Remove.
14364 (waitstatus.o): New target object file.
14365 * target.h: Do not include target-common.h and
14366 include target/resume.h, target/wait.h and
14367 target/waitstatus.h.
14369 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
14371 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14372 to PTRACE_TYPE_ARG3.
14373 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14374 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
14376 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
14377 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
14379 2013-07-27 Jie Zhang <jie@codesourcery.com>
14380 Daniel Jacobowitz <dan@codesourcery.com>
14381 Yao Qi <yao@codesourcery.com>
14383 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
14384 (mips-linux-watch.o): New rule.
14385 (mips_linux_watch_h): New variable.
14386 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
14388 * linux-mips-low.c: Include mips-linux-watch.h.
14389 (struct arch_process_info, struct arch_lwp_info): New.
14390 (update_watch_registers_callback): New function.
14391 (mips_linux_new_process, mips_linux_new_thread) New functions.
14392 (mips_linux_prepare_to_resume, mips_insert_point): New
14394 (mips_remove_point, mips_stopped_by_watchpoint): New
14396 (rsp_bp_type_to_target_hw_bp_type): New function.
14397 (mips_stopped_data_address): New function.
14398 (the_low_target): Add watchpoint support functions.
14400 2013-07-27 Yao Qi <yao@codesourcery.com>
14402 * i386-low.c: Include break-common.h.
14403 (enum target_hw_bp_type): Remove.
14405 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
14407 * Makefile.in (SFILES): /common/target-common.c.
14408 (OBS): Add target-common.o.
14409 (server_h): Add $(srcdir)/../common/target-common.h.
14410 (target-common.o): New target.
14411 * server.c (queue_stop_reply_callback): Free
14412 status string after use.
14413 * target.c (target_waitstatus_to_string): Remove.
14414 * target.h: Include target-common.h.
14415 (resume_kind): Likewise.
14416 (target_waitkind): Likewise.
14417 (target_waitstatus): Likewise.
14418 (TARGET_WNOHANG): Likewise.
14420 2013-07-04 Yao Qi <yao@codesourcery.com>
14422 * Makefile.in (host_alias): Use @host_noncanonical@.
14423 (target_alias): Use @target_noncanonical@.
14424 * configure.ac: Use ACX_NONCANONICAL_TARGET and
14425 ACX_NONCANONICAL_HOST.
14426 * configure: Regenerated.
14429 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14431 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14432 * configure: Rebuild.
14433 * Makefile.in (version_host, version_target): Get from configure.
14434 (version.c): Use $(version_host) and $(version_target).
14436 2013-07-03 Pedro Alves <palves@redhat.com>
14438 * Makefile.in (config.status): Depend on development.sh.
14439 * acinclude.m4: Include libmcheck.m4.
14440 * configure: Regenerate.
14442 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14444 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
14445 attribute inside the parentheses.
14446 (winapi_DebugSetProcessKillOnExit): Ditto.
14447 (winapi_DebugBreakProcess): Ditto.
14448 (winapi_GenerateConsoleCtrlEvent): Ditto.
14450 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14452 * notif.h (notif_event): Add a dummy member to avoid compiler
14455 2013-07-01 Pedro Alves <palves@redhat.com>
14457 * hostio.c (HOSTIO_PATH_MAX): Define.
14458 (require_filename, handle_open, handle_unlink, handle_readlink):
14461 2013-07-01 Pedro Alves <palves@redhat.com>
14463 * server.h: Include "pathmax.h".
14464 * linux-low.c: Don't include sys/param.h.
14465 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
14467 * win32-low.c: Don't include sys/param.h.
14468 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
14470 2013-07-01 Pedro Alves <palves@redhat.com>
14472 * event-loop.c: Don't check HAVE_UNISTD_H before including
14474 * gdbreplay.c: Likewise.
14475 * remote-utils.c: Likewise.
14476 * server.c: Likewise.
14477 * configure.ac: Don't check for unistd.h.
14478 * configure: Regenerate.
14480 2013-06-28 Tom Tromey <tromey@redhat.com>
14482 * Makefile.in (version.c): Use version.in, not
14485 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14487 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14488 * configure: Rebuild.
14489 * Makefile.in (version_host, version_target): Get from configure.
14490 (version.c): Use $(version_host) and $(version_target).
14492 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14494 Fix trace-status to output user name without trailing colon.
14495 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14497 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14499 Fix trace-status to output proper start-time and stop-time.
14500 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14501 output start time and stop time in hex as gdb expects.
14503 2013-06-26 Pedro Alves <pedro@codesourcery.com>
14505 * tracepoint.c (build_traceframe_info_xml): Output trace state
14506 variables present in the trace buffer.
14508 2013-06-24 Tom Tromey <tromey@redhat.com>
14510 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14512 (version.o): Remove.
14513 * gdbreplay.c: Include version.h.
14514 (version, host_name): Don't declare.
14515 * server.h: Include version.h.
14516 (version, host_name): Don't declare.
14518 2013-06-12 Pedro Alves <palves@redhat.com>
14520 * linux-x86-low.c (linux_is_elf64): Delete global.
14521 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14522 with local linux_pid_exe_is_elf_64_file use.
14524 2013-06-11 Pedro Alves <palves@redhat.com>
14526 * linux-low.c (regset_disabled, disable_regset): New functions.
14527 (regsets_fetch_inferior_registers)
14528 (regsets_store_inferior_registers): Use them.
14529 (initialize_regsets_info); Don't allocate the disabled_regsets
14531 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14534 2013-06-11 Pedro Alves <palves@redhat.com>
14536 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14539 2013-06-11 Pedro Alves <palves@redhat.com>
14541 * linux-x86-low.c (initialize_low_arch): Call
14542 init_registers_x32_avx_linux.
14544 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14546 Fix compatibility with Android Bionic.
14547 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14550 2013-06-07 Pedro Alves <palves@redhat.com>
14553 * Makefile.in (OBS): Add tdesc.o.
14554 (IPA_OBJS): Add tdesc-ipa.o.
14555 (tdesc-ipa.o): New rule.
14556 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14558 * linux-low.c (new_inferior): Delete.
14559 (disabled_regsets, num_regsets): Delete.
14560 (linux_add_process): Adjust to set the new per-process
14562 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14563 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14564 was a stop. When calling arch_setup, switch the current inferior
14565 to the thread that got an event.
14566 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14567 (regsets_fetch_inferior_registers)
14568 (regsets_store_inferior_registers): New regsets_info parameter.
14570 (linux_register_in_regsets): New regs_info parameter. Adjust to
14572 (register_addr, fetch_register, store_register): New usrregs_info
14573 parameter. Adjust to use it.
14574 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14575 parameter regs_info. Adjust to use it.
14576 (linux_fetch_registers): Get the current inferior's regs_info, and
14578 (linux_store_registers): Ditto.
14579 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14580 (initialize_low): Don't initialize the target_regsets here. Call
14581 initialize_low_arch.
14582 * linux-low.h (target_regsets): Delete declaration.
14583 (struct regsets_info): New.
14584 (struct usrregs_info): New.
14585 (struct regs_info): New.
14586 (struct process_info_private) <new_inferior>: New field.
14587 (struct linux_target_ops): Delete the num_regs, regmap, and
14588 regset_bitmap fields. New field regs_info.
14589 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14590 * i387-fp.c (num_xmm_registers): Delete.
14591 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14592 calls to new interface.
14593 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14594 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14595 Infer the number of xmm registers from the regcache's target
14597 * i387-fp.h (num_xmm_registers): Delete.
14598 * inferiors.c (add_thread): Don't install the thread's regcache
14600 * proc-service.c (gregset_info): Fetch the current inferior's
14601 regs_info. Adjust to use it.
14602 * regcache.c: Include tdesc.h.
14603 (register_bytes, reg_defs, num_registers)
14604 (gdbserver_expedite_regs): Delete.
14605 (get_thread_regcache): If the thread doesn't have a regcache yet,
14606 create one, instead of aborting gdbserver.
14607 (regcache_invalidate_one): Rename to ...
14608 (regcache_invalidate_thread): ... this.
14609 (regcache_invalidate_one): New.
14610 (regcache_invalidate): Only invalidate registers of the current
14612 (init_register_cache): Add target_desc parameter, and use it.
14613 (new_register_cache): Ditto. Assert the target description has a
14614 non zero registers_size.
14615 (regcache_cpy): Add assertions. Adjust.
14616 (realloc_register_cache, set_register_cache): Delete.
14617 (registers_to_string, registers_from_string): Adjust.
14618 (find_register_by_name, find_regno, find_register_by_number)
14619 (register_cache_size): Add target_desc parameter, and use it.
14620 (free_register_cache_thread, free_register_cache_thread_one)
14621 (regcache_release, register_cache_size): New.
14622 (register_size): Add target_desc parameter, and use it.
14623 (register_data, supply_register, supply_register_zeroed)
14624 (supply_regblock, supply_register_by_name, collect_register)
14625 (collect_register_as_string, collect_register_by_name): Adjust.
14626 * regcache.h (struct target_desc): Forward declare.
14627 (struct regcache) <tdesc>: New field.
14628 (init_register_cache, new_register_cache): Add target_desc
14630 (regcache_invalidate_thread): Declare.
14631 (regcache_invalidate_one): Delete declaration.
14632 (regcache_release): Declare.
14633 (find_register_by_number, register_cache_size, register_size)
14634 (find_regno): Add target_desc parameter.
14635 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14637 * remote-utils.c: Include tdesc.h.
14638 (outreg, prepare_resume_reply): Adjust.
14639 * server.c: Include tdesc.h.
14640 (gdbserver_xmltarget): Delete declaration.
14641 (get_features_xml, process_serial_event): Adjust.
14642 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14644 (struct process_info) <tdesc>: New field.
14645 (ipa_tdesc): Declare.
14646 * tdesc.c: New file.
14647 * tdesc.h: New file.
14648 * tracepoint.c: Include tdesc.h.
14649 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14650 (get_context_regcache): Adjust to pass ipa_tdesc down.
14651 (do_action_at_tracepoint): Adjust to get the register cache size
14652 from the context regcache's description.
14653 (traceframe_walk_blocks): Adjust to get the register cache size
14654 from the current trace frame's description.
14655 (traceframe_get_pc): Adjust to get current trace frame's
14656 description and pass it down.
14657 (gdb_collect): Adjust to get the register cache size from the
14659 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14660 (gdbserver_xmltarget): Delete.
14661 (initialize_low_tracepoint): Set the ipa's target description.
14662 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14663 (initialize_low_tracepoint): Set the ipa's target description.
14664 * linux-x86-low.c: Include tdesc.h.
14665 [__x86_64__] (is_64bit_tdesc): New.
14666 (ps_get_thread_area, x86_get_thread_area): Use it.
14667 (i386_cannot_store_register): Rename to ...
14668 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14669 (i386_cannot_fetch_register): Rename to ...
14670 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14671 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14673 (target_regsets): Rename to ...
14674 (x86_regsets): ... this.
14675 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14677 (x86_siginfo_fixup): Use is_64bit_tdesc.
14678 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14679 (tdesc_x32_avx_linux, tdesc_x32_linux)
14680 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14682 (x86_linux_update_xmltarget): Delete.
14683 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14684 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14685 (AMD64_LINUX_USER64_CS): New.
14686 (x86_linux_read_description): New, based on
14687 x86_linux_update_xmltarget.
14688 (same_process_callback): New.
14689 (x86_arch_setup_process_callback): New.
14690 (x86_linux_update_xmltarget): New.
14691 (x86_regsets_info): New.
14692 (amd64_linux_regs_info): New.
14693 (i386_linux_usrregs_info): New.
14694 (i386_linux_regs_info): New.
14695 (x86_linux_regs_info): New.
14696 (x86_arch_setup): Reimplement.
14697 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14698 (x86_emit_ops): Ditto.
14699 (the_low_target): Adjust. Install x86_linux_regs_info,
14700 x86_cannot_fetch_register, and x86_cannot_store_register.
14701 (initialize_low_arch): New.
14702 * linux-ia64-low.c (tdesc_ia64): Declare.
14703 (ia64_fetch_register): Adjust.
14704 (ia64_usrregs_info, regs_info): New globals.
14705 (ia64_regs_info): New function.
14706 (the_low_target): Adjust.
14707 (initialize_low_arch): New function.
14708 * linux-sparc-low.c (tdesc_sparc64): Declare.
14709 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14711 (sparc_arch_setup): New function.
14712 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14713 (the_low_target): Adjust.
14714 (initialize_low_arch): New function.
14715 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14716 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14717 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14718 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14719 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14720 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14721 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14722 (tdesc_powerpc_isa205_vsx64l): Declare.
14723 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14724 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14725 (ppc_set_pc, ppc_get_hwcap): Adjust.
14726 (ppc_usrregs_info): Forward declare.
14727 (!__powerpc64__) ppc_regmap_adjusted: New global.
14728 (ppc_arch_setup): Adjust to the current process'es target
14730 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14731 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14732 (ppc_store_evrregset): Adjust.
14733 (target_regsets): Rename to ...
14734 (ppc_regsets): ... this, and make static.
14735 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14736 (ppc_regs_info): New function.
14737 (the_low_target): Adjust.
14738 (initialize_low_arch): New function.
14739 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14740 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14741 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14742 (tdesc_s390x_linux64v2): Declare.
14743 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14744 (s390_fill_gregset, s390_store_last_break): Adjust.
14745 (target_regsets): Rename to ...
14746 (s390_regsets): ... this, and make static.
14747 (s390_get_pc, s390_set_pc): Adjust.
14748 (s390_get_hwcap): New target_desc parameter, and use it.
14749 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14750 (s390_arch_setup): Adjust to set the current process'es target
14751 description. Don't adjust the regmap.
14752 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14753 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14754 (regs_info_3264): New globals.
14755 (s390_regs_info): New function.
14756 (the_low_target): Adjust.
14757 (initialize_low_arch): New function.
14758 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14759 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14760 [__mips64] (init_registers_mips_linux)
14761 (init_registers_mips_dsp_linux): Delete defines.
14762 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14763 (have_dsp): New global.
14764 (mips_read_description): New, based on mips_arch_setup.
14765 (mips_arch_setup): Reimplement.
14766 (get_usrregs_info): New function.
14767 (mips_cannot_fetch_register, mips_cannot_store_register)
14768 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14769 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14770 (target_regsets): Rename to ...
14771 (mips_regsets): ... this, and make static.
14772 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14773 (dsp_regs_info, regs_info): New globals.
14774 (mips_regs_info): New function.
14775 (the_low_target): Adjust.
14776 (initialize_low_arch): New function.
14777 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14778 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14780 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14781 (arm_read_description): New, with bits factored from
14783 (arm_arch_setup): Reimplement.
14784 (target_regsets): Rename to ...
14785 (arm_regsets): ... this, and make static.
14786 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14787 (arm_regs_info): New function.
14788 (the_low_target): Adjust.
14789 (initialize_low_arch): New function.
14790 * linux-m68k-low.c (tdesc_m68k): Declare.
14791 (target_regsets): Rename to ...
14792 (m68k_regsets): ... this, and make static.
14793 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14794 (m68k_regs_info): New function.
14795 (m68k_arch_setup): New function.
14796 (the_low_target): Adjust.
14797 (initialize_low_arch): New function.
14798 * linux-sh-low.c (tdesc_sharch): Declare.
14799 (target_regsets): Rename to ...
14800 (sh_regsets): ... this, and make static.
14801 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14802 (sh_regs_info, sh_arch_setup): New functions.
14803 (the_low_target): Adjust.
14804 (initialize_low_arch): New function.
14805 * linux-bfin-low.c (tdesc_bfin): Declare.
14806 (bfin_arch_setup): New function.
14807 (bfin_usrregs_info, regs_info): New globals.
14808 (bfin_regs_info): New function.
14809 (the_low_target): Adjust.
14810 (initialize_low_arch): New function.
14811 * linux-cris-low.c (tdesc_cris): Declare.
14812 (cris_arch_setup): New function.
14813 (cris_usrregs_info, regs_info): New globals.
14814 (cris_regs_info): New function.
14815 (the_low_target): Adjust.
14816 (initialize_low_arch): New function.
14817 * linux-cris-low.c (tdesc_crisv32): Declare.
14818 (cris_arch_setup): New function.
14819 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14820 (cris_regs_info): New function.
14821 (the_low_target): Adjust.
14822 (initialize_low_arch): New function.
14823 * linux-m32r-low.c (tdesc_m32r): Declare.
14824 (m32r_arch_setup): New function.
14825 (m32r_usrregs_info, regs_info): New globals.
14826 (m32r_regs_info): Adjust.
14827 (initialize_low_arch): New function.
14828 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14829 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14830 (tic6x_usrregs_info): Forward declare.
14831 (tic6x_read_description): New function, based on ...
14832 (tic6x_arch_setup): ... this. Reimplement.
14833 (target_regsets): Rename to ...
14834 (tic6x_regsets): ... this, and make static.
14835 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14836 (tic6x_regs_info): New function.
14837 (the_low_target): Adjust.
14838 (initialize_low_arch): New function.
14839 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14840 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14841 (target_regsets): Rename to ...
14842 (xtensa_regsets): ... this, and make static.
14843 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14845 (xtensa_arch_setup, xtensa_regs_info): New functions.
14846 (the_low_target): Adjust.
14847 (initialize_low_arch): New function.
14848 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14849 (nios2_arch_setup): Set the current process'es tdesc.
14850 (target_regsets): Rename to ...
14851 (nios2_regsets): ... this.
14852 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14853 (nios2_regs_info): New function.
14854 (the_low_target): Adjust.
14855 (initialize_low_arch): New function.
14856 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14857 (aarch64_arch_setup): Set the current process'es tdesc.
14858 (target_regsets): Rename to ...
14859 (aarch64_regsets): ... this.
14860 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14861 (aarch64_regs_info): New function.
14862 (the_low_target): Adjust.
14863 (initialize_low_arch): New function.
14864 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14866 (target_regsets): Rename to ...
14867 (tile_regsets): ... this.
14868 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14869 (tile_regs_info): New function.
14870 (tile_arch_setup): Set the current process'es tdesc.
14871 (the_low_target): Adjust.
14872 (initialize_low_arch): New function.
14873 * spu-low.c (tdesc_spu): Declare.
14874 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14875 * win32-arm-low.c (tdesc_arm): Declare.
14876 (arm_arch_setup): New function.
14877 (the_low_target): Install arm_arch_setup instead of
14878 init_registers_arm.
14879 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14880 (init_windows_x86): Rename to ...
14881 (i386_arch_setup): ... this. Set `win32_tdesc'.
14882 (the_low_target): Adjust.
14883 * win32-low.c (win32_tdesc): New global.
14884 (child_add_thread): Don't create the thread cache here.
14885 (do_initial_child_stuff): Set the new process'es tdesc.
14886 * win32-low.h (struct target_desc): Forward declare.
14887 (win32_tdesc): Declare.
14888 * lynx-i386-low.c (tdesc_i386): Declare global.
14889 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14890 * lynx-low.c (lynx_tdesc): New global.
14891 (lynx_add_process): Set the new process'es tdesc.
14892 * lynx-low.h (struct target_desc): Forward declare.
14893 (lynx_tdesc): Declare global.
14894 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14895 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14896 * nto-low.c (nto_tdesc): New global.
14897 (do_attach): Set the new process'es tdesc.
14898 * nto-low.h (struct target_desc): Forward declare.
14899 (nto_tdesc): Declare.
14900 * nto-x86-low.c (tdesc_i386): Declare.
14901 (nto_x86_arch_setup): Set `nto_tdesc'.
14903 2013-06-04 Gary Benson <gbenson@redhat.com>
14905 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14906 to qSupported response when appropriate.
14907 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14908 with nonzero-length annex.
14909 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14910 arguments supplied in annex.
14912 2013-05-31 Doug Evans <dje@google.com>
14915 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14916 64 bits in 64-cross-32 environment.
14918 2013-05-28 Pedro Alves <palves@redhat.com>
14920 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14921 (aarch64-without-fpu.c): Delete rule.
14922 * configure.srv (aarch64*-*-linux*): Remove references to
14923 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14924 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14927 2013-05-24 Pedro Alves <palves@redhat.com>
14929 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14930 instead of strchr/decode_address. Error if the range isn't split
14931 with a ','. Don't assume there's be a ':' in the action.
14933 2013-05-23 Yao Qi <yao@codesourcery.com>
14934 Pedro Alves <palves@redhat.com>
14936 * linux-low.c (lwp_in_step_range): New function.
14937 (linux_wait_1): If the thread was range stepping and stopped
14938 outside the stepping range, report the stop to GDB. Otherwise,
14939 continue stepping. Add range stepping debug output.
14940 (linux_set_resume_request): Copy the step range from the resume
14941 request to the lwp.
14942 (linux_supports_range_stepping): New.
14943 (linux_target_ops) <supports_range_stepping>: Set to
14944 linux_supports_range_stepping.
14945 * linux-low.h (struct linux_target_ops)
14946 <supports_range_stepping>: New field.
14947 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14948 * linux-x86-low.c (x86_supports_range_stepping): New.
14949 (the_low_target) <supports_range_stepping>: Set to
14950 x86_supports_range_stepping.
14951 * server.c (handle_v_cont): Handle 'r' action.
14952 (handle_v_requests): Append ";r" if the target supports range
14954 * target.h (struct thread_resume) <step_range_start,
14955 step_range_end>: New fields.
14956 (struct target_ops) <supports_range_stepping>:
14958 (target_supports_range_stepping): New macro.
14960 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14962 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14963 confusion in comment.
14965 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14967 * lynx-low.c (struct process_info_private): New type.
14968 (lynx_add_process): New function.
14969 (lynx_create_inferior, lynx_attach): Replace calls to
14970 add_process by calls to lynx_add_process.
14971 (lynx_resume): If PTID is null, then try using
14972 current_process()->private->last_wait_event_ptid.
14974 (lynx_clear_inferiors): Delete. The contents of that function
14975 has been inlined in lynx_mourn;
14976 (lynx_wait_1): Save the ptid in the process's private data.
14977 (lynx_mourn): Free the process' private data. Replace call
14978 to lynx_clear_inferiors by call to clear_inferiors.
14980 2013-05-17 Yao Qi <yao@codesourcery.com>
14982 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14985 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14987 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14988 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14989 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14990 PT_TEXT_END_ADDR guards. Update comments.
14991 (linux_target_op) <read_offsets>: Conditionally define to
14992 linux_read_offsets if the target is UCLIBC and if it defines
14993 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14995 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14996 Andrew Jenner <andrew@codesourcery.com>
14998 * Makefile.in (SFILES): Add linux-nios2-low.c.
14999 (clean): Add action to delete nios2-linux.c.
15000 (nios2-linux.c): New rule.
15001 * configure.srv: Add nios2*-*-linux*.
15002 * linux-nios2-low.c: New.
15004 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
15006 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
15008 2013-04-25 Hui Zhu <hui@codesourcery.com>
15011 * ax.c (ax_printf): Add fflush.
15013 2013-04-22 Tom Tromey <tromey@redhat.com>
15015 * Makefile.in (SFILES): Add filestuff.c.
15016 (OBS): Add filestuff.o.
15017 (filestuff.o): New target.
15018 * config.in, configure: Rebuild.
15019 * configure.ac: Check for fdwalk, pipe2.
15021 2013-04-17 Pedro Alves <palves@redhat.com>
15023 * configure.ac (USE_THREAD_DB): Delete variable.
15024 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
15025 Don't AC_SUBST USE_THREAD_DB.
15026 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
15027 * config.in, configure: Regenerate.
15029 2013-04-16 Pedro Alves <palves@redhat.com>
15031 * linux-low.h (struct lwp_info) <thread_known>: Move under
15032 the USE_THREAD_DB #ifdef.
15034 2013-04-16 Pedro Alves <palves@redhat.com>
15036 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
15037 (linux-low.o): Delete rule.
15038 * linux-low.h: Always include "gdb_thread_db.h" instead of
15039 conditionally including thread_db.h.
15040 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
15043 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15045 * Makefile.in (install-only): Fix make install regression.
15047 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
15049 Convert man pages to texinfo, new gdbinit.5 texinfo page.
15050 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
15052 * gdbserver.1: Remove.
15054 2013-03-22 Pedro Alves <palves@redhat.com>
15056 * linux-low.c (handle_extended_wait): Don't call
15057 linux_enable_event_reporting.
15059 2013-03-15 Tony Theodore <tonyt@logyst.com>
15062 * Makefile.in (SHELL): Use @SHELL@.
15064 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
15066 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
15069 2013-03-13 Joel Brobecker <brobecker@adacore.com>
15071 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
15072 Remove extraneous NULL element.
15074 2013-03-13 Yao Qi <yao@codesourcery.com>
15076 * tracepoint.c (traceframe_read_tsv): Look for the last matched
15077 'V' block in trace frame.
15079 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15081 * target.h (struct target_ops): Add btrace ops.
15082 (target_supports_btrace): New macro.
15083 (target_enable_btrace): New macro.
15084 (target_disable_btrace): New macro.
15085 (target_read_btrace): New macro.
15086 * gdbthread.h (struct thread_info): Add btrace field.
15087 * server.c: Include btrace-common.h.
15088 (handle_btrace_general_set): New function.
15089 (handle_btrace_enable): New function.
15090 (handle_btrace_disable): New function.
15091 (handle_general_set): Call handle_btrace_general_set.
15092 (handle_qxfer_btrace): New function.
15093 (struct qxfer qxfer_packets[]): Add btrace entry.
15094 * inferiors.c (remove_thread): Disable btrace.
15095 * linux-low: Include linux-btrace.h.
15096 (linux_low_enable_btrace): New function.
15097 (linux_low_read_btrace): New function.
15098 (linux_target_ops): Add btrace ops.
15099 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
15100 Add srv_linux_btrace=yes.
15101 (x86_64-*-linux*): Add linux-btrace.o.
15102 Add srv_linux_btrace=yes.
15103 * configure.ac: Define HAVE_LINUX_BTRACE.
15104 * config.in: Regenerated.
15105 * configure: Regenerated.
15107 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15109 * server.c (handle_qxfer): Preserve error message if -3 is
15111 (qxfer): Document the -3 return value.
15113 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15115 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
15116 (linux_btrace_h): New variable.
15117 (linux-btrace.o): New rule.
15119 2013-03-08 Stan Shebs <stan@codesourcery.com>
15120 Hafiz Abid Qadeer <abidh@codesourcery.com>
15122 * tracepoint.c (trace_buffer_size): New global.
15123 (DEFAULT_TRACE_BUFFER_SIZE): New define.
15124 (init_trace_buffer): Change to one-argument function. Allocate
15125 trace buffer memory.
15126 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
15127 handle QTBuffer:size packet.
15128 (cmd_bigqtbuffer_size): New function.
15129 (initialize_tracepoint): Call init_trace_buffer with
15130 DEFAULT_TRACE_BUFFER_SIZE.
15131 * server.c (handle_query): Add QTBuffer:size in the
15134 2013-03-07 Yao Qi <yao@codesourcery.com>
15136 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
15137 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
15139 (cmd_qtsp): Adjust condition. Do post increment.
15140 Set cur_action and cur_step_action back to 0.
15142 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
15145 * linux-low.c (linux_write_memory): Return early success if LEN is
15148 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
15150 * configure.srv: Add x86_64-*-cygwin* as target.
15152 2013-02-28 Tom Tromey <tromey@redhat.com>
15154 * configure.ac: Invoke AC_SYS_LARGEFILE.
15155 * configure, config.in: Rebuild.
15157 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
15159 * win32-low.c: Throughout, fix format strings and casts of
15160 printf-like functions to avoid type related warnings on all
15162 (get_child_debug_event): Print dwDebugEventCode as hex since
15163 that's how it's usually documented.
15165 2013-02-28 Yao Qi <yao@codesourcery.com>
15167 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
15170 2013-02-27 Jiong Wang <jiwang@tilera.com>
15172 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
15173 (reg-tilegx32.c): New rule.
15174 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
15175 * linux-tile-low.c (tile_arch_setup): New function. Invoke
15176 different register info initializer according to elf class.
15177 (init_registers_tilgx32): New function. The tilegx32 register info
15179 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
15180 (tile_store_gregset): Likewise.
15182 2013-02-27 Yao Qi <yao@codesourcery.com>
15184 * server.c (process_point_options): Print debug message when
15185 debug_threads is true.
15187 2013-02-26 Yao Qi <yao@codesourcery.com>
15189 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
15191 2013-02-19 Pedro Alves <palves@redhat.com>
15192 Kai Tietz <ktietz@redhat.com>
15196 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
15197 instead of strtoul to extract address from packet.
15198 (process_serial_event) <'z'>: Likewise.
15200 2013-02-18 Yao Qi <yao@codesourcery.com>
15202 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
15204 2013-02-14 Pedro Alves <palves@redhat.com>
15208 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
15209 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
15211 2013-02-14 Pedro Alves <palves@redhat.com>
15213 * tracepoint.c (cmd_qtdpsrc): Use savestring.
15215 2013-02-14 Pedro Alves <palves@redhat.com>
15217 * tracepoint.c (save_string): Delete.
15218 (add_tracepoint_action): Use savestring instead of save_string.
15220 2013-02-12 Pedro Alves <palves@redhat.com>
15222 * linux-xtensa-low.c: Ditto.
15223 * xtensa-xtregs.c: Ditto.
15225 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
15227 * thread-db.c (thread_db_get_tls_address): NULL pointer check
15230 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15232 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
15233 aarch64_num_wp_regs and aarch64_num_bp_regs to
15234 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
15236 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15238 * linux-aarch64-low.c (ps_get_thread_area): Replace
15239 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
15241 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
15242 Marcus Shawcroft <marcus.shawcroft@arm.com>
15243 Nigel Stephens <nigel.stephens@arm.com>
15244 Yufeng Zhang <yufeng.zhang@arm.com>
15246 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
15247 (aarch64.c, aarch64-without-fpu.c): New targets.
15248 * configure.srv (aarch64*-*-linux*): New.
15249 * linux-aarch64-low.c: New file.
15251 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
15253 * linux-low.c (handle_extended_wait, linux_create_inferior)
15254 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
15255 (dequeue_one_deferred_signal, linux_resume_one_thread)
15256 (fetch_register, linux_write_memory, linux_enable_event_reporting)
15257 (linux_tracefork_grandchild, linux_test_for_tracefork)
15258 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
15259 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
15260 where the argument is 0.
15262 2013-01-25 Yao Qi <yao@codesourcery.com>
15264 * event-loop.c: Include "queue.h".
15265 (gdb_event_p): New typedef.
15266 (struct gdb_event) <next_event>: Remove.
15267 (event_queue): Change to QUEUE(gdb_event_p).
15268 (async_queue_event): Remove.
15269 (gdb_event_xfree): New.
15270 (initialize_event_loop): New.
15271 (process_event): Use API from QUEUE.
15272 (wait_for_event): Likewise.
15273 * server.c (main): Call initialize_event_loop.
15274 * server.h (initialize_event_loop): Declare.
15276 2013-01-18 Yao Qi <yao@codesourcery.com>
15278 * ax.h (struct eval_agent_expr_context): New.
15279 (gdb_eval_agent_expr): Update declaration.
15280 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
15281 TFRAME. Add new argument CTX.
15282 * server.h (struct eval_agent_expr_context): Declare.
15283 (agent_mem_read, agent_tsv_read): Update declaration.
15284 (agent_mem_read_string): Likewise.
15285 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
15286 (add_traceframe_block): Add new argument TPOINT.
15287 Increase TPOINT->traceframe_usage.
15288 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
15289 eval_tracepoint_agent_expr.
15290 (condition_true_at_tracepoint): Likewise.
15291 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
15292 (agent_mem_read_string, agent_tsv_read): Likewise.
15294 2013-01-16 Yao Qi <yao@codesourcery.com>
15296 * linux-low.c (linux_resume_one_lwp): Don't check
15297 'lwp->bp_reinsert != 0'.
15299 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15300 Pedro Alves <palves@redhat.com>
15302 * lynx-low.c (ptrace_request_to_str): Define a temporary
15303 macro and use it to simplify this function's implementation.
15305 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15307 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
15310 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15312 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
15314 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15316 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
15318 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15320 * lynx-low.c (lynx_resume): Use the resume_info parameter
15321 to determine the ptid for the lynx_ptrace call, unless
15322 it is equal to minus_one_ptid, in which case we use the
15323 ptid of the current_inferior.
15324 (lynx_wait_1): After having received a thread create/exit
15325 event, resume the inferior's execution using the signaling
15326 thread's ptid, rather than the old ptid.
15328 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15330 * lynx-low.c (lynx_resume): Delete variable ret.
15332 2013-01-01 Joel Brobecker <brobecker@adacore.com>
15334 * gdbreplay.c (gdbreplay_version): Update copyright year.
15335 * server.c (gdbserver_version): Likewise.
15337 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15339 * lynx-low.c (lynx_wait_1): Add debug trace before adding
15342 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15344 * lynx-low.c (ptrace_request_to_str): Add handling for
15345 PTRACE_GETTRACESIG.
15347 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15349 * lynx-low.c (lynx_attach): Delete variable new_process.
15351 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15353 * lynx-low.c (lynx_create_inferior): Delete variable
15356 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15358 * lynx-low.c (ptrace_request_to_str): Do not handle
15359 PTRACE_GETTHREADLIST if this macro does not exist.
15361 2012-12-15 Yao Qi <yao@codesourcery.com>
15363 * Makefile.in (OBS): Add notif.o.
15364 * notif.c, notif.h: New.
15365 * server.c: Include "notif.h".
15366 (struct vstop_notif) <next>: Remove.
15368 (queue_stop_reply): Update.
15369 (push_event, send_next_stop_reply): Remove.
15370 (discard_queued_stop_replies): Update.
15371 (notif_stop): New variable.
15372 (handle_v_stopped): Remove.
15373 (handle_v_requests): Don't call handle_v_stopped. Call
15374 handle_ack_notif instead.
15375 (queue_stop_reply_callback): Call notif_event_enque instead
15376 of queue_stop_reply.
15377 (handle_status): Don't call send_next_stop_reply, call
15378 notif_write_event instead.
15379 (kill_inferior_callback): Likewise.
15380 (detach_or_kill_inferior_callback): Likewise.
15381 (main): Call initialize_notif.
15382 (process_serial_event): Call QUEUE_is_empty.
15383 (handle_target_event): Call notif_push instead of push event.
15384 * server.h (push_event): Remove declaration.
15386 2012-12-10 Tom Tromey <tromey@redhat.com>
15388 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
15389 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
15392 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
15393 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
15394 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
15395 (amd64-linux-ipa.o, ax.o): Rewrite.
15396 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
15397 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
15398 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
15399 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
15400 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
15401 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
15402 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
15403 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
15404 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
15405 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
15406 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
15407 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
15408 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
15409 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
15410 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
15411 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
15412 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
15413 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
15414 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
15415 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
15416 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
15417 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
15418 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
15419 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
15420 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
15421 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
15422 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
15423 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
15424 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
15425 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
15426 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
15427 (reg-tilegx.o): Remove.
15428 (all_object_files): New macro.
15429 Include .deps files.
15430 * aclocal.m4, configure: Rebuild.
15431 * acinclude.m4: Include depstand.m4, lead-dot.m4.
15432 * configure.ac: Invoke ZW_CREATE_DEPDIR,
15433 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
15435 2012-12-05 Tom Tromey <tromey@redhat.com>
15438 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
15440 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
15442 * configure.ac: Check for linux/perf_event.h.
15443 * config.in: Regenerated.
15444 * configure: Regenerated.
15446 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
15448 * hostio.c (handle_readlink): Decrease buffer size
15449 parameter passed to readlink by one byte.
15451 2012-11-26 Yao Qi <yao@codesourcery.com>
15453 * configure.ac (build_warnings): Append '-Wempty-body'.
15454 * configure: Regenerated.
15455 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
15458 2012-11-15 Pierre Muller <muller@sourceware.org>
15460 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
15461 * config.in: Regenerate.
15462 * configure: Regenerate.
15463 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
15464 Use "gdb_wait.h" header instead of <sys/wait.h> header.
15465 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15466 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
15468 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
15469 instead of <sys/wait.h> header.
15470 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15472 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
15474 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15475 (various make rules): Remove -DGDBSERVER
15477 2012-11-09 Yao Qi <yao@codesourcery.com>
15479 * spu-low.c (current_ptid): Move it to ..
15480 * gdbthread.h: ... here. New.
15481 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15482 * server.c (myresume, process_serial_event): Likewise.
15483 * thread-db.c (thread_db_find_new_threads): Likewise.
15484 * tracepoint.c (run_inferior_command): Likewise.
15486 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
15488 * server.c (handle_search_memory_1): Include access length in
15491 2012-09-05 Michael Brandt <michael.brandt@axis.com>
15493 * linux-crisv32-low.c: Fix compile errors.
15495 2012-09-04 Yao Qi <yao@codesourcery.com>
15497 * tracepoint.c (cmd_qtsv): Adjust debug message.
15498 Don't check CUR_TPOINT.
15500 2012-08-28 Yao Qi <yao@codesourcery.com>
15502 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15503 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15504 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15505 Remove declarations of xmalloc, xreallloc, xstrdup and
15507 * Makefile.in (libiberty_h): New.
15508 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15509 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15511 2012-08-23 Yao Qi <yao@codesourcery.com>
15513 * server.h: Remove declaration of 'xsnprintf'.
15515 2012-08-22 Keith Seitz <keiths@redhat.com>
15517 * server.h: Include build-gnulib-gbserver/config.h.
15518 * gdbreplay.c: Likewise.
15520 2012-08-08 Doug Evans <dje@google.com>
15522 * Makefile.in (SFILES): Add gdb_vecs.c.
15523 (OBS): Add gdb_vecs.o.
15524 (gdb_vecs_h, host_defs_h): New variables.
15525 (thread-db.o): Add $(gdb_vecs_h) dependency.
15526 (gdb_vecs.o): New rule.
15527 * thread-db.c: #include "gdb_vecs.h".
15528 (thread_db_load_search): Use a vector to iterate over path elements.
15529 Handle text appearing after "$pdir".
15531 * configure.ac: Add check for strstr.
15532 * config.in: Regenerate.
15533 * configure: Regenerate.
15535 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15537 * hostio.c (handle_pread): If pread fails, fall back to attempting
15539 (handle_pwrite): Likewise for pwrite.
15541 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15543 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15544 between unsupported TYPE and unimplementable ADDR/LEN combination.
15545 (arm_insert_point): Act on new return value.
15547 2012-07-31 Pedro Alves <palves@redhat.com>
15549 * server.c (process_point_options): Only skip tokens if we find
15550 one that is unrecognized. Don't treat 'X' specially while
15551 skipping unrecognized tokens.
15553 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15555 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15556 to 4-byte-align HW breakpoint addresses for Thumb.
15558 2012-07-27 Yao Qi <yao@codesourcery.com>
15562 * server.h: Declare gdb_agent_about_to_close.
15563 * target.c (kill_inferior): Include "agent.h".
15564 New. Send command 'kill'.
15565 * target.h (kill_inferior): Removed macro.
15566 * tracepoint.c (gdb_agent_about_to_close): New.
15567 (gdb_agent_helper_thread): Handle command 'close'.
15568 Wait endlessly until the inferior stops.
15569 Install gdb_agent_remove_socket to atexit hook.
15570 (agent_socket_name): New static variable.
15571 (gdb_agent_socket_init): Replace local variable 'name' with
15572 'agent_socket_name'.
15573 (gdb_agent_remove_socket): New.
15575 2012-07-27 Yao Qi <yao@codesourcery.com>
15577 * server.c (process_point_options): Stop at 'X' when parsing.
15579 2012-07-19 Michael Eager <eager@eagercon.com>
15581 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
15583 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15584 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15585 hardware breakpoint.
15587 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15589 * gdbserver/linux-low.c (initialize_low): Call
15590 linux_ptrace_init_warnings.
15592 2012-07-02 Doug Evans <dje@google.com>
15594 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15597 2012-07-02 Stan Shebs <stan@codesourcery.com>
15599 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15600 (ax.o): Add it to build rule.
15602 (OBS): Add format.o.
15603 (IPA_OBS): Add format.o.
15604 * server.c (handle_query): Claim support for breakpoint commands.
15605 (process_point_options): Add command case.
15606 (process_serial_event): Leave running if there are printfs in
15608 * mem-break.h (any_persistent_commands): Declare.
15609 (add_breakpoint_commands): Declare.
15610 (gdb_no_commands_at_breakpoint): Declare.
15611 (run_breakpoint_commands): Declare.
15612 * mem-break.c (struct point_command_list): New struct.
15613 (struct breakpoint): New field command_list.
15614 (any_persistent_commands): New function.
15615 (add_commands_to_breakpoint): New function.
15616 (add_breakpoint_commands): New function.
15617 (gdb_no_commands_at_breakpoint): New function.
15618 (run_breakpoint_commands): New function.
15619 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15621 * ax.c: Include format.h.
15622 (ax_printf): New function.
15623 (gdb_eval_agent_expr): Add printf opcode.
15625 2012-06-13 Yao Qi <yao@codesourcery.com>
15627 * server.c (start_inferior): Remove duplicated writes to fields
15628 'last_resume_kind' and 'last_status' of 'current_inferior'.
15630 2012-06-12 Yao Qi <yao@codesourcery.com>
15631 Pedro Alves <palves@redhat.com>
15633 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15635 * server.c (handle_v_cont): Extend comment.
15637 2012-06-11 Yao Qi <yao@codesourcery.com>
15639 * linux-low.c (linux_attach): Add 'static'.
15641 2012-06-06 Yao Qi <yao@codesourcery.com>
15643 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15645 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15647 Fix gcc -flto compilation warning.
15648 * server.c (main): Make variable multi_mode and attach volatile.
15650 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15652 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15653 if the platform doesn't know about it.
15655 2012-05-30 Jeff Kenton <jkenton@tilera.com>
15657 * Makefile.in (SFILES): Add linux-tile-low.c.
15658 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15659 * configure.srv: Handle tilegx-*-linux*.
15660 * linux-tile-low.c: New file.
15662 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15664 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15666 2012-05-24 Pedro Alves <palves@redhat.com>
15670 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
15672 2012-05-24 Pedro Alves <palves@redhat.com>
15676 Replace target_signal with gdb_signal throughout.
15678 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15680 * linux-low.c (linux_store_registers): Avoid the copying sequence
15681 when no data has been retrieved by ptrace.
15683 2012-05-22 Will Deacon <will.deacon@arm.com>
15685 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15686 Include asm/ptrace.h.
15687 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15690 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15692 * linux-low.c (linux_store_registers): Don't re-retrieve data
15693 with ptrace that has already been obtained from /proc. Always
15694 copy any data retrieved with ptrace to the buffer supplied.
15696 2012-05-11 Yao Qi <yao@codesourcery.com>
15697 Pedro Alves <palves@redhat.com>
15699 * linux-low.c (enum stopping_threads_kind): New.
15700 (stopping_threads): Change type to `enum stopping_threads_kind'.
15701 (handle_extended_wait): If stopping and suspending threads, leave
15702 the new_lwp suspended too.
15703 (linux_wait_for_event): Adjust.
15704 (stop_all_lwps): Set `stopping_threads' to
15705 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15706 whether we're suspending threads or just stopping them. Assert no
15709 2012-04-29 Yao Qi <yao@codesourcery.com>
15711 * server.h: Move some code to ...
15712 * gdbthread.h: ... here. New.
15713 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15714 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15715 (nto-low.o, win32-low.o): Likewise.
15716 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15717 * regcache.c, remote-utils.c, server.c: Likewise.
15718 * target.c, tracepoint.c, win32-low.c: Likewise.
15720 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15722 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15723 (PTRACE_ARG4_TYPE): Likewise.
15724 (PTRACE_XFER_TYPE): Likewise.
15725 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15726 ptrace to PTRACE_ARG3_TYPE.
15727 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15728 (PTRACE_ARG4_TYPE): Likewise.
15729 (PTRACE_XFER_TYPE): Likewise.
15730 (linux_detach_one_lwp): Cast fourth argument of
15731 ptrace to long then PTRACE_ARG4_TYPE.
15732 (regsets_fetch_inferior_registers): Cast third argument of
15733 ptrace to long then PTRACE_ARG3_TYPE.
15734 (regsets_store_inferior_registers): Likewise.
15736 2012-04-20 Pedro Alves <palves@redhat.com>
15738 * configure: Regenerate.
15740 2012-04-19 Pedro Alves <palves@redhat.com>
15742 * Makefile.in (GNULIB_BUILDDIR): New.
15743 (LIBGNU, INCGNU, GNULIB_H): Adjust.
15744 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15745 (all, install-only, uninstall, clean-info, all-lib, clean): No
15746 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15747 (maintainer-clean realclean distclean): Use subdir_do.
15749 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
15750 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
15751 * acinclude.m4: Include acx_configure_dir.m4.
15752 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15753 calls. Call AC_PROG_RANLIB. Configure gnulib using
15756 (GNULIB_STDINT_H): Adjust.
15757 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15758 * gdbreplay.c: Include build-gnulib/config.h.
15759 * server.h: Likewise.
15760 * aclocal.m4: Regenerate.
15761 * config.in: Regenerate.
15762 * configure: Regenerate.
15764 2012-04-19 Pedro Alves <palves@redhat.com>
15766 * Makefile.in (LIBGNU, INCGNU): Adjust.
15767 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15768 (all, install-only, uninstall, clean-info, all-lib, clean)
15769 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15770 * configure.ac: Adjust AC_OUTPUT output.
15771 * aclocal.m4: Regenerate.
15772 * configure: Regenerate.
15774 2012-04-19 Pedro Alves <palves@redhat.com>
15776 * Makefile.in (generated_files): New.
15777 (server_h): Remove the explicit dependency on config.h, and depend
15778 on $generated_files.
15780 2012-04-19 Pedro Alves <palves@redhat.com>
15782 * Makefile.in (INCGNU): Add -Ignulib.
15784 2012-04-19 Pedro Alves <palves@redhat.com>
15786 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15787 (INCGNU): ... this, and spell out -I here.
15788 (GNULIB_LIB): Rename to ...
15789 (LIBGNU): ... this.
15790 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15792 2012-04-19 Pedro Alves <palves@redhat.com>
15794 * config.in: Regenerate.
15796 2012-04-19 Pedro Alves <palves@redhat.com>
15798 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15799 * server.h (memmem): Remove declaration.
15800 * config.in: Regenerate.
15801 * configure: Regenerate.
15803 2012-04-19 Yao Qi <yao@codesourcery.com>
15805 * Makefile.in (SFILES): Add common/vec.c.
15809 2012-04-19 Yao Qi <yao@codesourcery.com>
15811 * remote-utils.c (prepare_resume_reply): Replace with macro
15812 target_core_of_thread.
15813 * server.c (handle_qxfer_threads_proper): Likewise.
15814 * target.h (traget_core_of_thread): New macro.
15816 2012-04-18 Pedro Alves <palves@redhat.com>
15818 * aclocal.m4: Regenerate.
15819 * configure: Regenerate.
15821 2012-04-16 Yao Qi <yao@codesourcery.com>
15823 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15824 duplicated on address.
15826 2012-04-16 Yao Qi <yao@codesourcery.com>
15828 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15829 (struct tracepoint_action_ops) <send>: New field.
15830 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15831 (agent_expr_send, x_tracepoint_action_send): New.
15832 (l_tracepoint_action_send): New.
15833 (cmd_qtdp): Download and install tracepoint
15834 according to `use_agent'.
15835 (run_inferior_command): Add one more parameter `len'.
15837 (tracepoint_send_agent): New.
15838 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15840 2012-04-16 Yao Qi <yao@codesourcery.com>
15842 * tracepoint.c (download_tracepoints): Moved to ...
15843 (cmd_qtstart): ... here.
15845 2012-04-14 Yao Qi <yao@codesourcery.com>
15847 * tracepoint.c: Include inttypes.h.
15848 (struct collect_memory_action): Use sized types.
15849 (struct tracepoint): Likewise.
15850 (cmd_qtdp, stop_tracing): Update print specifiers.
15851 (cmd_qtp, response_tracepoint): Likewise.
15852 (collect_data_at_tracepoint): Likewise.
15853 (collect_data_at_step): Likewise.
15855 2012-04-14 Yao Qi <yao@codesourcery.com>
15857 Import gnulib module inttypes.
15858 * aclocal.m4, config.in, configure: Regenerated.
15860 2012-04-14 Yao Qi <yao@codesourcery.com>
15862 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15863 Makefile and config.status at last.
15865 2012-04-13 Yao Qi <yao@codesourcery.com>
15867 * tracepoint.c: Include stdint.h unconditionally.
15869 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15871 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15872 on BFD_HAVE_SYS_PROCFS_TYPE.
15873 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15874 * configure: Regenerate.
15875 * config.in: Likewise.
15877 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15879 * Makefile.in (clean): Also remove x32.c x32-linux.c
15880 x32-avx.c x32-avx-linux.c.
15881 (x32.o): New target.
15883 (x32-linux.o): Likewise.
15884 (x32-linux.c): Likewise.
15885 (x32-avx.o): Likewise.
15886 (x32-avx.c): Likewise.
15887 (x32-avx-linux.o): Likewise.
15888 (x32-avx-linux.c): Likewise.
15890 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15891 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15892 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15893 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15894 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15895 i386/x32-avx-linux.xml.
15897 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15898 (init_registers_x32_avx_linux): Likwise.
15899 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15900 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15902 2012-04-13 Pedro Alves <palves@redhat.com>
15904 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15905 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15906 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15907 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15910 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15912 * linux-x86-low.c (compat_x32_clock_t): New.
15913 (compat_x32_siginfo_t): Likewise.
15914 (compat_x32_siginfo_from_siginfo): Likewise.
15915 (siginfo_from_compat_x32_siginfo): Likewise.
15916 (linux_is_elf64): Likewise.
15917 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15918 and siginfo_from_compat_x32_siginfo for x32.
15919 (x86_arch_setup): Set linux_is_elf64.
15921 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15924 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15926 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15927 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15928 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15929 compatible with process.
15931 2012-04-12 Yao Qi <yao@codesourcery.com>
15933 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15934 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15935 (install-only, install-info, clean): Handle sub dir gnulib.
15936 (all-lib, am--refresh): New targets.
15937 (memmem.o): Remove target.
15938 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15939 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15940 (AC_REPLACE_FUNCS): Remove memmem.
15941 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15942 (AC_OUTPUT): Generate Makefile in gnulib/.
15943 * aclocal.m4, config.in, configure: Regenerated.
15945 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15947 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15949 2012-04-05 Pedro Alves <palves@redhat.com>
15951 -Werror=strict-aliasing
15953 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15956 2012-04-04 Pedro Alves <palves@redhat.com>
15958 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15959 (sparc_store_gregset_from_stack, sparc_store_gregset)
15960 (sparc_breakpoint_at): Fix formatting.
15962 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15964 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15966 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15967 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15968 * config.in: Regenerate.
15969 * configure: Likewise.
15971 2012-03-29 Pedro Alves <palves@redhat.com>
15973 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15974 Correct ptrace arguments.
15976 2012-03-28 Pedro Alves <palves@redhat.com>
15978 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15979 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15980 (IA64_FR1_REGNUM): New defines.
15981 (ia64_fetch_register): New.
15982 (the_low_target): Install it.
15983 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15985 * linux-low.c (linux_fetch_registers): Try the
15986 the_low_target.fetch_register hook first.
15988 * linux-arm-low.c (the_low_target): Adjust.
15989 * linux-bfin-low.c (the_low_target): Adjust.
15990 * linux-cris-low.c (the_low_target): Adjust.
15991 * linux-crisv32-low.c (the_low_target): Adjust.
15992 * linux-m32r-low.c (the_low_target): Adjust.
15993 * linux-m68k-low.c (the_low_target): Adjust.
15994 * linux-mips-low.c (the_low_target): Adjust.
15995 * linux-ppc-low.c (the_low_target): Adjust.
15996 * linux-s390-low.c (the_low_target): Adjust.
15997 * linux-sh-low.c (the_low_target): Adjust.
15998 * linux-sparc-low.c (the_low_target): Adjust.
15999 * linux-tic6x-low.c (the_low_target): Adjust.
16000 * linux-x86-low.c (the_low_target): Adjust.
16001 * linux-xtensa-low.c (the_low_target): Adjust.
16003 2012-03-26 Pedro Alves <palves@redhat.com>
16005 * server.c (handle_qxfer_libraries): Don't bail early if
16006 the_target->qxfer_libraries_svr4 is not NULL.
16008 2012-03-26 Pedro Alves <palves@redhat.com>
16010 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
16012 2012-03-23 Pedro Alves <palves@redhat.com>
16014 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
16015 "library-list-svr4" element's start tag when the the DSO list is
16018 2012-03-23 Pedro Alves <palves@redhat.com>
16020 * linux-low.c (read_one_ptr): Read the inferior's pointer through
16021 a variable whose type size is the same as the inferior's pointer
16024 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
16026 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
16028 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
16029 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
16030 * linux-low.h: Include <signal.h>.
16031 (struct siginfo): Remove forward declaration.
16032 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
16035 2012-03-21 Mike Frysinger <vapier@gentoo.org>
16037 * .gitignore: Ignore more files.
16039 2012-03-19 Pedro Alves <palves@redhat.com>
16040 Jan Kratochvil <jan.kratochvil@redhat.com>
16042 * server.c (cont_thread, general_thread): Add describing comments.
16043 (start_inferior): Clear `cont_thread'.
16044 (handle_v_cont): Don't set `cont_thread' if resuming all threads
16047 2012-03-15 Yao Qi <yao@codesourcery.com>
16049 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
16051 (cmd_qtdp): ... here.
16053 2012-03-15 Yao Qi <yao@codesourcery.com>
16055 * tracepoint.c (struct tracepoint_action_ops): New.
16056 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
16057 (m_tracepoint_action_download): New.
16058 (r_tracepoint_action_download): New.
16059 (x_tracepoint_action_download): New.
16060 (l_tracepoint_action_download): New.
16061 (add_tracepoint_action): Install `action->ops' according type.
16062 (download_tracepoint_1): Move code `download' function pointer
16063 of various tracepoint_action_ops.
16065 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16067 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
16068 linux_ptrace_attach_warnings.
16070 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16072 * Makefile.in (linux-ptrace.o): New.
16073 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
16074 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
16075 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
16076 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
16077 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
16079 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
16081 2012-03-08 Yao Qi <yao@codesourcery.com>
16082 Pedro Alves <palves@redhat.com>
16084 Fix PR server/13392.
16085 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
16086 offset of JMP insn.
16087 * tracepoint.c (remove_tracepoint): New.
16088 (cmd_qtdp): Call remove_tracepoint when failed to install.
16090 2012-03-07 Pedro Alves <palves@redhat.com>
16092 * linux-low.c (get_detach_signal): New.
16093 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
16094 Pass on pending signals to PTRACE_DETACH. Check the result of the
16096 * server.c (program_signals, program_signals_p): New.
16097 (handle_general_set): Handle QProgramSignals.
16098 * server.h (program_signals, program_signals_p): Declare.
16100 2012-03-05 Pedro Alves <palves@redhat.com>
16101 Jan Kratochvil <jan.kratochvil@redhat.com>
16103 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
16106 2012-03-03 Yao Qi <yao@codesourcery.com>
16108 * tracepoint.c (tracepoint_look_up_symbols): Update call to
16109 agent_look_up_symbols.
16111 2012-03-03 Yao Qi <yao@codesourcery.com>
16113 * Makefile.in (linux-low.o): Keep dependence on agent.h.
16114 (linux-x86-low.o): Likewise.
16115 * server.h: Remove in_process_agent_loaded.
16116 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
16120 2012-03-03 Yao Qi <yao@codesourcery.com>
16122 * tracepoint.c (gdb_agent_capability): New global.
16123 (in_process_agent_loaded_ust): Renamed to
16124 `in_process_agent_supports_ust'.
16126 (in_process_agent_supports_ust): Call agent_capability_check.
16127 (clear_installed_tracepoints): Assert that agent supports
16130 2012-03-03 Yao Qi <yao@codesourcery.com>
16132 * linux-low.c (linux_supports_agent): New.
16133 (linux_target_ops): Initialize field `supports_agent' with
16134 linux_supports_agent.
16135 * target.h (struct target_ops) <supports_agent>: New.
16136 (target_supports_agent): New macro.
16137 * server.c (handle_general_set): Handle packet 'QAgent'.
16138 (handle_query): Send `QAgent+'.
16139 * Makefile.in (server.o): Depends on agent.h.
16141 2012-03-03 Yao Qi <yao@codesourcery.com>
16143 * Makefile.in (OBS): Add agent.o.
16144 Add new rule for agent.o.
16145 Track dependence of tracepoint.c on agent.h.
16146 * tracepoint.c (run_inferior_command_1):
16147 (run_inferior_command): Call agent_run_command.
16148 (gdb_ust_connect_sync_socket): Deleted. Move it to
16150 (resume_thread, stop_thread): Likewise.
16151 (gdb_ust_socket_init): Renamed to ...
16152 (gdb_agent_socket_init): ... New.
16153 (gdb_ust_thread): Renamed to ...
16154 (gdb_agent_helper_thread): ... New.
16155 (gdb_ust_init): Move some code to ...
16156 (gdb_agent_init): ... here. New.
16157 [HAVE_UST]: Call gdb_ust_init.
16158 (initialize_tracepoint_ftlib): Call gdb_agent_init.
16159 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
16160 * config.in, configure: Regenerated.
16162 2012-03-02 Pedro Alves <palves@redhat.com>
16164 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
16165 * linux-low.c (struct simple_pid_list): New.
16166 (stopped_pids): New a struct simple_pid_list pointer.
16167 (add_to_pid_list, pull_pid_from_list): New.
16168 (handle_extended_wait): Don't assume the first signal new children
16169 report is SIGSTOP. Adjust call to pull_pid_from_list.
16170 (linux_wait_for_lwp): Adjust.
16172 2012-03-02 Yao Qi <yao@codesourcery.com>
16174 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
16177 2012-03-02 Yao Qi <yao@codesourcery.com>
16179 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
16180 `stop_pc' and `tpoint'. Update caller.
16182 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
16184 * linux-low.h (linux_target_ops): Add regset_bitmap member.
16185 * linux-low.c (use_linux_regsets): New macro.
16186 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
16187 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
16188 (linux_register_in_regsets): New function.
16189 (usr_fetch_inferior_registers): Skip registers covered by
16191 (usr_store_inferior_registers): Likewise.
16192 (usr_fetch_inferior_registers): New macro.
16193 (usr_store_inferior_registers): Likewise.
16194 (linux_fetch_registers): Handle mixed regset/non-regset targets.
16195 (linux_store_registers): Likewise.
16196 * linux-mips-low.c (init_registers_mips_dsp_linux): New
16198 (init_registers_mips64_dsp_linux): Likewise.
16199 (init_registers_mips_linux): New macro.
16200 (init_registers_mips_dsp_linux): Likewise.
16201 (mips_dsp_num_regs): Likewise.
16202 (DSP_BASE, DSP_CONTROL): New fallback macros.
16203 (mips_base_regs): New macro.
16204 (mips_regmap): Use it. Fix the size.
16205 (mips_dsp_regmap): New variable.
16206 (mips_dsp_regset_bitmap): Likewise.
16207 (mips_arch_setup): New function.
16208 (mips_cannot_fetch_register): Use the_low_target.regmap rather
16210 (mips_cannot_store_register): Likewise.
16211 (the_low_target): Update .arch_setup, .num_regs and .regmap
16212 initializers. Add .regset_bitmap initializer.
16213 * linux-arm-low.c (the_low_target): Add .regset_bitmap
16215 * linux-bfin-low.c (the_low_target): Likewise.
16216 * linux-cris-low.c (the_low_target): Likewise.
16217 * linux-crisv32-low.c (the_low_target): Likewise.
16218 * linux-ia64-low.c (the_low_target): Likewise.
16219 * linux-m32r-low.c (the_low_target): Likewise.
16220 * linux-m68k-low.c (the_low_target): Likewise.
16221 * linux-ppc-low.c (the_low_target): Likewise.
16222 * linux-s390-low.c (the_low_target): Likewise.
16223 * linux-sh-low.c (the_low_target): Likewise.
16224 * linux-sparc-low.c (the_low_target): Likewise.
16225 * linux-tic6x-low.c (the_low_target): Likewise.
16226 * linux-x86-low.c (the_low_target): Likewise.
16227 * linux-xtensa-low.c (the_low_target): Likewise.
16228 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
16229 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
16230 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
16232 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
16233 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
16235 2012-02-29 Yao Qi <yao@codesourcery.com>
16236 Pedro Alves <palves@redhat.com>
16238 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
16239 `step_over_finished' is true.
16241 2012-02-27 Pedro Alves <palves@redhat.com>
16243 * linux-low.c (pid_is_stopped): Delete, moved to common/.
16244 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
16246 2012-02-27 Pedro Alves <palves@redhat.com>
16249 * linux-low.c (pid_is_stopped): New.
16250 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
16252 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
16254 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
16257 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
16259 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
16261 2012-02-24 Luis Machado <lgustavo@codesourcery>
16263 * server.c (handle_query): Advertise support for target-side
16264 breakpoint condition evaluation.
16265 (process_point_options): New function.
16266 (process_serial_event): When inserting a breakpoint, check for
16267 a target-side condition that should be evaluated.
16269 * mem-break.c: Include regcache.h and ax.h.
16270 (point_cond_list_t): New data structure.
16271 (breakpoint) <cond_list>: New field.
16272 (find_gdb_breakpoint_at): Make non-static.
16273 (delete_gdb_breakpoint_at): Clear any target-side
16275 (clear_gdb_breakpoint_conditions): New function.
16276 (add_condition_to_breakpoint): Likewise.
16277 (add_breakpoint_condition): Likewise.
16278 (gdb_condition_true_at_breakpoint): Likewise.
16279 (gdb_breakpoint_here): Return result directly instead
16280 of going through a local variable.
16282 * mem-break.h (find_gdb_breakpoint_at): New prototype.
16283 (clear_gdb_breakpoint_conditions): Likewise.
16284 (add_breakpoint_condition): Likewise.
16285 (gdb_condition_true_at_breakpoint): Likewise.
16287 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
16288 (need_step_over_p): Take target-side breakpoint condition into
16291 2012-02-24 Luis Machado <lgustavo@codesourcery>
16293 * server.h: Include tracepoint.h.
16294 (agent_mem_read, agent_get_trace_state_variable_value,
16295 agent_set_trace_state_variable_value,
16296 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
16297 get_set_tsv_func_addr): New prototypes.
16299 * ax.h: New include file.
16300 * ax.c: New source file.
16302 * tracepoint.c: Include ax.h.
16303 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
16304 agent_expr, eval_result_type): Move to ax.h.
16305 (parse_agent_expr): Rename to ...
16306 (gdb_parse_agent_expr): ... this, make it non-static and move
16308 (unparse_agent_expr) Rename to ...
16309 (gdb_unparse_agent_expr): ... this, make it non-static and move
16311 (eval_agent_expr): Rename to ...
16312 (eval_tracepoint_agent_expr): ... this.
16313 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
16314 forward declarations.
16315 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
16316 (agent_get_trace_state_variable_value): New function.
16317 (agent_set_trace_state_variable_value): New function.
16318 (cmd_qtdp): Call gdb_parse_agent_expr (...).
16319 (response_tracepoint): Call gdb_unparse_agent_expr (...).
16320 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
16321 (condition_true_at_tracepoint): Likewise.
16322 (parse_agent_expr): Rename to ...
16323 (gdb_parse_agent_expr): ... this and move to ax.c.
16324 (unparse_agent_expr): Rename to ...
16325 (gdb_unparse_agent_expr): ... this and move to ax.c.
16326 (gdb_agent_op_name): Move to ax.c.
16327 (eval_agent_expr): Rename to ...
16328 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
16330 (eval_tracepoint_agent_expr): New function.
16331 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
16333 (current_insn_ptr, emit_error, struct bytecode_address): Move to
16335 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
16336 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
16337 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
16338 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
16339 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
16340 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
16341 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
16342 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
16343 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
16344 (compile_bytecodes): Remove forward declaration.
16345 (is_goto_target): Move to ax.c.
16346 (compile_bytecodes): Move to ax.c and call
16347 agent_get_trace_state_variable_value (...) and
16348 agent_set_trace_state_variable_value (...).
16350 * Makefile.in: Update ax.c and IPA dependencies.
16352 2012-02-24 Pedro Alves <palves@redhat.com>
16354 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
16355 (cmd_bigqtbuffer_circular): ... this. Only handle
16356 'QTBuffer:circular:'.
16357 (handle_tracepoint_general_set): Adjust.
16359 2012-02-16 Yao Qi <yao@codesourcery.com>
16361 * inferiors.c: Move code to ...
16362 * dll.c: .... here. New.
16363 * server.h: Declare clear_dlls.
16364 * Makefile.in (SFILES): Add dll.c.
16368 2012-02-11 Yao Qi <yao@codesourcery.com>
16370 * server.c: (handle_monitor_command): Add a new parameter
16372 (handle_query): Update caller.
16374 2012-02-09 Joel Brobecker <brobecker@adacore.com>
16376 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
16377 * configure, config.in: Regenerate.
16378 * hostio.c: Provide an alternate implementation if HAVE_READLINK
16381 2012-02-02 Pedro Alves <palves@redhat.com>
16383 Try SIGKILL first, then PTRACE_KILL.
16384 * linux-low.c (linux_kill_one_lwp): New.
16385 (linux_kill_one_lwp): Rename to ...
16386 (kill_one_lwp_callback): ... this. Use the new
16387 linux_kill_one_lwp.
16389 2012-02-02 Pedro Alves <palves@redhat.com>
16391 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
16394 2012-01-27 Pedro Alves <palves@redhat.com>
16396 * linux-low.c (linux_child_pid_to_exec_file): Delete.
16397 (elf_64_file_p): Make static.
16398 (linux_pid_exe_is_elf_64_file): New.
16399 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
16400 Delete declarations.
16401 (linux_pid_exe_is_elf_64_file): Declare.
16402 * linux-x86-low.c (x86_arch_setup): Use
16403 linux_pid_exe_is_elf_64_file.
16405 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16407 * linux-low.c (linux_wait_for_event_1): Rename to ...
16408 (linux_wait_for_event): ... here and merge it with former
16409 linux_wait_for_event - new variable wait_ptid, use it.
16410 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
16412 2012-01-23 Pedro Alves <palves@redhat.com>
16414 * server.c (main): Avoid yet another case of infinite loop while
16415 detaching/killing after a longjmp.
16417 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16420 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
16422 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
16424 * hostio.c (handle_readlink): New function.
16425 (handle_vFile): Call it to handle "vFile:readlink" packets.
16427 2012-01-20 Pedro Alves <palves@redhat.com>
16428 Ulrich Weigand <ulrich.weigand@linaro.org>
16430 * server.c (handle_v_requests): Only support vAttach and vRun to
16431 start multiple processes when in extended protocol mode.
16433 2012-01-17 Pedro Alves <palves@redhat.com>
16435 * tracepoint.c (initialize_tracepoint): Use mmap instead of
16436 memalign plus mprotect to allocate the scratch buffer.
16438 2012-01-13 Pedro Alves <palves@redhat.com>
16440 * server.c (attach_inferior): Clear `cont_thread'.
16442 2012-01-13 Pedro Alves <palves@redhat.com>
16444 * server.c (main): Avoid infinite loop while detaching/killing
16447 2012-01-09 Doug Evans <dje@google.com>
16449 * server.c (start_inferior): Set last_ptid in --wrapper case.
16451 2012-01-06 Yao Qi <yao@codesourcery.com>
16453 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
16455 [IN_PROCESS_AGENT] (debug_agent): New global variable.
16457 2012-01-04 Yao Qi <yao@codesourcery.com>
16459 * tracepoint.c (cmd_qtdp): Print debug message
16460 for static tracepoint.
16462 2012-01-04 Yao Qi <yao@codesourcery.com>
16464 * tracepoint.c (trace_vdebug): Differentiate debug message
16465 between gdbserver and IPA.
16467 2012-01-03 Yao Qi <yao@codesourcery.com>
16469 * tracepoint.c (tracepoint_was_hit): Don't collect for
16472 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16474 * terminal.h: Reformat copyright header.
16476 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16478 * server.c (gdbserver_version): Update copyright year.
16479 * gdbreplay.c (gdbreplay_version): Likewise.
16481 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16483 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16486 2011-12-18 Hui Zhu <teawater@gmail.com>
16487 * linux-low.c (linux_create_inferior): Save return value to ret.
16489 2011-12-18 Hui Zhu <teawater@gmail.com>
16491 * linux-low.c (linux_create_inferior): Save return value to ret.
16493 2011-12-16 Doug Evans <dje@google.com>
16495 * linux-low.c (linux_create_inferior): If stdio connection,
16496 redirect stdin from /dev/null, stdout to stderr.
16497 * remote-utils.c (remote_is_stdio): New static global.
16498 (remote_connection_is_stdio): New function.
16499 (remote_prepare): Handle stdio connection.
16500 (remote_open): Ditto.
16501 (remote_close): Don't close stdin for stdio connections.
16502 (read_prim,write_prim): New functions. Replace all calls to
16503 read/write to these.
16504 * server.c (main): Watch for "-" argument. Move call to
16505 remote_prepare before start_inferior.
16506 * server.h (STDIO_CONNECTION_NAME): New macro.
16507 (remote_connection_is_stdio): Declare.
16509 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16510 in debugging output.
16512 2011-12-15 Yao Qi <yao@codesourcery.com>
16514 * tracepoint.c: Include sys/syscall.h.
16515 (gdb_ust_thread): Remove preprocessor conditional.
16517 2011-12-14 Pedro Alves <pedro@codesourcery.com>
16519 * linux-low.c (linux_detach_one_lwp): Call
16520 the_low_target.prepare_to_resume before detaching.
16522 2011-12-14 Yao Qi <yao@codesourcery.com>
16524 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16527 2011-12-14 Yao Qi <yao@codesourcery.com>
16529 * i386-low.c (i386_low_stopped_data_address): Initialize local
16530 variable `control'.
16532 2011-12-13 Pedro Alves <pedro@codesourcery.com>
16536 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16537 DR_CONTROL unless necessary. Extend comments.
16538 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16539 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16541 2011-12-13 Yao Qi <yao@codesourcery.com>
16543 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16545 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16547 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16549 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16550 Print new debug message for such case.
16552 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16554 Fix overlapping memcpy.
16555 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16556 the read_inferior_memory transfer.
16557 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16558 write_inferior_memory transfer.
16559 (set_fast_tracepoint_jump): New variable buf. Use it for the
16560 read_inferior_memory and write_inferior_memory transfers.
16561 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16562 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16563 Use it for the write_inferior_memory transfer.
16564 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16567 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16569 * linux-low.c (fetch_register, store_register): Make code
16570 consistent, fix formatting.
16572 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16574 * linux-low.c (usr_store_inferior_registers): Factor out code
16575 to handle individual registers into...
16576 (store_register): ... this new function.
16578 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16580 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16581 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16582 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16583 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16584 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16585 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16586 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16587 (srv_xmlfiles): Add new XML files.
16589 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16591 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16592 (init_registers_s390_linux32v1): Add prototype.
16593 (init_registers_s390_linux32v2): Likewise.
16594 (init_registers_s390_linux64v1): Likewise.
16595 (init_registers_s390_linux64v2): Likewise.
16596 (init_registers_s390x_linux64v1): Likewise.
16597 (init_registers_s390x_linux64v2): Likewise.
16598 (s390_num_regs): Increment to 52.
16599 (s390_regmap): Add orig_r2 register.
16600 (s390_num_regs_3264): Increment to 68.
16601 (s390_regmap_3264): Add orig_r2 register.
16602 (s390_collect_ptrace_register): Handle orig_r2 register.
16603 (s390_supply_ptrace_register): Likewise.
16604 (s390_fill_last_break): New function.
16605 (s390_store_last_break): Likewise.
16606 (s390_fill_system_call): New function.
16607 (s390_store_system_call): Likewise.
16608 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16610 (s390_check_regset): New function.
16611 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16612 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16613 Update target_regsets for available register sets.
16615 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16616 Jan Kratochvil <jan.kratochvil@redhat.com>
16618 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16619 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16621 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16622 * linux-low.h (struct process_info_private): New member r_debug.
16623 * server.c (handle_qxfer_libraries): Call
16624 the_target->qxfer_libraries_svr4.
16625 (handle_qxfer_libraries_svr4): New function.
16626 (qxfer_packets): New entry "libraries-svr4".
16627 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16628 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16629 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16630 PACKET_qXfer_libraries_svr4.
16632 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16634 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16635 PSW address/mask between 8-byte and 16-byte formats.
16636 (s390_supply_ptrace_register): Likewise.
16637 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16638 basic addressing mode bit.
16640 2011-11-24 Stan Shebs <stan@codesourcery.com>
16642 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16644 2011-11-17 Stan Shebs <stan@codesourcery.com>
16646 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16647 (tracing_start_time): New global.
16648 (tracing_stop_time): New global.
16649 (tracing_user_name): New global.
16650 (tracing_notes): New global.
16651 (tracing_stop_note): New global.
16652 (cmd_qtstart): Set traceframe_usage, start_time.
16653 (stop_tracing): Set stop_time.
16654 (cmd_qtstatus): Report additional status.
16655 (cmd_qtp): New function.
16656 (handle_tracepoint_query): Call it.
16657 (cmd_qtnotes): New function.
16658 (handle_tracepoint_general_set): Call it.
16659 (get_timestamp): Rename from tsv_get_timestamp.
16661 2011-11-14 Stan Shebs <stan@codesourcery.com>
16662 Kwok Cheung Yeung <kcy@codesourcery.com>
16664 * linux-x86-low.c (small_jump_insn): New.
16665 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16666 trampoline and error message, build a trampoline and issue a small
16667 jump instruction to it.
16668 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16669 trampoline and error message.
16670 (x86_get_min_fast_tracepoint_insn_len): New.
16671 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16672 * linux-low.h (struct linux_target_ops): Add arguments to
16673 install_fast_tracepoint_jump_pad operation, add new operation.
16674 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16676 (linux_get_min_fast_tracepoint_insn_len): New function.
16677 (linux_target_op): Add new operation.
16678 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16679 (gdb_trampoline_buffer_end): Ditto.
16680 (gdb_trampoline_buffer_error): Ditto.
16681 (struct ipa_sym_addresses): Add fields for new IPA variables.
16682 (symbol_list): Add entries for new IPA variables.
16683 (struct tracepoint): Add fields to hold the address range of the
16684 trampoline used by the tracepoint.
16685 (trampoline_buffer_head): New static variable.
16686 (trampoline_buffer_tail): Ditto.
16687 (claim_trampoline_space): New function.
16688 (have_fast_tracepoint_trampoline_buffer): New function.
16689 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16691 (install_fast_tracepoint): Ditto, also add error buffer argument.
16692 (cmd_qtminftpilen): New function.
16693 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16694 (fast_tracepoint_from_trampoline_address): New function.
16695 (fast_tracepoint_collecting): Handle trampoline as part of jump
16697 (set_trampoline_buffer_space): New function.
16698 (initialize_tracepoint): Initialize new IPA variables.
16699 * target.h (struct target_ops): Add arguments to
16700 install_fast_tracepoint_jump_pad operation, add new
16701 get_min_fast_tracepoint_insn_len operation.
16702 (target_get_min_fast_tracepoint_insn_len): New.
16703 (install_fast_tracepoint_jump_pad): Add arguments.
16704 * server.h (IPA_BUFSIZ): Define.
16705 * linux-i386-ipa.c: Include extra header files.
16706 (initialize_fast_tracepoint_trampoline_buffer): New function.
16707 (initialize_low_tracepoint): Call it.
16708 * server.h (set_trampoline_buffer_space): Declare.
16709 (claim_trampoline_space): Ditto.
16710 (have_fast_tracepoint_trampoline_buffer): Ditto.
16712 2011-11-14 Yao Qi <yao@codesourcery.com>
16714 * server.c (handle_query): Handle InstallInTrace for qSupported.
16715 * tracepoint.c (add_tracepoint): Sort list.
16716 (install_tracepoint, download_tracepoint): New.
16717 (cmd_qtdp): Call them to install and download tracepoints.
16718 (sort_tracepoints): Removed.
16719 (cmd_qtstart): Update.
16721 2011-11-14 Yao Qi <yao@codesourcery.com>
16723 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16724 * mem-break.h: Declare.
16725 * tracepoint.c (cmd_qtstart): Move some code to ...
16726 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16728 (download_tracepoints): Move some code to ...
16729 (download_tracepoint_1): ... here. New.
16731 2011-11-08 Yao Qi <yao@codesourcery.com>
16733 * remote-utils.c (relocate_instruction): A comment fix.
16735 2011-11-07 Joel Brobecker <brobecker@adacore.com>
16737 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16738 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16739 dr_status_mirror and dr_control_mirror from debug_reg_state.
16740 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16741 (i386_initial_stuff): Remove use of deleted globals.
16742 (i386_get_thread_context, i386_set_thread_context,
16743 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16744 from debug_reg_state.
16746 2011-11-05 Yao Qi <yao@codesourcery.com>
16748 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16749 address as TPOINT's.
16751 2011-11-02 Stan Shebs <stan@codesourcery.com>
16753 * tracepoint.c (agent_mem_read_string): New function.
16754 (eval_agent_expr): Call it for tracenz.
16755 * server.c (handle_query): Report support for tracenz.
16757 2011-11-02 Yao Qi <yao@codesourcery.com>
16759 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16761 2011-11-02 Yao Qi <yao@codesourcery.com>
16763 * target.h: Fix a typo in comment.
16765 2011-10-31 Pedro Alves <pedro@codesourcery.com>
16767 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16768 clobber the breakpoints' shadows with fast tracepoint jumps.
16769 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16770 * target.c (write_inferior_memory): Also pass MYADDR down to
16773 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16775 * configure.ac: Check support for personality routine.
16776 * configure: Regenerate.
16777 * config.in: Likewise.
16778 * linux-low.c: Include <sys/personality.h>.
16779 Define ADDR_NO_RANDOMIZE if necessary.
16780 (linux_create_inferior): Disable address space randomization when
16781 forking inferior, if requested.
16782 (linux_supports_disable_randomization): New function.
16783 (linux_target_ops): Install it.
16784 * server.h (disable_randomization): Declare.
16785 * server.c (disable_randomization): New global variable.
16786 (handle_general_set): Handle QDisableRandomization.
16787 (handle_query): Likewise for qSupported.
16788 (main): Support --disable-randomization and --no-disable-randomization
16789 command line arguments.
16790 * target.h (struct target_ops): Add supports_disable_randomization.
16791 (target_supports_disable_randomization): New macro.
16793 2011-09-29 Mike Frysinger <vapier@gentoo.org>
16795 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16797 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16798 [!PT_GETDSBT] (target_loadmap): New definition.
16799 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16800 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16801 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16802 and PT_GETDSBT to LINUX_LOADMAP.
16803 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16804 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16806 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16808 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16809 (arm_linux_hwbp_cap): New static variable.
16810 (arm_linux_get_hwbp_cap): Replace by ...
16811 (arm_linux_init_hwbp_cap): ... this new function.
16812 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16813 (arm_linux_get_hw_watchpoint_count): Likewise.
16814 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16815 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16816 (arm_prepare_to_resume): Use perror_with_name instead of error.
16818 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16820 * linux-arm-low.c: Include <signal.h>.
16821 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16822 (struct arm_linux_hwbp_cap): New data type.
16823 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16824 (struct arm_linux_hw_breakpoint): New data type.
16825 (MAX_BPTS, MAX_WPTS): Define.
16826 (struct arch_process_info, struct arch_lwp_info): New data types.
16827 (arm_linux_get_hwbp_cap): New function.
16828 (arm_linux_get_hw_breakpoint_count): Likewise.
16829 (arm_linux_get_hw_watchpoint_count): Likewise.
16830 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16831 (arm_hwbp_control_initialize): Likewise.
16832 (arm_hwbp_control_is_enabled): Likewise.
16833 (arm_hwbp_control_is_initialized): Likewise.
16834 (arm_hwbp_control_disable): Likewise.
16835 (arm_linux_hw_breakpoint_equal): Likewise.
16836 (arm_linux_hw_point_initialize): Likewise.
16837 (struct update_registers_data): New data structure.
16838 (update_registers_callback: New function.
16839 (arm_insert_point): Likewise.
16840 (arm_remove_point): Likewise.
16841 (arm_stopped_by_watchpoint): Likewise.
16842 (arm_stopped_data_address): Likewise.
16843 (arm_new_process): Likewise.
16844 (arm_new_thread): Likewise.
16845 (arm_prepare_to_resume): Likewise.
16846 (the_low_target): Register arm_insert_point, arm_remove_point,
16847 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16848 arm_new_thread, and arm_prepare_to_resume.
16850 2011-09-15 Stan Shebs <stan@codesourcery.com>
16852 * server.h (struct emit_ops): Add compare-goto fields.
16853 * tracepoint.c (gdb_agent_op_sizes): New table.
16854 (emit_eq_goto): New function.
16855 (emit_ne_goto): New function.
16856 (emit_lt_goto): New function.
16857 (emit_le_goto): New function.
16858 (emit_gt_goto): New function.
16859 (emit_ge_goto): New function.
16860 (is_goto_target): New function.
16861 (compile_bytecodes): Recognize special cases of compare-goto
16862 combinations and call specialized emitters for them.
16863 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16864 (amd64_emit_ne_goto): New function.
16865 (amd64_emit_lt_goto): New function.
16866 (amd64_emit_le_goto): New function.
16867 (amd64_emit_gt_goto): New function.
16868 (amd64_emit_ge_goto): New function.
16869 (amd64_emit_ops): Add the new functions.
16870 (i386_emit_eq_goto): New function.
16871 (i386_emit_ne_goto): New function.
16872 (i386_emit_lt_goto): New function.
16873 (i386_emit_le_goto): New function.
16874 (i386_emit_gt_goto): New function.
16875 (i386_emit_ge_goto): New function.
16876 (i386_emit_ops): Add the new functions.
16878 2011-09-08 Stan Shebs <stan@codesourcery.com>
16880 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16881 (i386_emit_epilogue): Restore %ebx.
16883 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16885 * server.c (step_thread): Remove definition.
16886 (process_serial_event): Don't handle Hs.
16887 * server.h (step_thread): Remove declaration.
16888 * target.c (set_desired_inferior): Remove use of step_thread.
16890 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16892 * linux-low.c: Include linux-procfs.h.
16893 (linux_attach_lwp_1): Update comments.
16894 (linux_attach): Scan for existing threads when attaching to a
16895 process that is the tgid.
16896 * Makefile.in: Update dependencies.
16898 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16900 * configure.srv: Add linux-procfs.o dependencies.
16902 2011-08-14 Yao Qi <yao@codesourcery.com>
16904 * target.h (struct target_ops): Fix indent.
16905 * win32-low.c (win32_target_ops): Fix comment.
16907 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16908 Yao Qi <yao@codesourcery.com>
16910 * Makefile.in (clean): Remove tic6x-*.c files.
16911 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16912 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16913 (tic6x-c64xp-linux.c): Likewise.
16914 * configure.srv: Add support for tic6x-*-uclinux.
16915 * linux-tic6x-low.c: New.
16916 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16918 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16919 Yao Qi <yao@codesourcery.com>
16921 * target.h (struct target_ops): Add read_loadmap.
16922 * linux-low.c (struct target_loadseg): New type.
16923 (struct target_loadmap): New type.
16924 (linux_read_loadmap): New function.
16925 (linux_target_ops): Add linux_read_loadmap.
16926 * server.c (handle_query): Support qXfer:fdpic:read packet.
16927 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16930 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16932 * win32-low.c: Include <stdint.h>.
16934 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16936 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16937 to the inferior here.
16938 (i386_remove_aligned_watchpoint): Ditto.
16939 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16940 fit part of the watchpoint in the debug registers.
16941 (i386_update_inferior_debug_regs): New.
16942 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16943 registers, and only update the inferior on success.
16944 (i386_low_remove_watchpoint): Ditto.
16946 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16948 * linux-low.c (compare_ints, unique, list_threads, show_process,
16949 linux_core_of_thread): Delete.
16950 (linux_target_ops): Change linux_core_of_thread to
16951 linux_common_core_of_thread.
16952 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16953 * utils.c (malloc_failure): Change type of argument.
16954 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16955 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16956 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16957 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16958 (IPA_OBJS): Add common-utils-ipa.o.
16959 (ptid_h, linux_osdata_h): New macros.
16960 (server_h): Add common/common-utils.h, common/xml-utils.h,
16961 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16963 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16964 ptid.o, buffer.o): New rules.
16965 (linux-low.o): Add common/linux-osdata.h as a dependency.
16966 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16967 * configure.ac: Add AC_HEADER_DIRENT check.
16968 * config.in: Regenerate.
16969 * configure: Regenerate.
16970 * remote-utils.c (xml_escape_text): Delete.
16971 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16972 buffer_xml_printf): Move to common/buffer.c.
16973 * server.c (main): Remove call to initialize_inferiors.
16974 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16975 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16976 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16977 internal_error, gdb_assert, gdb_assert_fail): Delete.
16978 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16979 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16981 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16982 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16983 initialize_inferiors): Delete.
16985 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16987 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16990 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16992 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16994 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16996 2011-05-26 Yao Qi <yao@codesourcery.com>
16998 * Makefile.in (thread-db.o): Track dependence to
16999 common/gdb_thread_db.h.
17000 * thread-db.c: include gdb_thread_db.h from right place.
17002 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
17004 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
17005 __FILE__ and __LINE__ to internal_error.
17007 2011-05-13 Doug Evans <dje@google.com>
17009 * thread-db.c (try_thread_db_load_from_sdir): New function.
17010 (try_thread_db_load_from_dir): New function.
17011 (thread_db_load_search): Handle $sdir, ignore $pdir.
17012 Remove trying of system directories if search of
17013 libthread-db-search-path fails, that is now done via $sdir.
17015 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
17017 * server.c (handle_query): Add EnableDisableTracepoints to the list
17018 of supported features.
17019 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
17021 (cmd_qtenable_disable): New.
17022 (cmd_qtstart): Install tracepoints even if disabled.
17023 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
17024 receiving a QTEnable or QTDisable packet.
17025 (gdb_collect): Skip data collection if fast tracepoint is disabled.
17026 (ust_marker_to_static_tracepoint): Do not ignore disabled static
17028 (gdb_probe): Skip data collection if static tracepoint is disabled.
17030 2011-05-10 Doug Evans <dje@google.com>
17032 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
17034 2011-05-04 Doug Evans <dje@google.com>
17036 * linux-low.c (linux_join): Skip process lookup.
17037 * spu-low.c (spu_join): Ditto.
17038 * server.c (join_inferiors_callback): Delete.
17039 (process_serial_event): For 'D' packet (detach) call join_inferior
17042 2011-05-04 Joseph Myers <joseph@codesourcery.com>
17044 * README: Don't mention xscale*-*-linux*.
17045 * configure.srv (xscale*-*-linux*): Don't handle target.
17047 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
17049 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
17051 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
17052 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
17053 (i386_emit_void_call_2): Likewise.
17055 2011-04-26 Yao Qi <yao@codesourcery.com>
17057 * linux-low.c: Move common macros to linux-ptrace.h.
17058 Include linux-ptrace.h.
17059 * Makefile.in (linux_ptrace_h): New.
17060 (linux-low.o): Depends on linux-ptrace.h.
17062 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
17064 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
17065 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
17066 (remote_prepare): New function with most of the TCP code from ...
17067 (remote_open): ... here. Detect PORT here unconditionally. Move also
17068 setting transport_is_reliable.
17069 * server.c (run_once): New variable.
17070 (gdbserver_usage): Document it.
17071 (main): Set run_once for `--once'. Call remote_prepare. Exit after
17072 the first run if RUN_ONCE.
17073 * server.h (run_once, remote_prepare): New declarations.
17075 2011-04-19 Tom Tromey <tromey@redhat.com>
17077 * win32-low.c (handle_load_dll): Remove duplicate "the".
17079 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
17081 Remove support for old Cygwin 1.5 versions.
17082 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
17083 function to avoid warning.
17084 (win32_add_one_solib): Use cygwin_conv_path function to avoid
17087 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
17089 * gdbserver/server.h (Macro _): Define it if not available.
17091 2011-03-14 Michael Snyder <msnyder@vmware.com>
17093 * hostio.c (handle_close): Remove unnecessary null test.
17095 2011-03-10 Joel Brobecker <brobecker@adacore.com>
17097 * Makefile.in (maintainer-clean realclean distclean): Remove
17098 "make ... subdir_do" command.
17100 2011-03-10 Michael Snyder <msnyder@vmware.com>
17102 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
17104 * server.c (handle_v_run): Free alloced buffer on early return.
17106 2011-03-09 Yao Qi <yao@codesourcery.com>
17109 2011-03-04 Yao Qi <yao@codesourcery.com>
17111 * Makefile.in: Remove GNU make feature --directory.
17113 2011-03-05 Yao Qi <yao@codesourcery.com>
17115 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
17116 (subdir_do): New make target. Copied from gdb/Makefile.
17117 (maintainer-clean, realclean, distclean, clean): Call corresponding
17118 make targets in common/Makefile.
17120 2011-02-11 Yao Qi <yao@codesourcery.com>
17122 * configure.ac: Call AC_PROG_RANLIB.
17123 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17124 * configure: Regenerate.
17126 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
17128 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
17130 2011-03-06 Yao Qi <yao@codesourcery.com>
17132 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
17134 2011-03-05 Yao Qi <yao@codesourcery.com>
17136 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
17137 (subdir_do): New make target. Copied from gdb/Makefile.
17138 (maintainer-clean, realclean, distclean, clean): Call corresponding
17139 make targets in common/Makefile.
17141 2011-03-04 Yao Qi <yao@codesourcery.com>
17143 * Makefile.in: Remove GNU make feature --directory.
17145 2011-03-04 Michael Snyder <msnyder@vmware.com>
17147 * server.c (queue_stop_reply): Call xmalloc not malloc.
17149 2011-03-02 Michael Snyder <msnyder@vmware.com>
17151 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
17153 2011-02-28 Michael Snyder <msnyder@vmware.com>
17155 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
17156 (cmd_qtframe): Ditto.
17157 (cmd_qtbuffer): Ditto.
17158 (cmd_bigqtbuffer): Ditto.
17160 * utils.c (decimal2str): Initialize 'width' to nine, then
17161 don't mess with it.
17163 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17165 * hostio.c (require_data): Free *data, not data.
17167 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17169 * hostio.c (require_data): Use free, not xfree.
17171 2011-02-27 Michael Snyder <msnyder@vmware.com>
17173 * server.c (handle_query): Discard unused value.
17175 * hostio.c (require_data): Free malloc memory before returning
17178 2011-02-26 Michael Snyder <msnyder@vmware.com>
17180 * linux-low.c (list_threads): Call closedir for dirent.
17182 2011-02-27 Michael Snyder <msnyder@vmware.com>
17184 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
17185 a case statement falls through.
17187 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
17189 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
17192 2011-02-26 Michael Snyder <msnyder@vmware.com>
17194 * utils.c (decimal2str): Eliminate dead code and dead param.
17195 (pulongest): Drop dead param from call to decimal2str.
17198 2011-02-24 Joel Brobecker <brobecker@adacore.com>
17200 Revert the following patch (not approved yet):
17201 2011-02-21 Hui Zhu <teawater@gmail.com>
17202 * tracepoint.c (tp_printf): New function.
17203 (eval_agent_expr): Handle gdb_agent_op_printf.
17205 2011-02-21 Hui Zhu <teawater@gmail.com>
17207 * tracepoint.c (tp_printf): New function.
17208 (eval_agent_expr): Handle gdb_agent_op_printf.
17210 2011-02-18 Tom Tromey <tromey@redhat.com>
17212 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
17213 (tracepoint.o): Likewise.
17214 * tracepoint.c (enum gdb_agent_op): Use ax.def.
17215 (gdb_agent_op_names): Likewise.
17217 2011-02-18 Tom Tromey <tromey@redhat.com>
17219 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
17220 gdb_agent_op_rot>: New constants.
17221 (gdb_agent_op_names): Add pick and roll.
17222 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
17225 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
17227 * aclocal.m4: Regenerated with aclocal-1.11.1.
17229 2011-02-14 Pedro Alves <pedro@codesourcery.com>
17231 * server.c (handle_qxfer_traceframe_info): New.
17232 (qxfer_packets): Register "traceframe-info".
17233 (handle_query): Report support for qXfer:traceframe-info:read+.
17234 * tracepoint.c (match_blocktype): New.
17235 (traceframe_find_block_type): Rename to ...
17236 (traceframe_walk_blocks): ... this. Add callback filter argument,
17238 (traceframe_find_block_type): New, reimplemented on top of
17239 traceframe_walk_blocks.
17240 (build_traceframe_info_xml): New.
17241 (traceframe_read_info): New.
17242 * server.h (traceframe_read_info): Declare.
17244 2011-02-11 Yao Qi <yao@codesourcery.com>
17246 * configure.ac: Call AC_PROG_RANLIB.
17247 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17248 * configure: Regenerate.
17250 2011-02-07 Pedro Alves <pedro@codesourcery.com>
17252 * server.c (gdb_read_memory): Change return semantics to allow
17254 (handle_search_memory_1): Adjust.
17255 (process_serial_event) <'m' packet>: Handle partial transfers.
17256 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
17258 2011-01-28 Pedro Alves <pedro@codesourcery.com>
17260 * regcache.c (init_register_cache): Initialize
17261 regcache->register_status.
17262 (free_register_cache): Release regcache->register_status.
17263 (regcache_cpy): Copy register_status.
17264 (registers_to_string): Print 'x's for unavailable registers.
17265 (supply_register): Mark the register's status valid or
17266 unavailable, depending on whether a buffer was passed in or not.
17267 (supply_register_zeroed): New.
17268 (supply_regblock): Mark the registers' status valid or
17269 unavailable, depending on whether a buffer was passed in or not.
17270 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
17271 (struct regcache): New `register_status' field.
17272 (supply_register_zeroed): Declare.
17273 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
17274 supply_register_zeroed, rather than passing a NULL buffer to
17276 * tracepoint.c (fetch_traceframe_registers): Update comment.
17278 2011-01-28 Pedro Alves <pedro@codesourcery.com>
17280 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
17283 2011-01-25 Pedro Alves <pedro@codesourcery.com>
17285 * server.h (decode_xfer_write): Change prototype.
17286 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
17287 and don't extract the annex here.
17288 * server.c (decode_xfer_read): Remove `annex' parameter,
17289 and don't extract the annex here.
17290 (decode_xfer): New.
17291 (struct qxfer): New.
17292 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
17293 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
17294 (handle_qxfer_statictrace): New functions, abstracted out from
17295 handle_query, and made to use the struct qxfer interface.
17296 (handle_threads_qxfer_proper): Rename to ...
17297 (handle_qxfer_threads_proper): ... this.
17298 (handle_threads_qxfer): Rename to ...
17299 (handle_qxfer_threads): ... this. Adjust.
17300 (qxfer_packets): New array.
17301 (handle_qxfer): New function.
17302 (handle_query): Use handle_qxfer.
17304 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
17306 * gdbreplay.c: Shorten lines of >= 80 columns.
17307 * linux-low.c: Ditto.
17308 * linux-ppc-low.c: Ditto.
17309 * linux-s390-low.c: Ditto.
17310 * linux-sparc-low.c: Ditto.
17311 * linux-x86-low.c: Ditto.
17312 * linux-xtensa-low.c: Ditto.
17313 * mem-break.c: Ditto.
17314 * nto-low.c: Ditto.
17315 * regcache.h: Ditto.
17316 * remote-utils.c: Ditto.
17319 * thread-db.c: Ditto.
17320 * tracepoint.c: Ditto.
17322 * win32-low.h: Ditto.
17324 2011-01-05 Joel Brobecker <brobecker@adacore.com>
17326 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
17329 2011-01-01 Joel Brobecker <brobecker@adacore.com>
17331 * server.c (gdbserver_version): Update copyright year in version
17333 * gdbreplay.c (gdbreplay_version): Ditto.
17335 2010-12-29 Jie Zhang <jie.zhang@analog.com>
17337 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
17338 * linux-bfin-low.c: New file.
17339 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
17340 PT_DATA_ADDR for BFIN targets.
17341 * Makefile.in (SFILES): Add linux-bfin-low.c.
17342 (clean): Remove reg-bfin.c.
17343 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
17344 * README: Mention supported Blackfin targets.
17346 2010-12-23 Mike Frysinger <vapier@gentoo.org>
17348 * .gitignore: New file.
17350 2010-11-16 Mike Frysinger <vapier@gentoo.org>
17352 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
17354 2010-10-22 Jie Zhang <jie@codesourcery.com>
17356 * Makefile.in: Add FLAGS_TO_PASS variable.
17357 (install): Remove dependency of install-only and recursively
17358 invoke make for install-only.
17360 2010-10-04 Doug Evans <dje@google.com>
17362 * Makefile.in (uninstall): Use $(DESTDIR).
17364 2010-09-24 Pedro Alves <pedro@codesourcery.com>
17368 * linux-x86-low.c (compat_siginfo_from_siginfo)
17369 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
17370 si_code is < 0. Check for si_code == SI_TIMER before checking for
17373 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17375 * lynx-i386-low.c: New file.
17376 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
17378 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17380 * lynx-low.c (ptrace_request_to_str): Remove handling for
17381 request values that have been removed in LynxOS 5.x.
17383 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17385 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
17388 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
17390 * configure.ac: Add --enable-inprocess-agent option.
17391 * configure: Rebuilt.
17393 2010-09-06 Yao Qi <yao@codesourcery.com>
17395 * linux-low.c (linux_kill): Remove unused variable.
17396 (linux_stabilize_threads): Likewise.
17397 * server.c (start_inferior): Likewise.
17398 (queue_stop_reply_callback): Likewise.
17399 * tracepoint.c (do_action_at_tracepoint): Likewise.
17401 2010-09-06 Yao Qi <yao@codesourcery.com>
17403 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
17406 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
17408 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
17410 2010-09-06 Pedro Alves <pedro@codesourcery.com>
17412 * Makefile.in (install-only): Replace $IPA_DEPFILES with
17415 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17417 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
17418 gdbserver/lynx-ppc-low.c: New files.
17419 * Makefile.in (lynx_low_h): New variable.
17420 (lynx-low.o, lynx-ppc-low.o): New rules.
17421 * configure.ac: On LynxOS, link with -lnetinet.
17422 * configure.srv: Add handling of powerpc-*-lynxos* targets.
17423 * configure: regenerate.
17425 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17427 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
17428 * configure.ac: Add check for vasprintf and vsnprintf.
17429 * configure, config.in: Regenerate.
17430 * server.h (vasprintf, vsnprintf): Add conditional declarations.
17432 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17434 * gdbreplay.c: Move include of alloca.h up, next to include of
17436 * server.h: Add include of malloc.h.
17437 * mem-break.c: Remove include of malloc.h.
17438 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
17440 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17442 * Makefile.in (memmem.o): Build with -Wno-error.
17444 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17446 * utils.c (xsnprintf): Make non-static.
17447 * server.h: Add xsnprintf declaration.
17448 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
17449 replace calls to snprintf by calls to xsnprintf throughout.
17451 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17453 * configure.ac: Add configure check for alloca.
17454 * configure, config.in: Regenerate.
17455 * server.h: Include alloca.h if it exists.
17456 * gdbreplay.c: Include alloca.h if it exists.
17458 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17460 * linux-low.c (__SIGRTMIN): Define if not already defined.
17461 (linux_create_inferior): Check for __ANDROID__ rather than
17463 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
17464 are already deferred.
17465 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
17466 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
17467 stopped and already has a pending signal to report.
17468 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
17469 a pending signal to report or is moving out of a jump pad.
17470 (linux_init_signals): Check for __ANDROID__ rather than
17473 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17475 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17476 debug_threads check. Avoid a linear search when not doing debug
17479 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17481 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17482 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17483 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17484 (process_event): Change local fd's type to gdb_fildes_t.
17485 (create_file_handler): Adjust prototype.
17486 (delete_file_handler): Adjust prototype.
17487 (handle_file_event): Adjust prototype. Use pfildes.
17488 (create_file_event): Adjsut prototype.
17489 * remote-utils.c (remote_desc, listen_desc): Change type to
17491 * server.h: New gdb_fildes_t typedef.
17492 [USE_WIN32API]: Include winsock2.h.
17493 (delete_file_handler, add_file_handler): Adjust prototypes.
17494 (pfildes): Declare.
17495 * utils.c (pfildes): New.
17497 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17499 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17500 * configure: Regenerate.
17502 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17504 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17505 (linux_done_accessing_memory): ... this.
17506 (linux_target_ops): Adjust.
17507 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17508 * nto-low.c (nto_target_ops): Adjust comment.
17509 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17510 * spu-low.c (spu_target_ops): Adjust comment.
17511 * target.h (target_ops): Rename unprepare_to_access_memory field
17512 to done_accessing_memory.
17513 (unprepare_to_access_memory): Rename to ...
17514 (done_accessing_memory): ... this.
17516 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17518 * linux-low.c (linux_prepare_to_access_memory): New.
17519 (linux_unprepare_to_access_memory): New.
17520 (linux_target_ops): Install them.
17521 * server.c (read_memory): Rename to ...
17522 (gdb_read_memory): ... this. Use
17523 prepare_to_access_memory/prepare_to_access_memory.
17524 (write_memory): Rename to ...
17525 (gdb_write_memory): ... this. Use
17526 prepare_to_access_memory/prepare_to_access_memory.
17527 (handle_search_memory_1): Adjust.
17528 (process_serial_event): Adjust.
17529 * target.h (struct target_ops): New fields
17530 prepare_to_access_memory and unprepare_to_access_memory.
17531 (prepare_to_access_memory, unprepare_to_access_memory): New.
17532 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17533 prepare_to_access_memory/prepare_to_access_memory.
17534 * nto-low.c (nto_target_ops): Adjust.
17535 * spu-low.c (spu_target_ops): Adjust.
17536 * win32-low.c (win32_target_ops): Adjust.
17538 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17540 * Makefile.in (WARN_CFLAGS): Get it from configure.
17541 (WERROR_CFLAGS): New.
17542 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17543 * configure.ac: Introduce --enable-werror, which adds -Werror to
17544 the compiler command line. Enabled by default. Disable with
17545 --disable-werror. Add -Wdeclaration-after-statement
17546 Wpointer-arith and -Wformat-nonliteral to warning flags.
17547 * configure: Regenerate.
17549 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17551 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17553 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17555 * gdbreplay.c (remote_error): New.
17557 (expect): Use gdbchar. Check for error reading from GDB.
17558 Clarify sync error output.
17559 (play): Check for errors writing to GDB.
17560 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17561 * remote-utils.c (getpkt): Check for errors writing to the remote
17564 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17566 * linux-low.c (linux_wait_1): Move non-debugging code out of
17567 `debug_threads' control.
17569 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17571 * linux-low.c (linux_wait_1): Don't set last_status here.
17572 * server.c (push_event, queue_stop_reply_callback): Assert we're
17573 not pushing a TARGET_WAITKIND_IGNORE event.
17574 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17575 (myresume, handle_target_event): Set the thread's last_resume_kind
17576 and last_status from the target returned status.
17578 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17582 * linux-x86-low.c (update_debug_registers_callback): New.
17583 (i386_dr_low_set_addr): Use it.
17584 (i386_dr_low_get_addr): New.
17585 (i386_dr_low_set_control): Use update_debug_registers_callback.
17586 (i386_dr_low_get_control): New.
17587 (i386_dr_low_get_status): Adjust.
17588 * linux-low.c (linux_stop_lwp): New.
17589 * linux-low.h (linux_stop_lwp): Declare.
17591 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17592 argument instead of a i386_debug_reg_state.
17593 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17594 a i386_debug_reg_state.
17595 (i386_insert_aligned_watchpoint): Adjust.
17596 (i386_remove_aligned_watchpoint): Adjust.
17597 (i386_low_stopped_data_address): Read the debug registers from the
17598 inferior instead of from the mirrors.
17599 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17600 (i386_dr_low_get_addr): Declare.
17601 (i386_dr_low_get_control): Declare.
17602 (i386_dr_low_get_status): Change prototype.
17604 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17605 (i386_dr_low_get_addr): New.
17606 (i386_dr_low_get_control): New.
17607 (i386_dr_low_get_status): Adjust prototype. Return
17609 (i386_initial_stuff): Clear dr_status_mirror and
17611 (i386_get_thread_context): Adjust.
17612 (i386_set_thread_context): Adjust.
17613 (i386_thread_added): Adjust.
17615 2010-08-24 Pedro Alves <pedro@codesourcery.com>
17617 * linux-low.h (linux_thread_area): Delete declaration.
17619 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17621 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17622 after its termination.
17624 2010-08-09 Pedro Alves <pedro@codesourcery.com>
17626 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17627 (gdb_wants_all_stopped): Delete.
17628 (linux_wait_1): Don't call them.
17629 * server.c (handle_v_cont): Tag all threads as want-stopped.
17630 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17631 stopped as "client-wants-stopped".
17633 2010-07-31 Pedro Alves <pedro@codesourcery.com>
17635 * Makefile.in (signals_h): New.
17636 (server_h): Depend on it.
17637 (server.o): Don't depend on $(signals_def).
17638 (signals.o): Depend on $(signals_def).
17640 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17642 * Makefile.in (signals_def): New.
17643 (server_h): Append include/gdb/signals.h and signals_def.
17644 (server.o): Append signals_def.
17646 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17648 * server.c (handle_target_event): Use target_signal_to_host for
17649 resume_info.sig initialization.
17650 * target.h (struct thread_resume) <sig>: New comment.
17652 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17654 * server.c (handle_query): strcpy() the returned string from paddress()
17655 instead of sprintf().
17656 * utils.c (paddress): Return phex_nz().
17658 2010-07-07 Joel Brobecker <brobecker@adacore.com>
17660 * server.c (handle_v_cont): Call mourn_inferior if process
17662 (myresume): Likewise.
17664 2010-07-01 Pedro Alves <pedro@codesourcery.com>
17666 Static tracepoints, and integration with UST.
17668 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17669 * mem-break.c (uninsert_all_breakpoints)
17670 (reinsert_all_breakpoints): New.
17671 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17672 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17673 (gdb_agent_ust_loaded, helper_thread_id)
17674 (gdb_agent_helper_thread_id): New macros.
17675 (struct ipa_sym_addresses): Add addr_ust_loaded,
17676 addr_helper_thread_id, addr_cmd_buf.
17677 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17678 (in_process_agent_loaded_ust): New.
17679 (write_e_ust_not_loaded): New.
17680 (maybe_write_ipa_ust_not_loaded): New.
17681 (struct collect_static_trace_data_action): New.
17682 (enum tracepoint_type) <static_tracepoint>: New.
17683 (struct tracepoint) <handle>: Mention static tracepoints.
17684 (struct static_tracepoint_ctx): New.
17685 (CMD_BUF_SIZE): New.
17686 (add_tracepoint_action): Handle static tracepoint actions.
17687 (unprobe_marker_at): New.
17688 (clear_installed_tracepoints): Handle static tracepoints.
17689 (cmd_qtdp): Handle static tracepoints.
17690 (probe_marker_at): New.
17691 (cmd_qtstart): Handle static tracepoints.
17692 (response_tracepoint): Handle static tracepoints.
17693 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17694 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17695 (get_context_regcache): Handle static tracepoints.
17696 (do_action_at_tracepoint): Handle static tracepoint actions.
17697 (traceframe_find_block_type): Handle static trace data blocks.
17698 (traceframe_read_sdata): New.
17699 (download_tracepoints): Download static tracepoint actions.
17700 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17701 (GDB_PROBE_NAME): New.
17703 (GET_UST_SYM): New.
17706 (ust_marker_to_static_tracepoint): New.
17708 (collect_ust_data_at_tracepoint): New.
17709 (gdb_ust_probe): New.
17710 (UNIX_PATH_MAX, SOCK_DIR): New.
17711 (gdb_ust_connect_sync_socket): New.
17712 (resume_thread, stop_thread): New.
17713 (run_inferior_command): New.
17714 (init_named_socket): New.
17715 (gdb_ust_socket_init): New.
17716 (cstr_to_hexstr): New.
17718 (first_marker, next_marker): New.
17719 (response_ust_marker): New.
17720 (cmd_qtfstm, cmd_qtsstm): New.
17721 (unprobe_marker_at, probe_marker_at): New.
17722 (cmd_qtstmat, gdb_ust_thread): New.
17723 (gdb_ust_init): New.
17724 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17725 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17726 (ST_REGENTRY): New.
17727 (x86_64_st_collect_regmap): New.
17728 (X86_64_NUM_ST_COLLECT_GREGS): New.
17729 (AMD64_RIP_REGNUM): New.
17730 (supply_static_tracepoint_registers): New.
17731 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17732 (ST_REGENTRY): New.
17733 (i386_st_collect_regmap): New.
17734 (i386_NUM_ST_COLLECT_GREGS): New.
17735 (supply_static_tracepoint_registers): New.
17736 * server.c (handle_query): Handle qXfer:statictrace:read.
17737 <qSupported>: Report support for StaticTracepoints, and
17738 qXfer:statictrace:read features.
17739 * server.h (traceframe_read_sdata)
17740 (supply_static_tracepoint_registers): Declare.
17741 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17742 (unpack_varlen_hex): Include in IPA build.
17743 * Makefile.in (ustlibs, ustinc): New.
17744 (IPA_OBJS): Add remote-utils-ipa.o.
17745 ($(IPA_LIB)): Link -ldl and -lpthread.
17747 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17748 * config.in, configure: Regenerate.
17750 2010-06-20 Ian Lance Taylor <iant@google.com>
17751 Pedro Alves <pedro@codesourcery.com>
17753 * linux-x86-low.c (always_true): Delete.
17754 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17755 trying to fool the compiler with always_true.
17757 2010-06-20 Pedro Alves <pedro@codesourcery.com>
17759 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17760 conditions in gdbserver.
17762 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17764 * spu-low.c (spu_read_memory): Wrap around local store limit.
17765 (spu_write_memory): Likewise.
17767 2010-06-15 Pedro Alves <pedro@codesourcery.com>
17769 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17770 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17772 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17774 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17775 uses with LONGEST uses.
17777 2010-06-14 Stan Shebs <stan@codesourcery.com>
17778 Pedro Alves <pedro@codesourcery.com>
17782 * linux-x86-low.c: Include limits.h.
17784 (always_true): New.
17787 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17788 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17789 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17790 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17791 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17792 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17793 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17794 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17795 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17796 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17797 (amd64_emit_void_call_2): New.
17798 (amd64_emit_ops): New.
17799 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17800 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17801 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17802 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17803 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17804 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17805 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17806 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17807 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17808 (i386_emit_stack_adjust, i386_emit_int_call_1)
17809 (i386_emit_void_call_2): New.
17810 (i386_emit_ops): New.
17811 (x86_emit_ops): New.
17812 (the_low_target): Install x86_emit_ops.
17813 * server.h (struct emit_ops): New.
17814 (get_raw_reg_func_addr): Declare.
17815 (current_insn_ptr, emit_error): Declare.
17816 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17817 (set_trace_state_variable_value): New defines.
17818 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17819 addr_get_trace_state_variable_value and
17820 addr_set_trace_state_variable_value.
17821 (symbol_list): New fields for get_raw_reg,
17822 get_trace_state_variable_value and set_trace_state_variable_value.
17823 (condfn): New typedef.
17824 (struct tracepoint): New field `compiled_cond'.
17825 (do_action_at_tracepoint): Clear compiled_cond.
17826 (get_trace_state_variable_value, set_trace_state_variable_value):
17828 (condition_true_at_tracepoint): If there's a compiled condition,
17830 (current_insn_ptr, emit_error): New globals.
17831 (struct bytecode_address): New.
17832 (get_raw_reg_func_addr): New.
17833 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17834 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17835 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17836 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17837 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17838 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17839 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17840 (compile_tracepoint_condition, compile_bytecodes): New.
17841 * target.h (emit_ops): Forward declare.
17842 (struct target_ops): New field emit_ops.
17843 (target_emit_ops): New.
17844 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17845 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17846 * linux-low.c (linux_emit_ops): New.
17847 (linux_target_ops): Install it.
17848 * linux-low.h (struct linux_target_ops): New field emit_ops.
17850 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17852 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17853 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17855 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17856 Stan Shebs <stan@codesourcery.com>
17858 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17859 (all): Depend on $(extra_libraries).
17860 (install-only): Install the IPA.
17861 (IPA_OBJS, IPA_LIB): New.
17862 (clean): Remove the IPA lib.
17863 (IPAGENT_CFLAGS): New.
17864 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17865 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17866 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17867 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17868 * configure.ac: Check for atomic builtins support in the compiler.
17869 (IPA_DEPFILES, extra_libraries): Define.
17870 * configure.srv (ipa_obj): Add description.
17871 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17872 (i[34567]86-*-linux*): Set ipa_obj.
17873 (x86_64-*-linux*): Set ipa_obj.
17874 * linux-low.c (stabilizing_threads): New.
17875 (supports_fast_tracepoints): New.
17876 (linux_detach): Stabilize threads before detaching.
17877 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17878 the lwp is either not stabilizing, or is moving out of a jump pad.
17879 (linux_fast_tracepoint_collecting): New.
17880 (maybe_move_out_of_jump_pad): New.
17881 (enqueue_one_deferred_signal): New.
17882 (dequeue_one_deferred_signal): New.
17883 (linux_wait_for_event_1): If moving out of a jump pad, defer
17884 pending signals to later.
17885 (linux_stabilize_threads): New.
17886 (linux_wait_1): Check if threads need moving out of jump pads, and
17888 (stuck_in_jump_pad_callback): New.
17889 (move_out_of_jump_pad_callback): New.
17890 (lwp_running): New.
17891 (linux_resume_one_lwp): Handle moving out of jump pads.
17892 (linux_set_resume_request): Dequeue deferred signals.
17893 (need_step_over_p): Also step over fast tracepoint jumps.
17894 (start_step_over): Also uninsert fast tracepoint jumps.
17895 (finish_step_over): Also reinsert fast tracepoint jumps.
17896 (linux_install_fast_tracepoint_jump): New.
17897 (linux_target_ops): Install linux_stabilize_threads and
17898 linux_install_fast_tracepoint_jump_pad.
17899 * linux-low.h (linux_target_ops) <get_thread_area,
17900 install_fast_tracepoint_jump_pad>: New fields.
17901 (struct lwp_info) <collecting_fast_tracepoint,
17902 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17903 (linux_get_thread_area): Declare.
17904 * linux-x86-low.c (jump_insn): New.
17905 (x86_get_thread_area): New.
17906 (append_insns): New.
17907 (push_opcode): New.
17908 (amd64_install_fast_tracepoint_jump_pad): New.
17909 (i386_install_fast_tracepoint_jump_pad): New.
17910 (x86_install_fast_tracepoint_jump_pad): New.
17911 (the_low_target): Install x86_get_thread_area and
17912 x86_install_fast_tracepoint_jump_pad.
17913 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17914 (struct fast_tracepoint_jump): New.
17915 (fast_tracepoint_jump_insn): New.
17916 (fast_tracepoint_jump_shadow): New.
17917 (find_fast_tracepoint_jump_at): New.
17918 (fast_tracepoint_jump_here): New.
17919 (delete_fast_tracepoint_jump): New.
17920 (set_fast_tracepoint_jump): New.
17921 (uninsert_fast_tracepoint_jumps_at): New.
17922 (reinsert_fast_tracepoint_jumps_at): New.
17923 (set_breakpoint_at): Use write_inferior_memory.
17924 (uninsert_raw_breakpoint): Use write_inferior_memory.
17925 (check_mem_read): Mask out fast tracepoint jumps.
17926 (check_mem_write): Mask out fast tracepoint jumps.
17927 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17928 (set_fast_tracepoint_jump): Declare.
17929 (delete_fast_tracepoint_jump)
17930 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17931 (reinsert_fast_tracepoint_jumps_at): Declare.
17932 * regcache.c: Don't compile many functions when building the
17933 in-process agent library.
17934 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17935 the register buffer in the heap.
17936 (free_register_cache): If the register buffer isn't owned by the
17937 regcache, don't free it.
17938 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17939 pre-existing register caches.
17940 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17942 (convert_ascii_to_int): : Constify `from' parameter type.
17943 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17944 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17945 the needed buffer in-place.
17946 (relocate_instruction): New.
17947 * server.c (handle_query) <qSymbols>: If the target supports
17948 tracepoints, give it a chance of looking up symbols. Report
17949 support for fast tracepoints.
17950 (handle_status): Stabilize threads.
17951 (process_serial_event): Adjust.
17952 * server.h (struct fast_tracepoint_jump): Forward declare.
17953 (struct process_info) <fast_tracepoint_jumps>: New field.
17954 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17955 (decode_X_packet, decode_M_packet): Adjust.
17956 (relocate_instruction): Declare.
17957 (in_process_agent_loaded): Declare.
17958 (tracepoint_look_up_symbols): Declare.
17959 (struct fast_tpoint_collect_status): Declare.
17960 (fast_tracepoint_collecting): Declare.
17961 (force_unlock_trace_buffer): Declare.
17962 (handle_tracepoint_bkpts): Declare.
17963 (initialize_low_tracepoint)
17964 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17965 * target.h (struct target_ops) <stabilize_threads,
17966 install_fast_tracepoint_jump_pad>: New fields.
17967 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17968 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17969 [HAVE_STDINT_H]: Include stdint.h.
17970 (trace_debug_1): Rename to ...
17971 (trace_vdebug): ... this.
17972 (trace_debug): Rename to ...
17973 (trace_debug_1): ... this. Add `level' parameter.
17974 (trace_debug): New.
17975 (ATTR_USED, ATTR_NOINLINE): New.
17976 (IP_AGENT_EXPORT): New.
17977 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17978 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17979 (about_to_request_buffer_space, trace_buffer_is_full)
17980 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17981 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17982 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17983 (traceframe_write_count, traceframes_created)
17984 (trace_state_variables)
17985 New renaming defines.
17986 (struct ipa_sym_addresses): New.
17987 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17988 (symbol_list): New.
17989 (ipa_sym_addrs): New.
17990 (all_tracepoint_symbols_looked_up): New.
17991 (in_process_agent_loaded): New.
17992 (write_e_ipa_not_loaded): New.
17993 (maybe_write_ipa_not_loaded): New.
17994 (tracepoint_look_up_symbols): New.
17995 (debug_threads) [IN_PROCESS_AGENT]: New.
17996 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17997 (UNKNOWN_SIDE_EFFECTS): New.
17998 (stop_tracing): New.
17999 (flush_trace_buffer): New.
18000 (stop_tracing_bkpt): New.
18001 (flush_trace_buffer_bkpt): New.
18002 (read_inferior_integer): New.
18003 (read_inferior_uinteger): New.
18004 (read_inferior_data_pointer): New.
18005 (write_inferior_data_pointer): New.
18006 (write_inferior_integer): New.
18007 (write_inferior_uinteger): New.
18008 (struct collect_static_trace_data_action): Delete.
18009 (enum tracepoint_type): New.
18010 (struct tracepoint) <type>: New field `type'.
18011 <actions_str, step_actions, step_actions_str>: Only include in
18013 <orig_size, obj_addr_on_target, adjusted_insn_addr>
18014 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
18015 (tracepoints): Use IP_AGENT_EXPORT.
18016 (last_tracepoint): Don't include in the IPA.
18017 (stopping_tracepoint): Use IP_AGENT_EXPORT.
18018 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
18019 (alloced_trace_state_variables): New.
18020 (trace_state_variables): Use IP_AGENT_EXPORT.
18021 (traceframe_t): Delete unused variable.
18022 (circular_trace_buffer): Don't include in the IPA.
18023 (trace_buffer_start): Delete.
18024 (struct trace_buffer_control): New.
18025 (trace_buffer_free): Delete.
18026 (struct ipa_trace_buffer_control): New.
18027 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
18028 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
18030 (trace_buffer_ctrl): New.
18031 (TRACE_BUFFER_CTRL_CURR): New.
18032 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
18033 Reimplement as macros.
18034 (trace_buffer_wrap): Delete.
18035 (traceframe_write_count, traceframe_read_count)
18036 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
18037 (struct tracepoint_hit_ctx) <type>: New field.
18038 (struct fast_tracepoint_ctx): New.
18039 (memory_barrier): New.
18041 (record_tracepoint_error): Update atomically in the IPA.
18042 (clear_inferior_trace_buffer): New.
18043 (about_to_request_buffer_space): New.
18044 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
18045 updating the same buffer.
18046 (add_tracepoint): Default the tracepoint's type to trap
18047 tracepoint, and orig_size to -1.
18048 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
18049 internal variables.
18050 (create_trace_state_variable): New parameter `gdb'. Handle it.
18051 (clear_installed_tracepoints): Clear fast tracepoint jumps.
18052 (cmd_qtdp): Handle fast tracepoints.
18053 (cmd_qtdv): Adjust.
18054 (max_jump_pad_size): New.
18055 (gdb_jump_pad_head): New.
18056 (get_jump_space_head): New.
18057 (claim_jump_space): New.
18058 (sort_tracepoints): New.
18059 (MAX_JUMP_SIZE): New.
18060 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
18062 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
18063 support. Upload fast traceframes, and delete internal IPA
18065 (stop_tracing_handler): New.
18066 (flush_trace_buffer_handler): New.
18067 (cmd_qtstop): Upload fast tracepoints.
18068 (response_tracepoint): Handle fast tracepoints.
18069 (tracepoint_finished_step): Upload fast traceframes. Set the
18070 tracepoint hit context's tracepoint type.
18071 (handle_tracepoint_bkpts): New.
18072 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
18073 type. Add comment about fast tracepoints.
18074 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
18075 non-existing action_str field.
18076 (get_context_regcache): Handle fast tracepoints.
18077 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
18079 (fast_tracepoint_from_jump_pad_address): New.
18080 (fast_tracepoint_from_ipa_tpoint_address): New.
18081 (collecting_t): New.
18082 (force_unlock_trace_buffer): New.
18083 (fast_tracepoint_collecting): New.
18085 (gdb_collect): New.
18086 (write_inferior_data_ptr): New.
18087 (target_tp_heap): New.
18088 (target_malloc): New.
18089 (download_agent_expr): New.
18091 (download_tracepoints): New.
18092 (download_trace_state_variables): New.
18093 (upload_fast_traceframes): New.
18094 (IPA_FIRST_TRACEFRAME): New.
18095 (IPA_NEXT_TRACEFRAME_1): New.
18096 (IPA_NEXT_TRACEFRAME): New.
18097 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
18098 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
18099 (gdb_jump_pad_buffer_end): New.
18100 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
18101 (initialize_tracepoint): Adjust.
18102 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
18103 buffer. Initialize the low module.
18104 * utils.c (PREFIX, TOOLNAME): New.
18105 (malloc_failure): Use PREFIX.
18106 (error): In the IPA, an error causes an exit.
18107 (fatal, warning): Use PREFIX.
18108 (internal_error): Use TOOLNAME.
18109 (NUMCELLS): Increase to 10.
18110 * configure, config.in: Regenerate.
18112 2010-06-01 Pedro Alves <pedro@codesourcery.com>
18114 * server.c (handle_query) <qSupported>: Do two passes over the
18115 qSupported string to avoid nesting strtok.
18117 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
18119 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
18121 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
18122 -Wl,--dynamic-list.
18123 * configure: Regenerate.
18124 * proc-service.list: New.
18126 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
18128 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
18131 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
18133 * gdbreplay.c (remote_open): Check error return from socket() call by
18134 its equality to -1 not by it being negative.
18135 * remote-utils.c (remote_open): Likewise.
18137 2010-05-23 Pedro Alves <pedro@codesourcery.com>
18139 * config.h: Regenerate.
18141 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18143 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
18144 doesn't provide PTRACE_GET_THREAD_AREA.
18146 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18148 * linux-m68k-low.c: Include <asm/ptrace.h>
18149 (ps_get_thread_area): Implement.
18151 2010-05-03 Doug Evans <dje@google.com>
18153 * event-loop.c (struct callback_event): New struct.
18154 (callback_list): New global.
18155 (append_callback_event, delete_callback_event): New functions.
18156 (process_callback): New function.
18157 (start_event_loop): Call it.
18158 * remote-utils.c (NOT_SCHEDULED): Define.
18159 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
18160 moved out of readchar.
18161 (readchar): Rewrite. Call reschedule before returning.
18162 (reset_readchar): New function.
18163 (remote_close): Call it.
18164 (process_remaining, reschedule): New functions.
18165 * server.h (callback_handler_func): New typedef.
18166 (append_callback_event, delete_callback_event): Declare.
18168 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18170 * proc-service.c (ps_pglobal_lookup): Use
18171 thread_db_look_up_one_symbol.
18172 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
18173 parameter. Use it instead of all_symbols_looked_up.
18174 * server.h (struct process_info) <all_symbols_looked_up>: Delete
18176 (all_symbols_looked_up): Don't declare.
18177 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
18178 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
18180 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
18181 Set all_symbols_looked_up here.
18182 (thread_db_look_up_one_symbol): New.
18183 (thread_db_get_tls_address): Adjust.
18184 (thread_db_load_search, try_thread_db_load_1): Always allocate the
18185 thread_db object on the heap, and tentatively set it in the
18187 (thread_db_init): Don't set all_symbols_looked_up here.
18188 * linux-low.h (thread_db_look_up_one_symbol): Declare.
18190 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18192 * linux-low.c (linux_kill, linux_detach): Adjust.
18193 (status_pending_p_callback): Remove redundant statement. Check
18194 for !TARGET_WAITIKIND_IGNORE, instead of
18195 TARGET_WAITKIND_STOPPED.
18196 (handle_tracepoints): Make sure LWP is locked. Adjust.
18197 (linux_wait_for_event_1): Adjust.
18198 (linux_cancel_breakpoints): New.
18199 (unsuspend_one_lwp): New.
18200 (unsuspend_all_lwps): New.
18201 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
18202 (send_sigstop_callback): Change return type to int, add new
18203 `except' parameter and handle it.
18204 (suspend_and_send_sigstop_callback): New.
18205 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
18206 pass them down. If SUSPEND, also increment the lwp's suspend
18208 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
18209 (need_step_over_p): Don't consider suspended LWPs.
18210 (start_step_over): Adjust.
18211 (proceed_one_lwp): Change return type to int, add new `except'
18212 parameter and handle it.
18213 (unsuspend_and_proceed_one_lwp): New.
18214 (proceed_all_lwps): Use find_inferior instead of
18216 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
18217 also decrement the suspend count of LWPs. Pass `except' down,
18218 instead of hacking its suspend count.
18219 (linux_pause_all): Add `freeze' parameter. Adjust.
18220 (linux_unpause_all): New.
18221 (linux_target_ops): Install linux_unpause_all.
18222 * server.c (handle_status): Adjust.
18223 * target.h (struct target_ops): New fields `unpause_all' and
18224 `cancel_breakpoints'. Add new parameter to `pause_all'.
18225 (pause_all): Add new `freeze' parameter.
18226 (unpause_all): New.
18227 (cancel_breakpoints): New.
18228 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
18229 cancel breakpoints.
18230 (cmd_qtstart): Pause threads.
18231 (stop_tracing): Pause threads, and cancel breakpoints.
18232 * win32-low.c (win32_target_ops): Adjust.
18234 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18236 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
18237 the inferior right away from here...
18238 (linux_wait_1): ... to here, and adjust to check the thread's
18239 last_resume_kind instead of the lwp's step or stop_expected flags.
18241 2010-05-02 Pedro Alves <pedro@codesourcery.com>
18243 * README: Use consistent `GDB' and `GDBserver' spellings.
18245 2010-05-02 Pedro Alves <pedro@codesourcery.com>
18247 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
18248 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
18249 (linux_detach_one_lwp): Assume the lwp is stopped.
18250 (any_thread_of): Delete.
18251 (linux_detach): Stop all lwps here. Don't blindly delete all
18253 (delete_lwp_callback): New.
18254 (linux_mourn): Delete all lwps of the process that is gone.
18255 (linux_wait_1): Don't delete the last lwp of the process here.
18256 * mem-break.h (mark_breakpoints_out): Declare.
18257 * mem-break.c (mark_breakpoints_out): New.
18258 (free_all_breakpoints): Use it.
18259 * server.c (handle_target_event): If the process is gone, mark
18261 * thread-db.c (struct thread_db) <create_bp>: New field.
18262 (thread_db_enable_reporting): Fix prototype. Store a thread event
18263 breakpoint reference in the thread_db struct.
18264 (thread_db_load_search): Clear the thread_db object.
18265 (try_thread_db_load_1): Ditto.
18266 (switch_to_process): New.
18267 (disable_thread_event_reporting): Use it.
18268 (remove_thread_event_breakpoints): New.
18269 (thread_db_detach, thread_db_mourn): Use it.
18271 2010-05-01 Pedro Alves <pedro@codesourcery.com>
18273 * linux-low.c (linux_enable_event_reporting): New.
18274 (linux_wait_for_event_1, handle_extended_wait): Use it.
18276 2010-04-30 Pedro Alves <pedro@codesourcery.com>
18278 * linux-low.c (linux_kill_one_lwp, linux_kill)
18279 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
18280 (send_sigstop): Take an lwp_info as parameter instead. Queue a
18281 SIGSTOP even if the LWP is stopped.
18282 (send_sigstop_callback): New.
18283 (stop_all_lwps): Use send_sigstop_callback instead.
18284 (linux_resume_one_thread): Adjust.
18285 (proceed_one_lwp): Still proceed an LWP that the client has
18286 requested to stop, if we haven't reported it as stopped yet. Make
18287 sure that LWPs the client want stopped, have a pending SIGSTOP.
18289 2010-04-26 Doug Evans <dje@google.com>
18291 * server.c (handle_general_set): Make static.
18293 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
18294 Print received char after testing for error/eof instead of before.
18295 (input_interrupt): Tweak comment.
18297 2010-04-23 Doug Evans <dje@google.com>
18299 * server.c (start_inferior): Print inferior argv if --debug.
18301 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
18303 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
18304 * nto-x86-low.c: Include server.h
18306 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
18308 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
18309 be consistent with other sources of this directory.
18310 (init_registers_amd64): Correct name of source file of this function
18313 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18315 * configure.srv (x86_64-*-mingw*): New configuration for Windows
18316 64-bit executables.
18318 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18320 * win32-i386-low.c: Add 64-bit support.
18321 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
18322 (init_registers_amd64): Declare.
18323 (mappings): Add 64-bit version of array.
18324 (init_windows_x86): New function.
18325 (the_low_target): Change init_arch field to init_windows_x86.
18327 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18329 * win32-low.c: Adapt to support also 64-bit architecture.
18330 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
18331 (get_image_name): Use SIZE_T type for local variable `done'.
18332 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
18333 (toolhelp_get_dll_name): Idem.
18334 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
18335 Use uintptr_t typecast to avoid warning.
18336 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
18337 (handle_exception): Use phex_nz to avoid warning.
18338 (win32_wait): Remove unused local variable `process'.
18340 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18342 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
18345 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
18347 * configure.ac: Use `ws2_32' library for srv_mingw.
18348 * configure: Regenerate.
18349 * gdbreplay.c: Include winsock2.h instead of winsock.h.
18350 * remote-utils.c: Likewise.
18352 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
18354 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
18355 if __x86_64__ is defined.
18357 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18359 * configure: Regenerate.
18361 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18363 * server.c (handle_query): Handle 'qGetTIBAddr' query.
18364 * target.h (target_ops): New get_tib_address field.
18365 * win32-low.h (win32_thread_info): Add thread_local_base field.
18366 * win32-low.c (child_add_thread): Add tlb argument.
18367 Set thread_local_base field to TLB.
18368 (get_child_debug_event): Adapt to child_add_thread change.
18369 (win32_get_tib_address): New function.
18370 (win32_target_ops): Set get_tib_address field to
18371 win32_get_tib_address.
18372 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
18374 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18376 * linux-low.c (linux_mourn): Also remove the process.
18377 * server.c (handle_target_event): Don't remove the process here.
18378 * nto-low.c (nto_mourn): New.
18379 (nto_target_ops): Install it.
18380 * spu-low.c (spu_mourn): New.
18381 (spu_target_ops): Install it.
18382 * win32-low.c (win32_mourn): New.
18383 (win32_target_ops): Install it.
18385 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18387 * server.h (buffer_xml_printf): Remove redundant `;'.
18389 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18391 * regcache.c (set_register_cache): Invalidate regcaches before
18392 changing the register cache layout.
18393 (regcache_invalidate_one): Allow a NULL regcache.
18394 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
18395 regcaches before changing the register cache layout or the target
18398 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
18400 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
18401 variable warning on Linux/x86-64.
18403 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18405 GDBserver disconnected tracing support.
18407 * linux-low.c (linux_remove_process): Delete.
18408 (add_lwp): Don't set last_resume_kind here.
18409 (linux_kill): Use `mourn'.
18410 (linux_detach): Use `thread_db_detach', and `mourn'.
18411 (linux_mourn): New.
18412 (linux_attach_lwp_1): Adjust comment.
18413 (linux_attach): last_resume_kind moved the thread_info; adjust.
18414 (status_pending_p_callback): Adjust.
18415 (linux_wait_for_event_1): Adjust.
18416 (count_events_callback, select_singlestep_lwp_callback)
18417 (select_event_lwp_callback, cancel_breakpoints_callback)
18418 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
18419 (proceed_one_lwp): Adjust.
18420 (linux_async): Add debug output.
18421 (linux_thread_stopped): New.
18422 (linux_pause_all): New.
18423 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
18425 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
18426 (thread_db_free): Delete declaration.
18427 (thread_db_detach, thread_db_mourn): Declare.
18428 * thread-db.c (thread_db_init): Use thread_db_mourn.
18429 (thread_db_free): Delete, split in two.
18430 (disable_thread_event_reporting): New.
18431 (thread_db_detach): New.
18432 (thread_db_mourn): New.
18434 * server.h (struct thread_info) <last_resume_kind>: New field.
18435 <attached>: Add comment.
18436 <gdb_detached>: New field.
18437 (handler_func): Change return type to int.
18438 (handle_serial_event, handle_target_event): Ditto.
18439 (gdb_connected): Declare.
18441 (disconnected_tracing): Declare.
18442 (stop_tracing): Declare.
18444 * server.c (handle_query) <qSupported>: Report support for
18445 disconnected tracing.
18446 (queue_stop_reply_callback): Account for running threads.
18447 (gdb_wants_thread_stopped): New.
18448 (gdb_wants_all_threads_stopped): New.
18449 (gdb_reattached_process): New.
18450 (handle_status): Clear the `gdb_detached' flag of all processes.
18451 In all-stop, stop all threads.
18452 (main): Be sure to leave tfind mode. Handle disconnected tracing.
18453 (process_serial_event): If the remote connection breaks, or if an
18454 exit was forced with "monitor exit", force an event loop exit.
18455 Handle disconnected tracing on detach.
18456 (handle_serial_event): Adjust.
18457 (handle_target_event): If GDB isn't connected, forward events back
18458 to the inferior, unless the last process exited, in which case,
18459 exit gdbserver. Adjust interface.
18461 * remote-utils.c (remote_open): Don't block in accept. Instead
18462 register an event loop source on the listen socket file
18463 descriptor. Refactor bits into ...
18464 (listen_desc): ... this new global.
18465 (gdb_connected): ... this new function.
18466 (enable_async_notification): ... this new function.
18467 (handle_accept_event): ... this new function.
18468 (remote_close): Clear remote_desc.
18470 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
18472 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
18474 (mourn_inferior): Define.
18475 (target_process_qsupported): Avoid the dangling else problem.
18476 (thread_stopped): Define.
18477 (pause_all): Define.
18478 (target_waitstatus_to_string): Declare.
18479 * target.c (target_waitstatus_to_string): New.
18481 * tracepoint.c (tracing): Make extern.
18482 (disconnected_tracing): New.
18483 (stop_tracing): Make extern. Handle tracing stops due to GDB
18485 (cmd_qtdisconnected): New.
18486 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18487 (handle_tracepoint_general_set): Handle QTDisconnected.
18489 * event-loop.c (event_handler_func): Change return type to int.
18490 (process_event): Bail out if the event handler wants the event
18492 (handle_file_event): Ditto.
18493 (start_event_loop): Bail out if the event handler wants the event
18496 * nto-low.c (nto_target_ops): Adjust.
18497 * spu-low.c (spu_wait): Don't remove the process here.
18498 (spu_target_ops): Adjust.
18499 * win32-low.c (win32_wait): Don't remove the process here.
18500 (win32_target_ops): Adjust.
18502 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18504 * regcache.c (realloc_register_cache): Invalidate inferior's
18505 regcache before recreating it.
18507 2010-04-09 Pedro Alves <pedro@codesourcery.com>
18509 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18511 2010-04-09 Stan Shebs <stan@codesourcery.com>
18512 Pedro Alves <pedro@codesourcery.com>
18514 * server.h (LONGEST): New.
18515 (struct thread_info) <while_stepping>: New field.
18516 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18518 (initialize_tracepoint, handle_tracepoint_general_set)
18519 (handle_tracepoint_query, tracepoint_finished_step)
18520 (tracepoint_was_hit, release_while_stepping_state_list):
18521 (current_traceframe): Declare.
18522 * server.c (handle_general_set): Handle tracepoint packets.
18523 (read_memory): New.
18524 (write_memory): New.
18525 (handle_search_memory_1): Use read_memory.
18526 (handle_query): Report support for conditional tracepoints, trace
18527 state variables, and tracepoint sources. Handle tracepoint
18529 (main): Initialize the tracepoints module.
18530 (process_serial_event): Handle traceframe reads/writes.
18532 * linux-low.c (handle_tracepoints): New.
18533 (linux_wait_1): Call it.
18534 (linux_resume_one_lwp): Handle while-stepping.
18535 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18536 (linux_target_ops): Install them.
18537 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18539 * linux-x86-low.c (x86_supports_tracepoints): New.
18540 (the_low_target). Install it.
18542 * mem-break.h (delete_breakpoint): Declare.
18543 * mem-break.c (delete_breakpoint): Make external.
18545 * target.h (struct target_ops): Add `supports_tracepoints',
18546 `read_pc', and `write_pc' fields.
18547 (target_supports_tracepoints): Define.
18548 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18551 * regcache.h (struct regcache) <registers_owned>: New field.
18552 (init_register_cache, regcache_cpy): Declare.
18553 (regcache_read_pc, regcache_write_pc): Declare.
18554 (register_cache_size): Declare.
18555 (supply_regblock): Declare.
18556 * regcache.c (init_register_cache): New.
18557 (new_register_cache): Use it.
18558 (regcache_cpy): New.
18559 (register_cache_size): New.
18560 (supply_regblock): New.
18561 (regcache_read_pc, regcache_write_pc): New.
18563 * tracepoint.c: New.
18565 * Makefile.in (OBS): Add tracepoint.o.
18566 (tracepoint.o): New rule.
18568 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18570 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18572 (i386-mmx.c): Likewise.
18573 (i386-mmx-linux.o): Likewise.
18574 (i386-mmx-linux.c): Likewise.
18576 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18577 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18578 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18579 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18581 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18582 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18583 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18585 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18587 * Makefile.in (clean): Updated.
18589 (i386-avx.c): Likewise.
18590 (i386-avx-linux.o): Likewise.
18591 (i386-avx-linux.c): Likewise.
18592 (amd64-avx.o): Likewise.
18593 (amd64-avx.c): Likewise.
18594 (amd64-avx-linux.o): Likewise.
18595 (amd64-avx-linux.c): Likewise.
18597 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18598 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18599 (srv_amd64_regobj): Add amd64-avx.o.
18600 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18601 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18602 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18603 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18604 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18605 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18606 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18608 * i387-fp.c: Include "i386-xstate.h".
18610 (i387_cache_to_xsave): Likewise.
18611 (i387_xsave_to_cache): Likewise.
18612 (x86_xcr0): Likewise.
18614 * i387-fp.h (i387_cache_to_xsave): Likewise.
18615 (i387_xsave_to_cache): Likewise.
18616 (x86_xcr0): Likewise.
18618 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18619 * linux-crisv32-low.c (target_regsets): Likewise.
18620 * linux-m68k-low.c (target_regsets): Likewise.
18621 * linux-mips-low.c (target_regsets): Likewise.
18622 * linux-ppc-low.c (target_regsets): Likewise.
18623 * linux-s390-low.c (target_regsets): Likewise.
18624 * linux-sh-low.c (target_regsets): Likewise.
18625 * linux-sparc-low.c (target_regsets): Likewise.
18626 * linux-xtensa-low.c (target_regsets): Likewise.
18628 * linux-low.c: Include <sys/uio.h>.
18629 (regsets_fetch_inferior_registers): Support nt_type.
18630 (regsets_store_inferior_registers): Likewise.
18631 (linux_process_qsupported): New.
18632 (linux_target_ops): Add linux_process_qsupported.
18634 * linux-low.h (regset_info): Add nt_type.
18635 (linux_target_ops): Add process_qsupported.
18637 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18639 (init_registers_i386_avx_linux): New.
18640 (init_registers_amd64_avx_linux): Likewise.
18641 (xmltarget_i386_linux_no_xml): Likewise.
18642 (xmltarget_amd64_linux_no_xml): Likewise.
18643 (PTRACE_GETREGSET): Likewise.
18644 (PTRACE_SETREGSET): Likewise.
18645 (x86_fill_xstateregset): Likewise.
18646 (x86_store_xstateregset): Likewise.
18647 (use_xml): Likewise.
18648 (x86_linux_update_xmltarget): Likewise.
18649 (x86_linux_process_qsupported): Likewise.
18650 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18651 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18652 init_registers_i386_linux here. Call
18653 x86_linux_update_xmltarget.
18654 (the_low_target): Add x86_linux_process_qsupported.
18656 * server.c (handle_query): Call target_process_qsupported.
18658 * target.h (target_ops): Add process_qsupported.
18659 (target_process_qsupported): New.
18661 2010-04-03 Pedro Alves <pedro@codesourcery.com>
18663 * inferiors.c (add_thread): Set last_status kind to
18664 TARGET_WAITKIND_IGNORE.
18665 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18666 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18667 (linux_wait_1): Move `thread' local definition to block that uses
18668 it. Don't NULL initialize `event_child'.
18669 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18670 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18671 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18673 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18675 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18676 an extended waitstatus, or by a watchpoint.
18677 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18678 thread was stepping or has been stopped by a watchpoint.
18680 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18682 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18683 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18684 of another, then delete the previous, and validate all
18686 (validate_inserted_breakpoint): New.
18687 (delete_disabled_breakpoints): New.
18688 (validate_breakpoints): New.
18689 (check_mem_read): Validate breakpoints before trusting their
18690 shadow. Delete disabled breakpoints.
18691 (check_mem_write): Validate breakpoints before trusting they
18692 should be inserted. Delete disabled breakpoints.
18693 * mem-break.h (validate_breakpoints):
18694 * server.c (handle_query): Validate breakpoints when we see a
18697 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18699 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18700 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18701 if we could tell there's a GDB breakpoint at stop_pc.
18702 (need_step_over_p): Don't do a step over if we find a GDB
18703 breakpoint at the resume PC.
18705 * mem-break.c (struct raw_breakpoint): New.
18706 (enum bkpt_type): New type `gdb_breakpoint'.
18707 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18708 fields. New field `raw'.
18709 (find_raw_breakpoint_at): New.
18710 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18711 breakpoint instead.
18712 (set_breakpoint_at): Adjust.
18713 (delete_raw_breakpoint): New.
18714 (release_breakpoint): New.
18715 (delete_breakpoint): Rename to...
18716 (delete_breakpoint_1): ... this. Add proc parameter. Use
18717 release_breakpoint. Return ENOENT.
18718 (delete_breakpoint): Reimplement.
18719 (find_breakpoint_at): Delete.
18720 (find_gdb_breakpoint_at): New.
18721 (delete_breakpoint_at): Delete.
18722 (set_gdb_breakpoint_at): New.
18723 (delete_gdb_breakpoint_at): New.
18724 (gdb_breakpoint_here): New.
18725 (set_reinsert_breakpoint): Use release_breakpoint.
18726 (uninsert_breakpoint): Rename to ...
18727 (uninsert_raw_breakpoint): ... this.
18728 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18729 (reinsert_raw_breakpoint): Change parameter type to
18731 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18733 (check_breakpoints): Adjust. Use release_breakpoint.
18734 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18735 (breakpoint_inserted_here): Ditto.
18736 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18737 Don't trust the breakpoint's shadow if it is not inserted.
18738 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18739 (delete_all_breakpoints): Adjust.
18740 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18741 use delete_breakpoint_1.
18743 * mem-break.h (breakpoints_supported): Delete declaration.
18744 (set_gdb_breakpoint_at): Declare.
18745 (gdb_breakpoint_here): Declare.
18746 (delete_breakpoint_at): Delete.
18747 (delete_gdb_breakpoint_at): Declare.
18749 * server.h (struct raw_breakpoint): Forward declare.
18750 (struct process_info): New field `raw_breakpoints'.
18752 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18755 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18757 * linux-low.c (status_pending_p_callback): Fix comment.
18758 (linux_wait_for_event_1): Move most of the internal breakpoint
18759 handling from here...
18760 (linux_wait_1): ... to here.
18761 (count_events_callback): New.
18762 (select_singlestep_lwp_callback): New.
18763 (select_event_lwp_callback): New.
18764 (cancel_breakpoints_callback): New.
18765 (select_event_lwp): New.
18766 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18767 priority to all LWPs that have had events that should be reported
18768 to the client. Cancel breakpoints when about to reporting the
18769 event to the client, not while stopping lwps. No longer cancel
18770 finished single-steps here.
18771 (cancel_finished_single_step): Delete.
18772 (cancel_finished_single_steps): Delete.
18774 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18776 * mem-break.c (enum bkpt_type): New.
18777 (struct breakpoint): New field `type'.
18778 (set_breakpoint_at): Change return type to struct breakpoint
18779 pointer. Set type to `other_breakpoint' by default.
18780 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18781 in the breakpoint list.
18782 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18783 (reinsert_breakpoint): Rename to ...
18784 (reinsert_raw_breakpoint): ... this.
18785 (reinsert_breakpoints_at): Adjust.
18786 * mem-break.h (struct breakpoint): Declare.
18787 (set_breakpoint_at): Change return type to struct breakpoint
18790 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18792 * server.c (handle_query): Assign, not compare.
18794 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18796 Teach linux gdbserver to step-over-breakpoints.
18798 * linux-low.c (can_hardware_single_step): New.
18799 (supports_breakpoints): New.
18800 (handle_extended_wait): If stopping threads, read the stop pc of
18801 the new cloned LWP.
18803 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18804 low target doesn't support retrieving the PC.
18805 (add_lwp): Set last_resume_kind to resume_continue.
18806 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18807 (linux_attach): Don't clear stop_expected. Set the lwp's
18808 last_resume_kind to resume_stop.
18809 (linux_detach_one_lwp): Don't check for removed breakpoints.
18810 (check_removed_breakpoint): Delete.
18811 (status_pending_p): Rename to ...
18812 (status_pending_p_callback): ... this. Don't check for removed
18813 breakpoints. Don't consider threads that are stopped from GDB's
18815 (linux_wait_for_lwp): Always read the stop_pc here.
18816 (cancel_breakpoint): New.
18817 (step_over_bkpt): New global.
18818 (linux_wait_for_event_1): Implement stepping over breakpoints.
18819 (gdb_wants_lwp_stopped): New.
18820 (gdb_wants_all_stopped): New.
18821 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18822 single-step traps here. Store the thread's last reported target
18824 (send_sigstop): Don't clear stop_expected. Always set it,
18826 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18827 (cancel_finished_single_step): New.
18828 (cancel_finished_single_steps): New.
18829 (wait_for_sigstop): Don't cancel finished single-step traps here.
18830 (linux_resume_one_lwp): Don't check for removed breakpoints.
18831 Don't set `step' on non-hardware step archs.
18832 (linux_set_resume_request): Ignore resume_stop requests if already
18833 stopping or stopped. Set the lwp's last_resume_kind.
18834 (resume_status_pending_p): Don't check for removed breakpoints.
18835 (need_step_over_p): New.
18836 (start_step_over): New.
18837 (finish_step_over): New.
18838 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18839 requests. Clear the thread's last reported target waitstatus.
18840 Don't use the `suspended' flag. Don't consider pending breakpoints.
18841 (linux_resume): Start a step-over if necessary.
18842 (proceed_one_lwp): New.
18843 (proceed_all_lwps): New.
18844 (unstop_all_lwps): New.
18845 * linux-low.h (struct lwp_info): Rewrite comment for the
18846 `suspended' flag. Add the `stop_pc' field. Delete the
18847 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18848 Add `'last_resume_kind' and `need_step_over' fields.
18849 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18850 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18851 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18852 (set_raw_breakpoint_at): New.
18853 (set_breakpoint_at): Rewrite to use it.
18854 (reinsert_breakpoint_handler): Delete.
18855 (set_reinsert_breakpoint): New.
18856 (reinsert_breakpoint_by_bp): Delete.
18857 (delete_reinsert_breakpoints): New.
18858 (uninsert_breakpoint): Rewrite.
18859 (uninsert_breakpoints_at): New.
18860 (reinsert_breakpoint): Rewrite.
18861 (reinsert_breakpoints_at): New.
18862 (check_breakpoints): Rewrite.
18863 (breakpoint_here): New.
18864 (breakpoint_inserted_here): New.
18865 (check_mem_read): Adjust.
18866 * mem-break.h (breakpoints_supported, breakpoint_here)
18867 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18868 (reinsert_breakpoint_by_bp): Delete declaration.
18869 (delete_reinsert_breakpoints): Declare.
18870 (reinsert_breakpoint): Delete declaration.
18871 (reinsert_breakpoints_at): Declare.
18872 (uninsert_breakpoint): Delete declaration.
18873 (uninsert_breakpoints_at): Declare.
18874 (check_breakpoints): Adjust prototype.
18875 * server.h: Adjust include order.
18876 (struct thread_info): Declare here. Add a `last_status' field.
18878 2010-03-23 Michael Snyder <msnyder@vmware.com>
18880 * server.c (crc32): New function.
18881 (handle_query): Add handling for 'qCRC:' request.
18883 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18885 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18886 lwp had been stopped by a watchpoint.
18888 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18890 * server.h (internal_error): Declare.
18891 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18892 * utils.c (internal_error): New function.
18894 2010-03-15 Andreas Schwab <schwab@redhat.com>
18896 * configure.srv: Fix typo setting srv_regobj.
18898 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18900 * linux-low.c (fetch_register): Avoid passing a non string literal
18902 (usr_store_inferior_registers): Ditto.
18904 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18906 * linux-low.c (linux_write_memory): Bail out early if peeking
18909 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18911 * linux-low.h (struct lwp_info): New fields
18912 `stopped_by_watchpoint' and `stopped_data_address'.
18913 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18914 here, and cache them in the lwp object.
18915 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18917 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18919 (linux_stopped_by_watchpoint): Rewrite.
18920 (linux_stopped_data_address): Rewrite.
18922 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18924 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18925 switching the current inferior, not before.
18927 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18929 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18930 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18931 i386-linux.c and amd64-linux.c.
18932 (reg-i386.o): Removed.
18933 (reg-i386.c): Likewise.
18934 (reg-i386-linux.o): Likewise.
18935 (reg-i386-linux.c): Likewise.
18936 (reg-x86-64.o): Likewise.
18937 (reg-x86-64.c): Likewise.
18938 (reg-x86-64-linux.o): Likewise.
18939 (reg-x86-64-linux.c): Likewise.
18941 (i386.c): Likewise.
18942 (i386-linux.o): Likewise.
18943 (i386-linux.c): Likewise.
18944 (amd64.o): Likewise.
18945 (amd64.c): Likewise.
18946 (amd64-linux.o): Likewise.
18947 (amd64-linux.c): Likewise.
18949 * configure.srv (srv_i386_regobj): New.
18950 (srv_i386_linux_regobj): Likewise.
18951 (srv_amd64_regobj): Likewise.
18952 (srv_amd64_linux_regobj): Likewise.
18953 (srv_i386_32bit_xmlfiles): Likewise.
18954 (srv_i386_64bit_xmlfiles): Likewise.
18955 (srv_i386_xmlfiles): Likewise.
18956 (srv_amd64_xmlfiles): Likewise.
18957 (srv_i386_linux_xmlfiles): Likewise.
18958 (srv_amd64_linux_xmlfiles): Likewise.
18959 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18960 srv_xmlfiles to $srv_i386_xmlfiles.
18961 (i[34567]86-*-mingw32ce*): Likewise.
18962 (i[34567]86-*-mingw*): Likewise.
18963 (i[34567]86-*-nto*): Likewise.
18964 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18965 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18966 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18967 (x86_64-*-linux*): Likewise.
18969 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18970 (init_registers_amd64_linux): New.
18971 (x86_arch_setup): Replace init_registers_x86_64_linux with
18972 init_registers_amd64_linux.
18974 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18976 * configure.ac: Check for libdl. If it is not available link against
18977 static libthread_db.
18978 * configure: Regenerate.
18980 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18984 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18985 handing a read watchpoint.
18986 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18988 2010-02-12 Doug Evans <dje@google.com>
18990 * linux-low.c (linux_supports_tracefork_flag): Document.
18991 (linux_look_up_symbols): Add comment.
18993 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18995 * regcache.c (supply_register): Clear regcache if buf is NULL.
18997 2010-02-02 Nicolas Roche <roche@sourceware.org>
18998 Joel Brobecker <brobecker@adacore.com>
19000 * inferiors.c (find_inferior): Add function documentation.
19001 (unloaded_dll): Handle the case where the unloaded dll has not
19002 been previously registered in the dll list.
19004 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
19006 * linux-arm-low.c (thumb_breakpoint_len): Delete.
19007 (thumb2_breakpoint): New.
19008 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
19010 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19012 * linux-low.c (get_stop_pc): Check for SIGTRAP.
19013 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
19016 2010-01-21 Pedro Alves <pedro@codesourcery.com>
19018 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
19020 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
19022 * linux-s390-low.c (s390_collect_ptrace_register)
19023 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
19025 2010-01-21 Doug Evans <dje@google.com>
19027 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
19028 (PTRACE_ARG4_TYPE): New macro.
19029 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
19030 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
19031 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
19032 (usr_store_inferior_registers): Ditto.
19033 (linux_read_memory, linux_write_memory): Ditto.
19034 (linux_test_for_tracefork): Ditto.
19036 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
19037 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
19039 2010-01-21 Pedro Alves <pedro@codesourcery.com>
19041 * proc-service.c (ps_lgetregs): Don't refetch registers from the
19044 2010-01-21 Pedro Alves <pedro@codesourcery.com>
19046 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
19047 prototype to take a regcache. Adjust.
19049 2010-01-20 Pedro Alves <pedro@codesourcery.com>
19051 * regcache.h (struct thread_info): Forward declare.
19052 (struct regcache): New.
19053 (new_register_cache): Adjust prototype.
19054 (get_thread_regcache): Declare.
19055 (free_register_cache): Adjust prototype.
19056 (registers_to_string, registers_from_string): Ditto.
19057 (supply_register, supply_register_by_name, collect_register)
19058 (collect_register_as_string, collect_register_by_name): Ditto.
19059 * regcache.c (struct inferior_regcache_data): Delete.
19060 (get_regcache): Rename to ...
19061 (get_thread_regcache): ... this. Adjust. Switch inferior before
19062 fetching registers.
19063 (regcache_invalidate_one): Adjust.
19064 (regcache_invalidate): Fix prototype.
19065 (new_register_cache): Return the new register cache.
19066 (free_register_cache): Change prototype.
19067 (realloc_register_cache): Adjust.
19068 (registers_to_string): Change prototype to take a regcache. Adjust.
19069 (registers_from_string): Ditto.
19070 (register_data): Ditto.
19071 (supply_register): Ditto.
19072 (supply_register_by_name): Ditto.
19073 (collect_register): Ditto.
19074 (collect_register_as_string): Ditto.
19075 (collect_register_by_name): Ditto.
19076 * server.c (process_serial_event): Adjust.
19077 * linux-low.h (regset_fill_func, regset_store_func): Change
19079 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
19081 * linux-low.c (get_stop_pc): Adjust.
19082 (check_removed_breakpoint): Adjust.
19083 (linux_wait_for_event): Adjust.
19084 (linux_resume_one_lwp): Adjust.
19085 (fetch_register): Add regcache parameter. Adjust.
19086 (usr_store_inferior_registers): Ditto.
19087 (regsets_fetch_inferior_registers): Ditto.
19088 (regsets_store_inferior_registers): Ditto.
19089 (linux_fetch_registers, linux_store_registers): Ditto.
19090 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
19092 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
19094 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
19095 prototype to take a regcache.
19096 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
19097 * remote-utils.c (convert_ascii_to_int, outreg)
19098 (prepare_resume_reply): Change prototype to take a regcache.
19100 * target.h (struct target_ops) <fetch_registers, store_registers>:
19101 Change prototype to take a regcache.
19102 (fetch_inferior_registers, store_inferior_registers): Change
19103 prototype to take a regcache. Adjust.
19104 * proc-service.c (ps_lgetregs): Adjust.
19105 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
19106 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
19107 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
19108 take a regcache. Adjust.
19109 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
19110 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
19111 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
19112 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
19113 * linux-cris-low.c (cris_get_pc, cris_set_pc)
19114 (cris_cannot_fetch_register):
19115 (cris_breakpoint_at): Change prototype to take a regcache.
19117 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
19118 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
19119 to take a regcache. Adjust.
19120 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
19122 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
19123 take a regcache. Adjust.
19124 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
19125 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
19126 (m68k_set_pc): Change prototype to take a regcache. Adjust.
19127 * linux-mips-low.c (mips_get_pc):
19128 (mips_set_pc): Change prototype to take a regcache. Adjust.
19129 (mips_reinsert_addr): Adjust.
19130 (mips_collect_register): Change prototype to take a regcache.
19132 (mips_supply_register):
19133 (mips_collect_register_32bit, mips_supply_register_32bit)
19134 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
19135 (mips_store_fpregset): Ditto.
19136 * linux-ppc-low.c (ppc_supply_ptrace_register)
19137 (ppc_supply_ptrace_register): Ditto.
19138 (parse_spufs_run): Adjust.
19139 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
19140 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
19141 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
19142 take a regcache. Adjust.
19143 * linux-s390-low.c (s390_collect_ptrace_register)
19144 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
19145 (s390_set_pc): Change prototype to take a regcache. Adjust.
19146 (s390_arch_setup): Adjust.
19147 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
19148 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
19149 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
19150 (sparc_fill_gregset, sparc_store_gregset_from_stack)
19151 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
19153 (sparc_breakpoint_at): Adjust.
19154 * linux-xtensa-low.c (xtensa_fill_gregset):
19155 (xtensa_store_gregset):
19156 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
19157 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
19158 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
19159 prototype to take a regcache. Adjust.
19160 * win32-arm-low.c (arm_fetch_inferior_register)
19161 (arm_store_inferior_register): Change prototype to take a
19163 * win32-i386-low.c (i386_fetch_inferior_register)
19164 (i386_store_inferior_register): Change prototype to take a
19166 * win32-low.c (child_fetch_inferior_registers)
19167 (child_store_inferior_registers): Change prototype to take a
19169 (win32_wait): Adjust.
19170 (win32_fetch_inferior_registers): Change prototype to take a
19172 (win32_store_inferior_registers): Adjust.
19173 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
19174 store_inferior_register>: Change prototype to take a regcache.
19176 2010-01-20 Doug Evans <dje@google.com>
19178 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
19180 (linux_wait_for_event1, linux_init_signals): Ditto.
19181 (W_STOPCODE): Provide definition if missing.
19183 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
19185 * linux-low.c (linux_core_of_thread): New.
19186 (compare_ints, show_process, list_threads): New.
19187 (linux_qxfer_osdata): Report threads and cores.
19188 (linux_target_op): Register linux_core_of_thread.
19189 * remote-utils.c (prepare_resume_reply): Report the core.
19190 (buffer_xml_printf): Support %d specifier.
19191 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
19193 (handle_query): Handle qXfer:threads. Announce availability
19195 * target.h (struct target_ops): New field core_of_thread.
19197 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
19199 * Makefile.in (clean): Remove new generated files.
19200 (reg-s390.o, reg-s390.c): Remove rules.
19201 (reg-s390x.o, reg-s390x.c): Likewise.
19202 (s390-linux32.o, s390-linux32.c): Add rules.
19203 (s390-linux64.o, s390-linux64.c): Likewise.
19204 (s390x-linux64.o, s390x-linux64.c): Likewise.
19205 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
19206 * linux-s390-low.c: Include <elf.h>.
19207 (HWCAP_S390_HIGH_GPRS): Define if undefined.
19208 (init_registers_s390): Remove prototype.
19209 (init_registers_s390x): Likewise.
19210 (init_registers_s390_linux32): Add prototype.
19211 (init_registers_s390_linux64): Likewise.
19212 (init_registers_s390x_linux64): Likewise.
19213 (s390_num_regs_3264): New define.
19214 (s390_regmap_3264): New global variable.
19215 (s390_cannot_fetch_register): Remove obsolete check.
19216 (s390_cannot_store_register): Likewise.
19217 (s390_collect_ptrace_register): Handle upper/lower register halves.
19218 (s390_supply_ptrace_register): Likewise.
19219 (s390_fill_gregset): Update to register number changes.
19220 (s390_get_hwcap): New routine.
19221 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
19222 Install appropriate regmap and register set.
19224 2010-01-01 Joel Brobecker <brobecker@adacore.com>
19226 * server.c (gdbserver_version): Update copyright year to 2010.
19227 * gdbreplay.c (gdbreplay_version): Likewise.
19229 2009-12-28 Doug Evans <dje@google.com>
19231 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
19232 elf/external.h. Include <elf.h> instead but only if necessary.
19234 2009-12-28 Pedro Alves <pedro@codesourcery.com>
19236 * linux-low.c (linux_remove_process): Remove `detaching'
19237 parameter. Don't release/detach from thread_db here.
19238 (linux_kill): Release/detach from thread_db here, ...
19239 (linux_detach): ... and here, before actually detaching.
19240 (linux_wait_1): ... and here, when a process exits.
19241 * thread-db.c (any_thread_of): New.
19242 (thread_db_free): Switch the current inferior to a thread of the
19245 2009-12-21 Doug Evans <dje@google.com>
19247 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
19249 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
19250 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
19251 warning ifndef __NR_tkill. Move setting of errno there too.
19252 Delete unnecessary resetting of errno after syscall.
19253 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
19255 * configure.ac: Check for dladdr.
19256 * config.in: Regenerate.
19257 * configure: Regenerate.
19258 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
19259 (try_thread_db_load): Update.
19261 * linux-low.c (my_waitpid): Delete unnecessary prototype.
19263 2009-12-18 Doug Evans <dje@google.com>
19265 * event-loop.c: Include unistd.h if it exists.
19267 * linux-low.c (my_waitpid): Move definition away from being in
19268 between linux_tracefork_child/linux_test_for_tracefork.
19270 * gdb_proc_service.h (psaddr_t): Fix type.
19271 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
19272 signature to match glibc.
19274 2009-12-16 Doug Evans <dje@google.com>
19276 * linux-low.c (linux_read_memory): Fix argument to read.
19278 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19280 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
19281 events, don't leave current_inferior pointing at null.
19283 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19285 * win32-low.c (LOG): Delete.
19286 (OUTMSG): Output to stderr.
19287 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
19288 on compile time LOG macro.
19289 (win32_wait): Fix debug output.
19291 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19293 * win32-low.c (win32_add_one_solib): If the dll name is
19294 "ntdll.dll", prepend the system directory to the dll path.
19296 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
19298 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
19300 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
19301 Vladimir Prus <vladimir@codesourcery.com>
19303 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
19304 * configure.ac: Check for __mcoldfire__ and set
19305 gdb_cv_m68k_is_coldfire.
19306 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
19307 reg-cf.o and reg-m68k.o.
19308 * configure: Regenerated.
19310 2009-11-16 Pedro Alves <pedro@codesourcery.com>
19312 * linux-low.c (linux_remove_process): Add `detaching' parameter.
19313 Pass it to thread_db_free.
19314 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
19315 proper `detaching' argument to linux_remove_process.
19316 * linux-low.h (thread_db_free): Add `detaching' parameter.
19317 * thread-db.c (thread_db_init): Pass false as `detaching' argument
19319 (thread_db_free): Add `detaching' parameter. Only
19320 call td_ta_clear_event if detaching from process.
19322 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
19324 * thread-db.c (thread_db_free): Fix typo.
19326 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
19329 * thread-db.c (thread_db_free): Call td_ta_clear_event.
19331 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
19333 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
19334 with an i686 compiler.
19335 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
19337 * configure: Rebuilt.
19339 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
19343 * server.c (handle_search_memory_1): Correct read_addr initialization
19344 in loop for searching subsequent chunks.
19346 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
19348 * configure.ac: New --with-libthread-db option.
19349 * thread-db.c: Allow direct dependence on libthread_db.
19350 (thread_db_free): Adjust.
19351 * config.in: Regenerate.
19352 * configure: Likewise.
19354 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
19357 * thread-db.c (attach_thread): New function.
19358 (maybe_attach_thread): Return success/failure.
19359 (find_new_threads_callback): Adjust.
19360 (thread_db_find_new_threads): Loop until no new threads.
19362 2009-10-13 Pedro Alves <pedro@codesourcery.com>
19364 * proc-service.c (ps_lgetregs): Formatting.
19366 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
19368 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
19369 * configure.ac: Adjust.
19370 * linux-low.h (struct process_info_private): Move members to struct
19372 (thread_db_free, thread_db_handle_monitor_command): New prototype.
19373 * linux-low.c (linux_remove_process): Adjust.
19374 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
19375 * server.c (handle_query): Move code ...
19376 (handle_monitor_command): ... here. New function.
19377 * target.h (struct target_ops): New member.
19378 * thread-db.c (struct thread_db): New.
19379 (libthread_db_search_path): New variable.
19380 (thread_db_create_event, thread_db_enable_reporting)
19381 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
19382 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
19383 (try_thread_db_load_1, dladdr_to_soname): New functions.
19384 (try_thread_db_load, thread_db_load_search): New functions.
19385 (thread_db_init): Search for libthread_db.
19386 (thread_db_free): New function.
19387 (thread_db_handle_monitor_command): Likewise.
19388 * config.in: Regenerate.
19389 * configure: Regenerate.
19391 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
19393 * spu-low.c (spu_kill): Wait for inferior to terminate.
19394 Call clear_inferiors.
19395 (spu_detach): Call clear_inferiors.
19397 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19399 * aclocal.m4: Regenerate.
19400 * config.in: Likewise.
19401 * configure: Likewise.
19403 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19405 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
19406 (parse_spufs_run): New function.
19407 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
19408 (ppc_breakpoint_at): Handle SPU breakpoints.
19410 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19412 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
19413 (SPUFS_MAGIC): Define.
19414 (spu_enumerate_spu_ids): New function.
19415 (linux_qxfer_spu): New function.
19416 (linux_target_ops): Install linux_qxfer_spu.
19418 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19420 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
19421 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
19422 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
19423 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
19424 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
19425 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
19426 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
19427 (init_registers_powerpc_cell32l): Add prototype.
19428 (init_registers_powerpc_cell64l): Likewise.
19429 (ppc_arch_setup): Detect Cell/B.E. architecture.
19431 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19433 * Makefile.in (datarootdir): New variable.
19435 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19437 * linux-low.c (linux_write_memory): Update debugging output.
19438 * Makefile.in (clean): Add new descriptions.
19439 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
19440 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
19441 * configure.srv: Add new files for arm*-*-linux*.
19442 * linux-arm-low.c: Add new declarations.
19443 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
19444 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
19445 (HWCAP_VFPv3D16): New.
19446 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
19447 instead of __IWMMXT__.
19448 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
19449 (arm_arch_setup): New.
19450 (target_regsets): Remove #ifdef. Add VFP regset.
19451 (the_low_target): Use arm_arch_setup.
19453 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19455 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
19456 the main thread again.
19458 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
19460 Adding Neutrino gdbserver.
19461 * configure: Regenerated.
19462 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
19463 * configure.srv (i[34567]86-*-nto*): New target.
19464 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
19465 * remote-utils.c [__QNX__]: Include sys/iomgr.h
19466 (nto_comctrl) [__QNX__]: New function.
19467 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
19469 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
19471 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
19474 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19475 Pedro Alves <pedro@codesourcery.com>
19477 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19478 don't support CONTEXT_EXTENDED_REGISTERS.
19479 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19480 (the_low_target): Install them.
19481 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19482 failing with ERROR_PIPE_NOT_CONNECTED.
19484 2009-06-30 Doug Evans <dje@google.com>
19485 Pierre Muller <muller@ics.u-strasbg.fr>
19487 Add h/w watchpoint support to x86-linux, win32-i386.
19488 * Makefile.in (SFILES): Add i386-low.c
19489 (i386_low_h): Define.
19490 (i386-low.o): Add dependencies.
19491 (linux-x86-low.o): Add i386-low.h dependency.
19492 (win32-i386-low.o): Ditto.
19493 * i386-low.c: New file.
19494 * i386-low.h: New file.
19495 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19496 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19497 * linux-low.c (linux_add_process): Initialize arch_private.
19498 (linux_remove_process): Free arch_private.
19499 (add_lwp): Initialize arch_private.
19500 (delete_lwp): Free arch_private.
19501 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19503 * linux-low.h (process_info_private): New member arch_private.
19504 (lwp_info): New member arch_private.
19505 (linux_target_ops): New members new_process, new_thread,
19507 (ptid_of): New macro.
19508 * linux-x86-low.c: Include stddef.h, i386-low.h.
19509 (arch_process_info): New struct.
19510 (arch_lwp_info): New struct.
19511 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19512 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19513 (i386_dr_low_get_status): New function.
19514 (x86_insert_point, x86_remove_point): New functions.
19515 (x86_stopped_by_watchpoint): New function.
19516 (x86_stopped_data_address): New function.
19517 (x86_linux_new_process, x86_linux_new_thread): New functions.
19518 (x86_linux_prepare_to_resume): New function.
19519 (the_low_target): Add entries for insert_point, remove_point,
19520 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19522 * server.c (debug_hw_points): New global.
19523 (monitor_show_help): Document set debug-hw-points.
19524 (handle_query): Process "set debug-hw-points".
19525 * server.h (debug_hw_points): Declare.
19526 (paddress): Declare.
19527 * utils.c (NUMCELLS, CELLSIZE): New macros.
19528 (get_sell, xsnprintf, paddress): New functions.
19529 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19530 remove_point, stopped_by_watchpoint, stopped_data_address.
19531 * win32-i386-low.c: Include i386-low.h.
19532 (debug_reg_state): Replaces dr.
19533 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19534 (i386_dr_low_get_status): New function.
19535 (i386_insert_point, i386_remove_point): New functions.
19536 (i386_stopped_by_watchpoint): New function.
19537 (i386_stopped_data_address): New function.
19538 (i386_initial_stuff): Update.
19539 (get_thread_context,set_thread_context,i386_thread_added): Update.
19540 (the_low_target): Add entries for insert_point,
19541 remove_point, stopped_by_watchpoint, stopped_data_address.
19542 * win32-low.c (win32_insert_watchpoint): New function.
19543 (win32_remove_watchpoint): New function.
19544 (win32_stopped_by_watchpoint): New function.
19545 (win32_stopped_data_address): New function.
19546 (win32_target_ops): Add entries for insert_watchpoint,
19547 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19548 * win32-low.h (win32_target_ops): New members insert_point,
19549 remove_point, stopped_by_watchpoint, stopped_data_address.
19551 2009-06-25 Pedro Alves <pedro@codesourcery.com>
19553 * server.c (process_serial_event): Re-return unsupported, not
19554 error, if the type isn't recognized. Re-allow supporting only
19555 insert or remove packets. Also call require_running for
19556 breakpoints. Add missing break statement to default case. Tidy.
19557 * target.h (struct target_ops): Rename insert_watchpoint to
19558 insert_point, and remove_watchpoint to remove_point.
19560 * linux-low.h (struct linux_target_ops): Likewise.
19561 * linux-low.c (linux_insert_watchpoint): Rename to ...
19562 (linux_insert_point): ... this. Adjust.
19563 (linux_remove_watchpoint): Rename to ...
19564 (linux_remove_point): ... this. Adjust.
19565 (linux_target_ops): Adjust.
19566 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19567 (cris_insert_point): ... this.
19568 (cris_remove_watchpoint): Rename to ...
19569 (cris_remove_point): ... this.
19570 (the_low_target): Adjust.
19572 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19574 * server.c (handle_v_kill): Pass signal_pid to
19575 kill_inferior if multi_process is zero.
19577 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19579 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19580 * target.h (target_ops): Comment for *_watchpoint to make it clear
19581 the functions can get types '0' and '1'.
19583 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19585 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19586 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19587 * regcache.c (get_regcache): Likewise.
19588 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19589 * win32-low.c (child_fetch_inferior_registers): Remove check for
19592 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19593 Pedro Alves <pedro@codesourcery.com>
19595 * target.h (struct target_ops) <supports_multi_process>: New
19597 (target_supports_multi_process): New.
19598 * server.c (handle_query): Even if GDB reports support, only
19599 enable multi-process if the target also supports it. Report
19600 multi-process support only if the target backend supports it.
19601 * linux-low.c (linux_supports_multi_process): New function.
19602 (linux_target_ops): Install it as target_supports_multi_process
19605 2009-05-24 Doug Evans <dje@google.com>
19607 Global renaming of find_thread_pid to find_thread_ptid.
19608 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19609 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19610 All callers updated.
19612 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19613 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19616 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19617 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19618 (linux_resume_one_lwp): Ditto.
19620 2009-05-23 Doug Evans <dje@google.com>
19622 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19623 from struct inferior_list_entry * to struct lwp_info *.
19624 All callers updated.
19626 2009-05-13 Doug Evans <dje@google.com>
19628 * linux-x86-low.c: Don't include assert.h.
19629 (x86_siginfo_fixup): Use fatal, not assert.
19630 (x86_arch_setup): Fix comment.
19632 2009-05-12 Doug Evans <dje@google.com>
19634 Biarch support for i386/amd64 gdbserver.
19635 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19636 Add linux-x86-low.c.
19637 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19638 (linux-x86-low.o): Add.
19639 * linux-x86-64-low.c: Delete.
19640 * linux-i386-low.c: Delete.
19641 * linux-x86-low.c: New file.
19642 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19644 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19646 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19647 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19648 (linux_child_pid_to_exec_file): New function.
19649 (elf_64_header_p, elf_64_file_p): New functions.
19650 (siginfo_fixup): New function.
19651 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19652 give target a chance to convert layout.
19653 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19654 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19656 2009-05-07 Doug Evans <dje@google.com>
19658 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19659 (regsets_store_inferior_registers): Ditto.
19661 2009-05-06 Pedro Alves <pedro@codesourcery.com>
19665 * linux-low.c (must_set_ptrace_flags): Delete.
19666 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19668 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19669 `lwp->must_set_ptrace_flags' instead.
19670 (linux_wait_for_event_1): Set ptrace options here.
19671 (linux_wait_1): ... not here.
19673 2009-04-30 Doug Evans <dje@google.com>
19675 * inferiors.c (started_inferior_callback): New function.
19676 (attached_inferior_callback): New function.
19677 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19678 * server.c (print_started_pid, print_attached_pid): New functions.
19679 (detach_or_kill_for_exit): New function.
19680 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19681 * server.h (have_started_inferiors_p): Declare.
19682 (have_attached_inferiors_p): Declare.
19684 * inferiors.c (remove_process): Fix memory leak, free process.
19685 * linux-low.c (linux_remove_process): New function.
19686 (linux_kill): Call it instead of remove_process.
19687 (linux_detach, linux_wait_1): Ditto.
19689 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19691 * configure.srv: Add x86 Windows CE target.
19693 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19695 * inferiors.c (get_thread_process): Make global.
19696 * server.h (get_thread_process): Add prototype.
19697 * thread-db.c (find_one_thread): Use get_thread_process
19698 instead of current_process.
19699 (thread_db_get_tls_address): Do not crash if called when
19700 thread layer is not yet initialized.
19702 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19704 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19705 * spu-low.c (current_tid): Rename to ...
19706 (current_ptid): ... this.
19707 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19708 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19709 ptid_get_lwp (current_ptid) instead of current_tid.
19710 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19711 instead of current_tid. Use find_process_pid to verify pid
19712 argument is valid. Pass proper argument to remove_process.
19713 (spu_thread_alive): Compare current_ptid instead of current_tid.
19714 (spu_resume): Likewise.
19716 2009-04-02 Pedro Alves <pedro@codesourcery.com>
19718 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19721 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19723 Implement the multiprocess extensions, and add linux multiprocess
19726 * server.h (ULONGEST): Declare.
19727 (struct ptid, ptid_t): New.
19728 (minus_one_ptid, null_ptid): Declare.
19729 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19730 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19731 (struct inferior_list_entry): Change `id' type from unsigned from
19733 (struct sym_cache, struct breakpoint, struct
19734 process_info_private): Forward declare.
19735 (struct process_info): Declare.
19736 (current_process): Declare.
19737 (all_processes): Declare.
19738 (initialize_inferiors): Declare.
19739 (add_thread): Adjust to use ptid_t.
19740 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19741 (add_process, remove_process, find_thread_pid): Declare.
19742 (find_inferior_id): Adjust to use ptid_t.
19743 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19744 (multi_process): Declare.
19745 (push_event): Adjust to use ptid_t.
19746 (read_ptid, write_ptid): Declare.
19747 (prepare_resume_reply): Adjust to use ptid_t.
19748 (clear_symbol_cache): Declare.
19749 * inferiors.c (all_processes): New.
19750 (null_ptid, minus_one_ptid): New.
19751 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19752 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19753 (add_thread): Change unsigned long to ptid. Remove gdb_id
19755 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19756 (gdb_id_to_thread): Rename to ...
19757 (find_thread_pid): ... this. Change unsigned long to ptid.
19758 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19759 (loaded_dll, pull_pid_from_list): Adjust.
19760 (add_process, remove_process, find_process_pid)
19761 (get_thread_process, current_process, initialize_inferiors): New.
19762 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19763 (struct target_waitstatus) <related_pid>: Ditto.
19764 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19765 return type to int.
19766 (struct target_ops) <join>: Add `pid' argument.
19767 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19768 (struct target_ops) <wait>: Add `ptid' field. Change return type
19770 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19771 (mywait): Add `ptid' argument. Change return type to ptid_t.
19772 (target_pid_to_str): Declare.
19773 * target.c (set_desired_inferior): Adjust to use ptids.
19774 (mywait): Add new `ptid' argument. Adjust.
19775 (target_pid_to_str): New.
19776 * mem-break.h (free_all_breakpoints): Declare.
19777 * mem-break.c (breakpoints): Delelete.
19778 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19779 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19780 to use per-process breakpoint list.
19781 (free_all_breakpoints): New.
19782 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19783 (symbol_cache, all_symbols_looked_up): Delete.
19785 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19787 (prepare_resume_reply): Change ptid argument's type from unsigned
19788 long to ptid_t. Adjust. Implement W;process and X;process.
19789 (free_sym_cache, clear_symbol_cache): New.
19790 (look_up_one_symbol): Adjust to per-process symbol cache. *
19791 * server.c (cont_thread, general_thread, step_thread): Change type
19793 (attached): Delete.
19794 (multi_process): New.
19795 (last_ptid): Change type to ptid_t.
19796 (struct vstop_notif) <ptid>: Change type to ptid_t.
19797 (queue_stop_reply, push_event): Change `ptid' argument's type to
19799 (discard_queued_stop_replies): Add `pid' argument.
19800 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19801 changes. Don't reference the `attached' global.
19802 (attach_inferior): Adjust to mywait interface changes.
19803 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19804 features. Handle and report "multiprocess+". Handle
19806 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19808 (handle_v_kill): New.
19809 (handle_v_stopped): Adjust to use target_pid_to_str.
19810 (handle_v_requests): Allow multiple attaches and runs when
19811 multiprocess extensions are in effect. Handle "vKill".
19812 (myresume): Adjust to use ptids.
19813 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19814 (handle_status): Adjust to discard_queued_stop_replies interface
19816 (first_thread_of, kill_inferior_callback)
19817 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19818 (main): Call initialize_inferiors. Adjust to use ptids, killing
19819 and detaching from all inferiors. Handle multiprocess packet
19821 * linux-low.h: Include gdb_proc_service.h.
19822 (struct process_info_private): New.
19823 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19824 <lwpid_of>: Use ptid_get_lwp.
19825 (get_lwp_thread): Adjust.
19826 (struct lwp_info): Add `dead' member.
19827 (find_lwp_pid): Declare.
19828 * linux-low.c (thread_db_active): Delete.
19829 (new_inferior): Adjust comment.
19830 (inferior_pid): Delete.
19831 (linux_add_process): New.
19832 (handle_extended_wait): Adjust.
19833 (add_lwp): Change unsigned long to ptid.
19834 (linux_create_inferior): Add process to processes table. Adjust
19835 to use ptids. Don't set new_inferior here.
19836 (linux_attach_lwp): Rename to ...
19837 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19838 it. Adjust to use ptids.
19839 (linux_attach_lwp): New.
19840 (linux_attach): Add process to processes table. Don't set
19842 (struct counter): New.
19843 (second_thread_of_pid_p, last_thread_of_process_p): New.
19844 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19845 multiple processes.
19846 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19847 processes. Remove process from process table.
19848 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19849 to multiple processes.
19850 (any_thread_of): New.
19851 (linux_detach): Add `pid' argument, and handle it. Remove process
19852 from processes table.
19853 (linux_join): Add `pid' argument. Handle it.
19854 (linux_thread_alive): Change unsighed long argument to ptid_t.
19855 Consider dead lwps as not being alive.
19856 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19857 threads we're not interested in.
19858 (same_lwp, find_lwp_pid): New.
19859 (linux_wait_for_lwp): Change `pid' argument's type from int to
19861 (linux_wait_for_event): Rename to ...
19862 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19863 from int to ptid_t. Adjust.
19864 (linux_wait_for_event): New.
19865 (linux_wait_1): Add `ptid' argument. Change return type to
19866 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19867 that exit from the process table.
19868 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19870 (mark_lwp_dead): New.
19871 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19872 stopping all threads, mark its main lwp as dead.
19873 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19875 (fetch_register, usr_store_inferior_registers)
19876 (regsets_fetch_inferior_registers)
19877 (regsets_store_inferior_registers, linux_read_memory)
19878 (linux_write_memory): Inline `inferior_pid'.
19879 (linux_look_up_symbols): Adjust to use per-process
19880 `thread_db_active'.
19881 (linux_request_interrupt): Adjust to use ptids.
19882 (linux_read_auxv): Inline `inferior_pid'.
19883 (initialize_low): Don't reference thread_db_active.
19884 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19885 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19886 (ps_getpid): Return the pid of the current inferior.
19887 * thread-db.c (proc_handle, thread_agent): Delete.
19888 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19890 (find_one_thread): Change argument type to ptid_t. Adjust to
19892 (maybe_attach_thread): Adjust to per-process data and ptids.
19893 (thread_db_find_new_threads): Ditto.
19894 (thread_db_init): Ditto.
19895 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19896 processes table. Adjust to use ptids.
19897 (spu_kill, spu_detach): Adjust interface. Remove process from
19899 (spu_join, spu_thread_alive): Adjust interface.
19900 (spu_wait): Adjust interface. Remove process from processes
19901 table. Adjust to use ptids.
19902 * win32-low.c (current_inferior_tid): Delete.
19903 (current_inferior_ptid): New.
19904 (debug_event_ptid): New.
19905 (thread_rec): Take a ptid. Adjust.
19906 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19907 (child_delete_thread): Ditto.
19908 (do_initial_child_stuff): Add `attached' argument. Add process to
19910 (child_fetch_inferior_registers, child_store_inferior_registers):
19912 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19913 (win32_attach): Pass 1 to do_initial_child_stuff.
19914 (win32_kill): Adjust interface. Remove process from processes
19916 (win32_detach): Ditto.
19917 (win32_join): Adjust interface.
19918 (win32_thread_alive): Take a ptid.
19919 (win32_resume): Adjust to use ptids.
19920 (get_child_debug_event): Ditto.
19921 (win32_wait): Adjust interface. Remove exiting process from
19924 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19926 Non-stop mode support.
19928 * server.h (non_stop): Declare.
19929 (gdb_client_data, handler_func): Declare.
19930 (delete_file_handler, add_file_handler, start_event_loop):
19932 (handle_serial_event, handle_target_event, push_event)
19933 (putpkt_notif): Declare.
19934 * target.h (enum resume_kind): New.
19935 (struct thread_resume): Replace `step' field by `kind' field.
19936 (TARGET_WNOHANG): Define.
19937 (struct target_ops) <wait>: Add `options' argument.
19938 <supports_non_stop, async, start_non_stop>: New fields.
19939 (target_supports_non_stop, target_async): New.
19940 (start_non_stop): Declare.
19941 (mywait): Add `options' argument.
19942 * target.c (mywait): Add `options' argument. Print child exit
19943 notifications here.
19944 (start_non_stop): New.
19945 * server.c (non_stop, own_buf, mem_buf): New globals.
19946 (struct vstop_notif): New.
19947 (notif_queue): New global.
19948 (queue_stop_reply, push_event, discard_queued_stop_replies)
19949 (send_next_stop_reply): New.
19950 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19952 (attach_inferior): In non-stop mode, don't wait for the target
19954 (handle_general_set): Handle QNonStop.
19955 (handle_query): When handling qC, return the current general
19956 thread, instead of the first thread of the list.
19957 (handle_query): If the backend supports non-stop mode, include
19958 QNonStop+ in the qSupported query response.
19959 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19961 (handle_v_attach, handle_v_run): Handle non-stop mode.
19962 (handle_v_stopped): New.
19963 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19964 (myresume): Adjust to use resume_kind. Handle non-stop.
19965 (queue_stop_reply_callback): New.
19966 (handle_status): Handle non-stop mode.
19967 (main): Clear non_stop flag on reconnection. Use the event-loop.
19968 Refactor serial protocol handling from here ...
19969 (process_serial_event): ... to this new function. When GDB
19970 selects any thread, select one here. In non-stop mode, wait until
19971 GDB acks all pending events before exiting.
19972 (handle_serial_event, handle_target_event): New.
19973 * remote-utils.c (remote_open): Install remote_desc in the event
19975 (remote_close): Remove remote_desc from the event loop.
19976 (putpkt_binary): Rename to...
19977 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19978 (putpkt_binary): New as wrapper around putpkt_binary_1.
19979 (putpkt_notif): New.
19980 (prepare_resume_reply): In non-stop mode, don't change the
19982 * event-loop.c: New.
19983 * Makefile.in (OBJ): Add event-loop.o.
19984 (event-loop.o): New rule.
19986 * linux-low.h (pid_of): Moved here.
19988 (get_lwp_thread): Use lwpid_of.
19989 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19990 * linux-low.c (pid_of): Delete.
19991 (inferior_pid): Use lwpid_of.
19992 (linux_event_pipe): New.
19993 (target_is_async_p): New.
19995 (handle_extended_wait): Use lwpid_of.
19996 (add_lwp): Don't set lwpid field.
19997 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19998 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19999 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
20000 (linux_detach_one_lwp): If detaching from a running lwp, stop it
20001 first. Adjust to linux_wait_for_event interface changes. Use
20003 (linux_detach): Don't delete the main lwp here.
20004 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
20005 (status_pending_p): Don't consider explicitly suspended lwps.
20006 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
20007 pointer. Add OPTIONS argument. Change return type to int. Use
20008 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
20009 (linux_wait_for_event): Take an integer pid instead of a lwp_info
20010 pointer. Add status pointer argument. Return a pid instead of a
20011 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
20012 changes. In non-stop mode, don't switch to a random thread.
20013 (linux_wait): Rename to...
20014 (linux_wait_1): ... this. Add target_options argument, and handle
20015 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
20016 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
20017 clean exit and signal exit code. Don't stop all threads in
20018 non-stop mode. In all-stop mode, only stop all threads when
20019 reporting a stop to GDB. Handle explicit thread stop requests.
20020 (async_file_flush, async_file_mark): New.
20022 (send_sigstop): Use lwpid_of.
20023 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
20024 interface changes. In non-stop mode, don't switch to a random
20026 (linux_resume_one_lwp): Use lwpid_of.
20027 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
20028 (linux_resume_one_thread): ... this. Handle resume_stop. In
20029 non-stop mode, don't look for pending flag in all threads.
20030 (resume_status_pending_p): Don't consider explicitly suspended
20032 (my_waitpid): Reimplement. Emulate __WALL.
20033 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
20035 (sigchld_handler, linux_supports_non_stop, linux_async)
20036 (linux_start_non_stop): New.
20037 (linux_target_ops): Register linux_supports_non_stop, linux_async
20038 and linux_start_non_stop.
20039 (initialize_low): Install SIGCHLD handler.
20040 * thread-db.c (thread_db_create_event, find_one_thread)
20041 (thread_db_get_tls_address): Use lwpid_of.
20042 * win32-low.c (win32_detach): Adjust to use resume_kind.
20043 (win32_wait): Add `options' argument.
20044 * spu-low.c (spu_resume): Adjust to use resume_kind.
20045 (spu_wait): Add `options' argument.
20047 2009-04-01 Pedro Alves <pedro@codesourcery.com>
20049 Decouple target code from remote protocol.
20051 * target.h (enum target_waitkind): New.
20052 (struct target_waitstatus): New.
20053 (struct target_ops) <wait>: Return an unsigned long. Take a
20054 target_waitstatus pointer instead of a char pointer.
20055 (mywait): Likewise.
20056 * target.c (mywait): Change prototype to return an unsigned long.
20057 Take a target_waitstatus pointer instead of a char pointer. Adjust.
20058 * server.h (thread_from_wait, old_thread_from_wait): Delete
20060 (prepare_resume_reply): Change prototype to take a
20062 * server.c (thread_from_wait, old_thread_from_wait): Delete.
20063 (last_status, last_ptid): New.
20064 (start_inferior): Remove "statusptr" argument. Adjust. Return a
20065 pid instead of a signal.
20066 (attach_inferior): Remove "status" and "signal" parameters.
20068 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
20070 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
20071 (handle_v_requests, myresume): Remove "status" and "signal"
20072 parameters. Adjust.
20073 (handle_status): New.
20074 (main): Delete local `status'. Adjust.
20075 * remote-utils.c: Include target.h.
20076 (prepare_resume_reply): Change prototype to take a
20077 target_waitstatus. Adjust.
20079 * linux-low.c (linux_wait): Adjust to new target_ops->wait
20081 * spu-low.c (spu_wait): Adjust.
20082 * win32-low.c (enum target_waitkind, struct target_waitstatus):
20084 (win32_wait): Adjust.
20086 2009-04-01 Pedro Alves <pedro@codesourcery.com>
20088 * target.h (struct thread_resume): Delete leave_stopped member.
20089 (struct target_ops): Add a `n' argument to the `resume' callback.
20090 * server.c (start_inferior): Adjust.
20091 (handle_v_cont, myresume): Adjust.
20092 * linux-low.c (check_removed_breakpoint): Adjust to resume
20093 interface change, and to removed leave_stopped field.
20094 (resume_ptr): Delete.
20095 (struct thread_resume_array): New.
20096 (linux_set_resume_request): Add new `arg' parameter. Adjust to
20097 resume interface change.
20098 (linux_continue_one_thread, linux_queue_one_thread)
20099 (resume_status_pending_p): Check if the resume field is NULL
20100 instead of checking the leave_stopped member.
20101 (linux_resume): Adjust to the target resume interface change.
20102 * spu-low.c (spu_resume): Adjust to the target resume interface
20104 * win32-low.c (win32_detach, win32_resume): Ditto.
20106 2009-04-01 Pedro Alves <pedro@codesourcery.com>
20108 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
20110 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
20112 (linux_continue_one_thread): Only preserve the stepping flag if
20113 there's a pending breakpoint.
20115 2009-03-31 Pedro Alves <pedro@codesourcery.com>
20117 * server.c (main): After the inferior having exited, call
20118 remote_close before exiting gdbserver.
20120 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
20122 Fix size of FPSCR in Power 7 processors.
20123 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
20124 (PPC_FEATURE_HAS_DFP): New #define.
20125 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
20128 2009-03-23 Pedro Alves <pedro@codesourcery.com>
20130 * server.c (handle_query) Whitespace and formatting.
20132 2009-03-22 Pedro Alves <pedro@codesourcery.com>
20134 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
20135 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
20136 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
20137 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
20138 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
20139 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
20140 Makefile.in, configure.ac: Fix whitespace throughout.
20141 * configure: Regenerate.
20143 2009-03-22 Pedro Alves <pedro@codesourcery.com>
20145 * inferiors.c (find_inferior): Make it safe for the callback
20146 function to delete the currently iterated inferior.
20148 2009-03-22 Pedro Alves <pedro@codesourcery.com>
20150 * Makefile.in (linuw_low_h): Move higher.
20151 (thread-db.o): Depend on $(linux_low_h).
20153 2009-03-17 Pedro Alves <pedro@codesourcery.com>
20155 Rename "process" to "lwp" throughout.
20157 * linux-low.c (all_processes): Rename to...
20158 (all_lwps): ... this.
20159 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
20160 (add_process): Rename to ...
20161 (add_lwp): ... this. Adjust.
20162 (linux_create_inferior): Adjust.
20163 (linux_attach_lwp): Adjust.
20164 (linux_attach): Adjust.
20165 (linux_kill_one_process): Rename to ...
20166 (linux_kill_one_lwp): ... this. Adjust.
20167 (linux_kill): Adjust.
20168 (linux_detach_one_process): Rename to ...
20169 (linux_detach_one_lwp): ... this. Adjust.
20170 (linux_detach): Adjust.
20171 (check_removed_breakpoint): Adjust.
20172 (status_pending_p): Adjust.
20173 (linux_wait_for_process): Rename to ...
20174 (linux_wait_for_lwp): ... this. Adjust.
20175 (linux_wait_for_event): Adjust.
20176 (send_sigstop): Adjust.
20177 (wait_for_sigstop): Adjust.
20178 (stop_all_processes): Rename to ...
20179 (stop_all_lwps): ... this.
20180 (linux_resume_one_process): Rename to ...
20181 (linux_resume_one_lwp): ... this. Adjust.
20182 (linux_set_resume_request, linux_continue_one_thread)
20183 (linux_queue_one_thread, resume_status_pending_p)
20184 (usr_store_inferior_registers, regsets_store_inferior_registers)
20185 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
20187 * linux-low.h (get_process): Rename to ...
20188 (get_lwp): ... this. Adjust.
20189 (get_thread_process): Rename to ...
20190 (get_thread_lwp): ... this. Adjust.
20191 (get_process_thread): Rename to ...
20192 (get_lwp_thread): ... this. Adjust.
20193 (struct process_info): Rename to ...
20194 (struct lwp_info): ... this.
20195 (all_processes): Rename to ...
20196 (all_lwps): ... this.
20197 * proc-service.c (ps_lgetregs): Adjust.
20198 * thread-db.c (thread_db_create_event, find_one_thread)
20199 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
20201 2009-03-14 Pedro Alves <pedro@codesourcery.com>
20203 * server.c (handle_query): Handle "qAttached".
20205 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
20207 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
20208 GPLv3, update license URL.
20210 2009-03-01 Doug Evans <dje@google.com>
20212 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
20213 (server_h): Add gdb_signals.h.
20214 (signals.o): Update.
20215 * server.h (target_signal_from_host,target_signal_to_host_p)
20216 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
20218 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
20220 * remote-utils.c (getpkt): Also generate remote-debug
20221 information if noack_mode is set.
20223 2009-02-06 Pedro Alves <pedro@codesourcery.com>
20225 * server.c (handle_query): Report qXfer:siginfo:read and
20226 qXfer:siginfo:write as supported and handle them.
20227 * target.h (struct target_ops) <qxfer_siginfo>: New field.
20228 * linux-low.c (linux_xfer_siginfo): New.
20229 (linux_target_ops): Set it.
20231 2009-01-26 Pedro Alves <pedro@codesourcery.com>
20233 * server.c (gdbserver_usage): Mention --remote-debug.
20234 (main): Accept '--remote-debug' switch.
20236 2009-01-18 Doug Evans <dje@google.com>
20238 * regcache.c (new_register_cache): No need to check result of xcalloc.
20239 * server.c (handle_search_memory): Back out calls to xmalloc,
20240 result is checked and error is returned to user upon failure.
20241 (handle_query): Ditto. Add more checks for result of malloc.
20242 (handle_v_cont): Check result of malloc, report error back to
20244 (handle_v_run): Ditto. Call freeargv.
20245 * server.h (freeargv): Declare.
20246 * utils.c (freeargv): New fn.
20248 2009-01-15 Doug Evans <dje@google.com>
20250 * gdbreplay.c (perror_with_name): Make arg const char *.
20251 * server.h (target_signal_to_name): Make return type const char *.
20252 * thread-db.c (thread_db_err_str): Make return type const char *.
20253 * utils.c (perror_with_name): Make arg const char *.
20255 2009-01-14 Pedro Alves <pedro@codesourcery.com>
20257 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
20258 when handling a EXIT_PROCESS_DEBUG_EVENT.
20260 2009-01-06 Joel Brobecker <brobecker@adacore.com>
20262 * gdbreplay.c (gdbreplay_version): Update copyright year.
20263 * server.c (gdbserver_version): Likewise.
20265 2009-01-05 Doug Evans <dje@google.com>
20267 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
20268 (handle_extended_wait): Improve comment.
20270 2008-12-13 Doug Evans <dje@google.com>
20272 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
20273 * server.h (ATTR_MALLOC): New macro.
20274 (xmalloc,xcalloc,xstrdup): Declare.
20275 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
20276 * inferiors.c: Ditto.
20277 * linux-low.c: Ditto.
20278 * mem-break.c: Ditto.
20279 * regcache.c: Ditto.
20280 * remote-utils.c: Ditto.
20283 * win32-low.c: Ditto.
20285 2008-12-12 Doug Evans <dje@google.com>
20287 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
20288 in debugging printf.
20290 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
20292 2008-12-09 Doug Evans <dje@google.com>
20294 * linux-low.h (struct process_info): Delete member tid, unused.
20295 * thread-db.c (find_one_thread): Update.
20296 (maybe_attach_thread): Update.
20298 2008-12-02 Pedro Alves <pedro@codesourcery.com>
20300 * target.h (struct target_ops): Add qxfer_osdata member.
20301 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
20303 (linux_qxfer_osdata): New functions.
20304 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
20306 * server.c (handle_query): Handle "qXfer:osdata:read:".
20307 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
20308 (buffer_xml_printf): New functions.
20309 * server.h (struct buffer): New.
20310 (buffer_grow_str, buffer_grow_str0): New macros.
20311 (buffer_grow, buffer_free, buffer_init, buffer_finish)
20312 (buffer_xml_printf): Declare.
20314 2008-11-24 Doug Evans <dje@google.com>
20316 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
20318 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
20320 * server.c (handle_v_run): Always use the supplied argument list.
20322 2008-11-19 Bob Wilson <bob.wilson@acm.org>
20324 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
20325 (xtensa_regmap_table): Add entry for scompare1.
20327 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
20329 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
20330 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
20331 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
20332 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
20333 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
20334 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
20335 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
20336 XML target descriptions.
20337 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
20338 when inferior is running on an ISA 2.05 or later processor. Add
20339 special case to return offset for full 64-bit slot of FPSCR when
20342 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
20344 * Makefile.in (SFILES, clean): Added sparc64 files.
20345 (reg-sparc64.o, reg-sparc64.c): New.
20346 * configure.srv (sparc*-*-linux*): New configuration.
20347 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
20348 syscall arguments for SPARC.
20349 (regsets_store_inferior_registers): Likewise.
20350 * linux-sparc-low.c: New file.
20352 2008-10-21 Doug Evans <dje@google.com>
20354 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
20355 (READLINE_DIR,READLINE_DEP): Delete.
20356 (INTERNAL_CFLAGS): Update.
20357 (LINTFLAGS): Update.
20359 2008-10-10 Pedro Alves <pedro@codesourcery.com>
20361 * server.c (handle_v_run): If GDB didn't specify an argv, use the
20362 whole argv from the last run, not just argv[0].
20364 2008-09-08 Pedro Alves <pedro@codesourcery.com>
20366 * regcache.c (new_register_cache): Return NULL if the register
20367 cache size isn't known yet.
20368 (free_register_cache): Avoid dereferencing a NULL regcache.
20370 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20372 * configure.srv: Merge MIPS and MIPS64.
20374 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
20376 * Makefile.in (uninstall): Apply $(EXEEXT) too.
20378 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
20380 * Makefile.in: Add required vsx dependencies.
20382 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
20383 Declare init_registers_powerpc_vsx32l.
20384 Declare init_registers_powerpc_vsx64l.
20385 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
20386 (ppc_arch_setup): Check for VSX in hwcap.
20387 (ppc_fill_vsxregset): New function.
20388 (ppc_store_vsxregset): New function.
20389 Add new VSX entry in regset_info target_regsets.
20391 * configure.srv: Add new VSX dependencies.
20393 2008-08-12 Pedro Alves <pedro@codesourcery.com>
20395 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
20396 (remote_open): Set or clear transport_is_reliable.
20397 (putpkt_binary): Don't expect acks in noack mode.
20398 (getpkt): Don't send ack/nac in noack mode.
20399 * server.c (handle_general_set): Handle QStartNoAckMode.
20400 (handle_query): If connected by tcp pass QStartNoAckMode+ in
20402 (main): Reset noack_mode on every connection.
20403 * server.h (noack_mode): Declare.
20405 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20407 * Makefile.in (GDBREPLAY_OBS): New variable.
20408 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
20410 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
20411 Daniel Jacobowitz <dan@codesourcery.com>
20413 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
20414 (usr_store_inferior_registers): Likewise.
20415 (regsets_store_inferior_registers): Likewise.
20417 2008-07-31 Rolf Jansen <rj@surtec.com>
20418 Pedro Alves <pedro@codesourcery.com>
20420 * configure.ac: Check for memmem declaration.
20421 * server.c [HAVE_MALLOC_H]: Include malloc.h.
20422 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
20423 (disable_packet_qfThreadInfo): Unconditionally compile.
20424 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
20425 * configure, config.in: Regenerate.
20427 2008-07-28 Doug Kwan <dougkwan@google.com>
20429 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
20430 (linux_write_memory): Remove declaration of errno.
20432 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
20434 * linux-low.c (handle_extended_wait): Do not use "status"
20435 variable uninitialized.
20437 2008-07-07 Pedro Alves <pedro@codesourcery.com>
20439 * server.c (handle_v_attach): Inhibit reporting dll changes.
20441 2008-06-27 Pedro Alves <pedro@codesourcery.com>
20443 * remote-utils.c (prepare_resume_reply): If requested, don't
20444 output "thread:TID" in the T stop reply.
20446 * server.c (disable_packet_vCont, disable_packet_Tthread)
20447 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
20448 (handle_query): If requested, disable support for qC, qfThreadInfo
20450 (handle_v_requests): If requested, disable support for vCont.
20451 (gdbserver_show_disableable): New.
20452 (main): Handle --disable-packet and --disable-packet=LIST.
20454 * server.h (disable_packet_vCont, disable_packet_Tthread)
20455 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
20457 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
20459 * server.c (gdbserver_usage): Mention --version.
20461 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
20463 * Makefile.in (gdbreplay.o): New rule.
20465 2008-06-06 Joseph Myers <joseph@codesourcery.com>
20467 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
20468 message, not gdbserver.
20470 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
20471 Nathan Sidwell <nathan@codesourcery.com>
20472 Joseph Myers <joseph@codesourcery.com>
20474 * acinclude.m4: Include ../../config/acx.m4.
20475 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20476 * configure, config.in: Regenerate.
20477 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20478 * server.c (gdbserver_version): Print PKGVERSION.
20479 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20480 (main): Adjust gdbserver_usage calls.
20481 * gdbreplay.c (version, host_name): Add declarations.
20482 (gdbreplay_version, gdbreplay_usage): New.
20483 (main): Accept --version and --help options.
20485 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20487 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20488 (arm_breakpoint_at): Handle Thumb.
20489 (the_low_target): Add comment.
20491 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20493 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20495 2008-05-09 Doug Evans <dje@google.com>
20497 * server.h (decode_search_memory_packet): Declare.
20498 * remote-utils.c (decode_search_memory_packet): New fn.
20499 * server.c (handle_search_memory_1): New fn.
20500 (handle_search_memory): New fn.
20501 (handle_query): Process qSearch:memory packets.
20503 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20505 * regcache.c (registers_length): Remove.
20506 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20507 full register packet.
20508 * regcache.h (registers_length): Remove prototype.
20509 * server.h (PBUFSIZ): Define to 16384.
20511 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20513 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20514 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20515 powerpc-64l.o, and powerpc-altivec64l.o.
20516 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20517 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20518 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20519 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20520 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20523 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20524 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20525 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20526 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20527 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20528 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20529 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20530 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20531 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20532 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20535 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20536 (init_registers_powerpc_32l): ... this new prototype.
20537 (init_registers_powerpc_32): Remove, replace by ...
20538 (init_registers_powerpc_altivec32l): ... this new prototype.
20539 (init_registers_powerpc_e500): Remove, replace by ...
20540 (init_registers_powerpc_e500l): ... this new prototype.
20541 (init_registers_ppc64): Remove, replace by ...
20542 (init_registers_powerpc_64l): ... this new prototype.
20543 (init_registers_powerpc_64): Remove, replace by ...
20544 (init_registers_powerpc_altivec64l): ... this new prototype.
20545 (ppc_num_regs): Set to 73.
20546 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20547 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20548 (ppc_cannot_store_register): Handle orig_r3 and trap.
20549 (ppc_arch_setup): Update init_registers_... calls.
20550 (ppc_fill_gregset): Handle orig_r3 and trap.
20552 * inferiors.c (clear_inferiors): Reset current_inferior.
20554 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
20556 * acinclude.m4: Add override.m4.
20557 * configure: Regenerate.
20559 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20561 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20562 initial call to init_register_ppc64.
20564 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20566 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20567 single powerpc*-*-linux* case.
20568 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20570 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20572 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
20573 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
20575 * linux-ppc-low.c: Include <elf.h>.
20576 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20577 (ppc_hwcap): New global variable.
20578 (ppc_regmap): Remove __SPE__ #ifdef sections.
20579 (ppc_regmap_e500): New global variable.
20580 (ppc_cannot_store_register): Update __SPE__ special case.
20581 (ppc_get_hwcap): New function.
20582 (ppc_arch_setup): Use it to determine whether inferior supports
20583 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20584 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20585 Do not access registers if target does not support AltiVec.
20586 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20587 Do not access registers if target does not support SPE.
20588 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20590 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20592 * linux-low.c (disabled_regsets, num_regsets): New.
20593 (use_regsets_p): Delete.
20594 (linux_wait_for_process): Clear disabled_regsets.
20595 (regsets_fetch_inferior_registers): Check and set it.
20596 (regsets_store_inferior_registers): Likewise.
20597 (linux_fetch_registers, linux_store_registers): Do not use
20599 (initialize_low): Allocate disabled_regsets.
20601 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20603 * Makefile.in (LIBOBJS): New.
20604 (OBS): Use LIBOBJS.
20605 (memmem.o): New rule.
20606 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20607 * configure: Regenerated.
20609 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20611 * server.c (handle_query): Never return "unsupported" for
20612 qXfer:features:read queries.
20614 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20616 * server.c (get_features_xml): Fix inverted condition.
20617 (handle_query): Always support qXfer:feature:read.
20619 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20621 * server.c (wrapper_argv): New.
20622 (start_inferior): Handle wrapper_argv. If set, expect an extra
20624 (gdbserver_usage): Document --wrapper.
20625 (main): Parse --wrapper.
20627 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20629 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20630 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20631 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20632 (ppc_set_pc): Likewise.
20633 (ppc_arch_setup): New function.
20634 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20635 of collect_register.
20636 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
20638 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20640 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20641 instead of linux-ppc64-low.o.
20642 * linux-ppc64-low.c: Remove file.
20643 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20644 (linux-ppc64-low.o): Remove rule.
20646 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20647 (init_registers_powerpc_64): Likewise.
20648 (ppc_regmap): Conditionally define depending on __powerpc64__.
20649 (ppc_cannot_store_register): Do not special-case "fpscr" when
20650 compiled on __powerpc64__.
20651 (ppc_collect_ptrace_register): New function.
20652 (ppc_supply_ptrace_register): New function.
20653 (ppc_breakpoint): Change type to "unsigned int".
20654 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20655 (the_low_target): Conditionally provide initializers for the
20656 arch_setup member depending on __powerpc64__. Install
20657 collect_ptrace_register and supply_ptrace_register members.
20659 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20661 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20662 * server.c (gdbserver_xmltarget): Define.
20663 (get_features_xml): Use it to replace "target.xml" and arch_string.
20665 * configure.srv: Remove srv_xmltarget. Add XML files that were
20666 mentioned there to srv_xmlfiles instead. Remove conditional tests
20667 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20668 srv_xmlfiles and srv_regobj to include all possible choices.
20669 * configure.ac (srv_xmltarget): Remove.
20670 (srv_xmlfiles): Do not add "target.xml".
20671 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20672 checks for supplementary target information.
20673 * configure: Regenerate.
20674 * Makefile.in (XML_TARGET): Remove.
20675 (target.xml): Remove rule.
20676 (clean): Do not clean up target.xml.
20677 (.PRECIOUS): Do not mention target.xml.
20679 * target.h (struct target_ops): Remove arch_string member.
20680 * linux-low.c (linux_arch_string): Remove.
20681 (linux_target_ops): Remove arch_string initializer.
20682 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20683 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20684 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20685 * spu-low.c (spu_arch_string): Remove.
20686 (spu_target_ops): Remove arch_string initializer.
20687 * win32-low.c (win32_arch_string): Remove.
20688 (win32_target_ops): Remove arch_string initializer.
20689 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20690 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20691 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20693 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20695 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20696 by collect_ptrace_register and supply_ptrace_register hooks.
20697 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20698 instead of checking for the_low_target.left_pad_xfer.
20699 (usr_store_inferior_registers): Use collect_ptrace_register callback
20700 instead of checking for the_low_target.left_pad_xfer.
20702 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20703 (s390_supply_ptrace_register): Likewise.
20704 (s390_fill_gregset): Call s390_collect_ptrace_register.
20705 (the_low_target): Update.
20707 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20708 (ppc_supply_ptrace_register): Likewise.
20709 (the_low_target): Update.
20711 * linux-i386-low.c (the_low_target): Update.
20712 * linux-x86-64-low.c (the_low_target): Update.
20714 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20716 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20717 reg-s390.o and reg-s390x.o.
20719 * linux-low.c (new_inferior): New global variable.
20720 (linux_create_inferior, linux_attach): Set it.
20721 (linux_wait_for_process): Call the_low_target.arch_setup after the
20722 target has stopped for the first time.
20723 (initialize_low): Do not call the_low_target.arch_setup.
20725 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20726 (s390_set_pc): Likewise.
20727 (s390_arch_setup): New function.
20728 (the_low_target): Use s390_arch_setup as arch_setup routine.
20730 * regcache.c (realloc_register_cache): New function.
20731 (set_register_cache): Call it for each existing regcache.
20733 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20735 * server.h (init_registers): Remove prototype.
20737 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20738 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20739 instead of init_registers ().
20740 * linux-arm-low.c (init_registers_arm): Add prototype.
20741 (init_registers_arm_with_iwmmxt): Likewise.
20742 (the_low_target): Add initializer for arch_setup field.
20743 * linux-cris-low.c (init_registers_cris): Add prototype.
20744 (the_low_target): Add initializer for arch_setup field.
20745 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20746 (the_low_target): Add initializer for arch_setup field.
20747 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20748 (the_low_target): Add initializer for arch_setup field.
20749 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20750 (the_low_target): Add initializer for arch_setup field.
20751 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20752 (the_low_target): Add initializer for arch_setup field.
20753 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20754 (the_low_target): Add initializer for arch_setup field.
20755 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20756 (init_registers_mips64_linux): Likewise.
20757 (the_low_target): Add initializer for arch_setup field.
20758 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20759 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20760 (the_low_target): Add initializer for arch_setup field.
20761 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20762 (init_registers_powerpc_64): Likewise.
20763 (the_low_target): Add initializer for arch_setup field.
20764 * linux-s390-low.c (init_registers_s390): Add prototype.
20765 (init_registers_s390x): Likewise.
20766 (the_low_target): Add initializer for arch_setup field.
20767 * linux-sh-low.c (init_registers_sh): Add prototype.
20768 (the_low_target): Add initializer for arch_setup field.
20769 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20770 (the_low_target): Add initializer for arch_setup field.
20771 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20772 (the_low_target): Add initializer for arch_setup field.
20774 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20775 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20776 instead of init_registers ().
20777 * win32-arm-low.c (init_registers_arm): Add prototype.
20778 (the_low_target): Add initializer for arch_setup field.
20779 * win32-i386-low.c (init_registers_i386): Add prototype.
20780 (the_low_target): Add initializer for arch_setup field.
20782 * spu-low.c (init_registers_spu): Add prototype.
20783 (initialize_low): Call initialie_registers_spu () instead of
20784 initialize_registers ().
20786 2008-02-19 Pedro Alves <pedro@codesourcery.com>
20788 * server.c (handle_v_requests): When handling the vRun and vAttach
20789 packets, if already debugging a process, don't kill it. Return an
20792 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20794 * server.c (handle_query): Correct length check.
20796 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20798 * win32-low.c (do_initial_child_stuff): Add process handle
20799 parameter. Set current_process_handle and current_process_id from the
20800 parameters. Clear globals.
20801 (win32_create_inferior): Don't set current_process_handle and
20802 current_process_id here. Instead pass them on the call to
20803 do_initial_child_stuff.
20804 (win32_attach): Likewise.
20805 (win32_clear_inferiors): New.
20806 (win32_kill): Don't close the current process handle or the
20807 current thread handle here. Instead call win32_clear_inferiors.
20808 (win32_detach): Don't open a new handle to the process. Call
20809 win32_clear_inferiors.
20810 (win32_join): Don't rely on current_process_handle; open a new
20811 handle using the process id.
20812 (win32_wait): Call win32_clear_inferiors when the inferior process
20815 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20817 * server.c (monitor_show_help): Add "exit".
20819 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20821 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20822 (clean): Add reg-xtensa.c.
20823 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20824 * configure.srv (xtensa*-*-linux*) New target.
20825 * linux-xtensa-low.c: New.
20826 * xtensa-xtregs.c: New.
20828 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20830 * hostio.c: Don't include errno.h.
20831 (errno_to_fileio_errno): Move to hostio-errno.
20832 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20833 error number outputting to the target->hostio_last_error callback.
20834 (hostio_packet_error): Use FILEIO_EINVAL directly.
20835 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20836 calls to hostio_error.
20837 * hostio-errno.c: New.
20838 * server.h (hostio_last_error_from_errno): Declare.
20839 * target.h (target_ops): Add hostio_last_error member.
20840 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20841 as hostio_last_error handler.
20842 * spu-low.c (spu_target_ops): Likewise.
20843 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20844 (wince_hostio_last_error): New functions.
20845 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20846 as hostio_last_error handler.
20847 (win32_target_ops) [!_WIN32_WCE]: Register
20848 hostio_last_error_from_errno as hostio_last_error handler.
20849 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20850 (hostio-errno.o): New rule.
20851 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20852 * configure.srv (srv_hostio_err_objs): New variable. Default to
20854 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20855 * configure: Regenerate.
20857 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20859 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20860 (linux_kill, linux_detach): Clean up the process list.
20861 * remote-utils.c (remote_open): Improve port number parsing.
20862 (putpkt_binary, input_interrupt): Only send interrupts if the target
20864 * server.c (extended_protocol): Make static.
20865 (attached): Define earlier.
20866 (exit_requested, response_needed, program_argv): New variables.
20867 (target_running): New.
20868 (start_inferior): Clear attached here.
20869 (attach_inferior): Set attached here.
20870 (require_running): Define.
20871 (handle_query): Use require_running and target_running. Implement
20873 (handle_v_attach, handle_v_run): New.
20874 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20875 (gdbserver_usage): Update.
20876 (main): Redo argument parsing. Handle --debug and --multi. Handle
20877 --attach along with other options or after the port. Save
20878 program_argv. Support no initial program. Resynchronize
20879 communication with GDB after an error. Handle "monitor exit".
20880 Use require_running and target_running. Always allow the extended
20881 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20882 restart in extended mode.
20883 * README: Refer to the GDB manual. Update --attach usage.
20885 2007-12-20 Andreas Schwab <schwab@suse.de>
20887 * linux-low.c (STACK_SIZE): Define.
20888 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20889 (linux_test_for_tracefork): Likewise.
20891 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20893 * linux-low.c (linux_wait_for_event): Update messages. Do not
20894 reinsert auto-delete breakpoints.
20895 * mem-break.c (struct breakpoint): Change return type of handler to
20897 (set_breakpoint_at): Update handler type.
20898 (reinsert_breakpoint_handler): Return 1 instead of calling
20900 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20902 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20903 * mem-break.h (set_breakpoint_at): Update handler type.
20904 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20905 * win32-low.c (auto_delete_breakpoint): New.
20906 (get_child_debug_event): Use it.
20908 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20910 * configure.ac: Check for pread and pwrite.
20911 * hostio.c (handle_pread): Fall back to lseek and read.
20912 (handle_pwrite): Fall back to lseek and write.
20913 * config.in, configure: Regenerated.
20915 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20917 * server.c (myresume): Add own_buf argument.
20918 (main): Update calls.
20920 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20922 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20923 * remote-utils.c (remote_open): Do not call disable_async_io.
20924 (block_async_io): Delete.
20925 (unblock_async_io): Make static.
20926 (initialize_async_io): New.
20927 * server.c (handle_v_cont): Handle async I/O here.
20928 (myresume): Likewise. Move other common resume tasks here...
20929 (main): ... from here. Call initialize_async_io. Disable async
20930 I/O before the main loop.
20931 * server.h (initialize_async_io): Declare.
20932 (block_async_io, unblock_async_io): Delete prototypes.
20933 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20935 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20937 * remote-utils.c (readchar): Allow binary data in received messages.
20939 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20941 * win32-low.c (attaching): New global.
20942 (win32_create_inferior): Clear the `attaching' global.
20943 (win32_attach): Set the `attaching' global.
20944 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20945 attaching. Only set a breakpoint at the entry point if not
20948 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20950 * server.c (main): Don't report dll events on the initial
20951 connection on attaches.
20953 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20955 * server.c (main): Relax numerical bases supported for the pid of
20956 the --attach command line argument.
20958 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20960 * win32-low.c (win32_attach): Call OpenProcess before
20961 DebugActiveProcess, not after. Add last error output to error
20964 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20966 * win32-low.c (win32_get_thread_context)
20967 (win32_set_thread_context): New functions.
20968 (thread_rec): Use win32_get_thread_context.
20969 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20970 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20973 2007-12-03 Leo Zayas
20974 Pedro Alves <pedro_alves@portugalmail.pt>
20976 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20978 (child_add_thread): Minor cleanup.
20979 (child_continue): Resume artificially suspended threads before
20980 calling ContinueDebugEvent.
20981 (suspend_one_thread): New.
20982 (fake_breakpoint_event): New.
20983 (get_child_debug_event): Change return type to int. Check here if
20984 gdb sent an interrupt request. If a soft interrupt was requested,
20985 fake a breakpoint event. Return 0 if there is no event to handle,
20987 (win32_wait): Don't check here if gdb sent an interrupt request.
20988 Ensure there is a valid event to handle.
20989 (win32_request_interrupt): Add soft interruption method as last
20992 2007-12-03 Leo Zayas
20993 Pedro Alves <pedro_alves@portugalmail.pt>
20995 * win32-low.h (win32_thread_info): Add descriptions to the
20996 structure members. Replace `suspend_count' counter by a
20998 * win32-low.c (thread_rec): Update condition of when to get the
20999 context from the inferior. Rely on ContextFlags being set if it
21000 has already been retrieved. Only suspend the inferior thread if
21001 we haven't already. Warn if that fails.
21002 (continue_one_thread): s/suspend_count/suspended/. Only call
21003 ResumeThread once. Warn if that fails.
21005 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
21007 * win32-low.c (win32_wait): Don't read from the inferior when it
21008 has already exited.
21010 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
21012 * Makefile.in (win32_low_h): New variable.
21013 (win32-low.o): Add dependency on $(win32_low_h).
21014 (win32-arm-low.o, win32-i386-low.o): New rules.
21016 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
21018 * hostio.c: Correct copyright year.
21020 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
21022 * Makefile.in (OBS): Add hostio.o.
21023 (hostio.o): New rule.
21024 * server.h (handle_vFile): Declare.
21025 * hostio.c: New file.
21026 * server.c (handle_v_requests): Take packet_len and new_packet_len
21027 for binary packets. Call handle_vFile.
21028 (main): Update call to handle_v_requests.
21030 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
21032 * linux-low.c: Include <sched.h>.
21034 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
21036 * linux-low.c (linux_tracefork_grandchild): New.
21037 (linux_tracefork_child): Use clone.
21038 (linux_test_for_tracefork): Use clone; allocate and free a stack.
21040 2007-10-31 Joel Brobecker <brobecker@adacore.com>
21042 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
21044 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
21046 * linux-low.c (handle_extended_wait): Handle unexpected signals.
21048 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
21050 * inferiors.c (change_inferior_id): Delete.
21051 (add_pid_to_list, pull_pid_from_list): New.
21052 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
21053 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
21054 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
21055 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
21056 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
21057 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
21058 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
21059 (using_threads): Always set to 1.
21060 (handle_extended_wait): New.
21061 (add_process): Do not set TID.
21062 (linux_create_inferior): Set must_set_ptrace_flags.
21063 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
21064 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
21065 (linux_thread_alive): Rename TID argument to LWPID.
21066 (linux_wait_for_process): Handle unknown processes. Do not use TID.
21067 (linux_wait_for_event): Do not use TID or check using_threads. Update
21068 call to dead_thread_notify. Call handle_extended_wait.
21069 (linux_create_inferior): Use PTRACE_SETOPTIONS.
21070 (send_sigstop): Delete sigstop_sent.
21071 (wait_for_sigstop): Avoid TID.
21072 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
21073 (linux_test_for_tracefork): New.
21074 (linux_lookup_signals): Use thread_db_active and
21075 linux_supports_tracefork_flag.
21076 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
21077 * linux-low.h (get_process_thread): Avoid TID.
21078 (struct process_ifo): Move thread_known and tid to the end. Remove
21080 (linux_attach_lwp, thread_db_init): Update prototypes.
21081 * server.h (change_inferior_id): Delete prototype.
21082 (add_pid_to_list, pull_pid_from_list): New prototypes.
21083 * thread-db.c (thread_db_use_events): New.
21084 (find_first_thread): Rename to...
21085 (find_one_thread): ...this. Update callers and messages. Do not
21086 call fatal. Check thread_db_use_events. Do not call
21087 change_inferior_id or new_thread_notify.
21088 (maybe_attach_thread): Update. Do not call new_thread_notify.
21089 (thread_db_init): Set thread_db_use_events. Check use_events.
21090 * utils.c (fatal, warning): Correct message prefix.
21092 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
21094 * Makefile.in (clean): Remove new files.
21095 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
21096 (powerpc-64.o, powerpc-64.c): New rules.
21097 * configure.srv: Use alternate register sets for powerpc64-*-linux*
21098 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
21100 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
21102 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
21103 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
21104 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
21105 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
21106 (target_regsets): Add AltiVec and SPE register sets.
21107 * configure.ac: Check for AltiVec and SPE.
21108 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
21109 (ppc_fill_vrregset, ppc_store_vrregset): New.
21110 (target_regsets): Add AltiVec register set.
21111 * configure: Regenerated.
21113 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
21115 * linux-low.c (O_LARGEFILE): Define.
21116 (linux_read_memory): Use /proc/PID/mem.
21117 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
21118 * configure, config.in: Regenerated.
21120 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
21122 * linux-low.c (linux_wait_for_event): Do not pass signals while
21125 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
21127 * win32-low.c (create_process): New.
21128 (win32_create_inferior): Use create_process instead of
21129 CreateProcess. If create_process failed retry appending an ".exe"
21130 suffix. Store the GetLastError result immediatelly after
21131 create_process calls and use it on the call to error.
21133 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
21135 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
21137 2007-08-23 Joel Brobecker <brobecker@adacore.com>
21139 * configure.ac: Switch license to GPLv3.
21141 2007-08-01 Michael Snyder <msnyder@access-company.com>
21143 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
21145 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
21147 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
21149 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
21150 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
21151 CloseToolhelp32Snapshot.
21152 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
21153 CloseToolhelp32Snapshot.
21155 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
21157 * server.c (main): Check for inferior exit before main loop.
21159 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
21161 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
21162 instead of on tmp_desc.
21164 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
21165 Daniel Jacobowitz <dan@codesourcery.com>
21167 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
21168 (add_thread): Minor cleanups.
21169 (clear_inferiors): Move lower in the file. Clear the DLL
21171 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
21172 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
21173 (xml_escape_text): New.
21174 * server.c (handle_query): Handle qXfer:libraries:read. Report it
21176 (handle_v_cont): Report errors.
21177 (gdbserver_version): Update.
21178 (main): Correct size of own_buf. Do not report initial DLL events.
21179 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
21180 (unloaded_dll, xml_escape_text): New.
21181 * win32-low.c (enum target_waitkind): Update comments.
21182 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
21183 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
21184 (win32_EnumProcessModules, win32_GetModuleInformation)
21185 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
21186 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
21187 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
21188 (win32_Module32First, win32_Module32Next, load_toolhelp)
21189 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
21190 (get_child_debug_event): Handle DLL events.
21191 (win32_wait): Likewise.
21193 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21195 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
21196 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
21198 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21200 * win32-low.c (handle_output_debug_string): Ignore event if not
21203 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21205 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
21207 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
21209 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
21211 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
21213 * inferiors.c (change_inferior_id): Add comment.
21214 * linux-low.c (check_removed_breakpoint): Add an early
21215 prototype. Improve debug output.
21216 (linux_attach): Doc update.
21217 (linux_detach_one_process, linux_detach): Clean up before releasing
21219 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
21220 * linux-low.h (struct process_info): Doc improvement.
21221 * mem-break.c (delete_all_breakpoints): New.
21222 * mem-break.h (delete_all_breakpoints): New prototype.
21223 * thread-db.c (find_first_thread): New.
21224 (thread_db_create_event): Call it instead of
21225 thread_db_find_new_threads. Clean up unused variables.
21226 (maybe_attach_thread): Remove first thread handling.
21227 (thread_db_find_new_threads): Use find_first_thread.
21228 (thread_db_get_tls_address): Likewise.
21230 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
21232 * thread-db.c (thread_db_find_new_threads): Add prototype.
21233 (thread_db_create_event): Check for the main thread before adding
21235 (maybe_attach_thread): Only enable event reporting if TID == 0.
21236 (thread_db_get_tls_address): Check for new threads.
21238 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
21240 * linux-low.c (linux_create_inferior): Try execv before execvp.
21241 * spu-low.c (spu_create_inferior): Likewise.
21243 2007-06-13 Mike Frysinger <vapier@gentoo.org>
21245 * linux-low.c (linux_create_inferior): Change execv to execvp.
21246 * spu-low.c (spu_create_inferior): Likewies.
21248 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
21250 * Makefile.in (clean): Clean new files instead of deleted ones.
21251 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
21252 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
21254 * configure.srv: Specify XML files and new regformats for MIPS and
21256 * linux-mips-low.c (mips_num_regs): Set to only used registers.
21257 (mips_regmap): Do not fetch $0. Remove unused registers. Add
21258 an entry for the restart register.
21259 (mips_cannot_fetch_register, mips_cannot_store_register)
21260 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
21261 register names to match the XML descriptions.
21262 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
21263 restart register instead of $0.
21265 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21266 Markus Deuling <deuling@de.ibm.com>
21268 * remote-utils.c (decode_xfer_write): New function.
21269 * server.h (decode_xfer_write): Add prototype.
21270 * server.c (handle_query): Add PACKET_LEN argument. Support
21271 qXfer:spu:read and qXfer:spu:write packets.
21272 (main): Pass packet_len to handle_query.
21273 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
21274 * target.h (target_ops): Add qxfer_spu.
21276 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21278 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
21279 accessing non-seekable spufs files.
21281 2007-05-16 Markus Deuling <deuling@de.ibm.com>
21283 * server.c (handle_query): Add reply for qC packet.
21285 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21286 Leo Zayas <lerele@champenstudios@com>
21288 * server.h (check_remote_input_interrupt_request): New function.
21289 * remote_utils.c (INVALID_DESCRIPTOR): New define.
21290 (remote_desc): Initialize with INVALID_DESCRIPTOR.
21291 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
21292 (check_remote_input_interrupt_request): New function.
21293 * server.h (check_remote_input_interrupt_request): Declare.
21294 * win32-low.c (winapi_DebugBreakProcess,
21295 winapi_GenerateConsoleCtrlEvent): New typedefs.
21296 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
21298 (win32_wait): Check for remote interrupt request
21299 with check_remote_input_interrupt_request.
21300 (win32_request_interrupt): New function.
21301 (win32_target_op): Set request_interrupt to win32_request_interrupt.
21303 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21305 * win32-low.c (debug_registers_changed,
21306 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
21307 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
21308 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
21309 (thread_rec): Get context using the low target.
21310 (child_add_thread): Call thread_added on the low target,
21311 which does the same thing.
21313 (do_initial_child_stuff): Remove debug registers references.
21314 Set context using the low target. Resume threads after
21315 setting the contexts.
21316 (child_continue): Remove dead variable. Remove debug
21317 registers references.
21318 (child_fetch_inferior_registers): Go through the low target.
21319 (do_child_store_inferior_registers): Remove.
21320 (child_store_inferior_registers): Go through the low target.
21321 (win32_resume): Remove debug registers references.
21322 Set context using the low target.
21323 (handle_exception): Change return type to void. Don't record
21324 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
21325 first chance exception.
21326 (get_child_debug_event): Change return type to void. Remove
21327 goto loop. Always return after waiting for debug event.
21328 (win32_wait): Convert to switch statement. Handle spurious
21331 * win32-i386-low.c (debug_registers_changed,
21332 debug_registers_used): New.
21333 (initial_stuff): Rename to ...
21334 (i386_initial_stuff): ... this. Clear debug registers
21336 (store_debug_registers): Delete.
21337 (i386_get_thread_context): New.
21338 (load_debug_registers): Delete.
21339 (i386_set_thread_context): New.
21340 (i386_thread_added): New.
21341 (single_step): Rename to ...
21342 (i386_single_step): ... this.
21343 (do_fetch_inferior_registers): Rename to ...
21344 (i386_fetch_inferior_register): ... this.
21345 (i386_store_inferior_register): New.
21346 (the_low_target): Adapt to new interface.
21348 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
21349 (arm_get_thread_context): New.
21350 (arm_set_thread_context): New.
21352 (do_fetch_inferior_registers): Rename to ...
21353 (arm_fetch_inferior_register): ... this.
21354 (arm_store_inferior_register): New.
21355 (arm_wince_breakpoint): Reimplement as unsigned long.
21356 (arm_wince_breakpoint_len): Define.
21357 (the_low_target): Adapt to new interface.
21359 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
21360 load_debug_registers. Add get_thread_context, set_thread_context,
21361 thread_added and store_inferior_register. Rename
21362 fetch_inferior_registers to fetch_inferior_register.
21363 (regptr): Remove declaration.
21365 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21367 * linux-low.c (linux_detach): Change return type to int. Return 0.
21368 * spu-low.c (spu_detach): Likewise.
21370 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21372 * target.h (target_ops): Change return type of detach to int.
21374 (join_inferior): New.
21375 * server.c (main): Don't skip detach support on mingw32.
21376 If the inferior doesn't support detaching return error.
21377 Call join_inferior instead of using waitpid.
21378 * linux-low.c (linux_join): New.
21379 (linux_target_op): Add linux_join.
21380 * spu-low.c (spu_join): New.
21381 (spu_target_ops): Add spu_join.
21382 * win32-low.c (win32_detach): Adapt to new interface.
21383 Reopen current_process_handle before detaching. Issue a child
21384 resume before detaching.
21386 (win32_target_op): Add win32_join.
21388 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21390 * win32-low.c (win32-attach): Fix return value.
21391 * target.h (target_ops): Describe ATTACH return values.
21393 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21395 * win32-low.c (GETPROCADDRESS): Define.
21396 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
21397 (winapi_DebugSetProcessKillOnExit): Likewise.
21398 (win32_create_inferior): Force usage of ansi CreateProcessA.
21399 (win32_attach): Use GETPROCADDRESS.
21400 (win32_detach): Likewise.
21402 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21404 * win32-low.c (win32_wait): Don't use WSTOPSIG.
21406 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
21408 * win32-low.c: Commit leftover changes from 2007-03-29.
21410 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21412 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
21413 fields short instead of int. Add explicit padding.
21414 (i387_cache_to_fsave): Remove unnecessary casts.
21415 (i387_fsave_to_cache): Doc fix.
21416 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
21418 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21420 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
21421 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
21423 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21425 * configure.srv (arm*-*-mingw32ce*): Move near the other
21428 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21430 * configure.ac: Add errno checking.
21431 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
21432 sys/file.h and malloc.h.
21433 (AC_CHECK_DECLS): Add perror.
21434 (srv_mingwce): Handle.
21435 * configure.srv (i[34567]86-*-cygwin*): Add
21436 win32-i386-low.o to srv_tgtobj.
21437 (i[34567]86-*-mingw*): Likewise.
21438 (arm*-*-mingw32ce*): Add case.
21439 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21440 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
21441 [__MINGW32CE__] (strerror): New function.
21442 [__MINGW32CE__] (errno): Define to GetLastError.
21443 [__MINGW32CE__] (COUNTOF): New macro.
21444 (remote_open): Remove extra close call.
21445 * mem-break.c (delete_breakpoint_at): New function.
21446 * mem-break.h (delete_breakpoint_at): Declare.
21447 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21448 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
21449 [USE_WIN32API] (read, write): Add char* casts.
21450 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
21451 * server.h: Include wincecompat.h on Windows CE.
21452 [HAVE_ERRNO_H]: Check.
21453 (perror): Declare if not declared.
21454 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
21455 (perror_with_name): Remove errno declaration.
21456 * wincecompat.h: New.
21457 * wincecompat.c: New.
21458 * win32-low.h: New.
21459 * win32-arm-low.c: New.
21460 * win32-i386-low.c: New.
21461 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
21462 (OUTMSG2): Make it safe.
21464 (COUNTOF): New macro.
21465 (NUM_REGS): Get it from the low target.
21466 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
21467 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
21468 (thread_rec): Let low target handle debug registers.
21469 (child_add_thread): Likewise.
21470 (child_init_thread_list): Likewise.
21471 (continue_one_thread): Likewise.
21473 (do_child_fetch_inferior_registers): Move to ...
21474 * win32-i386-low.c: ... here, and rename to ...
21475 (do_fetch_inferior_registers): ... this.
21476 * win32-low.c (child_fetch_inferior_registers):
21477 Go through the low target.
21478 (do_child_store_inferior_registers): Use regptr.
21479 (strwinerror): New function.
21480 (win32_create_inferior): Handle Windows CE.
21481 Use strwinerror instead of strerror on Windows error
21482 codes. Add program to the error output.
21483 Don't close the main thread handle on Windows CE.
21484 (win32_attach): Use coredll.dll on Windows CE.
21485 (win32_kill): Close current process and current
21487 (win32_detach): Use coredll.dll on Windows CE.
21488 (win32_resume): Let low target handle debug registers, and
21490 (handle_exception): Add/Remove initial breakpoint. Avoid
21491 non-existant WSTOPSIG on Windows CE.
21492 (win32_read_inferior_memory): Cast to remove warning.
21493 (win32_arch_string): Go through the low target.
21494 (initialize_low): Call set_breakpoint_data with the low
21495 target's breakpoint.
21496 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21497 FOP_REGNUM, mappings): Move to ...
21498 * win32-i386-low.c: ... here.
21499 * win32-low.c (win32_thread_info): Move to ...
21500 * win32-low.h: ... here.
21501 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21502 win32-arm-low.c and wincecompat.c.
21503 (all:): Add $EXEEXT.
21504 (install-only:): Likewise.
21505 (gdbserver:): Likewise.
21506 (gdbreplay:): Likewise.
21507 * config.in: Regenerate.
21508 * configure: Regenerate.
21510 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21512 * win32-low.c: Rename typedef thread_info to
21513 win32_thread_info throughout.
21515 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21517 * win32-i386-low.c: Rename to ...
21518 * win32-low.c: ... this.
21519 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21520 * Makefile.in: Likewise.
21522 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21524 * remote-utils.c (monitor_output): Constify msg parameter.
21525 * server.h (monitor_output): Likewise.
21526 * win32-i386-low.c (handle_output_debug_string): New.
21527 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21528 handle_output_debug_string.
21529 (get_child_debug_event): Likewise.
21531 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21533 * server.c (main): Correct strtoul check.
21535 2007-03-27 Jon Ringle <jon@ringle.org>
21537 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21539 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21541 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21543 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21545 * terminal.h: Check HAVE_SGTTY_H.
21547 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
21549 * remote-utils.c (remote_open): Print out the assigned port number.
21551 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21553 * remote-utils.c (monitor_output): New function.
21554 * server.c (debug_threads): Define here.
21555 (monitor_show_help): New function.
21556 (handle_query): Handle qRcmd.
21557 (main): Do not handle 'd' packet.
21558 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21559 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21562 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21564 * Makefile.in (EXEEXT): New.
21565 (clean): Use $(EXEEXT).
21567 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21569 * target.h (target_ops): Rename send_signal to request_interrupt,
21570 and remove enum target_signal parameter.
21571 * linux-low.c (linux_request_interrupt): Rename from
21572 linux_send_signal, and always send SIGINT.
21573 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21574 and always send SIGINT.
21575 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21577 (input_interrupt): Likewise.
21579 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21581 * server.c (get_features_xml): Check if target implemented
21583 * win32-i386-low.c (win32_arch_string): New.
21584 (win32_target_ops): Add win32_arch_string as arch_string member.
21586 2007-02-22 Markus Deuling <deuling@de.ibm.com>
21588 * spu-low.c (spu_arch_string): New.
21589 (spu_target_ops): Add spu_arch_string.
21591 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21593 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21594 * configure.ac: Do not check for terminal.h.
21595 * configure, config.in: Regenerated.
21597 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21599 * Makefile.in (OBS): Add $(XML_BUILTIN).
21600 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21602 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21603 (arm-with-iwmmxt.c): New.
21604 * config.in, configure: Regenerate.
21605 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21606 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21607 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21608 (arm*-*-linux*): Add iWMMXt and regset support.
21609 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21610 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21611 (arm_store_wmmxregset, target_regsets): New.
21612 * server.c (get_features_xml): Take annex argument. Check builtin
21614 (handle_query): Handle multiple annexes.
21616 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21618 * remote-utils.c [USE_WIN32API] (read, write): Define.
21619 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21622 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21624 * linux-i386-low.c (the_low_target): Set arch_string.
21625 * linux-x86-64-low.c (the_low_target): Likewise.
21626 * linux-low.c (linux_arch_string): New.
21627 (linux_target_ops): Add it.
21628 * linux-low.h (struct linux_target_ops): Add arch_string.
21629 * server.c (write_qxfer_response): Use const void * for DATA.
21630 (get_features_xml): New.
21631 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21632 * target.h (struct target_ops): Add arch_string method.
21634 2007-01-03 Denis Pilat <denis.pilat@st.com>
21635 Daniel Jacobowitz <dan@codesourcery.com>
21637 * linux-low.c (linux_kill): Handle being called with no threads.
21638 * win32-i386-low.c (win32_kill): Likewise.
21639 (get_child_debug_event): Clear current_process_handle.
21641 2006-12-30 Denis PILAT <denis.pilat@st.com>
21642 Daniel Jacobowitz <dan@codesourcery.com>
21644 * remote-utils.c (remote_open): Check the type of specified
21645 serial port devices before opening them.
21646 * server.c (main): Kill the inferior if an error occurs during
21647 the first remote_open.
21649 2006-12-05 Markus Deuling <deuling@de.ibm.com>
21651 * README: Update supported targets.
21653 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21655 * Makefile.in (clean): Remove reg-mips64.c.
21656 (reg-mips64.c, reg-mips64.o): New rules.
21657 * configure.srv: Handle mips64. Include regset support for mips.
21658 * linux-mips-low.c (union mips_register): New.
21659 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21660 (mips_breakpoint, mips_breakpoint_at): Use int.
21661 (mips_collect_register, mips_supply_register)
21662 (mips_collect_register_32bit, mips_supply_register_32bit)
21663 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21664 (mips_store_fpregset, target_regsets): New.
21665 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21667 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21669 * configure.srv: Add target "spu*-*-*".
21670 * Makefile.in (clean): Remove reg-spu.c.
21671 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21672 * spu-low.c: New file.
21674 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21676 * configure.ac: Correct td_thr_tls_get_addr test.
21677 * configure: Regenerated.
21679 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21681 * linux-low.c (linux_wait_for_event): Reformat. Use the
21682 pass_signals array.
21683 * remote-utils.c (decode_address_to_semicolon): New.
21684 * server.c (pass_signals, handle_general_set): New.
21685 (handle_query): Mention QPassSignals for qSupported.
21686 (main): Call handle_general_set.
21687 * server.h (pass_signals, decode_address_to_semicolon): New.
21689 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21691 * server.c (handle_query): Correct error handling for read_auxv.
21693 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21695 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21696 and srv_linux_thread_db to yes.
21697 * linux-s390-low.c (s390_fill_gregset): New function.
21698 (target_regsets): Define data structure.
21700 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21702 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21703 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21704 * config.in, configure: Regenerated.
21705 * inferiors.c (gdb_id_to_thread): New function.
21706 (gdb_id_to_thread_id): Use it.
21707 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21708 * linux-low.h (struct process_info): Add th member.
21709 (thread_db_get_tls_address): New prototype.
21710 * remote-utils.c (decode_address): Make non-static.
21711 * server.c (handle_query): Handle qGetTLSAddr.
21712 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21713 * target.h (struct target_ops): Add get_tls_address.
21714 * thread-db.c (maybe_attach_thread): Save the thread handle.
21715 (thread_db_get_tls_address): New.
21717 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21719 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21720 (linux_resume_one_process): Take a siginfo_t *. Update all
21721 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21722 (struct pending_signals): Add a siginfo_t.
21723 (linux_wait_for_process): Always set last_status.
21724 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21725 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21726 * linux-low.h (struct process_info): Add last_status.
21728 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21730 * remote-utils.c (try_rle): New function.
21731 (putpkt_binary): Use it.
21733 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21735 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21736 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21737 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21738 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21739 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21742 2006-08-08 Richard Sandiford <richard@codesourcery.com>
21744 * server.c (terminal_fd): New variable.
21745 (old_foreground_pgrp): Likewise.
21746 (restore_old_foreground_pgrp): New function.
21747 (start_inferior): Record the terminal file descriptor in terminal_fd
21748 and its original foreground group in old_foreground_pgrp. Register
21749 restore_old_foreground_pgrp with atexit().
21751 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21753 * server.c (handle_query): Correct qPart to qXfer.
21755 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21757 * configure.ac: Check for more headers which are missing on
21758 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21759 * configure.srv: Add Cygwin and mingw32.
21760 * remote-utils.c: Don't include headers unconditionally which
21761 are missing on mingw32. Include <winsock.h> for mingw32.
21762 (remote_open): Adjust for mingw32 support. Flush
21763 standard error after writing to it.
21764 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21765 (unblock_async_io, enable_async_io, disable_async_io)
21766 (readchar, getpkt): Update for Winsock support.
21767 (prepare_resume_reply): Expect a protocol signal number.
21768 * server.c: Disable <sys/wait.h> on mingw32.
21769 (start_inferior): Adjust for mingw32 support. Flush
21770 standard error after writing to it.
21771 (attach_inferior): Likewise. Use protocol signal
21773 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21775 * win32-i386-low.c: New file.
21776 * Makefile.in (XM_CLIBS): Set.
21777 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21778 (win32-i386-low.o): New dependency rule.
21779 * linux-low.c (linux_wait): Use target signal numbers.
21780 * target.h (struct target_ops): Doc fix.
21781 * server.h (target_signal_to_name): New prototype.
21782 * gdbreplay.c: Don't include headers unconditionally which
21783 are missing on mingw32. Include <winsock.h> for mingw32.
21784 (remote_close, remote_open): Adjust for Winsock support.
21785 * configure, config.in: Regenerated.
21787 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21789 * server.c (decode_xfer_read, write_qxfer_response): New.
21790 (handle_query): Take a packet length argument. Handle
21791 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21792 the qSupported response.
21793 (main): Update call to handle_query.
21795 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21797 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21798 (putpkt_binary): Renamed from putpkt and adjusted for binary
21800 (putpkt): New wrapper for putpkt_binary.
21801 (readchar): Don't mask off the high bit.
21802 (decode_X_packet): New function.
21803 * server.c (main): Call putpkt_binary if a handler sets the packet
21804 length. Save the length of the incoming packet. Handle 'X'.
21805 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21807 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21809 * server.c (handle_query): Handle qSupported.
21811 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21813 * remote-utils.c (all_symbols_looked_up): New variable.
21814 (look_up_one_symbol): Check it.
21815 * server.h (look_up_one_symbol): New declaration.
21816 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21818 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21820 * Makefile.in (linux-arm-low.o): Update dependencies.
21821 * linux-arm-low.c: Include "gdb_proc_service.h".
21822 (PTRACE_GET_THREAD_AREA): Define.
21823 (ps_get_thread_area): New function.
21825 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21827 * configure.srv (m68k*-*-uclinux*): New target.
21828 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21829 (linux_resume_one_process): Remove extraneous cast.
21830 (linux_read_offsets): New.
21831 (linux_target_op): Add linux_read_offsets on mmuless systems.
21832 * server.c (handle_query): Add qOffsets logic.
21833 * target.h (struct target_ops): Add read_offsets.
21835 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21837 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21838 (PTRACE_GET_THREAD_AREA): Define.
21839 (ps_get_thread_area): New function.
21840 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21841 (linux-x86-64-low.o): Update.
21843 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21845 * configure.ac: Remove checks for prfpregset_t.
21846 * gdb_proc_service.h: New file.
21847 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21848 new "gdb_proc_service.h".
21849 * proc-service.c: Likewise.
21850 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21851 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21852 * Makefile.in (gdb_proc_service_h): Updated.
21853 * configure, config.in: Regenerated.
21855 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21857 * remote-utils.c (prepare_resume_reply): Move declaration
21858 of gdb_id_from_wait to the top of the block.
21860 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21862 * linux-low.c (regsets_store_inferior_registers): Read the regset
21863 from the target before filling it.
21865 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21867 * server.c (attach_inferior): Return SIGTRAP for a successful
21870 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21872 * Makefile.in (OBS): Add version.o.
21873 (STAGESTUFF): Delete.
21874 (version.o): Add dependencies.
21875 (version.c): Replace rule.
21876 (clean): Remove version.c.
21877 * server.c (gdbserver_version): New.
21878 (gdbserver_usage): Use printf.
21879 (main): Handle --version and --help.
21880 * server.h (version, host_name): Add declarations.
21882 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21894 * linux-x86-64-low.c:
21896 * linux-s390-low.c:
21897 * linux-ppc64-low.c:
21899 * linux-mips-low.c:
21900 * linux-m68k-low.c:
21901 * linux-m32r-low.c:
21904 * linux-ia64-low.c:
21905 * linux-i386-low.c:
21906 * linux-crisv32-low.c:
21918 * gdbserver.1: Add (C) after Copyright. Update the FSF
21921 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21923 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21924 (arm_breakpoint_at): Recognize both breakpoints.
21925 (the_low_target): Use the correct breakpoint instruction.
21927 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21929 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21930 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21931 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21932 (the_low_target): Update.
21934 2005-10-25 Andreas Schwab <schwab@suse.de>
21936 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21938 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21939 (ia64_num_regs): Reduce to 462.
21941 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21943 * acinclude.m4: Correct quoting.
21944 * aclocal.m4: Regenerated.
21946 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21947 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21948 (thread_db_init): Call thread_db_err_str.
21949 * configure.ac: Check for TD_VERSION.
21950 * config.in, configure: Regenerated.
21952 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21954 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21956 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21958 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21959 is not available. Define HAVE_PTRACE_GETREGS if it is.
21960 * config.in, configure: Regenerated.
21961 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21962 * linux-i386-low.c, linux-m68k-low.c: Update to use
21963 HAVE_PTRACE_GETREGS.
21964 * linux-low.c (regsets_fetch_inferior_registers)
21965 (regsets_store_inferior_registers): Only return 0 if we processed
21967 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21968 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21970 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21972 * inferiors.c (struct thread_info): Add gdb_id.
21973 (add_thread): Add gdb_id argument.
21974 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21975 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21976 calls to add_thread.
21977 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21978 * server.c (handle_query): Use thread_to_gdb_id.
21979 (handle_v_cont, main): Use gdb_id_to_thread_id.
21980 * server.h (add_thread): Update prototype.
21981 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21984 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21986 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21987 left-padded registers.
21988 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21989 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21991 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21993 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21994 * configure: Regenerate.
21995 * config.in: Regenerate.
21996 * server.h (NEED_DECLARATION_STRERROR):
21997 Replace with !HAVE_DECL_STRERROR.
21999 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
22001 * linux-low.c (linux_wait, linux_send_signal): Don't test
22002 an unsigned long variable for > 0 if it could be MAX_ULONG.
22003 * server.c (myresume): Likewise.
22004 * target.c (set_desired_inferior): Likewise.
22006 2005-06-13 Mark Kettenis <kettenis@gnu.org>
22008 * configure.ac: Simplify and improve check for socklen_t.
22009 * configure, config.in: Regenerate.
22011 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
22013 * acconfig.h: Remove.
22014 * configure.ac: Add a test for socklen_t. Use three-argument
22015 AC_DEFINE throughout.
22016 * config.in: Regenerated using autoheader 2.59.
22017 * configure: Regenerated.
22019 * gdbreplay.c (socklen_t): Provide a default.
22020 (remote_open): Use socklen_t.
22021 * remote-utils.c (socklen_t): Provide a default.
22022 (remote_open): Use socklen_t.
22023 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
22026 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
22028 * linux-low.c (linux_read_memory, linux_write_memory)
22029 (linux_read_auxv): Likewise.
22030 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
22031 (check_mem_write): Likewise.
22032 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
22034 * regcache.c (struct inferior_rgcache_data, registers_to_string)
22035 (registers_from_string, register_data): Likewise.
22036 * server.c (handle_query, main): Likewise.
22037 * server.h (convert_ascii_to_int, convert_int_to_ascii)
22038 (decode_M_packet): Likewise.
22039 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
22040 * target.h (struct target_ops): Update read_memory, write_memory,
22042 (read_inferior_memory, write_inferior_memory): Update.
22043 * linux-low.h (struct linux_target_ops): Change type of breakpoint
22044 to unsigned char *.
22045 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
22046 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
22047 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
22048 linux-s390-low.c, linux-sh-low.c: Update for changes in
22049 read_inferior_memory and the_low_target->breakpoint.
22051 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
22053 * Makefile.in (SFILES): Add linux-ppc64-low.c.
22054 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
22055 * configure.srv: Add powerpc64-*-linux*.
22056 * linux-ppc64-low.c: New file.
22058 2005-05-23 Orjan Friberg <orjanf@axis.com>
22060 * linux-cris-low.c: New file with support for CRIS.
22061 * linux-crisv32-low.c: Ditto for CRISv32.
22062 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
22063 (clean): Add reg-cris.c and reg-crisv32.c.
22064 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
22065 reg-crisv32.o, and reg-crisv32.c to make rules.
22066 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
22067 recognized targets.
22069 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
22071 * linux-low.c (fetch_register): Ensure buffer size is a multiple
22072 of sizeof (PTRACE_XFER_TYPE).
22073 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
22075 2005-05-12 Orjan Friberg <orjanf@axis.com>
22077 * target.h (struct target_ops): Add insert_watchpoint,
22078 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
22079 pointers for hardware watchpoint support.
22080 * linux-low.h (struct linux_target_ops): Ditto.
22081 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
22082 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
22083 to linux_target_ops.
22084 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
22086 * server.c (main): Recognize 'Z' and 'z' packets.
22088 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
22090 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
22091 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
22092 (the_low_target): Add new members.
22094 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
22096 * proc-service.c (ps_lgetregs): Search all_processes instead of
22099 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
22101 * server.c (start_inferior): Change return type to int.
22102 (attach_inferior): Change sigptr to int *.
22103 (handle_v_cont, handle_v_requests): Change signal to int *.
22104 (main): Change signal to int.
22106 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
22108 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
22109 * configure.srv: Add m32r*-*-linux*.
22110 * linux-m32r-low.c: New file.
22112 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
22114 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
22116 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
22118 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
22119 Take unsigned long arguments for PIDs.
22120 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
22121 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
22122 (wait_for_sigstop, linux_resume_one_process)
22123 (regsets_fetch_inferior_registers, linux_send_signal)
22124 (linux_read_auxv): Likewise. Update the types of variables holding
22125 PIDs. Update format string specifiers.
22126 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
22127 * remote-utils.c (prepare_resume_reply): Likewise.
22128 * server.c (cont_thread, general_thread, step_thread)
22129 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
22131 (handle_query): Update format specifiers.
22132 (handle_v_cont, main): Use strtoul for thread IDs.
22133 * server.h (struct inferior_list_entry): Use unsigned long for ID.
22134 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
22135 (general_thread, step_thread, thread_from_wait)
22136 (old_thread_from_wait): Update.
22137 * target.h (struct thread_resume): Use unsigned long for THREAD.
22138 (struct target_ops): Use unsigned long for arguments to attach and
22141 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
22143 * acinclude.m4: Include bfd/bfd.m4 directly.
22144 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
22145 <agriffis@toolchain.org>.
22146 * aclocal.m4, configure: Regenerated.
22148 2005-01-07 Andrew Cagney <cagney@gnu.org>
22150 * configure.ac: Rename configure.in, require autoconf 2.59.
22151 * configure: Re-generate.
22153 2004-12-08 Daniel Jacobowitz <dan@debian.org>
22155 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
22156 LIBS when finished.
22157 * aclocal.m4: Regenerated.
22158 * configure: Regenerated.
22160 2004-11-21 Andreas Schwab <schwab@suse.de>
22162 * linux-m68k-low.c (m68k_num_gregs): Define.
22163 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
22164 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
22165 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
22166 (m68k_breakpoint_at): New. Add to the_low_target.
22168 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
22169 srv_linux_thread_db to yes.
22171 2004-10-20 Joel Brobecker <brobecker@gnat.com>
22173 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
22174 (ARCH_SET_FS): Likewise.
22175 (ARCH_GET_FS): Likewise.
22176 (ARCH_GET_GS): Likewise.
22178 2004-10-16 Daniel Jacobowitz <dan@debian.org>
22180 * linux-i386-low.c (ps_get_thread_area): New.
22181 * linux-x86-64-low.c (ps_get_thread_area): New.
22182 * linux-low.c: Include <sys/syscall.h>.
22183 (linux_kill_one_process): Don't kill the first thread here.
22184 (linux_kill): Kill the first thread here.
22185 (kill_lwp): New function.
22186 (send_sigstop, linux_send_signal): Use it.
22187 * proc-service.c: Clean up #ifdefs.
22188 (fpregset_info): Delete.
22189 (ps_lgetregs): Update and enable implementation.
22190 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
22192 * remote-utils.c (struct sym_cache, symbol_cache): New.
22193 (input_interrupt): Print a clearer message.
22194 (async_io_enabled): New variable.
22195 (enable_async_io, disable_async_io): Use it. Update comments.
22196 (look_up_one_symbol): Use the symbol cache.
22197 * thread-db.c (thread_db_look_up_symbols): New function.
22198 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
22200 2004-10-16 Daniel Jacobowitz <dan@debian.org>
22202 * configure.in: Test for -rdynamic.
22203 * configure: Regenerated.
22204 * Makefile (INTERNAL_LDFLAGS): New.
22205 (gdbserver, gdbreplay): Use it.
22207 2004-09-02 Andrew Cagney <cagney@gnu.org>
22209 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
22211 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
22213 * linux-low.c (linux_wait): Clear all_processes list also.
22215 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
22217 * linux-low.c: Include <errno.h>. Remove extern declaration of
22220 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
22222 * gdbreplay.c, server.h, utils.c: Update copyright years.
22224 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22226 * server.c (main): Print child status or termination signal from
22227 variable 'signal', not 'sig'.
22229 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22231 * linux-low.c (linux_read_memory): Change return type to
22232 int. Check for and return error from ptrace().
22233 * target.c (read_inferior_memory): Change return type to int. Pass
22234 back return status from the_target->read_memory().
22235 * target.h (struct target_ops): Adapt *read_memory() prototype.
22237 (read_inferior_memory): Adapt prototype.
22238 * server.c (main): Return an error packet if
22239 read_inferior_memory() returns an error.
22241 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
22243 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
22244 Unify with other clean targets.
22246 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22248 * server.c (handle_v_cont): Call set_desired_inferior.
22250 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22252 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
22254 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22256 * linux-low.c (linux_wait): Unblock async I/O.
22257 (linux_resume): Block and enable async I/O.
22258 * remote-utils.c (block_async_io, unblock_async_io): New functions.
22259 * server.h (block_async_io, unblock_async_io): Add prototypes.
22261 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22263 * remote-utils.c (remote_open): Print a status notice after
22264 opening a TCP port.
22265 * server.c (attach_inferior): Print a status notice after
22268 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22270 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
22272 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
22274 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
22276 * server.c, target.h: Update copyright years.
22278 2004-02-25 Roland McGrath <roland@redhat.com>
22280 * target.h (struct target_ops): New member `read_auxv'.
22281 * server.c (handle_query): Handle qPart:auxv:read: query using that.
22282 * linux-low.c (linux_read_auxv): New function.
22283 (linux_target_ops): Initialize `read_auxv' member to that.
22285 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22287 Committed by Jim Blandy <jimb@redhat.com>.
22289 * linux-s390-low.c (s390_num_regs): Update.
22290 (s390_regmap): Remove control registers. Use __s390x__ predefine
22291 instead of GPR_SIZE to distiguish s390 and s390x targets.
22293 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
22295 * linux-low.c: Update copyright year.
22296 (check_removed_breakpoint): Clear pending_is_breakpoint.
22297 (linux_set_resume_request, linux_queue_one_thread)
22298 (resume_status_pending_p): New functions.
22299 (linux_continue_one_thread): Use process->resume.
22300 (linux_resume): Only resume threads if there are no pending events.
22301 * linux-low.h (struct process_info): Add resume request
22304 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
22306 * regcache.c (new_register_cache): Clear the allocated register
22307 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
22309 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
22311 * linux-low.c (linux_resume): Take a struct thread_resume *
22313 (linux_wait): Update call.
22314 (resume_ptr): New static variable.
22315 (linux_continue_one_thread): Renamed from
22316 linux_continue_one_process. Use resume_ptr.
22317 (linux_resume): Use linux_continue_one_thread.
22318 * server.c (handle_v_cont, handle_v_requests): New functions.
22319 (myresume): New function.
22320 (main): Handle 'v' case.
22321 * target.h (struct thread_resume): New type.
22322 (struct target_ops): Change argument of "resume" to struct
22324 (myresume): Delete macro.
22326 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
22328 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
22329 (uninstall): Support DESTDIR.
22331 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
22333 * configure.srv: Add xscale*linux copy of arm*linux entry.
22335 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
22337 * linux-arm-low.c (arm_reinsert_addr): New function.
22338 (the_low_target): Add arm_reinsert_addr.
22340 2003-07-08 Mark Kettenis <kettenis@gnu.org>
22342 * mem-break.c: Remove whitespace at end of file.
22344 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
22346 * configure.in: Check whether we need to prototype strerror.
22347 * server.h: Optionally prototype strerror.
22348 * gdbreplay.c (perror_with_name): Use strerror.
22349 * linux-low.c (linux_attach_lwp): Use strerror.
22350 * utils.c (perror_with_name): Use strerror.
22351 * config.in, configure: Regenerated.
22353 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
22355 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
22356 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
22358 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
22360 * Makefile.in (SFILES): Update.
22361 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
22362 low-sun3.c: Remove files.
22364 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
22366 * linux-low.c: Move comment to linux_thread_alive where it belonged.
22367 (linux_detach_one_process, linux_detach): New functions.
22368 (linux_target_ops): Add linux_detach.
22369 * server.c (main): Handle 'D' packet.
22370 * target.h (struct target_ops): Add "detach" member.
22371 (detach_inferior): Define.
22373 2003-06-13 Mark Kettenis <kettenis@gnu.org>
22375 From Kelley Cook <kelleycook@wideopenwest.com>:
22376 * configure.srv: Accept i[34567]86 variants.
22378 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
22380 * linux-low.c (linux_wait_for_event): Correct comment typos.
22381 (linux_resume_one_process): Call check_removed_breakpoint.
22382 (linux_send_signal): New function.
22383 (linux_target_ops): Add linux_send_signal.
22384 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
22386 * target.h (struct target_ops): Add send_signal.
22388 2003-05-29 Jim Blandy <jimb@redhat.com>
22390 * linux-low.c (usr_store_inferior_registers): Transfer buf in
22391 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
22392 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
22393 away part of the register's value.
22395 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
22397 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
22398 (linux_wait_for_event, linux_init_signals): Likewise.
22400 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
22402 * configure.in: Check for stdlib.h.
22403 * configure: Regenerated.
22404 * config.in: Regenerated.
22406 2003-01-04 Andreas Schwab <schwab@suse.de>
22408 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
22410 2003-01-02 Andrew Cagney <ac131313@redhat.com>
22412 * Makefile.in: Remove obsolete code.
22414 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
22416 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
22417 defined(PT_FPR0_HI).
22419 2002-11-17 Stuart Hughes <seh@zee2.com>
22421 * linux-arm-low.c (arm_num_regs): Increase.
22422 (arm_regmap): Include status register.
22424 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
22426 * linux-low.c (register_addr): Remove incorrect -1 check.
22428 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
22430 * linux-low.c (linux_create_inferior): Call setpgid. Return
22432 (unstopped_p, linux_signal_pid): Remove.
22433 (linux_target_ops): Remove linux_signal_pid.
22434 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
22435 global instead of target method.
22436 * target.h (struct target_ops): Remove signal_pid. Update comment
22437 for create_inferior.
22438 * server.c (signal_pid): New variable.
22439 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
22440 gdbserver. Set the child to be the foreground process group.
22441 (attach_inferior): Set signal_pid.
22443 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
22445 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
22447 2002-08-20 Jim Blandy <jimb@redhat.com>
22449 * Makefile.in (LDFLAGS): Allow the configure script to establish a
22452 2002-08-01 Andrew Cagney <cagney@redhat.com>
22454 * Makefile.in: Make chill references obsolete.
22456 2002-07-24 Kevin Buettner <kevinb@redhat.com>
22458 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
22459 * configure: Regenerate.
22460 * config.in: Regenerate.
22462 2002-07-09 David O'Brien <obrien@FreeBSD.org>
22464 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
22465 (perror_with_name, remote_close, remote_open, expect, play): Static.
22467 2002-07-04 Michal Ludvig <mludvig@suse.cz>
22469 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
22470 byte offsets instead of an array of indexes.
22471 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
22473 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
22475 * regcache.c: Add comment.
22477 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
22479 * thread-db.c: New file.
22480 * proc-service.c: New file.
22481 * acinclude.m4: New file.
22482 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22483 proc-service.o, and thread-db.o.
22484 (linux-low.o): Add USE_THREAD_DB.
22485 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22486 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22487 * aclocal.m4: Regenerated.
22488 * config.in: Regenerated.
22489 * configure: Regenerated.
22490 * configure.in: Check for proc_service.h, sys/procfs.h,
22491 thread_db.h, and linux/elf.h headrs.
22492 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22493 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22494 Check for -lthread_db and thread support.
22495 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22496 PowerPC, and SuperH.
22497 * i387-fp.c: Constify arguments.
22498 * i387-fp.h: Likewise.
22499 * inferiors.c: (struct thread_info): Renamed from
22500 `struct inferior_info'. Remove PID member. Use generic inferior
22501 list header. All uses updated.
22502 (inferiors, signal_pid): Removed.
22503 (all_threads): New variable.
22504 (get_thread): Define.
22505 (add_inferior_to_list): New function.
22506 (for_each_inferior): New function.
22507 (change_inferior_id): New function.
22508 (add_inferior): Removed.
22509 (remove_inferior): New function.
22510 (add_thread): New function.
22511 (free_one_thread): New function.
22512 (remove_thread): New function.
22513 (clear_inferiors): Use for_each_inferior and free_one_thread.
22514 (find_inferior): New function.
22515 (find_inferior_id): New function.
22516 (inferior_target_data): Update argument type.
22517 (set_inferior_target_data): Likewise.
22518 (inferior_regcache_data): Likewise.
22519 (set_inferior_regcache_data): Likewise.
22520 * linux-low.c (linux_bp_reinsert): Remove.
22521 (all_processes, stopping_threads, using_thrads)
22522 (struct pending_signals, debug_threads, pid_of): New.
22523 (inferior_pid): Replace with macro.
22524 (struct inferior_linux_data): Remove.
22525 (get_stop_pc, add_process): New functions.
22526 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22527 Use add_process and add_thread.
22528 (linux_attach_lwp): New function, based on old linux_attach. Use
22529 add_process and add_thread. Set stop_expected for new threads.
22530 (linux_attach): New function.
22531 (linux_kill_one_process): New function.
22532 (linux_kill): Kill all LWPs.
22533 (linux_thread_alive): Use find_inferior_id.
22534 (check_removed_breakpoints, status_pending_p): New functions.
22535 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22536 Update. Use WNOHANG. Wait for cloned processes also. Update process
22537 struct for the found process.
22538 (linux_wait_for_event): New function.
22539 (linux_wait): Use it. Support LWPs.
22540 (send_sigstop, wait_for_sigstop, stop_all_processes)
22541 (linux_resume_one_process, linux_continue_one_process): New functions.
22542 (linux_resume): Support LWPs.
22543 (REGISTER_RAW_SIZE): Remove.
22544 (fetch_register): Use register_size instead. Call supply_register.
22545 (usr_store_inferior_registers): Likewise. Call collect_register.
22546 Fix recursive case.
22547 (regsets_fetch_inferior_registers): Improve error message.
22548 (regsets_store_inferior_registers): Add debugging.
22549 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22550 (unstopped_p, linux_signal_pid): New functions.
22551 (linux_target_ops): Add linux_signal_pid.
22552 (linux_init_signals): New function.
22553 (initialize_low): Call it. Initialize using_threads.
22554 * regcache.c (inferior_regcache_data): Add valid
22556 (get_regcache): Fetch registers lazily. Add fetch argument
22557 and update all callers.
22558 (regcache_invalidate_one, regcache_invalidate): New
22560 (new_register_cache): Renamed from create_register_cache.
22561 Return the new regcache.
22562 (free_register_cache): Change argument to a void *.
22563 (registers_to_string, registers_from_string): Call get_regcache
22564 with fetch flag set.
22565 (register_data): Make static. Pass fetch flag to get_regcache.
22566 (supply_register): Call get_regcache with fetch flag clear.
22567 (collect_register): Call get_regcache with fetch flag set.
22568 (collect_register_as_string): New function.
22569 * regcache.h: Update.
22570 * remote-utils.c (putpkt): Flush after debug output and use
22572 Handle input interrupts while waiting for an ACK.
22573 (input_interrupt): Use signal_pid method.
22574 (getpkt): Flush after debug output and use stderr.
22575 (outreg): Use collect_register_as_string.
22576 (new_thread_notify, dead_thread_notify): New functions.
22577 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22578 and general_thread.
22579 (look_up_one_symbol): Flush after debug output.
22580 * server.c (step_thread, server_waiting): New variables.
22581 (start_inferior): Don't use signal_pid. Update call to mywait.
22582 (attach_inferior): Update call to mywait.
22583 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22584 (main): Don't fetch/store registers explicitly. Use
22585 set_desired_inferior. Support proposed ``Hs'' packet. Update
22587 * server.h: Update.
22588 (struct inferior_list, struct_inferior_list_entry): New.
22589 * target.c (set_desired_inferior): New.
22590 (write_inferior_memory): Constify.
22591 (mywait): New function.
22592 * target.h: Update.
22593 (struct target_ops): New signal_pid method.
22594 (mywait): Removed macro, added prototype.
22596 * linux-low.h (regset_func): Removed.
22597 (regset_fill_func, regset_store_func): New.
22598 (enum regset_type): New.
22599 (struct regset_info): Add type field. Use new operation types.
22600 (struct linux_target_ops): stop_pc renamed to get_pc.
22601 Add decr_pc_after_break and breakpoint_at.
22602 (get_process, get_thread_proess, get_process_thread)
22603 (strut process_info, all_processes, linux_attach_lwp)
22604 (thread_db_init): New.
22606 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22607 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22608 (the_low_target): Add new members.
22609 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22610 (i386_store_fpxregset): Constify.
22611 (target_regsets): Add new kind identifier.
22612 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22613 (i386_set_pc): Add debugging.
22614 (i386_breakpoint_at): New function.
22615 (the_low_target): Add new members.
22616 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22617 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22618 (mips_breakpoint_at): New.
22619 (the_low_target): Add new members.
22620 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22621 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22622 (the_low_target): Add new members.
22623 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22624 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22625 (the_low_target): Add new members.
22626 * linux-x86-64-low.c (target_regsets): Add new kind
22629 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
22631 From Martin Pool <mbp@samba.org>:
22632 * server.c (gdbserver_usage): New function.
22635 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
22637 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22638 stop_at -> stop_pc.
22640 2002-05-04 Andrew Cagney <ac131313@redhat.com>
22642 * Makefile.in: Remove obsolete code.
22644 2002-04-24 Michal Ludvig <mludvig@suse.cz>
22646 * linux-low.c (regsets_fetch_inferior_registers),
22647 (regsets_store_inferior_registers): Removed cast to int from
22649 * regcache.h: Added declaration of struct inferior_info.
22651 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22653 * inferiors.c (struct inferior_info): Add regcache_data.
22654 (add_inferior): Call create_register_cache.
22655 (clear_inferiors): Call free_register_cache.
22656 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22657 * regcache.c (struct inferior_regcache_data): New.
22658 (registers): Remove.
22659 (get_regcache): New function.
22660 (create_register_cache, free_register_cache): New functions.
22661 (set_register_cache): Don't initialize the register cache here.
22662 (registers_to_string, registers_from_string, register_data): Call
22664 * regcache.h: Add prototypes.
22665 * server.h: Likewise.
22667 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22669 * mem-break.c: New file.
22670 * mem-break.h: New file.
22671 * Makefile.in: Add mem-break.o rule; update server.h
22673 * inferiors.c (struct inferior_info): Add target_data
22675 (clear_inferiors): Free target_data member if set.
22676 (inferior_target_data, set_inferior_target_data): New functions.
22677 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22678 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22679 * linux-low.c (linux_bp_reinsert): New variable.
22680 (struct inferior_linux_data): New.
22681 (linux_create_inferior): Use set_inferior_target_data.
22682 (linux_attach): Likewise. Call add_inferior.
22683 (linux_wait_for_one_inferior): New function.
22684 (linux_wait): Call it.
22685 (linux_write_memory): Add const.
22686 (initialize_low): Call set_breakpoint_data.
22687 * linux-low.h (struct linux_target_ops): Add breakpoint
22689 * server.c (attach_inferior): Remove extra add_inferior
22691 * server.h: Include mem-break.h. Update inferior.c
22693 * target.c (read_inferior_memory)
22694 (write_inferior_memory): New functions.
22695 * target.h (read_inferior_memory)
22696 (write_inferior_memory): Change macros to prototypes.
22697 (struct target_ops): Update comments. Add const to write_memory
22700 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
22702 * linux-low.c (usr_store_inferior_registers): Support
22703 registers which are allowed to fail to store.
22704 * linux-low.h (linux_target_ops): Likewise.
22705 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22706 (ppc_cannot_store_register): FPSCR may not be storable.
22708 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22710 * server.h: Include <string.h> if HAVE_STRING_H.
22711 * ChangeLog: Correct paths in last ChangeLog entry.
22713 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22715 * linux-low.h: Remove obsolete prototypes.
22716 (struct linux_target_ops): New.
22717 (extern the_low_target): New.
22718 * linux-low.c (num_regs, regmap): Remove declarations.
22719 (register_addr): Use the_low_target explicitly.
22720 (fetch_register): Likewise.
22721 (usr_fetch_inferior_registers): Likewise.
22722 (usr_store_inferior_registers): Likewise.
22723 * linux-arm-low.c (num_regs): Remove.
22724 (arm_num_regs): Define.
22725 (arm_regmap): Renamed from regmap, made static.
22726 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22728 (arm_cannot_store_register): Renamed from cannot_store_register,
22730 (the_low_target): New.
22731 * linux-i386-low.c (num_regs): Remove.
22732 (i386_num_regs): Define.
22733 (i386_regmap): Renamed from regmap, made static.
22734 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22736 (i386_cannot_store_register): Renamed from cannot_store_register,
22738 (the_low_target): New.
22739 * linux-ia64-low.c (num_regs): Remove.
22740 (ia64_num_regs): Define.
22741 (ia64_regmap): Renamed from regmap, made static.
22742 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22744 (ia64_cannot_store_register): Renamed from cannot_store_register,
22746 (the_low_target): New.
22747 * linux-m68k-low.c (num_regs): Remove.
22748 (m68k_num_regs): Define.
22749 (m68k_regmap): Renamed from regmap, made static.
22750 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22752 (m68k_cannot_store_register): Renamed from cannot_store_register,
22754 (the_low_target): New.
22755 * linux-mips-low.c (num_regs): Remove.
22756 (mips_num_regs): Define.
22757 (mips_regmap): Renamed from regmap, made static.
22758 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22760 (mips_cannot_store_register): Renamed from cannot_store_register,
22762 (the_low_target): New.
22763 * linux-ppc-low.c (num_regs): Remove.
22764 (ppc_num_regs): Define.
22765 (ppc_regmap): Renamed from regmap, made static.
22766 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22768 (ppc_cannot_store_register): Renamed from cannot_store_register,
22770 (the_low_target): New.
22771 * linux-s390-low.c (num_regs): Remove.
22772 (s390_num_regs): Define.
22773 (s390_regmap): Renamed from regmap, made static.
22774 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22776 (s390_cannot_store_register): Renamed from cannot_store_register,
22778 (the_low_target): New.
22779 * linux-sh-low.c (num_regs): Remove.
22780 (sh_num_regs): Define.
22781 (sh_regmap): Renamed from regmap, made static.
22782 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22784 (sh_cannot_store_register): Renamed from cannot_store_register,
22786 (the_low_target): New.
22787 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22788 (the_low_target): New.
22790 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22792 * Makefile.in: Add stamp-h target.
22793 * configure.in: Create stamp-h.
22794 * configure: Regenerated.
22796 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22798 * inferiors.c: New file.
22799 * target.c: New file.
22800 * target.h: New file.
22801 * Makefile.in: Add target.o and inferiors.o. Update
22803 * linux-low.c (inferior_pid): New static variable,
22804 moved from server.c.
22805 (linux_create_inferior): Renamed from create_inferior.
22806 Call add_inferior. Return 0 on success instead of a PID.
22807 (linux_attach): Renamed from myattach.
22808 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22809 (linux_thread_alive): Renamed from mythread_alive.
22810 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22812 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22813 (regsets_store_inferior_registers): Correct error message.
22814 Add missing ``return 0''.
22815 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22816 (linux_store_registers): Renamed from store_inferior_registers.
22817 (linux_read_memory): Renamed from read_inferior_memory.
22818 (linux_write_memory): Renamed from write_inferior_memory.
22819 (linux_target_ops): New structure.
22820 (initialize_low): Call set_target_ops ().
22821 * remote-utils.c (unhexify): New function.
22822 (hexify): New function.
22823 (input_interrupt): Send signals to ``signal_pid''.
22824 * server.c (inferior_pid): Remove.
22825 (start_inferior): Update create_inferior call.
22826 (attach_inferior): Call add_inferior.
22827 (handle_query): New function.
22828 (main): Call handle_query for `q' packets.
22829 * server.h: Include "target.h". Remove obsolete prototypes.
22830 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22832 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22834 * Makefile.in: Add WARN_CFLAGS. Update configury
22836 * configure.in: Check for <string.h>
22837 * configure: Regenerate.
22838 * config.in: Regenerate.
22839 * gdbreplay.c: Include needed system headers.
22840 (remote_open): Remove strchr prototype.
22841 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22842 * regcache.c (supply_register): Change buf argument to const void *.
22843 (supply_register_by_name): Likewise.
22844 (collect_register): Change buf argument to void *.
22845 (collect_register_by_name): Likewise.
22846 * regcache.h: Add missing prototypes.
22847 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22848 * server.c (handle_query): New function.
22849 (attached): New static variable, moved out of main.
22850 (main): Quiet longjmp clobber warnings.
22851 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22852 * utils.c (error): Remove NORETURN.