1 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
3 * win32-low.cc: Remove all code guarded by _WIN32_WCE.
4 * win32-low.h: Likewise.
6 2021-04-12 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8 * target.h (class process_stratum_target) <pid_to_exec_file>:
9 Constify the return type. Update the definition/references below.
10 * target.cc (process_stratum_target::pid_to_exec_file)
11 * linux-low.h (class linux_process_target) <pid_to_exec_file>
12 * linux-low.cc (linux_process_target::pid_to_exec_file)
13 * netbsd-low.h (class netbsd_process_target) <pid_to_exec_file>
14 * netbsd-low.cc (netbsd_process_target::pid_to_exec_file)
15 * server.cc (handle_qxfer_exec_file)
17 2021-04-11 Eli Zaretskii <eliz@gnu.org>
19 * win32-low.cc (win32_add_dll): New function, with body almost
20 identical to what win32_add_all_dlls did. Accepts one argument;
21 if that is non-NULL, returns the file name of the DLL that is
22 loaded at the base address equal to that argument, or NULL if not
23 found. If the argument is NULL, add all the DLLs loaded by the
24 inferior to the list of solibs and return NULL.
25 (win32_add_all_dlls): Now a thin wrapper around win32_add_dll.
26 (windows_nat::handle_load_dll) [!_WIN32_WCE]: If get_image_name
27 failed to glean the file name of the DLL, call win32_add_dll to
28 try harder using the lpBaseOfDll member of the load-DLL event.
30 2021-03-30 Luis Machado <luis.machado@linaro.org>
32 * server.cc (handle_general_set, handle_query): Update variable
33 to bool and fix verification logic.
35 2021-03-24 Luis Machado <luis.machado@linaro.org>
37 * Makefile.in (SFILES): Add /../gdb/nat/aarch64-mte-linux-ptrace.c.
38 * configure.srv (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o and
39 nat/aarch64-mte-linux-ptrace.o.
40 * linux-aarch64-low.cc: Include nat/aarch64-mte-linux-ptrace.h.
41 (class aarch64_target) <supports_memory_tagging>
42 <fetch_memtags, store_memtags>: New method overrides.
43 (aarch64_target::supports_memory_tagging)
44 (aarch64_target::fetch_memtags)
45 (aarch64_target::store_memtags): New methods.
47 2021-03-24 Luis Machado <luis.machado@linaro.org>
49 * linux-aarch64-low.cc (aarch64_fill_mteregset): New function.
50 (aarch64_store_mteregset): New function.
51 (aarch64_regsets): Add MTE register set entry.
52 (aarch64_sve_regsets): Add MTE register set entry.
54 2021-03-24 Luis Machado <luis.machado@linaro.org>
56 * linux-aarch64-ipa.cc (get_ipa_tdesc): Update call to
57 aarch64_linux_read_description.
58 (initialize_low_tracepoint): Likewise.
59 * linux-aarch64-low.cc (aarch64_target::low_arch_setup): Take MTE flag
61 * linux-aarch64-tdesc.cc (tdesc_aarch64_list): Add one more dimension
63 (aarch64_linux_read_description): Add mte_p parameter and update to
65 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add mte_p
68 2021-03-24 Luis Machado <luis.machado@linaro.org>
70 * linux-aarch64-low.cc: Include arch/aarch64-mte-linux.h.
72 2021-03-24 Luis Machado <luis.machado@linaro.org>
74 * server.cc (test_memory_tagging_functions): New function.
75 (captured_main): Register test_memory_tagging_functions.
77 2021-03-24 Luis Machado <luis.machado@linaro.org>
79 * remote-utils.cc (decode_m_packet_params): Renamed from ...
80 (decode_m_packet): ... this, which now calls decode_m_packet_params.
81 Make char * param/return const char *.
82 (decode_M_packet): Use decode_m_packet_params and make char * param
84 * remote-utils.h (decode_m_packet_params): New prototype.
85 (decode_m_packet): Constify char pointers.
86 (decode_M_packet): Likewise.
87 * server.cc (create_fetch_memtags_reply)
88 (parse_store_memtags_request): New
90 (handle_general_set): Handle the QMemTags packet.
91 (parse_fetch_memtags_request): New function.
92 (handle_query): Handle the qMemTags packet and advertise memory
94 (captured_main): Initialize memory tagging flag.
95 * server.h (struct client_state): Initialize memory tagging flag.
96 * target.cc (process_stratum_target::supports_memory_tagging)
97 (process_stratum_target::fetch_memtags)
98 (process_stratum_target::store_memtags): New methods.
99 * target.h: Include gdbsupport/byte-vector.h.
100 (class process_stratum_target) <supports_memory_tagging>
101 <fetch_memtags, store_memtags>: New class virtual methods.
102 (target_supports_memory_tagging): Define.
104 2021-03-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
106 * inferiors.h (struct process_info) <all_dlls, dlls_changed>: New
109 (unloaded_dll): Declare an overloaded version that takes a proc
111 * dll.cc (loaded_dll)
112 (unloaded_dll): Implement the overloaded versions.
113 (clear_dlls): Clear all process' dll lists.
114 (all_dlls, dlls_changed): Remove the global variables.
115 * remote-utils.cc (prepare_resume_reply): Update to consider a dll
117 * server.cc (handle_qxfer_libraries): Ditto.
118 (handle_v_attach): Ditto.
119 (captured_main): Ditto.
121 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
123 * linux-low.cc (linux_process_target::filter_event): Return
125 * linux-low.h (class linux_process_target) <filter_event>:
128 2021-02-12 Tom Tromey <tromey@adacore.com>
130 * gdbreplay.cc (remote_desc): Remove.
131 (remote_desc_in, remote_desc_out): New globals.
132 (remote_close): Update.
133 (remote_open): Handle "-".
134 (remote_open): Update.
135 (logchar): Log to stderr.
136 (expect, play): Update.
138 2021-02-12 Tom Tromey <tromey@adacore.com>
140 * gdbreplay.cc (remote_open): Constify.
142 2021-02-05 Paul E. Murphy <murphyp@linux.ibm.com>
144 * Makefile.in (UNDO_GNULIB_CFLAGS): Disable
145 gnulib free replacement too.
146 * common-defs.h [USE_WIN32API](read, write): Undefine
147 gnulib versions before defining these macros.
149 2021-02-03 Pedro Alves <pedro@palves.net>
151 * linux-low.cc (linux_process_target::complete_ongoing_step_over):
152 Discard step SIGTRAP, unless GDB wanted the thread to step.
154 2021-02-03 Pedro Alves <pedro@palves.net>
156 * server.cc (discard_queued_stop_replies): Don't ever discard the
157 notification at the head of the list.
159 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
161 * ax.cc (bytecode_address_table): Make static.
162 * debug.cc (debug_file): Make static.
163 * linux-low.cc (stopping_threads): Make static.
164 (step_over_bkpt): Make static.
165 * linux-x86-low.cc (amd64_emit_ops, i386_emit_ops): Make static.
166 * tracepoint.cc (stop_tracing_bkpt, flush_trace_buffer_bkpt,
167 alloced_trace_state_variables, trace_buffer_ctrl,
168 tracing_start_time, tracing_stop_time, tracing_user_name,
169 tracing_notes, tracing_stop_note): Make static.
171 2021-01-20 Tom de Vries <tdevries@suse.de>
173 * linux-x86-low.cc (collect_register_i386): New function.
174 (x86_fill_gregset): Remove memset. Use collect_register_i386.
176 2021-01-07 Tom de Vries <tdevries@suse.de>
178 * Makefile.in (LIBIBERTY_NORMAL, LIBIBERTY_NOASAN, LIBIBERTY_PIC):
179 (LIBIBERTY_FOR_SHLIB): New var.
180 (LIBIBERTY): Set using $(LIBIBERTY_NORMAL).
181 (IPA_LIB): Use LIBIBERTY_FOR_SHLIB instead of LIBIBERTY in target rule.
183 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
185 * debug.cc (debug_print_depth): New.
187 2021-01-01 Joel Brobecker <brobecker@adacore.com>
189 * server.cc (gdbserver_version): Update copyright year.
190 * gdbreplay.cc (gdbreplay_version): Likewise.
192 2020-12-16 Luis Machado <luis.machado@linaro.org>
194 * linux-aarch64-low.cc (address_significant): New function.
195 (aarch64_target::low_stopped_data_address): Handle the TBI.
197 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
199 * Makefile.in (IPA_LIB): Include libiberty library.
201 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
203 * server.cc (gdbserver_usage): Add missing option to usage text.
204 (gdbserver_show_disableable): Likewise.
206 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
208 * ax.cc: Fix indentation.
209 * dll.cc: Fix indentation.
210 * inferiors.h: Fix indentation.
211 * linux-low.cc: Fix indentation.
212 * linux-nios2-low.cc: Fix indentation.
213 * linux-ppc-ipa.cc: Fix indentation.
214 * linux-ppc-low.cc: Fix indentation.
215 * linux-x86-low.cc: Fix indentation.
216 * linux-xtensa-low.cc: Fix indentation.
217 * regcache.cc: Fix indentation.
218 * server.cc: Fix indentation.
219 * tracepoint.cc: Fix indentation.
221 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
223 * acinclude.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
225 * configure: Re-generate.
227 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
229 * configure: Re-generate.
231 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
233 * configure: Re-generate.
235 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
237 * configure: Re-generate.
239 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
241 * configure: Re-generate.
243 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
245 * configure.ac: Modernize.
246 * configure: Re-generate.
248 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
250 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
252 * configure: Re-generate.
254 2020-10-26 Pedro Alves <pedro@palves.net>
256 * netbsd-low.cc (netbsd_waitpid, netbsd_process_target::kill)
257 (netbsd_qxfer_libraries_svr4): Use gdb::handle_eintr without
260 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
262 * acinclude.m4: Update ptrace.m4 path.
264 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
266 * config.in: Re-generate.
267 * configure: Re-generate.
269 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
271 * server.cc (handle_general_set): Don't use sprintf with
272 argument overlapping buffer.
274 2020-10-20 Tom Tromey <tromey@adacore.com>
277 * inferiors.cc (remove_thread): Clear current_thread before
280 2020-10-13 Kamil Rytarowski <n54@gmx.com>x
282 * netbsd-low.cc (netbsd_tdesc): Remove.
283 (netbsd_add_process): Likewise.
284 (netbsd_process_target::create_inferior): Update.
286 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
288 * linux-arc-low.cc (arc_linux_read_description): Release the
289 unique_ptr returned from arc_create_target_description.
291 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
293 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
294 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
296 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
298 * linux-low.cc (linux_process_target::handle_extended_wait):
299 Release the unique_ptr returned from allocate_target_description.
300 * linux-riscv-low.cc (riscv_target::low_arch_setup): Likewise.
301 * linux-x86-low.cc (tdesc_amd64_linux_no_xml): Change type.
302 (tdesc_i386_linux_no_xml): Change type.
303 (x86_linux_read_description): Borrow pointer from unique_ptr
305 (x86_target::get_ipa_tdesc_idx): Likewise.
306 (initialize_low_arch): Likewise.
307 * tdesc.cc (allocate_target_description): Update return type.
309 2020-10-07 Tom Tromey <tromey@adacore.com>
311 * server.cc (handle_search_memory): Remove dead code.
313 2020-10-07 Tom Tromey <tromey@adacore.com>
315 * server.cc (handle_search_memory_1): Remove.
316 (handle_search_memory): Use simple_search_memory.
318 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
320 * Makefile.in (COMPILE): Add CXXFLAGS.
321 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
322 (gdbserver$(EXEEXT)): Add CXXFLAGS.
323 (gdbreplay$(EXEEXT)): Add CXXFLAGS.
324 ($(IPA_LIB)): Add CXXFLAGS.
325 (IPAGENT_COMPILE): Add CXXFLAGS.
327 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
329 * configure.srv: Support ARC architecture.
330 * Makefile.in: Add linux-arc-low.cc and arch/arc.o.
331 * linux-arc-low.cc: New file.
333 2020-10-07 Kamil Rytarowski <n54@gmx.com>
335 * netbsd-low.cc (get_dynamic, get_r_debug, read_one_ptr)
336 (netbsd_qxfer_libraries_svr4): Remove "target" argument and update.
337 (netbsd_process_target::qxfer_libraries_svr4): Update.
339 2020-10-07 Kamil Rytarowski <n54@gmx.com>
341 * netbsd-low.cc: Fix whitespace formatting.
342 * netbsd-amd64-low.cc: Likewise.
344 2020-10-07 Kamil Rytarowski <n54@gmx.com>
346 * netbsd-low.cc (netbsd_process_target::read_memory)
347 (netbsd_process_target::write_memory): Update.
349 2020-10-07 Kamil Rytarowski <n54@gmx.com>
351 * netbsd-aarch64-low.cc: Add.
352 * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
353 * configure.srv: Add aarch64*-*-netbsd*.
355 2020-10-06 Shahab Vahedi <shahab@synopsys.com>
357 * regcache.cc (register_data): Remove unused "fetch" argument.
359 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
361 * server.cc (handle_monitor_command): Handle "set
363 (captured_main): Handle "--debug-event-loop".
364 (monitor_show_help): Mention new setting.
365 (gdbserver_usage): Mention new flag.
367 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
369 * linux-low.cc (linux_process_target::async): Pass name to
371 * remote-utils.cc (handle_accept_event): Likewise.
372 (remote_open): Likewise.
374 2020-10-01 Kamil Rytarowski <n54@gmx.com>
376 * netbsd-i386-low.cc: Add.
377 * Makefile.in (SFILES): Register "netbsd-i386-low.c".
378 * configure.srv: Add i[34567]86-*-netbsd*.
380 2020-10-01 Kamil Rytarowski <n54@gmx.com>
382 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
383 (netbsd_target_regsets): Now const.
384 (the_low_target): Remove.
385 (class netbsd_amd64_target, the_netbsd_amd64_target)
386 (the_netbsd_target): Add.
387 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
389 (netbsd_process_target::fetch_registers)
390 (netbsd_process_target::store_registers, initialize_low): Update.
391 (the_netbsd_target): Remove.
392 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
393 (the_low_target, netbsd_tdesc): Remove.
394 (netbsd_process_target::get_regs_info)
395 (netbsd_process_target::low_arch_setup): Add.
397 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
399 * win32-low.cc: Remove local wow64_process variable.
400 * win32-low.h: Remove local wow64_process variable.
402 2020-09-18 Tom Tromey <tromey@adacore.com>
404 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
405 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
406 (netbsd_process_target::wait): Change type of target_options.
407 * win32-low.h (class win32_process_target) <wait>: Update.
408 * win32-low.cc (win32_process_target::wait): Update.
409 * target.h (class process_stratum_target) <wait>: Update.
411 * target.cc (mywait, target_wait): Change type of "options".
412 * linux-low.h (class linux_process_target) <wait, wait_1>:
414 * linux-low.cc (linux_process_target::wait)
415 (linux_process_target::wait_1): Update.
417 2020-09-15 Tom Tromey <tromey@adacore.com>
419 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
420 (xmltarget_amd64_linux_no_xml): Now arrays.
422 2020-09-14 Tom Tromey <tromey@adacore.com>
424 * tracepoint.cc (eval_result_names): Now const.
425 * ax.cc (gdb_agent_op_names): Now const.
427 2020-09-10 Kamil Rytarowski <n54@gmx.com>
429 * netbsd-low.cc: Add.
430 * netbsd-low.h: Likewise.
431 * netbsd-amd64-low.cc: Likewise.
432 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
433 "netbsd-amd64-low.cc".
434 * configure.srv: Add x86_64-*-netbsd*.
436 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
438 * server.cc (captured_main): Accept multiple `--selftest=`
439 options. Pass all `--selftest=` arguments to run_tests.
441 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
443 * configure, config.in: Regenerate.
445 2020-07-26 Eli Zaretskii <eliz@gnu.org>
447 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
448 When checking whether socklen_t type is defined, use ws2tcpip.h if
449 it is available and sys/socket.h isn't.
450 * configure: Regenerate.
451 * config.in: Regenerate.
453 2020-07-22 Pedro Alves <pedro@palves.net>
455 * inferiors.cc (switch_to_process): New, moved here from
456 thread-db.cc, and made extern.
457 * inferiors.h (switch_to_process): Declare.
458 * server.cc: Include "gdbsupport/scoped_restore.h".
459 (handle_qxfer_threads_proper): Now returns bool. Prepare to
460 access memory around target calls.
461 (handle_qxfer_threads): Handle errors.
462 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
464 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
466 * linux-low.cc (stopped_pids): Make static.
468 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
470 * tdesc.cc (allocate_target_description): Add header comment.
471 (target_desc_deleter::operator()): New function.
472 * tdesc.h (struct target_desc): Declare as final.
474 2020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
476 * server.cc (handle_query): Use std::vector of
477 std::string for `qsupported` vector. Use separate
479 * target.h (class process_stratum_target) <process_qsupported>:
480 Change parameters to array_view of const char *.
481 (target_process_qsupported): Remove `count` parameter.
482 * target.cc (process_stratum_target::process_qsupported): Change
483 parameters to array_view of const char *.
484 * linux-x86-low.cc (class x86_target) <process_qsupported>:
487 2020-06-29 Tom de Vries <tdevries@suse.de>
489 * ax.h: Include gdbsupport/debug_agent.h.
491 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
493 * tdesc.cc (struct tdesc_compatible_info): New struct.
494 (tdesc_compatible_info_list): New function.
495 (tdesc_compatible_info_arch_name): New function.
497 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
499 Use std::list to stop pending signal instead of manually-created
501 * linux-low.h: Include <list>.
502 (struct pending_signal): Move here from linux-low.cc.
503 (struct lwp_info) <pending_signals>
504 <pending_signals_to_report>: Update the type.
505 * linux-low.cc (struct pending_signals): Remove.
506 (linux_process_target::delete_lwp)
507 (linux_process_target::add_lwp)
508 (enqueue_one_deferred_signal)
509 (dequeue_one_deferred_signal)
510 (enqueue_pending_signal)
511 (linux_process_target::resume_one_lwp_throw)
512 (linux_process_target::thread_needs_step_over)
513 (linux_process_target::resume_one_thread)
514 (linux_process_target::proceed_one_lwp): Update the use of pending
517 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
519 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
522 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
524 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
525 * configure.srv: Remove mingw32ce cases.
526 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
527 * win32-low.h (to_back_slashes): Remove.
528 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
530 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
532 * Makefile.in (SFILES): linux-tile-low.cc.
533 * configure.srv: Remove tilegx case.
534 * linux-tile-low.cc: Remove.
536 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
538 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
539 * configure.srv: Remove m32r case.
540 * linux-m32r-low.cc: Remove.
542 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
544 * Makefile.in (SFILES): Remove linux-cris-low.c.
545 * configure.srv: Remove cris cases.
546 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
548 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
550 * Makefile.in (SFILES): Remove linux-bfin-low.c.
551 * configure.srv: Remove bfin case.
552 * linux-bfin-low.cc: Remove.
553 * linux-low.cc: Remove BFIN-conditional code.
555 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
557 * configure: Re-generate.
558 * configure.ac: Remove srv_qnx test.
559 * configure.srv: Remove nto case.
560 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
561 * remote-utils.c: Remove __QNX__-guarded code.
563 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
565 * configure: Re-generate.
566 * configure.ac: Remove srv_lynxos test.
567 * configure.srv: Remove lynxos cases.
568 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
571 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
573 * README: Fix a few outdated or incoherent things.
575 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
577 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
578 (win32_clear_inferiors): Use open_process_used.
579 (get_child_debug_event): Likewise.
581 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
584 * linux-low.cc (linux_process_target::create_inferior),
585 lynx-low.cc (lynx_process_target::create_inferior),
586 win32-low.cc (win32_process_target::create_inferior): Use
587 construct_inferior_arguments instead of stringify_argv
588 to get string representation which properly escapes
590 * server.cc (handle_v_run): Just pass empty program arg
591 as such, since any further processing is now handled via
592 construct_inferior_arguments.
594 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
596 * nto-low.cc (nto_process_target::create_inferior): Pass
597 argv to spawnp function as char **.
599 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
601 * server.cc (captured_main), (handle_v_run): No longer
602 insert extra NULL element to args vector.
604 2020-05-23 Pedro Alves <palves@redhat.com>
606 * gdb-safe-ctype.h: New.
608 2020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
610 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
611 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
612 (ia64_target::low_breakpoint_at): Ditto.
614 2020-05-15 Hannes Domani <ssbssa@yahoo.de>
616 * win32-i386-low.cc (i386_supports_z_point_type): Handle
617 Z_PACKET_HW_BP z_type.
618 (i386_insert_point): Handle raw_bkpt_type type.
619 (i386_remove_point): Likewise.
621 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
623 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
625 * win32-arm-low.cc (arm_num_regs): New function.
626 (struct win32_target_ops): Use arm_num_regs.
627 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
629 (i386_get_thread_context): Likewise.
630 (i386_prepare_to_resume): Likewise.
631 (i386_thread_added): Likewise.
632 (i386_single_step): Likewise.
633 (i386_fetch_inferior_register): Likewise.
634 (i386_store_inferior_register): Likewise.
635 (i386_arch_setup): Likewise.
636 (i386_win32_num_regs): New function.
637 (struct win32_target_ops): Use i386_win32_num_regs.
638 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
640 (win32_require_context): Likewise.
641 (child_add_thread): Likewise.
642 (do_initial_child_stuff): Likewise.
643 (continue_one_thread): Likewise.
644 (win32_process_target::resume): Likewise.
645 (load_psapi): Likewise.
646 (win32_add_all_dlls): Likewise.
647 (maybe_adjust_pc): Likewise.
648 (win32_process_target::qxfer_siginfo): Likewise.
649 (initialize_low): Likewise.
650 * win32-low.h (struct win32_target_ops): Change num_regs to
653 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
655 * configure.ac: Remove check for fs_base/gs_base in
657 * configure: Re-generate.
658 * config.in: Re-generate.
659 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
660 x86_store_gregset): Adjust.
662 2020-04-22 Hannes Domani <ssbssa@yahoo.de>
664 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
667 2020-04-16 Tom Tromey <tromey@adacore.com>
669 * win32-low.cc (windows_nat::handle_access_violation): New
672 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
674 * win32-low.cc (get_child_debug_event): Fix format string warning.
676 2020-04-13 Tom Tromey <tom@tromey.com>
678 * server.h (gdb_fildes_t): Remove typedef.
679 * remote-utils.c (remote_desc, list_desc): Now int.
680 (INVALID_DESCRIPTOR): Remove.
681 (gdb_connected, remote_close)
682 (check_remote_input_interrupt_request): Update.
683 * utils.h (pfildes): Don't declare.
684 * utils.c (pfildes): Remove.
686 2020-04-13 Tom Tromey <tom@tromey.com>
688 * server.h (handle_serial_event, handle_target_event): Update.
689 * server.c: Don't call initialize_event_loop.
690 (keep_processing_events): New global.
691 (handle_serial_event): Return void. Set keep_processing_events.
692 (handle_target_event): Return void.
693 (start_event_loop): Move from event-loop.c. Rewrite.
694 * remote-utils.c (handle_accept_event): Return void.
695 (reset_readchar): Use delete_timer.
696 (process_remaining): Return void.
697 (reschedule): Use create_timer.
698 * event-loop.h: Remove.
699 * event-loop.cc: Remove.
700 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
702 2020-04-13 Tom Tromey <tom@tromey.com>
704 * server.c (invoke_async_signal_handlers)
705 (check_async_event_handlers, flush_streams, gdb_select): New
708 2020-04-13 Tom Tromey <tom@tromey.com>
710 * configure: Rebuild.
711 * config.in: Rebuild.
713 2020-04-08 Tom Tromey <tromey@adacore.com>
716 * win32-low.c (child_continue): Call matching_pending_stop.
717 (get_child_debug_event): Call fetch_pending_stop. Push pending
720 2020-04-08 Tom Tromey <tromey@adacore.com>
722 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
723 (win32_process_target::supports_stopped_by_sw_breakpoint):
725 * win32-low.c (win32_supports_z_point_type): Always handle
727 (win32_insert_point): Call insert_memory_breakpoint when needed.
728 (win32_remove_point): Call remove_memory_breakpoint when needed.
729 (win32_process_target::stopped_by_sw_breakpoint)
730 (win32_process_target::supports_stopped_by_sw_breakpoint): New
732 (win32_target_ops): Update.
733 (maybe_adjust_pc): New function.
734 (win32_wait): Call maybe_adjust_pc.
736 2020-04-08 Tom Tromey <tromey@adacore.com>
738 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
740 * win32-i386-low.c (the_low_target): Update.
741 * win32-arm-low.c (the_low_target): Update.
743 2020-04-08 Tom Tromey <tromey@adacore.com>
745 * win32-low.h (win32_process_target::read_pc)
746 (win32_process_target::write_pc): Declare.
747 * win32-low.c (win32_process_target::read_pc)
748 (win32_process_target::write_pc): New methods.
749 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
751 (the_low_target): Update.
752 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
754 (the_low_target): Update.
756 2020-04-08 Tom Tromey <tromey@adacore.com>
758 * win32-low.c (win32_kill, get_child_debug_event): Use
759 wait_for_debug_event.
761 2020-04-08 Tom Tromey <tromey@adacore.com>
763 * win32-low.c (child_continue): Call continue_last_debug_event.
765 2020-04-08 Tom Tromey <tromey@adacore.com>
767 * win32-low.c (handle_exception): Remove.
768 (windows_nat::handle_ms_vc_exception): New function.
769 (get_child_debug_event): Add "continue_status" parameter.
771 (win32_wait): Update.
773 2020-04-08 Tom Tromey <tromey@adacore.com>
775 * win32-low.c (windows_nat::handle_load_dll): Rename from
776 handle_load_dll. No longer static.
777 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
780 2020-04-08 Tom Tromey <tromey@adacore.com>
782 * win32-low.c (handle_output_debug_string): Add parameter. Change
784 (win32_kill, get_child_debug_event): Update.
786 2020-04-08 Tom Tromey <tromey@adacore.com>
788 * win32-low.c (current_process_handle, current_process_id)
789 (main_thread_id, last_sig, current_event, siginfo_er): Move to
792 2020-04-08 Tom Tromey <tromey@adacore.com>
794 * win32-low.c (get_image_name): Remove.
795 (handle_load_dll): Update.
797 2020-04-08 Tom Tromey <tromey@adacore.com>
799 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
800 No longer static. Change parameters.
801 (child_add_thread, child_fetch_inferior_registers)
802 (child_store_inferior_registers, win32_resume)
803 (win32_get_tib_address): Update.
805 2020-04-08 Tom Tromey <tromey@adacore.com>
807 * win32-low.h (struct win32_target_ops): Use qualified names where
809 * win32-i386-low.c: Add "using namespace".
810 * win32-low.c: Add "using namespace".
811 * win32-arm-low.c: Add "using namespace".
813 2020-04-08 Tom Tromey <tromey@adacore.com>
815 * win32-low.c (delete_thread_info): Don't call CloseHandle.
817 2020-04-08 Tom Tromey <tromey@adacore.com>
819 * win32-low.c (win32_require_context, suspend_one_thread): Use
820 windows_thread_info::suspend.
821 (continue_one_thread): Use windows_thread_info::resume.
822 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
824 2020-04-08 Tom Tromey <tromey@adacore.com>
826 * win32-i386-low.c (update_debug_registers)
827 (i386_prepare_to_resume, i386_thread_added): Update.
829 2020-04-08 Tom Tromey <tromey@adacore.com>
831 * win32-low.c (child_add_thread): Use new.
832 (delete_thread_info): Use delete.
834 2020-04-08 Tom Tromey <tromey@adacore.com>
836 * win32-low.h (struct windows_thread_info): Remove.
838 2020-04-08 Tom Tromey <tromey@adacore.com>
840 * win32-low.h (struct windows_thread_info): Rename from
841 win32_thread_info. Remove typedef.
842 (struct win32_target_ops, win32_require_context): Update.
843 * win32-low.c (win32_get_thread_context)
844 (win32_set_thread_context, win32_prepare_to_resume)
845 (win32_require_context, thread_rec, child_add_thread)
846 (delete_thread_info, continue_one_thread)
847 (child_fetch_inferior_registers, child_store_inferior_registers)
848 (win32_resume, suspend_one_thread, win32_get_tib_address):
850 * win32-i386-low.c (update_debug_registers)
851 (win32_get_current_dr, i386_get_thread_context)
852 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
853 (i386_fetch_inferior_register, i386_store_inferior_register):
855 * win32-arm-low.c (arm_get_thread_context)
856 (arm_fetch_inferior_register, arm_store_inferior_register):
859 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
861 * linux-low.h (struct linux_target_ops): Remove.
862 (the_low_target): Remove.
863 * linux-x86-low.cc (the_low_target): Remove.
864 * linux-aarch64-low.cc (the_low_target): Ditto.
865 * linux-arm-low.cc (the_low_target): Ditto.
866 * linux-bfin-low.cc (the_low_target): Ditto.
867 * linux-cris-low.cc (the_low_target): Ditto.
868 * linux-crisv32-low.cc (the_low_target): Ditto.
869 * linux-ia64-low.cc (the_low_target): Ditto.
870 * linux-m32r-low.cc (the_low_target): Ditto.
871 * linux-m68k-low.cc (the_low_target): Ditto.
872 * linux-mips-low.cc (the_low_target): Ditto.
873 * linux-nios2-low.cc (the_low_target): Ditto.
874 * linux-ppc-low.cc (the_low_target): Ditto.
875 * linux-riscv-low.cc (the_low_target): Ditto.
876 * linux-s390-low.cc (the_low_target): Ditto.
877 * linux-sh-low.cc (the_low_target): Ditto.
878 * linux-sparc-low.cc (the_low_target): Ditto.
879 * linux-tic6x-low.cc (the_low_target): Ditto.
880 * linux-tile-low.cc (the_low_target): Ditto.
881 * linux-xtensa-low.cc (the_low_target): Ditto.
883 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
885 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
886 linux target define the op by overriding the declaration in
887 process_stratum_target.
889 * linux-low.h (struct linux_target_ops): Remove the op.
890 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
891 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
892 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
893 (x86_get_ipa_tdesc_idx): Turn into...
894 (x86_target::get_ipa_tdesc_idx): ...this.
895 (the_low_target): Remove the op field.
896 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
897 (ppc_get_ipa_tdesc_idx): Turn into...
898 (ppc_target::get_ipa_tdesc_idx): ...this.
899 (the_low_target): Remove the op field.
900 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
901 (s390_get_ipa_tdesc_idx): Turn into...
902 (s390_target::get_ipa_tdesc_idx): ...this.
903 (the_low_target): Remove the op field.
905 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
907 Turn the 'get_syscall_trapinfo' linux target op into a method
908 of process_stratum_target.
910 * linux-low.h (struct linux_target_ops): Remove the op.
911 (class linux_process_target) <get_syscall_trapinfo>
912 <gdb_catch_this_syscall>
913 <low_supports_catch_syscall>
914 <low_get_syscall_trapinfo>: Declare.
915 * linux-low.cc (get_syscall_trapinfo): Turn into...
916 (linux_process_target::get_syscall_trapinfo): ...this.
917 (linux_process_target::low_get_syscall_trapinfo): Define.
918 (gdb_catch_this_syscall_p): Turn into...
919 (linux_process_target::gdb_catch_this_syscall): ...this.
920 (linux_process_target::low_supports_catch_syscall): Define.
922 Update the callers below.
924 (linux_process_target::wait_1)
925 (linux_process_target::supports_catch_syscall)
927 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
928 <low_get_syscall_trapinfo>: Declare.
929 (x86_target::low_supports_catch_syscall): Define.
930 (x86_get_syscall_trapinfo): Turn into...
931 (x86_target::low_get_syscall_trapinfo): ...this.
932 (the_low_target): Remove the op field.
933 * linux-aarch64-low.cc (class aarch64_target)
934 <low_supports_catch_syscall>
935 <low_get_syscall_trapinfo>: Declare.
936 (aarch64_target::low_supports_catch_syscall): Define.
937 (aarch64_get_syscall_trapinfo): Turn into...
938 (aarch64_target::low_get_syscall_trapinfo): ...this.
939 (the_low_target): Remove the op field.
940 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
941 <low_get_syscall_trapinfo>: Declare.
942 (arm_target::low_supports_catch_syscall): Define.
943 (arm_get_syscall_trapinfo): Turn into...
944 (arm_target::low_get_syscall_trapinfo): ...this.
945 (the_low_target): Remove the op field.
946 * linux-ppc-low.cc (the_low_target): Remove the op field.
947 * linux-s390-low.cc (the_low_target): Remove the op field.
949 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
951 Remove the 'supports_hardware_single_step' linux target op and
952 override the process_stratum_target's op definition in
953 linux_process_target to return true.
955 * linux-low.h (struct linux_target_ops): Remove the op.
956 (class linux_process_target) <finish_step_over>
957 <maybe_hw_step>: Declare.
958 * linux-low.cc (can_hardware_single_step): Remove.
959 (maybe_hw_step): Turn into...
960 (linux_process_target::maybe_hw_step): ...this.
961 (finish_step_over): Turn into...
962 (linux_process_target::finish_step_over): ...this.
963 (linux_process_target::supports_hardware_single_step): Update
966 Update the callers below.
968 (linux_process_target::single_step)
969 (linux_process_target::resume_one_lwp_throw)
971 * linux-arm-low.cc (class arm_target)
972 <supports_hardware_single_step>: Declare.
973 (arm_supports_hardware_single_step): Turn into...
974 (arm_target::supports_hardware_single_step): ...this.
975 (the_low_target): Remove the op field.
976 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
977 (the_low_target): Remove the op field.
978 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
980 (the_low_target): Remove the op field.
981 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
982 (the_low_target): Remove the op field.
983 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
984 (the_low_target): Remove the op field.
985 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
986 (the_low_target): Remove the op field.
987 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
988 (the_low_target): Remove the op field.
989 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
990 (the_low_target): Remove the op field.
991 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
992 (the_low_target): Remove the op field.
993 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
994 (the_low_target): Remove the op field.
995 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
996 (the_low_target): Remove the op field.
997 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
998 (the_low_target): Remove the op field.
999 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
1001 (the_low_target): Remove the op field.
1003 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1005 Turn the 'supports_range_stepping' linux target op into a method
1006 of linux_process_target.
1008 * linux-low.h (struct linux_target_ops): Remove the op.
1009 (class linux_process_target) <low_supports_range_stepping>: Declare.
1010 * linux-low.cc (linux_process_target::low_supports_range_stepping):
1012 (linux_process_target::supports_range_stepping): Update the call
1014 * linux-x86-low.cc (class x86_target)
1015 <low_supports_range_stepping>: Declare.
1016 (x86_supports_range_stepping): Turn into...
1017 (x86_target::low_supports_range_stepping): ...this.
1018 (the_low_target): Remove the op field.
1019 * linux-aarch64-low.cc (class aarch64_target)
1020 <low_supports_range_stepping>: Declare.
1021 (aarch64_supports_range_stepping): Turn into...
1022 (aarch64_target::low_supports_range_stepping): ...this.
1023 (the_low_target): Remove the op field.
1024 * linux-arm-low.cc (the_low_target): Remove the op field.
1025 * linux-bfin-low.cc (the_low_target): Ditto.
1026 * linux-crisv32-low.cc (the_low_target): Ditto.
1027 * linux-m32r-low.cc (the_low_target): Ditto.
1028 * linux-m68k-low.cc (the_low_target): Ditto.
1029 * linux-ppc-low.cc (the_low_target): Ditto.
1030 * linux-s390-low.cc (the_low_target): Ditto.
1031 * linux-sh-low.cc (the_low_target): Ditto.
1032 * linux-tic6x-low.cc (the_low_target): Ditto.
1033 * linux-tile-low.cc (the_low_target): Ditto.
1034 * linux-xtensa-low.cc (the_low_target): Ditto.
1036 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1038 Remove the 'emit_ops' linux target ops and let the concrete
1039 linux target define the op by overriding the declaration of
1040 process_stratum_target.
1042 * linux-low.h (struct linux_target_ops): Remove the op.
1043 (class linux_process_target) <emit_ops>: Remove.
1044 * linux-low.cc (linux_process_target::emit_ops): Remove.
1045 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
1046 (x86_emit_ops): Turn into...
1047 (x86_target::emit_ops): ...this.
1048 (the_low_target): Remove the op field.
1049 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
1050 (aarch64_emit_ops): Turn into...
1051 (aarch64_target::emit_ops): ...this.
1052 (the_low_target): Remove the op field.
1053 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
1054 (ppc_emit_ops): Turn into...
1055 (ppc_target::emit_ops): ...this.
1056 (the_low_target): Remove the op field.
1057 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
1058 (s390_emit_ops): Turn into...
1059 (s390_target::emit_ops): ...this.
1060 (the_low_target): Remove the op field.
1061 * linux-arm-low.cc (the_low_target): Remove the op field.
1062 * linux-bfin-low.cc (the_low_target): Ditto.
1063 * linux-crisv32-low.cc (the_low_target): Ditto.
1064 * linux-m32r-low.cc (the_low_target): Ditto.
1065 * linux-m68k-low.cc (the_low_target): Ditto.
1066 * linux-sh-low.cc (the_low_target): Ditto.
1067 * linux-tic6x-low.cc (the_low_target): Ditto.
1068 * linux-tile-low.cc (the_low_target): Ditto.
1069 * linux-xtensa-low.cc (the_low_target): Ditto.
1071 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1073 Remove the 'install_fast_tracepoint_jump_pad' and
1074 'get_min_fast_tracepoint_insn_len' linux target ops to let the
1075 concrete linux target define the ops by overriding the declarations
1076 of process_stratum_target.
1078 * linux-low.h (struct linux_target_ops): Remove the ops.
1079 (class linux_process_target) <supports_fast_tracepoints>
1080 <install_fast_tracepoint_jump_pad>
1081 <get_min_fast_tracepoint_insn_len>: Remove.
1082 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
1083 (linux_process_target::install_fast_tracepoint_jump_pad)
1084 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
1085 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
1086 <install_fast_tracepoint_jump_pad>
1087 <get_min_fast_tracepoint_insn_len>: Declare.
1088 (x86_target::supports_fast_tracepoints): Define.
1089 (x86_install_fast_tracepoint_jump_pad): Turn into...
1090 (x86_target::install_fast_tracepoint_jump_pad): ...this.
1091 (x86_get_min_fast_tracepoint_insn_len): Turn into...
1092 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
1093 (the_low_target): Remove the op fields.
1094 * linux-aarch64-low.cc (class aarch64_target)
1095 <supports_fast_tracepoints>
1096 <install_fast_tracepoint_jump_pad>
1097 <get_min_fast_tracepoint_insn_len>: Declare.
1098 (aarch64_target::supports_fast_tracepoints): Define.
1099 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
1100 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
1101 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
1102 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
1103 (the_low_target): Remove the op fields.
1104 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
1105 <install_fast_tracepoint_jump_pad>
1106 <get_min_fast_tracepoint_insn_len>: Declare.
1107 (ppc_target::supports_fast_tracepoints): Define.
1108 (ppc_install_fast_tracepoint_jump_pad): Turn into...
1109 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
1110 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
1111 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
1112 (the_low_target): Remove the op fields.
1113 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
1114 <install_fast_tracepoint_jump_pad>
1115 <get_min_fast_tracepoint_insn_len>: Declare.
1116 (s390_target::supports_fast_tracepoints): Define.
1117 (s390_install_fast_tracepoint_jump_pad): Turn into...
1118 (s390_target::install_fast_tracepoint_jump_pad): ...this.
1119 (s390_get_min_fast_tracepoint_insn_len): Turn into...
1120 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
1121 (the_low_target): Remove the op fields.
1122 * linux-arm-low.cc (the_low_target): Remove the op fields.
1123 * linux-bfin-low.cc (the_low_target): Ditto.
1124 * linux-crisv32-low.cc (the_low_target): Ditto.
1125 * linux-m32r-low.cc (the_low_target): Ditto.
1126 * linux-m68k-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 Turn the 'get_thread_area' linux target op into a method of
1135 process_stratum_target.
1137 * linux-low.h (struct linux_target_ops): Remove the op.
1138 (class linux_process_target) <stuck_in_jump_pad>
1139 <linux_fast_tracepoint_collecting>
1140 <low_get_thread_area>: Declare.
1141 * linux-low.cc (supports_fast_tracepoints): Remove.
1142 (linux_fast_tracepoint_collecting): Turn into...
1143 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
1144 (linux_process_target::low_get_thread_area): Define.
1145 (stuck_in_jump_pad_callback): Turn into...
1146 (linux_process_target::stuck_in_jump_pad): ...this.
1148 Update the caller below.
1150 (linux_process_target::stabilize_threads)
1152 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
1154 (x86_get_thread_area): Turn into...
1155 (x86_target::low_get_thread_area): ...this.
1156 (the_low_target): Remove the op field.
1157 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
1159 (aarch64_get_thread_area): Turn into...
1160 (aarch64_target::low_get_thread_area): ...this.
1161 (the_low_target): Remove the op field.
1162 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
1164 (ppc_get_thread_area): Turn into...
1165 (ppc_target::low_get_thread_area): ...this.
1166 (the_low_target): Remove the op field.
1167 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
1169 (s390_get_thread_area): Turn into...
1170 (s390_target::low_get_thread_area): ...this.
1171 (the_low_target): Remove the op field.
1172 * linux-arm-low.cc (the_low_target): Remove the op field.
1173 * linux-bfin-low.cc (the_low_target): Ditto.
1174 * linux-crisv32-low.cc (the_low_target): Ditto.
1175 * linux-m32r-low.cc (the_low_target): Ditto.
1176 * linux-m68k-low.cc (the_low_target): Ditto.
1177 * linux-sh-low.cc (the_low_target): Ditto.
1178 * linux-tic6x-low.cc (the_low_target): Ditto.
1179 * linux-tile-low.cc (the_low_target): Ditto.
1180 * linux-xtensa-low.cc (the_low_target): Ditto.
1182 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1184 Remote the 'supports_tracepoints' linux target op and let the
1185 concrete linux target define it by overriding the op declared in
1186 process_stratum_target.
1188 * linux-low.h (struct linux_target_ops): Remove the op.
1189 (class linux_process_target) <supports_tracepoints>: Remove.
1190 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
1191 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
1193 (x86_supports_tracepoints): Turn into...
1194 (x86_target::supports_tracepoints): ...this.
1195 (the_low_target): Remove the op field.
1196 * linux-aarch64-low.cc (class aarch64_target)
1197 <supports_tracepoints>: Declare.
1198 (aarch64_supports_tracepoints): Turn into...
1199 (aarch64_target::supports_tracepoints): ...this.
1200 (the_low_target): Remove the op field.
1201 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
1203 (ppc_supports_tracepoints): Turn into...
1204 (ppc_target::supports_tracepoints): ...this.
1205 (the_low_target): Remove the op field.
1206 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
1208 (s390_supports_tracepoints): Turn into...
1209 (s390_target::supports_tracepoints): ...this.
1210 (the_low_target): Remove the op field.
1211 * linux-arm-low.cc (the_low_target): Remove the op field.
1212 * linux-bfin-low.cc (the_low_target): Ditto.
1213 * linux-crisv32-low.cc (the_low_target): Ditto.
1214 * linux-m32r-low.cc (the_low_target): Ditto.
1215 * linux-m68k-low.cc (the_low_target): Ditto.
1216 * linux-sh-low.cc (the_low_target): Ditto.
1217 * linux-tic6x-low.cc (the_low_target): Ditto.
1218 * linux-tile-low.cc (the_low_target): Ditto.
1219 * linux-xtensa-low.cc (the_low_target): Ditto.
1221 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1223 Remove the 'process_qsupported' linux target op and let a concrete
1224 linux target define the op by overriding the op declaration in
1225 process_stratum_target.
1227 * linux-low.h (struct linux_target_ops): Remove the op.
1228 (class linux_process_target) <process_qsupported>: Remove.
1229 * linux-low.cc (linux_process_target::process_qsupported): Remove.
1230 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
1231 (x86_linux_process_qsupported): Turn into...
1232 (x86_target::process_qsupported): ...this.
1233 (the_low_target): Remove the op field.
1234 * linux-aarch64-low.cc (the_low_target): Remove the op
1236 * linux-arm-low.cc (the_low_target): Ditto.
1237 * linux-bfin-low.cc (the_low_target): Ditto.
1238 * linux-crisv32-low.cc (the_low_target): Ditto.
1239 * linux-m32r-low.cc (the_low_target): Ditto.
1240 * linux-m68k-low.cc (the_low_target): Ditto.
1241 * linux-ppc-low.cc (the_low_target): Ditto.
1242 * linux-s390-low.cc (the_low_target): Ditto.
1243 * linux-sh-low.cc (the_low_target): Ditto.
1244 * linux-tic6x-low.cc (the_low_target): Ditto.
1245 * linux-tile-low.cc (the_low_target): Ditto.
1246 * linux-xtensa-low.cc (the_low_target): Ditto.
1248 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1250 Turn the 'prepare_to_resume' linux target op into a method of
1251 linux_process_target.
1253 * linux-low.h (struct linux_target_ops): Remove the op.
1254 (class linux_process_target) <low_prepare_to_resume>: Declare.
1255 * linux-low.cc (linux_process_target::low_prepare_to_resume):
1258 Update the callers below:
1260 (linux_process_target::resume_one_lwp_throw)
1261 (linux_process_target::low_prepare_to_resume)
1263 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
1265 (x86_target::low_prepare_to_resume): Define.
1266 (the_low_target): Remove the op field.
1267 * linux-aarch64-low.cc (class aarch64_target)
1268 <low_prepare_to_resume>: Declare.
1269 (aarch64_target::low_prepare_to_resume): Define.
1270 (the_low_target): Remove the op field.
1271 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
1273 (arm_prepare_to_resume): Turn into...
1274 (arm_target::low_prepare_to_resume): ...this.
1275 (the_low_target): Remove the op field.
1276 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
1278 (mips_linux_prepare_to_resume): Turn into...
1279 (mips_target::low_prepare_to_resume): ...this.
1280 (the_low_target): Remove the op field.
1281 * linux-bfin-low.cc (the_low_target): Remove the op field.
1282 * linux-crisv32-low.cc (the_low_target): Ditto.
1283 * linux-m32r-low.cc (the_low_target): Ditto.
1284 * linux-m68k-low.cc (the_low_target): Ditto.
1285 * linux-ppc-low.cc (the_low_target): Ditto.
1286 * linux-s390-low.cc (the_low_target): Ditto.
1287 * linux-sh-low.cc (the_low_target): Ditto.
1288 * linux-tic6x-low.cc (the_low_target): Ditto.
1289 * linux-tile-low.cc (the_low_target): Ditto.
1290 * linux-xtensa-low.cc (the_low_target): Ditto.
1292 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1294 Turn the 'new_process', 'delete_process', 'new_thread',
1295 'delete_thread', and 'new_fork' linux target ops into methods
1296 of linux_process_target.
1298 * linux-low.h (struct linux_target_ops): Remove the ops.
1299 (class linux_process_target) <add_linux_process>
1304 <check_zombie_leaders>
1307 <low_delete_process>
1310 <low_new_fork>: Declare.
1311 * linux-low.cc (delete_lwp): Turn into...
1312 (linux_process_target::delete_lwp): ...this.
1313 (linux_process_target::low_delete_thread): Define.
1314 (linux_add_process): Turn into...
1315 (linux_process_target::add_linux_process): ...this.
1316 (linux_process_target::low_new_process): Define.
1317 (linux_process_target::low_delete_process): Define.
1318 (linux_process_target::low_new_fork): Define.
1319 (add_lwp): Turn into...
1320 (linux_process_target::add_lwp): ...this.
1321 (linux_process_target::low_new_thread): Define.
1322 (linux_attach_lwp): Turn into...
1323 (linux_process_target::attach_lwp): ...this.
1324 (linux_detach_one_lwp): Turn into...
1325 (linux_process_target::detach_one_lwp): ...this.
1326 (linux_detach_lwp_callback): Remove and inline...
1327 (linux_process_target::detach): ...here.
1328 (check_zombie_leaders): Turn into...
1329 (linux_process_target::check_zombie_leaders): ...this.
1330 (filter_exit_event): Turn into...
1331 (linux_process_target::filter_exit_event): ...this.
1333 Update the callers below.
1335 (linux_process_target::handle_extended_wait)
1336 (linux_process_target::create_inferior)
1337 (attach_proc_task_lwp_callback)
1338 (linux_process_target::attach)
1339 (linux_process_target::detach)
1340 (linux_process_target::mourn)
1341 * thread-db.cc (attach_thread)
1343 * linux-x86-low.cc (class x86_target) <low_new_process>
1344 <low_delete_process>
1347 <low_new_fork>: Declare.
1348 (x86_linux_new_process): Turn into...
1349 (x86_target::low_new_process): ...this.
1350 (x86_linux_delete_process): Turn into...
1351 (x86_target::low_delete_process): ...this.
1352 (x86_target::low_new_thread): Define.
1353 (x86_target::low_delete_thread): Define.
1354 (x86_linux_new_fork): Turn into...
1355 (x86_target::low_new_fork): ...this.
1356 (the_low_target): Remove the op fields.
1357 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
1358 <low_delete_process>
1361 <low_new_fork>: Declare.
1362 (aarch64_linux_new_process): Turn into...
1363 (aarch64_target::low_new_process): ...this.
1364 (aarch64_linux_delete_process): Turn into...
1365 (aarch64_target::low_delete_process): ...this.
1366 (aarch64_target::low_new_thread): Define.
1367 (aarch64_target::low_delete_thread): Define.
1368 (aarch64_linux_new_fork): Turn into...
1369 (aarch64_target::low_new_fork): ...this.
1370 (the_low_target): Remove the op fields.
1371 * linux-arm-low.cc (class arm_target) <low_new_process>
1372 <low_delete_process>
1375 <low_new_fork>: Declare.
1376 (arm_new_process): Turn into...
1377 (arm_target::low_new_process): ...this.
1378 (arm_delete_process): Turn into...
1379 (arm_target::low_delete_process): ...this.
1380 (arm_new_thread): Turn into...
1381 (arm_target::low_new_thread): ...this.
1382 (arm_delete_thread): Turn into...
1383 (arm_target::low_delete_thread): ...this.
1384 (arm_new_fork): Turn into...
1385 (arm_target::low_new_fork): ...this.
1386 (the_low_target): Remove the op fields.
1387 * linux-mips-low.cc (class mips_target) <low_new_process>
1388 <low_delete_process>
1391 <low_new_fork>: Declare.
1392 (mips_linux_new_process): Turn into...
1393 (mips_target::low_new_process): ...this.
1394 (mips_linux_delete_process): Turn into...
1395 (mips_target::low_delete_process): ...this.
1396 (mips_linux_new_thread): Turn into...
1397 (mips_target::low_new_thread): ...this.
1398 (mips_linux_delete_thread): Turn into...
1399 (mips_target::low_delete_thread): ...this.
1400 (mips_linux_new_fork): Turn into...
1401 (mips_target::low_new_fork): ...this.
1402 (the_low_target): Remove the op fields.
1403 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1404 * linux-crisv32-low.cc (the_low_target): Ditto.
1405 * linux-m32r-low.cc (the_low_target): Ditto.
1406 * linux-m68k-low.cc (the_low_target): Ditto.
1407 * linux-ppc-low.cc (the_low_target): Ditto.
1408 * linux-s390-low.cc (the_low_target): Ditto.
1409 * linux-sh-low.cc (the_low_target): Ditto.
1410 * linux-tic6x-low.cc (the_low_target): Ditto.
1411 * linux-tile-low.cc (the_low_target): Ditto.
1412 * linux-xtensa-low.cc (the_low_target): Ditto.
1414 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1416 Turn the 'siginfo_fixup' linux target op into a method of
1417 linux_process_target.
1419 * linux-low.h (struct linux_target_ops): Remove the op.
1420 (class linux_process_target) <siginfo_fixup>
1421 <low_siginfo_fixup>: Declare.
1422 * linux-low.cc (siginfo_fixup): Turn into...
1423 (linux_process_target::siginfo_fixup): ...this.
1424 (linux_process_target::low_siginfo_fixup): Define.
1425 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1426 (x86_siginfo_fixup): Turn into...
1427 (x86_target::low_siginfo_fixup): ...this.
1428 (the_low_target): Remove the op field.
1429 * linux-aarch64-low.cc (class aarch64_target):
1430 <low_siginfo_fixup>: Declare.
1431 (aarch64_linux_siginfo_fixup): Turn into...
1432 (aarch64_target::low_siginfo_fixup): ...this.
1433 (the_low_target): Remove the op field.
1434 * linux-arm-low.cc (the_low_target): Remove the op field.
1435 * linux-bfin-low.cc (the_low_target): Ditto.
1436 * linux-crisv32-low.cc (the_low_target): Ditto.
1437 * linux-m32r-low.cc (the_low_target): Ditto.
1438 * linux-m68k-low.cc (the_low_target): Ditto.
1439 * linux-mips-low.cc (the_low_target): Ditto.
1440 * linux-ppc-low.cc (the_low_target): Ditto.
1441 * linux-s390-low.cc (the_low_target): Ditto.
1442 * linux-sh-low.cc (the_low_target): Ditto.
1443 * linux-tic6x-low.cc (the_low_target): Ditto.
1444 * linux-tile-low.cc (the_low_target): Ditto.
1445 * linux-xtensa-low.cc (the_low_target): Ditto.
1447 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1449 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1450 linux target ops into methods of linux_process_target.
1452 * linux-low.h (struct linux_target_ops): Remove the ops.
1453 (class linux_process_target) <low_collect_ptrace_register>
1454 <low_store_ptrace_register>: Declare.
1455 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1456 (linux_process_target::low_supply_ptrace_register): Define.
1458 Update the callers below.
1460 (linux_process_target::fetch_register)
1461 (linux_process_target::store_register)
1463 * linux-x86-low.cc (the_low_target): Remove the op fields.
1464 * linux-aarch64-low.cc (the_low_target): Ditto.
1465 * linux-arm-low.cc (the_low_target): Ditto.
1466 * linux-bfin-low.cc (the_low_target): Ditto.
1467 * linux-crisv32-low.cc (the_low_target): Ditto.
1468 * linux-m32r-low.cc (the_low_target): Ditto.
1469 * linux-m68k-low.cc (the_low_target): Ditto.
1470 * linux-sh-low.cc (the_low_target): Ditto.
1471 * linux-sparc-low.cc (the_low_target): Ditto.
1472 * linux-tic6x-low.cc (the_low_target): Ditto.
1473 * linux-tile-low.cc (the_low_target): Ditto.
1474 * linux-xtensa-low.cc (the_low_target): Ditto.
1475 * linux-mips-low.cc (class mips_target)
1476 <low_collect_ptrace_register>
1477 <low_supply_ptrace_register>: Declare.
1478 (mips_collect_ptrace_register): Turn into ...
1479 (mips_target::low_collect_ptrace_register): ...this.
1480 (mips_supply_ptrace_register): Turn into...
1481 (mips_target::low_supply_ptrace_register): ...this.
1482 (the_low_target): Remove the op fields.
1483 * linux-ppc-low.cc (class ppc_target)
1484 <low_collect_ptrace_register>
1485 <low_supply_ptrace_register>: Declare.
1486 (ppc_collect_ptrace_register): Turn into ...
1487 (ppc_target::low_collect_ptrace_register): ...this.
1488 (ppc_supply_ptrace_register): Turn into ...
1489 (ppc_target::low_supply_ptrace_register): ...this.
1490 (ppc_fill_gregset): Update for the calls to
1491 low_collect_ptrace_register.
1492 (the_low_target): Remove the op fields.
1493 * linux-s390-low.cc (class s390_target)
1494 <low_collect_ptrace_register>
1495 <low_supply_ptrace_register>: Declare.
1496 (s390_collect_ptrace_register): Turn into ...
1497 (s390_target::low_collect_ptrace_register): ...this.
1498 (s390_supply_ptrace_register): Turn into ...
1499 (s390_target::low_supply_ptrace_register): ...this.
1500 (s390_fill_gregset): Update for the calls to
1501 low_collect_ptrace_register.
1502 (the_low_target): Remove the op fields.
1504 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1506 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1507 target ops into methods of linux_process_target.
1509 * linux-low.h (struct linux_target_ops): Remove the ops.
1510 (class linux_process_target) <check_stopped_by_watchpoint>
1511 <low_stopped_by_watchpoint>
1512 <low_stopped_data_address>: Declare.
1513 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1514 (linux_process_target::check_stopped_by_watchpoint): ...this.
1515 (linux_process_target::low_stopped_by_watchpoint): Define.
1516 (linux_process_target::low_stopped_data_address): Define.
1517 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1518 <low_stopped_data_address>: Declare.
1519 (x86_stopped_by_watchpoint): Turn into...
1520 (x86_target::low_stopped_by_watchpoint): ...this.
1521 (x86_stopped_data_address): Turn into...
1522 (x86_target::low_stopped_data_address): ...this.
1523 (the_low_target): Remove the op fields.
1524 * linux-aarch64-low.cc (class aarch64_target)
1525 <low_stopped_by_watchpoint>
1526 <low_stopped_data_address>: Declare.
1527 (aarch64_stopped_by_watchpoint): Turn into...
1528 (aarch64_target::low_stopped_by_watchpoint): ...this.
1529 (aarch64_stopped_data_address): Turn into...
1530 (aarch64_target::low_stopped_data_address): ...this.
1531 (the_low_target): Remove the op fields.
1532 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1533 <low_stopped_data_address>: Declare.
1534 (arm_stopped_by_watchpoint): Turn into...
1535 (arm_target::low_stopped_by_watchpoint): ...this.
1536 (arm_stopped_data_address): Turn into...
1537 (arm_target::low_stopped_data_address): ...this.
1538 (the_low_target): Remove the op fields.
1539 * linux-crisv32-low.cc (class crisv32_target)
1540 <low_stopped_by_watchpoint>
1541 <low_stopped_data_address>: Declare.
1542 (cris_stopped_by_watchpoint): Turn into...
1543 (crisv32_target::low_stopped_by_watchpoint): ...this.
1544 (cris_stopped_data_address): Turn into...
1545 (crisv32_target::low_stopped_data_address): ...this.
1546 (the_low_target): Remove the op fields.
1547 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1548 <low_stopped_data_address>: Declare.
1549 (mips_stopped_by_watchpoint): Turn into...
1550 (mips_target::low_stopped_by_watchpoint): ...this.
1551 (mips_stopped_data_address): Turn into...
1552 (mips_target::low_stopped_data_address): ...this.
1553 (the_low_target): Remove the op fields.
1554 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1555 * linux-m32r-low.cc (the_low_target): Ditto.
1556 * linux-m68k-low.cc (the_low_target): Ditto.
1557 * linux-ppc-low.cc (the_low_target): Ditto.
1558 * linux-s390-low.cc (the_low_target): Ditto.
1559 * linux-sh-low.cc (the_low_target): Ditto.
1560 * linux-sparc-low.cc (the_low_target): Ditto.
1561 * linux-tic6x-low.cc (the_low_target): Ditto.
1562 * linux-tile-low.cc (the_low_target): Ditto.
1563 * linux-xtensa-low.cc (the_low_target): Ditto.
1565 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1567 Turn the 'insert_point' and 'remove_point' linux target ops into
1568 methods of linux_process_target.
1570 * linux-low.h (struct linux_target_ops): Remove the ops.
1571 (class linux_process_target) <low_insert_point>
1572 <low_remove_point>: Declare.
1573 * linux-low.cc (linux_process_target::low_insert_point)
1574 (linux_process_target::low_remove_point): Define.
1575 (linux_process_target::insert_point)
1576 (linux_process_target::remove_point): Update for calls to
1577 low_insert_point and low_remove_point.
1578 * linux-x86-low.cc (class x86_target) <low_insert_point>
1579 <low_remove_point>: Declare.
1580 (x86_insert_point): Turn into...
1581 (x86_target::low_insert_point): ...this.
1582 (x86_remove_point): Turn into...
1583 (x86_target::low_remove_point): ...this.
1584 (the_low_target): Remove the op fields.
1585 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1586 <low_remove_point>: Declare.
1587 (aarch64_insert_point): Turn into...
1588 (aarch64_target::low_insert_point): ...this.
1589 (aarch64_remove_point): Turn into...
1590 (aarch64_target::low_remove_point): ...this.
1591 (the_low_target): Remove the op fields.
1592 * linux-arm-low.cc (class arm_target) <low_insert_point>
1593 <low_remove_point>: Declare.
1594 (arm_insert_point): Turn into...
1595 (arm_target::low_insert_point): ...this.
1596 (arm_remove_point): Turn into...
1597 (arm_target::low_remove_point): ...this.
1598 (the_low_target): Remove the op fields.
1599 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1600 <low_remove_point>: Declare.
1601 (crisv32_insert_point): Turn into...
1602 (crisv32_target::low_insert_point): ...this.
1603 (crisv32_remove_point): Turn into...
1604 (crisv32_target::low_remove_point): ...this.
1605 (the_low_target): Remove the op fields.
1606 * linux-mips-low.cc (class mips_target) <low_insert_point>
1607 <low_remove_point>: Declare.
1608 (mips_insert_point): Turn into...
1609 (mips_target::low_insert_point): ...this.
1610 (mips_remove_point): Turn into...
1611 (mips_target::low_remove_point): ...this.
1612 (the_low_target): Remove the op fields.
1613 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1614 <low_remove_point>: Declare.
1615 (ppc_insert_point): Turn into...
1616 (ppc_target::low_insert_point): ...this.
1617 (ppc_remove_point): Turn into...
1618 (ppc_target::low_remove_point): ...this.
1619 (the_low_target): Remove the op fields.
1620 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1621 * linux-m32r-low.cc (the_low_target): Ditto.
1622 * linux-m68k-low.cc (the_low_target): Ditto.
1623 * linux-s390-low.cc (the_low_target): Ditto.
1624 * linux-sh-low.cc (the_low_target): Ditto.
1625 * linux-sparc-low.cc (the_low_target): Ditto.
1626 * linux-tic6x-low.cc (the_low_target): Ditto.
1627 * linux-tile-low.cc (the_low_target): Ditto.
1628 * linux-xtensa-low.cc (the_low_target): Ditto.
1630 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1632 Remove the 'supports_z_point_type' linux target op and let the
1633 concrete linux target define it by overriding the op declared in
1634 process_stratum_target.
1636 * linux-low.cc (linux_process_target::supports_z_point_type):
1638 * linux-low.h (struct linux_target_ops): Remove the op.
1639 (class linux_process_target) <supports_z_point_type>: Remove.
1640 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1642 (x86_supports_z_point_type): Turn into...
1643 (x86_target::supports_z_point_type): ...this.
1644 (the_low_target): Remove the op field.
1645 * linux-aarch64-low.cc (class aarch64_target)
1646 <supports_z_point_type>: Declare.
1647 (aarch64_supports_z_point_type): Turn into...
1648 (aarch64_target::supports_z_point_type): ...this.
1649 (the_low_target): Remove the op field.
1650 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1652 (arm_supports_z_point_type): Turn into...
1653 (arm_target::supports_z_point_type): ...this.
1654 (the_low_target): Remove the op field.
1655 * linux-crisv32-low.cc (class crisv32_target)
1656 <supports_z_point_type>: Declare.
1657 (cris_supports_z_point_type): Turn into...
1658 (crisv32_target::supports_z_point_type): ...this.
1659 (the_low_target): Remove the op field.
1660 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1662 (mips_supports_z_point_type): Turn into...
1663 (mips_target::supports_z_point_type): ...this.
1664 (the_low_target): Remove the op field.
1665 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1667 (ppc_supports_z_point_type): Turn into...
1668 (ppc_target::supports_z_point_type): ...this.
1669 (the_low_target): Remove the op field.
1670 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1672 (s390_supports_z_point_type): Turn into...
1673 (s390_target::supports_z_point_type): ...this.
1674 (the_low_target): Remove the op field.
1675 * linux-bfin-low.cc (the_low_target): Remove the op field.
1676 * linux-m32r-low.cc (the_low_target): Ditto.
1677 * linux-m68k-low.cc (the_low_target): Ditto.
1678 * linux-sh-low.cc (the_low_target): Ditto.
1679 * linux-sparc-low.cc (the_low_target): Ditto.
1680 * linux-tic6x-low.cc (the_low_target): Ditto.
1681 * linux-tile-low.cc (the_low_target): Ditto.
1682 * linux-xtensa-low.cc (the_low_target): Ditto.
1684 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1686 Turn the 'breakpoint_at' linux target op into a method of
1687 linux_process_target.
1689 * linux-low.h (struct linux_target_ops): Remove the op.
1690 (class linux_process_target) <low_breakpoint_at>: Declare.
1692 Update the callers below:
1694 * linux-low.cc (linux_process_target::save_stop_reason)
1695 (linux_process_target::thread_still_has_status_pending)
1696 (linux_process_target::wait_1)
1698 * linux-x86-low.cc (class x86_target)
1699 <low_breakpoint_at>: Declare.
1700 (x86_breakpoint_at): Turn into...
1701 (x86_target::low_breakpoint_at): ...this.
1702 (the_low_target): Remove the op field.
1703 * linux-aarch64-low.cc (class aarch64_target)
1704 <low_breakpoint_at>: Declare.
1705 (aarch64_breakpoint_at): Turn into...
1706 (aarch64_target::low_breakpoint_at): ...this.
1707 (the_low_target): Remove the op field.
1708 * linux-arm-low.cc (class arm_target)
1709 <low_breakpoint_at>: Declare.
1710 (arm_target::low_breakpoint_at): Define.
1711 (the_low_target): Remove the op field.
1712 * linux-bfin-low.cc (class bfin_target)
1713 <low_breakpoint_at>: Declare.
1714 (bfin_breakpoint_at): Turn into...
1715 (bfin_target::low_breakpoint_at): ...this.
1716 (the_low_target): Remove the op field.
1717 * linux-cris-low.cc (class cris_target)
1718 <low_breakpoint_at>: Declare.
1719 (cris_breakpoint_at): Turn into...
1720 (cris_target::low_breakpoint_at): ...this.
1721 (the_low_target): Remove the op field.
1722 * linux-crisv32-low.cc (class crisv32_target)
1723 <low_breakpoint_at>: Declare.
1724 (crisv32_breakpoint_at): Turn into...
1725 (crisv32_target::low_breakpoint_at): ...this.
1726 (the_low_target): Remove the op field.
1727 * linux-ia64-low.cc (class ia64_target)
1728 <low_breakpoint_at>: Declare.
1729 (ia64_target::low_breakpoint_at): Define.
1730 * linux-m32r-low.cc (class m32r_target)
1731 <low_breakpoint_at>: Declare.
1732 (m32r_breakpoint_at): Turn into...
1733 (m32r_target::low_breakpoint_at): ...this.
1734 (the_low_target): Remove the op field.
1735 * linux-m68k-low.cc (class m68k_target)
1736 <low_breakpoint_at>: Declare.
1737 (m68k_breakpoint_at): Turn into...
1738 (m68k_target::low_breakpoint_at): ...this.
1739 (the_low_target): Remove the op field.
1740 * linux-mips-low.cc (class mips_target)
1741 <low_breakpoint_at>: Declare.
1742 (mips_breakpoint_at): Turn into...
1743 (mips_target::low_breakpoint_at): ...this.
1744 (the_low_target): Remove the op field.
1745 * linux-nios2-low.cc (class nios2_target)
1746 <low_breakpoint_at>: Declare.
1747 (nios2_breakpoint_at): Turn into...
1748 (nios2_target::low_breakpoint_at): ...this.
1749 (the_low_target): Remove the op field.
1750 * linux-ppc-low.cc (class ppc_target)
1751 <low_breakpoint_at>: Declare.
1752 (ppc_breakpoint_at): Turn into...
1753 (ppc_target::low_breakpoint_at): ...this.
1754 (the_low_target): Remove the op field.
1755 * linux-riscv-low.cc (class riscv_target)
1756 <low_breakpoint_at>: Declare.
1757 (riscv_breakpoint_at): Turn into...
1758 (riscv_target::low_breakpoint_at): ...this.
1759 (the_low_target): Remove the op field.
1760 * linux-s390-low.cc (class s390_target)
1761 <low_breakpoint_at>: Declare.
1762 (s390_breakpoint_at): Turn into...
1763 (s390_target::low_breakpoint_at): ...this.
1764 (the_low_target): Remove the op field.
1765 * linux-sh-low.cc (class sh_target)
1766 <low_breakpoint_at>: Declare.
1767 (sh_breakpoint_at): Turn into...
1768 (sh_target::low_breakpoint_at): ...this.
1769 (the_low_target): Remove the op field.
1770 * linux-sparc-low.cc (class sparc_target)
1771 <low_breakpoint_at>: Declare.
1772 (sparc_breakpoint_at): Turn into...
1773 (sparc_target::low_breakpoint_at): ...this.
1774 (the_low_target): Remove the op field.
1775 * linux-tic6x-low.cc (class tic6x_target)
1776 <low_breakpoint_at>: Declare.
1777 (tic6x_breakpoint_at): Turn into...
1778 (tic6x_target::low_breakpoint_at): ...this.
1779 (the_low_target): Remove the op field.
1780 * linux-tile-low.cc (class tile_target)
1781 <low_breakpoint_at>: Declare.
1782 (tile_breakpoint_at): Turn into...
1783 (tile_target::low_breakpoint_at): ...this.
1784 (the_low_target): Remove the op field.
1785 * linux-xtensa-low.cc (class xtensa_target)
1786 <low_breakpoint_at>: Declare.
1787 (xtensa_breakpoint_at): Turn into...
1788 (xtensa_target::low_breakpoint_at): ...this.
1789 (the_low_target): Remove the op field.
1791 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1793 Turn the 'decr_pc_after_break' linux_target_ops field into
1794 a method of linux_process_target.
1796 * linux-low.h (struct linux_target_ops)
1797 <decr_pc_after_break>: Remove.
1798 (class linux_process_target) <low_decr_pc_after_break>: New method
1800 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1801 New method implementation.
1803 Update the users below.
1805 (linux_process_target::save_stop_reason)
1806 (linux_process_target::wait_1)
1807 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1809 (x86_target::low_decr_pc_after_break): New method implementation.
1810 (the_low_target): Remove the field.
1811 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1813 (bfin_target::low_decr_pc_after_break): New method implementation.
1814 (the_low_target): Remove the field.
1815 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1817 (m68k_target::low_decr_pc_after_break): New method implementation.
1818 (the_low_target): Remove the field.
1819 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1821 (s390_target::low_decr_pc_after_break): New method implementation.
1822 (the_low_target): Remove the field.
1823 * linux-aarch64-low.cc (the_low_target): Remove the field.
1824 * linux-arm-low.cc (the_low_target): Remove the field.
1825 * linux-cris-low.cc (the_low_target): Remove the field.
1826 * linux-crisv32-low.cc (the_low_target): Remove the field.
1827 * linux-m32r-low.cc (the_low_target): Remove the field.
1828 * linux-mips-low.cc (the_low_target): Remove the field.
1829 * linux-nios2-low.cc (the_low_target): Remove the field.
1830 * linux-ppc-low.cc (the_low_target): Remove the field.
1831 * linux-riscv-low.cc (the_low_target): Remove the field.
1832 * linux-sh-low.cc (the_low_target): Remove the field.
1833 * linux-sparc-low.cc (the_low_target): Remove the field.
1834 * linux-tic6x-low.cc (the_low_target): Remove the field.
1835 * linux-tile-low.cc (the_low_target): Remove the field.
1836 * linux-xtensa-low.cc (the_low_target): Remove the field.
1838 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1840 Remove the 'supports_software_single_step' linux target op and let
1841 the concrete linux target define it by overriding the op in
1842 process_stratum_target.
1843 Turn the 'get_next_pcs' linux target op into a method of
1844 linux_process_target.
1846 * linux-low.h (struct linux_target_ops): Remove the ops.
1847 (class linux_process_target) <supports_software_single_step>:
1849 <low_get_next_pcs>: Declare.
1850 * linux-low.cc (can_software_single_step): Remove.
1851 (linux_process_target::low_get_next_pcs): Define.
1852 (linux_process_target::supports_software_single_step): Remove.
1854 Update the callers below.
1856 (linux_process_target::handle_extended_wait)
1857 (linux_process_target::wait_1)
1858 (linux_process_target::install_software_single_step_breakpoints)
1859 (linux_process_target::single_step)
1860 (linux_process_target::thread_needs_step_over)
1861 (linux_process_target::proceed_one_lwp)
1862 (linux_process_target::supports_range_stepping)
1864 * linux-x86-low.cc (the_low_target): Remove the op field.
1865 * linux-aarch64-low.cc (the_low_target): Ditto.
1866 * linux-bfin-low.cc (the_low_target): Ditto.
1867 * linux-cris-low.cc (the_low_target): Ditto.
1868 * linux-crisv32-low.cc (the_low_target): Ditto.
1869 * linux-m32r-low.cc (the_low_target): Ditto.
1870 * linux-m68k-low.cc (the_low_target): Ditto.
1871 * linux-mips-low.cc (the_low_target): Ditto.
1872 * linux-nios2-low.cc (the_low_target): Ditto.
1873 * linux-ppc-low.cc (the_low_target): Ditto.
1874 * linux-riscv-low.cc (the_low_target): Ditto.
1875 * linux-s390-low.cc (the_low_target): Ditto.
1876 * linux-sh-low.cc (the_low_target): Ditto.
1877 * linux-sparc-low.cc (the_low_target): Ditto.
1878 * linux-tic6x-low.cc (the_low_target): Ditto.
1879 * linux-tile-low.cc (the_low_target): Ditto.
1880 * linux-xtensa-low.cc (the_low_target): Ditto.
1881 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1882 <supports_software_single_step>: Declare.
1883 (arm_target::supports_software_single_step): Define.
1884 (arm_gdbserver_get_next_pcs): Turn into...
1885 (arm_target::low_get_next_pcs): ...this.
1886 (the_low_target): Remove the op field.
1888 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1890 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1891 the concrete linux target define it by overriding the op
1892 in process_stratum_target.
1894 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1896 * linux-low.h (struct linux_target_ops): Remove the op.
1897 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1898 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1900 (x86_sw_breakpoint_from_kind): Turn into...
1901 (x86_target::sw_breakpoint_from_kind): ...this.
1902 (the_low_target): Remove the op field.
1903 * linux-aarch64-low.cc (class aarch64_target)
1904 <sw_breakpoint_from_kind>: Declare.
1905 (aarch64_sw_breakpoint_from_kind): Turn into...
1906 (aarch64_target::sw_breakpoint_from_kind): ...this.
1907 (the_low_target): Remove the op field.
1908 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1910 (arm_target::sw_breakpoint_from_kind): Define.
1911 (the_low_target): Remove the op field.
1912 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1914 (bfin_sw_breakpoint_from_kind): Turn into...
1915 (bfin_target::sw_breakpoint_from_kind): ...this.
1916 (the_low_target): Remove the op field.
1917 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1919 (cris_sw_breakpoint_from_kind): Turn into...
1920 (cris_target::sw_breakpoint_from_kind): ...this.
1921 (the_low_target): Remove the op field.
1922 * linux-crisv32-low.cc (class crisv32_target)
1923 <sw_breakpoint_from_kind>: Declare.
1924 (cris_sw_breakpoint_from_kind): Turn into...
1925 (crisv32_target::sw_breakpoint_from_kind): ...this.
1926 (the_low_target): Remove the op field.
1927 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1929 (ia64_target::sw_breakpoint_from_kind): Define.
1930 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1932 (m32r_sw_breakpoint_from_kind): Turn into...
1933 (m32r_target::sw_breakpoint_from_kind): ...this.
1934 (the_low_target): Remove the op field.
1935 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1937 (m68k_sw_breakpoint_from_kind): Turn into...
1938 (m68k_target::sw_breakpoint_from_kind): ...this.
1939 (the_low_target): Remove the op field.
1940 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1942 (mips_sw_breakpoint_from_kind): Turn into...
1943 (mips_target::sw_breakpoint_from_kind): ...this.
1944 (the_low_target): Remove the op field.
1945 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1947 (nios2_sw_breakpoint_from_kind): Turn into...
1948 (nios2_target::sw_breakpoint_from_kind): ...this.
1949 (the_low_target): Remove the op field.
1950 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1952 (ppc_sw_breakpoint_from_kind): Turn into...
1953 (ppc_target::sw_breakpoint_from_kind): ...this.
1954 (the_low_target): Remove the op field.
1955 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1957 (riscv_sw_breakpoint_from_kind): Turn into...
1958 (riscv_target::sw_breakpoint_from_kind): ...this.
1959 (the_low_target): Remove the op field.
1960 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1962 (s390_sw_breakpoint_from_kind): Turn into...
1963 (s390_target::sw_breakpoint_from_kind): ...this.
1964 (the_low_target): Remove the op field.
1965 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1967 (sh_sw_breakpoint_from_kind): Turn into...
1968 (sh_target::sw_breakpoint_from_kind): ...this.
1969 (the_low_target): Remove the op field.
1970 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1972 (sparc_sw_breakpoint_from_kind): Turn into...
1973 (sparc_target::sw_breakpoint_from_kind): ...this.
1974 (the_low_target): Remove the op field.
1975 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1977 (tic6x_sw_breakpoint_from_kind): Turn into...
1978 (tic6x_target::sw_breakpoint_from_kind): ...this.
1979 (the_low_target): Remove the op field.
1980 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1982 (tile_sw_breakpoint_from_kind): Turn into...
1983 (tile_target::sw_breakpoint_from_kind): ...this.
1984 (the_low_target): Remove the op field.
1985 * linux-xtensa-low.cc (class xtensa_target)
1986 <sw_breakpoint_from_kind>: Declare.
1987 (xtensa_sw_breakpoint_from_kind): Turn into...
1988 (xtensa_target::sw_breakpoint_from_kind): ...this.
1989 (the_low_target): Remove the op field.
1991 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1993 Remove the 'breakpoint_kind_from_pc' and
1994 'breakpoint_kind_from_current_state' linux target ops, and let the
1995 concrete linux target define them by overriding the ops of
1996 process_stratum_target.
1998 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
2000 (linux_process_target::breakpoint_kind_from_current_state): Remove.
2001 * linux-low.h (struct linux_target_ops): Remove ops.
2002 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
2003 <breakpoint_kind_from_current_state>: Remove.
2004 * linux-x86-low.cc (the_low_target): Remove the op fields.
2005 * linux-bfin-low.cc (the_low_target): Ditto.
2006 * linux-cris-low.cc (the_low_target): Ditto.
2007 * linux-crisv32-low.cc (the_low_target): Ditto.
2008 * linux-m32r-low.cc (the_low_target): Ditto.
2009 * linux-m68k-low.cc (the_low_target): Ditto.
2010 * linux-mips-low.cc (the_low_target): Ditto.
2011 * linux-nios2-low.cc (the_low_target): Ditto.
2012 * linux-ppc-low.cc (the_low_target): Ditto.
2013 * linux-s390-low.cc (the_low_target): Ditto.
2014 * linux-sh-low.cc (the_low_target): Ditto.
2015 * linux-sparc-low.cc (the_low_target): Ditto.
2016 * linux-tic6x-low.cc (the_low_target): Ditto.
2017 * linux-tile-low.cc (the_low_target): Ditto.
2018 * linux-xtensa-low.cc (the_low_target): Ditto.
2019 * linux-aarch64-low.cc (class aarch64_target)
2020 <breakpoint_kind_from_pc>
2021 <breakpoint_kind_from_current_state>: Declare.
2022 (aarch64_breakpoint_kind_from_pc): Turn into...
2023 (aarch64_target::breakpoint_kind_from_pc): ...this.
2024 (aarch64_breakpoint_kind_from_current_state): Turn into...
2025 (aarch64_target::breakpoint_kind_from_current_state): ...this.
2026 (the_low_target): Remove the op fields.
2027 * linux-arm-low.cc (class arm_target):
2028 <breakpoint_kind_from_pc>
2029 <breakpoint_kind_from_current_state>: Declare.
2030 (arm_target::breakpoint_kind_from_pc): Define.
2031 (arm_target::breakpoint_kind_from_current_state): Define.
2032 (the_low_target): Remove the op fields.
2033 * linux-riscv-low.cc (class riscv_target):
2034 <breakpoint_kind_from_pc>: Declare.
2035 (riscv_breakpoint_kind_from_pc): Turn into...
2036 (riscv_target::breakpoint_kind_from_pc): ...this.
2037 (the_low_target): Remove the op fields.
2039 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2041 Turn the 'get_pc' and 'set_pc' linux target ops into methods
2042 of linux_process_target.
2044 * linux-low.h (struct linux_target_ops): Remove the ops.
2045 (class linux_process_target) <low_supports_breakpoints>
2047 <low_set_pc>: Declare.
2048 * linux-low.cc (supports_breakpoints): Turn into...
2049 (linux_process_target::low_supports_breakpoints): ...this.
2050 (linux_process_target::low_get_pc): Define.
2051 (linux_process_target::low_set_pc): Define.
2053 Update the callers below.
2055 (linux_process_target::get_pc)
2056 (linux_process_target::save_stop_reason)
2057 (linux_process_target::maybe_move_out_of_jump_pad)
2058 (linux_process_target::wait_1)
2059 (linux_process_target::resume_one_lwp_throw)
2060 (linux_process_target::resume)
2061 (linux_process_target::proceed_all_lwps)
2062 (linux_process_target::read_pc)
2063 (linux_process_target::write_pc)
2065 * linux-x86-low.cc (class linux_process_target)
2066 <low_supports_breakpoints>
2068 <low_set_pc>: Declare.
2069 (x86_target::low_supports_breakpoints): Define.
2070 (x86_get_pc): Turn into...
2071 (x86_target::low_get_pc): ...this.
2072 (x86_set_pc): Turn into...
2073 (x86_target::low_set_pc): ...this.
2074 (the_low_target): Remove the op fields.
2075 * linux-arm-low.cc (class arm_target)
2076 <low_supports_breakpoints>
2078 <low_set_pc>: Declare.
2079 (arm_target::low_supports_breakpoints)
2080 (arm_target::low_get_pc)
2081 (arm_target::low_set_pc): Define.
2082 (the_low_target): Remove the op fields.
2083 * linux-bfin-low.cc (class bfin_target)
2084 <low_supports_breakpoints>
2086 <low_set_pc>: Declare.
2087 (bfin_target::low_supports_breakpoints)
2088 (bfin_target::low_get_pc)
2089 (bfin_target::low_set_pc): Define.
2090 (the_low_target): Remove the op fields.
2091 * linux-cris-low.cc (class cris_target)
2092 <low_supports_breakpoints>
2094 <low_set_pc>: Declare.
2095 (cris_target::low_supports_breakpoints)
2096 (cris_target::low_get_pc)
2097 (cris_target::low_set_pc): Define.
2098 (the_low_target): Remove the op fields.
2099 * linux-crisv32-low.cc (class crisv32_target)
2100 <low_supports_breakpoints>
2102 <low_set_pc>: Declare.
2103 (crisv32_target::low_supports_breakpoints)
2104 (crisv32_target::low_get_pc)
2105 (crisv32_target::low_set_pc): Define.
2106 (the_low_target): Remove the op fields.
2107 * linux-m32r-low.cc (class m32r_target)
2108 <low_supports_breakpoints>
2110 <low_set_pc>: Declare.
2111 (m32r_target::low_supports_breakpoints)
2112 (m32r_target::low_get_pc)
2113 (m32r_target::low_set_pc): Define.
2114 (the_low_target): Remove the op fields.
2115 * linux-m68k-low.cc (class m68k_target)
2116 <low_supports_breakpoints>
2118 <low_set_pc>: Declare.
2119 (m68k_target::low_supports_breakpoints)
2120 (m68k_target::low_get_pc)
2121 (m68k_target::low_set_pc): Define.
2122 (the_low_target): Remove the op fields.
2123 * linux-nios2-low.cc (class nios2_target)
2124 <low_supports_breakpoints>
2126 <low_set_pc>: Declare.
2127 (nios2_target::low_supports_breakpoints)
2128 (nios2_target::low_get_pc)
2129 (nios2_target::low_set_pc): Define.
2130 (the_low_target): Remove the op fields.
2131 * linux-sh-low.cc (class sh_target)
2132 <low_supports_breakpoints>
2134 <low_set_pc>: Declare.
2135 (sh_target::low_supports_breakpoints)
2136 (sh_target::low_get_pc)
2137 (sh_target::low_set_pc): Define.
2138 (the_low_target): Remove the op fields.
2139 * linux-xtensa-low.cc (class xtensa_target)
2140 <low_supports_breakpoints>
2142 <low_set_pc>: Declare.
2143 (xtensa_target::low_supports_breakpoints)
2144 (xtensa_target::low_get_pc)
2145 (xtensa_target::low_set_pc): Define.
2146 (the_low_target): Remove the op fields.
2147 * linux-sparc-low.cc (class sparc_target)
2148 <low_supports_breakpoints>
2149 <low_get_pc>: Declare.
2150 (sparc_target::low_supports_breakpoints)
2151 (sparc_target::low_get_pc): Define.
2152 (the_low_target): Remove the op fields.
2153 * linux-tile-low.cc (class tile_target)
2154 <low_supports_breakpoints>
2156 <low_set_pc>: Declare.
2157 (tile_target::low_supports_breakpoints)
2158 (tile_target::low_get_pc)
2159 (tile_target::low_set_pc): Define.
2160 (the_low_target): Remove the op fields.
2161 * linux-aarch64-low.cc (class aarch64_target)
2162 <low_supports_breakpoints>
2164 <low_set_pc>: Declare.
2165 (aarch64_target::low_supports_breakpoints): Define.
2166 (aarch64_get_pc): Turn into...
2167 (aarch64_target::low_get_pc): ...this.
2168 (aarch64_set_pc): Turn into...
2169 (aarch64_target::low_set_pc): ...this.
2170 (the_low_target): Remove the op fields.
2171 * linux-mips-low.cc (class mips_target)
2172 <low_supports_breakpoints>
2174 <low_set_pc>: Declare.
2175 (mips_target::low_supports_breakpoints): Define.
2176 (mips_get_pc): Turn into...
2177 (mips_target::low_get_pc): ...this.
2178 (mips_set_pc): Turn into...
2179 (mips_target::low_set_pc): ...this.
2180 (the_low_target): Remove the op fields.
2181 * linux-ppc-low.cc (class ppc_target)
2182 <low_supports_breakpoints>
2184 <low_set_pc>: Declare.
2185 (ppc_target::low_supports_breakpoints): Define.
2186 (ppc_get_pc): Turn into...
2187 (ppc_target::low_get_pc): ...this.
2188 (ppc_set_pc): Turn into...
2189 (ppc_target::low_set_pc): ...this.
2190 (the_low_target): Remove the op fields.
2191 * linux-riscv-low.cc (class riscv_target)
2192 <low_supports_breakpoints>
2194 <low_set_pc>: Declare.
2195 (riscv_target::low_supports_breakpoints): Define.
2196 (riscv_get_pc): Turn into...
2197 (riscv_target::low_get_pc): ...this.
2198 (riscv_set_pc): Turn into...
2199 (riscv_target::low_set_pc): ...this.
2200 (the_low_target): Remove the op fields.
2201 * linux-s390-low.cc (class s390_target)
2202 <low_supports_breakpoints>
2204 <low_set_pc>: Declare.
2205 (s390_target::low_supports_breakpoints): Define.
2206 (s390_get_pc): Turn into...
2207 (s390_target::low_get_pc): ...this.
2208 (s390_set_pc): Turn into...
2209 (s390_target::low_set_pc): ...this.
2210 (the_low_target): Remove the op fields.
2211 * linux-tic6x-low.cc (class tic6x_target)
2212 <low_supports_breakpoints>
2214 <low_set_pc>: Declare.
2215 (tic6x_target::low_supports_breakpoints): Define.
2216 (tic6x_get_pc): Turn into...
2217 (tic6x_target::low_get_pc): ...this.
2218 (tic6x_set_pc): Turn into...
2219 (tic6x_target::low_set_pc): ...this.
2220 (the_low_target): Remove the op fields.
2222 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2224 Turn some more static methods in linux-low into private methods
2225 of linux_process_target.
2227 * linux-low.cc (get_pc): Turn into...
2228 (linux_process_target::get_pc): ...this.
2229 (save_stop_reason): Turn into...
2230 (linux_process_target::save_stop_reason): ...this.
2231 (thread_still_has_status_pending_p): Turn into...
2232 (linux_process_target::thread_still_has_status_pending): ...this.
2233 (status_pending_p_callback): Turn into...
2234 (linux_process_target::status_pending_p_callback): ...this.
2235 (resume_stopped_resumed_lwps): Turn into...
2236 (linux_process_target::resume_stopped_resumed_lwps): ...this.
2237 (install_software_single_step_breakpoints): Turn into...
2238 (linux_process_target::install_software_single_step_breakpoints):
2240 (single_step): Turn into...
2241 (linux_process_target::single_step): ...this.
2242 (linux_resume_one_lwp_throw): Turn into...
2243 (linux_process_target::resume_one_lwp_throw): ...this.
2244 (linux_resume_one_lwp): Turn into...
2245 (linux_process_target::resume_one_lwp): ...this.
2246 (resume_status_pending_p): Turn into...
2247 (linux_process_target::resume_status_pending): ...this.
2248 (need_step_over_p): Turn into...
2249 (linux_process_target::thread_needs_step_over): ...this.
2250 (linux_resume_one_thread): Turn into...
2251 (linux_process_target::resume_one_thread): ...this.
2252 (proceed_one_lwp): Turn into...
2253 (linux_process_target::proceed_one_lwp): ...this.
2254 (unsuspend_and_proceed_one_lwp): Turn into...
2255 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
2257 Update the calls/references to the above functions below.
2259 (linux_process_target::handle_extended_wait)
2260 (linux_process_target::filter_event)
2261 (linux_process_target::wait_for_event_filtered)
2262 (linux_process_target::wait_1)
2263 (linux_process_target::move_out_of_jump_pad)
2264 (linux_process_target::start_step_over)
2265 (linux_process_target::resume)
2266 (linux_process_target::proceed_all_lwps)
2267 (regsets_store_inferior_registers)
2268 (linux_process_target::store_register)
2270 * linux-low.h (class linux_process_target)
2273 <thread_still_has_status_pending>
2274 <status_pending_p_callback>
2275 <resume_stopped_resumed_lwps>
2276 <install_software_single_step_breakpoints>
2278 <resume_one_lwp_throw>
2280 <resume_status_pending>
2281 <thread_needs_step_over>
2284 <unsuspend_and_proceed_one_lwp>: Declare.
2286 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2288 Turn the 'fetch_register' linux target op into a method of
2289 linux_process_target.
2291 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
2292 (class linux_process_target) <low_fetch_register>: Declare.
2293 * linux-x86-low.cc (the_low_target)
2294 * linux-aarch64-low.cc (the_low_target)
2295 * linux-arm-low.cc (the_low_target)
2296 * linux-bfin-low.cc (the_low_target)
2297 * linux-cris-low.cc (the_low_target)
2298 * linux-crisv32-low.cc (the_low_target)
2299 * linux-m32r-low.cc (the_low_target)
2300 * linux-m68k-low.cc (the_low_target)
2301 * linux-nios2-low.cc (the_low_target)
2302 * linux-ppc-low.cc (the_low_target)
2303 * linux-s390-low.cc (the_low_target)
2304 * linux-sh-low.cc (the_low_target)
2305 * linux-sparc-low.cc (the_low_target)
2306 * linux-tic6x-low.cc (the_low_target)
2307 * linux-tile-low.cc (the_low_target)
2308 * linux-xtensa-low.cc (the_low_target): Remove the op field.
2309 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
2311 (ia64_fetch_register): Turn into...
2312 (ia64_target::low_fetch_register): ...this.
2313 (the_low_target): Remove the op field.
2314 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
2316 (mips_fetch_register): Turn into...
2317 (mips_target::low_fetch_register): ...this.
2318 (the_low_target): Remove the op field.
2319 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
2321 (riscv_fetch_register): Turn into...
2322 (riscv_target::low_fetch_register): ...this.
2323 (the_low_target): Remove the op field.
2325 Update the callers below.
2327 * linux-low.cc (linux_process_target::fetch_registers)
2328 (linux_process_target::low_fetch_register)
2330 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2332 Turn the 'cannot_fetch_register' and 'cannot_store_register'
2333 linux target ops into methods of linux_process_target.
2335 * linux-low.h (struct linux_target_ops): Remove the low target ops.
2336 (class linux_process_target) <fetch_register>
2338 <usr_fetch_inferior_registers>
2339 <usr_store_inferior_registers>
2340 <low_cannot_fetch_register>
2341 <low_cannot_fetch_register> Declare.
2342 * linux-low.cc (fetch_register): Turn into...
2343 (linux_process_target::fetch_register): ...this.
2344 (store_register): Turn into ...
2345 (linux_process_target::store_register): ...this.
2346 (usr_fetch_inferior_registers): Turn into...
2347 (linux_process_target::usr_fetch_inferior_registers): ...this.
2348 (usr_store_inferior_registers): Turn into...
2349 (linux_process_target::usr_store_inferior_registers): ...this.
2350 * linux-x86-low.cc (class x86_target)
2351 <low_cannot_fetch_register>
2352 <low_cannot_store_register>: Declare.
2353 (x86_cannot_store_register): Turn into...
2354 (x86_target::low_cannot_store_register): ...this.
2355 (x86_cannot_fetch_register): Turn into...
2356 (x86_target::low_cannot_fetch_register): ...this.
2357 (the_low_target): Remove the target op fields.
2358 * linux-aarch64-low.cc (class aarch64_target)
2359 <low_cannot_fetch_register>
2360 <low_cannot_store_register>: Declare.
2361 (aarch64_target::low_cannot_fetch_register)
2362 (aarch64_target::low_cannot_store_register): Define.
2363 (the_low_target): Remove the op fields.
2364 * linux-arm-low.cc (class arm_target)
2365 <low_cannot_fetch_register>
2366 <low_cannot_store_register>: Declare.
2367 (arm_cannot_fetch_register): Turn into...
2368 (arm_target::low_cannot_fetch_register): ...this.
2369 (arm_cannot_store_register): Turn into...
2370 (arm_target::low_cannot_store_register): ...this.
2371 (the_low_target): Remove the op fields.
2372 * linux-bfin-low.cc (class bfin_target)
2373 <low_cannot_fetch_register>
2374 <low_cannot_store_register>: Declare.
2375 (bfin_cannot_fetch_register): Turn into...
2376 (bfin_target::low_cannot_fetch_register): ...this.
2377 (bfin_cannot_store_register): Turn into...
2378 (bfin_target::low_cannot_store_register): ...this.
2379 (the_low_target): Remove the op fields.
2380 * linux-cris-low.cc (class cris_target)
2381 <low_cannot_fetch_register>
2382 <low_cannot_store_register>: Declare.
2383 (cris_cannot_fetch_register): Turn into...
2384 (cris_target::low_cannot_fetch_register): ...this.
2385 (cris_cannot_store_register): Turn into...
2386 (cris_target::low_cannot_store_register): ...this.
2387 (the_low_target): Remove the op fields.
2388 * linux-crisv32-low.cc (class crisv32_target)
2389 <low_cannot_fetch_register>
2390 <low_cannot_store_register>: Declare.
2391 (crisv32_target::low_cannot_fetch_register)
2392 (crisv32_target::low_cannot_store_register): Define.
2393 (the_low_target): Remove the op fields.
2394 * linux-ia64-low.cc (class ia64_target)
2395 <low_cannot_fetch_register>
2396 <low_cannot_store_register>: Declare.
2397 (ia64_cannot_fetch_register): Turn into...
2398 (ia64_target::low_cannot_fetch_register): ...this.
2399 (ia64_cannot_store_register): Turn into...
2400 (ia64_target::low_cannot_store_register): ...this.
2401 (the_low_target): Remove the op fields.
2402 * linux-m32r-low.cc (class m32r_target)
2403 <low_cannot_fetch_register>
2404 <low_cannot_store_register>: Declare.
2405 (m32r_cannot_fetch_register): Turn into...
2406 (m32r_target::low_cannot_fetch_register): ...this.
2407 (m32r_cannot_store_register): Turn into...
2408 (m32r_target::low_cannot_store_register): ...this.
2409 (the_low_target): Remove the op fields.
2410 * linux-m68k-low.cc (class m68k_target)
2411 <low_cannot_fetch_register>
2412 <low_cannot_store_register>: Declare.
2413 (m68k_cannot_fetch_register): Turn into...
2414 (m68k_target::low_cannot_fetch_register): ...this.
2415 (m68k_cannot_store_register): Turn into...
2416 (m68k_target::low_cannot_store_register): ...this.
2417 (the_low_target): Remove the op fields.
2418 * linux-mips-low.cc (class mips_target)
2419 <low_cannot_fetch_register>
2420 <low_cannot_store_register>: Declare.
2421 (mips_cannot_fetch_register): Turn into...
2422 (mips_target::low_cannot_fetch_register): ...this.
2423 (mips_cannot_store_register): Turn into...
2424 (mips_target::low_cannot_store_register): ...this.
2425 (get_usrregs_info): Inline at the call sites in
2426 low_cannot_fetch_register and low_cannot_store_register,
2428 (the_low_target): Remove the op fields.
2429 * linux-nios2-low.cc (class nios2_target)
2430 <low_cannot_fetch_register>
2431 <low_cannot_store_register>: Declare.
2432 (nios2_cannot_fetch_register): Turn into...
2433 (nios2_target::low_cannot_fetch_register): ...this.
2434 (nios2_cannot_store_register): Turn into...
2435 (nios2_target::low_cannot_store_register): ...this.
2436 (the_low_target): Remove the op fields.
2437 * linux-ppc-low.cc (class ppc_target)
2438 <low_cannot_fetch_register>
2439 <low_cannot_store_register>: Declare.
2440 (ppc_cannot_fetch_register): Turn into...
2441 (ppc_target::low_cannot_fetch_register): ...this.
2442 (ppc_cannot_store_register): Turn into...
2443 (ppc_target::low_cannot_store_register): ...this.
2444 (the_low_target): Remove the op fields.
2445 * linux-riscv-low.cc (class riscv_target)
2446 <low_cannot_fetch_register>
2447 <low_cannot_store_register>: Declare.
2448 (riscv_target::low_cannot_fetch_register)
2449 (riscv_target::low_cannot_store_register): Define.
2450 (the_low_target): Remove the op fields.
2451 * linux-s390-low.cc (class s390_target)
2452 <low_cannot_fetch_register>
2453 <low_cannot_store_register>: Declare.
2454 (s390_cannot_fetch_register): Turn into...
2455 (s390_target::low_cannot_fetch_register): ...this.
2456 (s390_cannot_store_register): Turn into...
2457 (s390_target::low_cannot_store_register): ...this.
2458 (the_low_target): Remove the op fields.
2459 * linux-sh-low.cc (class sh_target)
2460 <low_cannot_fetch_register>
2461 <low_cannot_store_register>: Declare.
2462 (sh_cannot_fetch_register): Turn into...
2463 (sh_target::low_cannot_fetch_register): ...this.
2464 (sh_cannot_store_register): Turn into...
2465 (sh_target::low_cannot_store_register): ...this.
2466 (the_low_target): Remove the op fields.
2467 * linux-sparc-low.cc (class sparc_target)
2468 <low_cannot_fetch_register>
2469 <low_cannot_store_register>: Declare.
2470 (sparc_cannot_fetch_register): Turn into...
2471 (sparc_target::low_cannot_fetch_register): ...this.
2472 (sparc_cannot_store_register): Turn into...
2473 (sparc_target::low_cannot_store_register): ...this.
2474 (the_low_target): Remove the op fields.
2475 * linux-tic6x-low.cc (class tic6x_target)
2476 <low_cannot_fetch_register>
2477 <low_cannot_store_register>: Declare.
2478 (tic6x_cannot_fetch_register): Turn into...
2479 (tic6x_target::low_cannot_fetch_register): ...this.
2480 (tic6x_cannot_store_register): Turn into...
2481 (tic6x_target::low_cannot_store_register): ...this.
2482 (the_low_target): Remove the op fields.
2483 * linux-tile-low.cc (class tile_target)
2484 <low_cannot_fetch_register>
2485 <low_cannot_store_register>: Declare.
2486 (tile_cannot_fetch_register): Turn into...
2487 (tile_target::low_cannot_fetch_register): ...this.
2488 (tile_cannot_store_register): Turn into...
2489 (tile_target::low_cannot_store_register): ...this.
2490 (the_low_target): Remove the op fields.
2491 * linux-xtensa-low.cc (class xtensa_target)
2492 <low_cannot_fetch_register>
2493 <low_cannot_store_register>: Declare.
2494 (xtensa_target::low_cannot_fetch_register)
2495 (xtensa_target::low_cannot_store_register): Define.
2496 (the_low_target): Remove the op fields.
2498 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2500 Turn the 'regs_info' linux target op into a method of
2501 linux_process_target.
2503 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2504 (class linux_process_target) <get_regs_info>: Define.
2506 Update the callers below.
2508 * linux-low.cc (linux_process_target::fetch_registers)
2509 (linux_process_target::store_registers)
2510 * proc-service.cc (gregset_info)
2512 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2513 (x86_linux_regs_info): Turn into ...
2514 (x86_target::get_regs_info): ...this.
2515 (the_low_target): Remove the op field.
2516 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2518 (aarch64_regs_info): Turn into ...
2519 (aarch64_target::get_regs_info): ...this.
2520 (the_low_target): Remove the op field.
2521 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2522 (arm_regs_info): Turn into ...
2523 (arm_target::get_regs_info): ...this.
2524 (the_low_target): Remove the op field.
2525 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2526 (bfin_regs_info): Turn into ...
2527 (bfin_target::get_regs_info): ...this.
2528 (the_low_target): Remove the op field.
2529 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2530 (cris_regs_info): Turn into ...
2531 (cris_target::get_regs_info): ...this.
2532 (the_low_target): Remove the op field.
2533 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2535 (crisv32_regs_info): Turn into ...
2536 (crisv32_target::get_regs_info): ...this.
2537 (the_low_target): Remove the op field.
2538 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2539 (ia64_regs_info): Turn into ...
2540 (ia64_target::get_regs_info): ...this.
2541 (the_low_target): Remove the op field.
2542 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2543 (m32r_regs_info): Turn into ...
2544 (m32r_target::get_regs_info): ...this.
2545 (the_low_target): Remove the op field.
2546 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2547 (m68k_regs_info): Turn into ...
2548 (m68k_target::get_regs_info): ...this.
2549 (the_low_target): Remove the op field.
2550 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2551 (mips_regs_info): Turn into ...
2552 (mips_target::get_regs_info): ...this.
2553 (the_low_target): Remove the op field.
2554 (get_usrregs_info): Update the call to the op.
2555 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2556 (nios2_regs_info): Turn into ...
2557 (nios2_target::get_regs_info): ...this.
2558 (the_low_target): Remove the op field.
2559 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2560 (ppc_regs_info): Turn into ...
2561 (ppc_target::get_regs_info): ...this.
2562 (the_low_target): Remove the op field.
2563 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2564 (riscv_regs_info): Turn into ...
2565 (riscv_target::get_regs_info): ...this.
2566 (the_low_target): Remove the op field.
2567 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2568 (s390_regs_info): Turn into ...
2569 (s390_target::get_regs_info): ...this.
2570 (the_low_target): Remove the op field.
2571 (s390_collect_ptrace_register)
2572 (s390_supply_ptrace_register)
2573 (s390_fill_gregset): Update the call to the op.
2574 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2575 (sh_regs_info): Turn into ...
2576 (sh_target::get_regs_info): ...this.
2577 (the_low_target): Remove the op field.
2578 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2579 (sparc_regs_info): Turn into ...
2580 (sparc_target::get_regs_info): ...this.
2581 (the_low_target): Remove the op field.
2582 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2583 (tic6x_regs_info): Turn into ...
2584 (tic6x_target::get_regs_info): ...this.
2585 (the_low_target): Remove the op field.
2586 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2587 (tile_regs_info): Turn into ...
2588 (tile_target::get_regs_info): ...this.
2589 (the_low_target): Remove the op field.
2590 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2592 (xtensa_regs_info): Turn into ...
2593 (xtensa_target::get_regs_info): ...this.
2594 (the_low_target): Remove the op field.
2596 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2598 Turn the 'arch_setup' linux target op into a method of
2599 linux_process_target.
2601 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2602 (class linux_process_target) <arch_setup_thread>
2603 <low_arch_setup>: New declarations.
2604 * linux-low.cc (linux_arch_setup): Delete.
2605 (linux_arch_setup_thread): Turn into...
2606 (linux_process_target::arch_setup_thread): ... this.
2608 Update the callers below.
2610 (linux_process_target::handle_extended_wait)
2611 (linux_process_target::post_create_inferior)
2612 (linux_process_target::filter_event)
2614 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2616 (x86_linux_update_xmltarget): Turn into...
2617 (x86_target::update_xmltarget): ...this.
2618 (x86_linux_process_qsupported): Update the call to
2619 x86_linux_update_xmltarget.
2620 (x86_arch_setup): Turn into ...
2621 (x86_target::low_arch_setup): ...this.
2622 (the_low_target): Remove the op field.
2623 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2625 (aarch64_arch_setup): Turn into ...
2626 (aarch64_target::low_arch_setup): ...this.
2627 (the_low_target): Remove the op field.
2628 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2630 (arm_arch_setup): Turn into ...
2631 (arm_target::low_arch_setup): ...this.
2632 (the_low_target): Remove the op field.
2633 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2635 (bfin_arch_setup): Turn into ...
2636 (bfin_target::low_arch_setup): ...this.
2637 (the_low_target): Remove the op field.
2638 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2640 (cris_arch_setup): Turn into ...
2641 (cris_target::low_arch_setup): ...this.
2642 (the_low_target): Remove the op field.
2643 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2645 (crisv32_arch_setup): Turn into ...
2646 (crisv32_target::low_arch_setup): ...this.
2647 (the_low_target): Remove the op field.
2648 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2650 (ia64_arch_setup): Turn into ...
2651 (ia64_target::low_arch_setup): ...this.
2652 (the_low_target): Remove the op field.
2653 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2655 (m32r_arch_setup): Turn into ...
2656 (m32r_target::low_arch_setup): ...this.
2657 (the_low_target): Remove the op field.
2658 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2660 (m68k_arch_setup): Turn into ...
2661 (m68k_target::low_arch_setup): ...this.
2662 (the_low_target): Remove the op field.
2663 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2665 (mips_arch_setup): Turn into ...
2666 (mips_target::low_arch_setup): ...this.
2667 (the_low_target): Remove the op field.
2668 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2670 (nios2_arch_setup): Turn into ...
2671 (nios2_target::low_arch_setup): ...this.
2672 (the_low_target): Remove the op field.
2673 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2675 (ppc_arch_setup): Turn into ...
2676 (ppc_target::low_arch_setup): ...this.
2677 (the_low_target): Remove the op field.
2678 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2680 (riscv_arch_setup): Turn into ...
2681 (riscv_target::low_arch_setup): ...this.
2682 (the_low_target): Remove the op field.
2683 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2685 (s390_arch_setup): Turn into ...
2686 (s390_target::low_arch_setup): ...this.
2687 (the_low_target): Remove the op field.
2688 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2690 (sh_arch_setup): Turn into ...
2691 (sh_target::low_arch_setup): ...this.
2692 (the_low_target): Remove the op field.
2693 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2695 (sparc_arch_setup): Turn into ...
2696 (sparc_target::low_arch_setup): ...this.
2697 (the_low_target): Remove the op field.
2698 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2700 (tic6x_arch_setup): Turn into ...
2701 (tic6x_target::low_arch_setup): ...this.
2702 (the_low_target): Remove the op field.
2703 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2705 (tile_arch_setup): Turn into ...
2706 (tile_target::low_arch_setup): ...this.
2707 (the_low_target): Remove the op field.
2708 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2710 (xtensa_arch_setup): Turn into ...
2711 (xtensa_target::low_arch_setup): ...this.
2712 (the_low_target): Remove the op field.
2714 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2716 * linux-low.h (the_linux_target): New extern declaration.
2717 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2719 (the_linux_target): Remove.
2720 * linux-x86-low.cc (class x86_target): New class.
2721 (the_x86_target): New static object.
2722 (the_linux_target): Define as pointer to the_x86_target.
2723 * linux-aarch64-low.cc (class aarch64_target): New class.
2724 (the_aarch64_target): New static object.
2725 (the_linux_target): Define as pointer to the_aarch64_target.
2726 * linux-arm-low.cc (class arm_target): New class.
2727 (the_arm_target): New static object.
2728 (the_linux_target): Define as pointer to the_arm_target.
2729 * linux-bfin-low.cc (class bfin_target): New class.
2730 (the_bfin_target): New static object.
2731 (the_linux_target): Define as pointer to the_bfin_target.
2732 * linux-cris-low.cc (class cris_target): New class.
2733 (the_cris_target): New static object.
2734 (the_linux_target): Define as pointer to the_cris_target.
2735 * linux-crisv32-low.cc (class crisv32_target): New class.
2736 (the_crisv32_target): New static object.
2737 (the_linux_target): Define as pointer to the_crisv32_target.
2738 * linux-ia64-low.cc (class ia64_target): New class.
2739 (the_ia64_target): New static object.
2740 (the_linux_target): Define as pointer to the_ia64_target.
2741 * linux-m32r-low.cc (class m32r_target): New class.
2742 (the_m32r_target): New static object.
2743 (the_linux_target): Define as pointer to the_m32r_target.
2744 * linux-m68k-low.cc (class m68k_target): New class.
2745 (the_m68k_target): New static object.
2746 (the_linux_target): Define as pointer to the_m68k_target.
2747 * linux-mips-low.cc (class mips_target): New class.
2748 (the_mips_target): New static object.
2749 (the_linux_target): Define as pointer to the_mips_target.
2750 * linux-nios2-low.cc (class nios2_target): New class.
2751 (the_nios2_target): New static object.
2752 (the_linux_target): Define as pointer to the_nios2_target.
2753 * linux-ppc-low.cc (class ppc_target): New class.
2754 (the_ppc_target): New static object.
2755 (the_linux_target): Define as pointer to the_ppc_target.
2756 * linux-riscv-low.cc (class riscv_target): New class.
2757 (the_riscv_target): New static object.
2758 (the_linux_target): Define as pointer to the_riscv_target.
2759 * linux-s390-low.cc (class s390_target): New class.
2760 (the_s390_target): New static object.
2761 (the_linux_target): Define as pointer to the_s390_target.
2762 * linux-sh-low.cc (class sh_target): New class.
2763 (the_sh_target): New static object.
2764 (the_linux_target): Define as pointer to the_sh_target.
2765 * linux-sparc-low.cc (class sparc_target): New class.
2766 (the_sparc_target): New static object.
2767 (the_linux_target): Define as pointer to the_sparc_target.
2768 * linux-tic6x-low.cc (class tic6x_target): New class.
2769 (the_tic6x_target): New static object.
2770 (the_linux_target): Define as pointer to the_tic6x_target.
2771 * linux-tile-low.cc (class tile_target): New class.
2772 (the_tile_target): New static object.
2773 (the_linux_target): Define as pointer to the_tile_target.
2774 * linux-xtensa-low.cc (class xtensa_target): New class.
2775 (the_xtensa_target): New static object.
2776 (the_linux_target): Define as pointer to the_xtensa_target.
2778 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2780 Turn some static functions in linux-low.cc into private methods of
2781 linux_process_target.
2783 * linux-low.cc (handle_extended_wait): Turn into ...
2784 (linux_process_target::handle_extended_wait): ...this. Call
2785 'mourn' on 'this' object instead of 'the_target'.
2786 (maybe_move_out_of_jump_pad): Turn into...
2787 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2788 (linux_low_filter_event): Turn into...
2789 (linux_process_target::filter_event): ...this.
2790 (linux_wait_for_event_filtered): Turn into...
2791 (linux_process_target::wait_for_event_filtered): ...this.
2792 (linux_wait_for_event): Turn into...
2793 (linux_process_target::wait_for_event): ...this.
2794 (linux_wait_1): Turn into...
2795 (linux_process_target::wait_1): ...this.
2796 (wait_for_sigstop): Turn into...
2797 (linux_process_target::wait_for_sigstop): ...this.
2798 (move_out_of_jump_pad_callback): Turn into...
2799 (linux_process_target::move_out_of_jump_pad): ...this.
2800 (stop_all_lwps): Turn into...
2801 (linux_process_target::stop_all_lwps): ...this.
2802 (start_step_over): Turn into...
2803 (linux_process_target::start_step_over): ...this.
2804 (complete_ongoing_step_over): Turn into...
2805 (linux_process_target::complete_ongoing_step_over): ...this.
2806 (proceed_all_lwps): Turn into...
2807 (linux_process_target::proceed_all_lwps): ...this.
2808 (unstop_all_lwps): Turn into...
2809 (linux_process_target::unstop_all_lwps): ...this.
2811 * linux-low.h (class linux_process_target)
2812 <handle_extended_wait>
2813 <maybe_move_out_of_jump_pad>
2815 <wait_for_event_filtered>
2819 <move_out_of_jump_pad>
2822 <complete_ongoing_step_over>
2824 <unstop_all_lwps>: Declare.
2826 Update the callers below.
2828 * linux-low.cc (linux_process_target::attach): Update.
2829 (linux_process_target::stabilize_threads): Ditto.
2830 (linux_process_target::wait): Ditto.
2832 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2834 * linux-low.h (struct linux_target_ops): Update the comment for
2835 'cannot_store_register' to return 0 or 1.
2836 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2839 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2841 * config.in: Re-generate.
2842 * configure: Re-generate.
2844 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2846 * regcache.cc (find_register_by_number): Update.
2847 * tdesc.cc (init_target_desc): Likewise.
2848 * tdesc.h (target_desc::reg_defs): Likewise.
2850 2020-03-12 Tom Tromey <tom@tromey.com>
2852 * configure: Rebuild.
2853 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2854 (WIN32APILIBS): New subst.
2855 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2857 (gdbsupport/%.o): Remove target.
2858 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2859 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2860 (WIN32APILIBS): New variable.
2861 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2862 (gdbreplay$(EXEEXT)): Likewise.
2864 2020-03-12 Tom Tromey <tom@tromey.com>
2866 * config.in, configure: Rebuild.
2867 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2868 * acinclude.m4: Include gettext-sister.m4.
2869 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2871 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2872 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2874 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2876 * acinclude.m4: Update path to selftest.m4.
2878 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2880 * configure.ac: Don't source bfd/development.sh, move
2881 GDB_AC_COMMON higher.
2882 * configure: Re-generate.
2884 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2886 * configure: Re-generate.
2888 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2890 * configure: Re-generate.
2892 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2894 * .dir-locals.el: New file.
2896 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2898 * .gitattributes: New file.
2900 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2902 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2903 reply into an S reply.
2904 * server.cc (disable_packet_T): New global.
2905 (captured_main): Set new global when appropriate.
2906 * server.h (disable_packet_T): Declare.
2908 2020-02-21 Tom Tromey <tom@tromey.com>
2910 * Makefile.in (mostlyclean): New target.
2912 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2914 * target.h (struct process_stratum_target): Remove.
2915 (class process_target): Rename to ...
2916 (class process_stratum_target): ... this.
2917 * linux-low.h (class linux_process_target): Derive from
2918 'process_stratum_target'.
2919 * linux-low.cc (linux_target_ops): Remove.
2920 (initialize_low): Set the_target to the singleton instance of
2921 linux_process_target.
2922 * lynx-low.h (class lynx_process_target): Derive from
2923 'process_stratum_target'.
2924 * lynx-low.cc (lynx_target_ops): Remove.
2925 (initialize_low): Set the_target to the singleton instance of
2926 lynx_process_target.
2927 * nto-low.h (class nto_process_target): Derive from
2928 'process_stratum_target'.
2929 * nto-low.cc (nto_target_ops): Remove.
2930 (initialize_low): Set the_target to the singleton instance of
2932 * win32-low.h (class win32_process_target): Derive from
2933 'process_stratum_target'.
2934 * win32-low.cc (win32_target_ops): Remove.
2935 (initialize_low): Set the_target to the singleton instance of
2936 win32_process_target.
2938 Replace 'the_target->pt' with 'the_target' in the uses below.
2940 * hostio.cc (hostio_error)
2945 * linux-aarch32-low.cc (arm_breakpoint_at)
2946 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2947 * linux-arm-low.cc (arm_sigreturn_next_pc)
2949 (arm_get_syscall_trapinfo)
2950 * linux-cris-low.cc (cris_breakpoint_at)
2951 * linux-crisv32-low.cc (cris_breakpoint_at)
2952 * linux-low.cc (handle_extended_wait)
2955 (linux_process_target::breakpoint_kind_from_pc)
2957 * linux-m32r-low.cc (m32r_breakpoint_at)
2958 * linux-mips-low.cc (mips_breakpoint_at)
2959 * linux-nios2-low.cc (nios2_breakpoint_at)
2960 * linux-ppc-low.cc (ppc_breakpoint_at)
2961 * linux-s390-low.cc (s390_get_hwcap)
2962 * linux-sh-low.cc (sh_breakpoint_at)
2963 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2964 (sparc_store_gregset_from_stack)
2965 (sparc_breakpoint_at)
2966 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2967 * linux-tile-low.cc (tile_breakpoint_at)
2968 * linux-x86-low.cc (x86_breakpoint_at)
2969 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2970 * mem-break.cc (bp_size)
2972 (insert_memory_breakpoint)
2973 (set_raw_breakpoint_at)
2974 (delete_raw_breakpoint)
2976 (uninsert_raw_breakpoint)
2977 (reinsert_raw_breakpoint)
2978 (validate_inserted_breakpoint)
2979 * regcache.cc (regcache_read_pc)
2981 * remote-utils.cc (putpkt_binary_1)
2984 (prepare_resume_reply)
2985 * server.cc (handle_general_set)
2988 (handle_qxfer_exec_file)
2989 (handle_qxfer_libraries_svr4)
2990 (handle_qxfer_osdata)
2991 (handle_qxfer_siginfo)
2992 (handle_qxfer_fdpic)
2996 (queue_stop_reply_callback)
2998 * target.cc (prepare_to_access_memory)
2999 (done_accessing_memory)
3000 (read_inferior_memory)
3001 (target_write_memory)
3002 (target_stop_and_wait)
3004 (target_mourn_inferior)
3005 (target_continue_no_signal)
3007 (target_supports_multi_process)
3010 (target_create_inferior)
3011 (target_post_create_inferior)
3013 (target_supports_fork_events)
3014 (target_supports_vfork_events)
3015 (target_supports_exec_events)
3016 (target_handle_new_gdb_connection)
3019 (fetch_inferior_registers)
3020 (store_inferior_registers)
3022 (target_supports_non_stop)
3024 (target_process_qsupported)
3025 (target_supports_catch_syscall)
3026 (target_get_ipa_tdesc_idx)
3027 (target_supports_tracepoints)
3028 (target_supports_fast_tracepoints)
3029 (target_get_min_fast_tracepoint_insn_len)
3030 (target_thread_stopped)
3032 (target_unpause_all)
3033 (target_stabilize_threads)
3034 (target_install_fast_tracepoint_jump_pad)
3036 (target_supports_disable_randomization)
3037 (target_supports_agent)
3038 (target_enable_btrace)
3039 (target_disable_btrace)
3040 (target_read_btrace)
3041 (target_read_btrace_conf)
3042 (target_supports_range_stepping)
3043 (target_supports_stopped_by_sw_breakpoint)
3044 (target_stopped_by_sw_breakpoint)
3045 (target_supports_stopped_by_hw_breakpoint)
3046 (target_supports_hardware_single_step)
3047 (target_stopped_by_hw_breakpoint)
3048 (target_breakpoint_kind_from_pc)
3049 (target_breakpoint_kind_from_current_state)
3050 (target_supports_software_single_step)
3051 (target_core_of_thread)
3052 (target_thread_name)
3053 (target_thread_handle)
3054 * win32-low.cc (do_initial_child_stuff)
3056 Rename target op default definitions listed below.
3058 * target.cc (process_target::post_create_inferior): Rename as ...
3059 (process_stratum_target::post_create_inferior): ... this.
3060 (process_target::prepare_to_access_memory): Rename as ...
3061 (process_stratum_target::prepare_to_access_memory): ... this.
3062 (process_target::done_accessing_memory): Rename as ...
3063 (process_stratum_target::done_accessing_memory): ... this.
3064 (process_target::look_up_symbols): Rename as ...
3065 (process_stratum_target::look_up_symbols): ... this.
3066 (process_target::supports_read_auxv): Rename as ...
3067 (process_stratum_target::supports_read_auxv): ... this.
3068 (process_target::read_auxv): Rename as ...
3069 (process_stratum_target::read_auxv): ... this.
3070 (process_target::supports_z_point_type): Rename as ...
3071 (process_stratum_target::supports_z_point_type): ... this.
3072 (process_target::insert_point): Rename as ...
3073 (process_stratum_target::insert_point): ... this.
3074 (process_target::remove_point): Rename as ...
3075 (process_stratum_target::remove_point): ... this.
3076 (process_target::stopped_by_sw_breakpoint): Rename as ...
3077 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
3078 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
3079 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
3080 (process_target::stopped_by_hw_breakpoint): Rename as ...
3081 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
3082 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
3083 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
3084 (process_target::supports_hardware_single_step): Rename as ...
3085 (process_stratum_target::supports_hardware_single_step): ... this.
3086 (process_target::stopped_by_watchpoint): Rename as ...
3087 (process_stratum_target::stopped_by_watchpoint): ... this.
3088 (process_target::stopped_data_address): Rename as ...
3089 (process_stratum_target::stopped_data_address): ... this.
3090 (process_target::supports_read_offsets): Rename as ...
3091 (process_stratum_target::supports_read_offsets): ... this.
3092 (process_target::read_offsets): Rename as ...
3093 (process_stratum_target::read_offsets): ... this.
3094 (process_target::supports_get_tls_address): Rename as ...
3095 (process_stratum_target::supports_get_tls_address): ... this.
3096 (process_target::get_tls_address): Rename as ...
3097 (process_stratum_target::get_tls_address): ... this.
3098 (process_target::hostio_last_error): Rename as ...
3099 (process_stratum_target::hostio_last_error): ... this.
3100 (process_target::supports_qxfer_osdata): Rename as ...
3101 (process_stratum_target::supports_qxfer_osdata): ... this.
3102 (process_target::qxfer_osdata): Rename as ...
3103 (process_stratum_target::qxfer_osdata): ... this.
3104 (process_target::supports_qxfer_siginfo): Rename as ...
3105 (process_stratum_target::supports_qxfer_siginfo): ... this.
3106 (process_target::qxfer_siginfo): Rename as ...
3107 (process_stratum_target::qxfer_siginfo): ... this.
3108 (process_target::supports_non_stop): Rename as ...
3109 (process_stratum_target::supports_non_stop): ... this.
3110 (process_target::async): Rename as ...
3111 (process_stratum_target::async): ... this.
3112 (process_target::start_non_stop): Rename as ...
3113 (process_stratum_target::start_non_stop): ... this.
3114 (process_target::supports_multi_process): Rename as ...
3115 (process_stratum_target::supports_multi_process): ... this.
3116 (process_target::supports_fork_events): Rename as ...
3117 (process_stratum_target::supports_fork_events): ... this.
3118 (process_target::supports_vfork_events): Rename as ...
3119 (process_stratum_target::supports_vfork_events): ... this.
3120 (process_target::supports_exec_events): Rename as ...
3121 (process_stratum_target::supports_exec_events): ... this.
3122 (process_target::handle_new_gdb_connection): Rename as ...
3123 (process_stratum_target::handle_new_gdb_connection): ... this.
3124 (process_target::handle_monitor_command): Rename as ...
3125 (process_stratum_target::handle_monitor_command): ... this.
3126 (process_target::core_of_thread): Rename as ...
3127 (process_stratum_target::core_of_thread): ... this.
3128 (process_target::supports_read_loadmap): Rename as ...
3129 (process_stratum_target::supports_read_loadmap): ... this.
3130 (process_target::read_loadmap): Rename as ...
3131 (process_stratum_target::read_loadmap): ... this.
3132 (process_target::process_qsupported): Rename as ...
3133 (process_stratum_target::process_qsupported): ... this.
3134 (process_target::supports_tracepoints): Rename as ...
3135 (process_stratum_target::supports_tracepoints): ... this.
3136 (process_target::read_pc): Rename as ...
3137 (process_stratum_target::read_pc): ... this.
3138 (process_target::write_pc): Rename as ...
3139 (process_stratum_target::write_pc): ... this.
3140 (process_target::supports_thread_stopped): Rename as ...
3141 (process_stratum_target::supports_thread_stopped): ... this.
3142 (process_target::thread_stopped): Rename as ...
3143 (process_stratum_target::thread_stopped): ... this.
3144 (process_target::supports_get_tib_address): Rename as ...
3145 (process_stratum_target::supports_get_tib_address): ... this.
3146 (process_target::get_tib_address): Rename as ...
3147 (process_stratum_target::get_tib_address): ... this.
3148 (process_target::pause_all): Rename as ...
3149 (process_stratum_target::pause_all): ... this.
3150 (process_target::unpause_all): Rename as ...
3151 (process_stratum_target::unpause_all): ... this.
3152 (process_target::stabilize_threads): Rename as ...
3153 (process_stratum_target::stabilize_threads): ... this.
3154 (process_target::supports_fast_tracepoints): Rename as ...
3155 (process_stratum_target::supports_fast_tracepoints): ... this.
3156 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
3157 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
3158 (process_target::emit_ops): Rename as ...
3159 (process_stratum_target::emit_ops): ... this.
3160 (process_target::supports_disable_randomization): Rename as ...
3161 (process_stratum_target::supports_disable_randomization): ... this.
3162 (process_target::supports_qxfer_libraries_svr4): Rename as ...
3163 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
3164 (process_target::qxfer_libraries_svr4): Rename as ...
3165 (process_stratum_target::qxfer_libraries_svr4): ... this.
3166 (process_target::supports_agent): Rename as ...
3167 (process_stratum_target::supports_agent): ... this.
3168 (process_target::enable_btrace): Rename as ...
3169 (process_stratum_target::enable_btrace): ... this.
3170 (process_target::disable_btrace): Rename as ...
3171 (process_stratum_target::disable_btrace): ... this.
3172 (process_target::read_btrace): Rename as ...
3173 (process_stratum_target::read_btrace): ... this.
3174 (process_target::read_btrace_conf): Rename as ...
3175 (process_stratum_target::read_btrace_conf): ... this.
3176 (process_target::supports_range_stepping): Rename as ...
3177 (process_stratum_target::supports_range_stepping): ... this.
3178 (process_target::supports_pid_to_exec_file): Rename as ...
3179 (process_stratum_target::supports_pid_to_exec_file): ... this.
3180 (process_target::pid_to_exec_file): Rename as ...
3181 (process_stratum_target::pid_to_exec_file): ... this.
3182 (process_target::supports_multifs): Rename as ...
3183 (process_stratum_target::supports_multifs): ... this.
3184 (process_target::multifs_open): Rename as ...
3185 (process_stratum_target::multifs_open): ... this.
3186 (process_target::multifs_unlink): Rename as ...
3187 (process_stratum_target::multifs_unlink): ... this.
3188 (process_target::multifs_readlink): Rename as ...
3189 (process_stratum_target::multifs_readlink): ... this.
3190 (process_target::breakpoint_kind_from_pc): Rename as ...
3191 (process_stratum_target::breakpoint_kind_from_pc): ... this.
3192 (process_target::breakpoint_kind_from_current_state): Rename as ...
3193 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
3194 (process_target::thread_name): Rename as ...
3195 (process_stratum_target::thread_name): ... this.
3196 (process_target::thread_handle): Rename as ...
3197 (process_stratum_target::thread_handle): ... this.
3198 (process_target::supports_software_single_step): Rename as ...
3199 (process_stratum_target::supports_software_single_step): ... this.
3200 (process_target::supports_catch_syscall): Rename as ...
3201 (process_stratum_target::supports_catch_syscall): ... this.
3202 (process_target::get_ipa_tdesc_idx): Rename as ...
3203 (process_stratum_target::get_ipa_tdesc_idx): ... this.
3205 2020-02-20 Pedro Alves <palves@redhat.com>
3207 * target.cc (set_target_ops): Simply copy the given target pointer
3208 instead of creating a copy of the pointed object.
3210 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3212 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
3215 * target.h (struct process_stratum_target): Remove the target op.
3216 (class process_target): Add the target op.
3217 (target_get_ipa_tdesc_idx): Update the macro.
3218 * target.cc (process_target::get_ipa_tdesc_idx): Define.
3220 Update the derived classes and callers below.
3222 * linux-low.cc (linux_target_ops): Update.
3223 (linux_get_ipa_tdesc_idx): Turn into ...
3224 (linux_process_target::get_ipa_tdesc_idx): ... this.
3225 * linux-low.h (class linux_process_target): Update.
3226 * lynx-low.cc (lynx_target_ops): Update.
3227 * nto-low.cc (nto_target_ops): Update.
3228 * win32-low.cc (win32_target_ops): Update.
3230 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3232 Turn process_stratum_target's supports_catch_syscall op into a
3233 method of process_target.
3235 * target.h (struct process_stratum_target): Remove the target op.
3236 (class process_target): Add the target op.
3237 (target_supports_catch_syscall): Update the macro.
3238 * target.cc (process_target::supports_catch_syscall): Define.
3240 Update the derived classes and callers below.
3242 * linux-low.cc (linux_target_ops): Update.
3243 (linux_supports_catch_syscall): Turn into ...
3244 (linux_process_target::supports_catch_syscall): ... this.
3245 * linux-low.h (class linux_process_target): Update.
3246 * lynx-low.cc (lynx_target_ops): Update.
3247 * nto-low.cc (nto_target_ops): Update.
3248 * win32-low.cc (win32_target_ops): Update.
3250 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3252 Turn process_stratum_target's supports_software_single_step op
3253 into a method of process_target.
3255 * target.h (struct process_stratum_target): Remove the target op.
3256 (class process_target): Add the target op.
3257 (target_supports_software_single_step): Update the macro.
3258 * target.cc (process_target::supports_software_single_step): Define.
3260 Update the derived classes and callers below.
3262 * linux-low.cc (linux_target_ops): Update.
3263 (linux_supports_software_single_step): Turn into ...
3264 (linux_process_target::supports_software_single_step): ... this.
3265 * linux-low.h (class linux_process_target): Update.
3266 * lynx-low.cc (lynx_target_ops): Update.
3267 * nto-low.cc (nto_target_ops): Update.
3268 * win32-low.cc (win32_target_ops): Update.
3270 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3272 Turn process_stratum_target's thread_name and thread_handle ops
3273 into methods of process_target.
3275 * target.h (struct process_stratum_target): Remove the target ops.
3276 (class process_target): Add the target ops.
3277 (target_thread_name): Update the macro.
3278 (target_thread_handle): Update the macro.
3279 * target.cc (process_target::thread_name): Define.
3280 (process_target::thread_handle): Define.
3282 Update the derived classes and callers below.
3284 * linux-low.cc (linux_target_ops): Update.
3285 (linux_process_target::thread_name): Define.
3286 (linux_process_target::thread_handle): Define.
3287 * linux-low.h (class linux_process_target): Update.
3288 * lynx-low.cc (lynx_target_ops): Update.
3289 * nto-low.cc (nto_target_ops): Update.
3290 * win32-low.cc (win32_target_ops): Update.
3292 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3294 Turn process_stratum_target's breakpoint_kind_from_pc,
3295 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
3296 ops into methods of process_target.
3298 * target.h (struct process_stratum_target): Remove the target op.
3299 (class process_target): Add the target op.
3300 (target_breakpoint_kind_from_pc): Update the macro.
3301 (target_breakpoint_kind_from_current_state): Update the macro.
3302 (default_breakpoint_kind_from_pc): Remove declaration.
3303 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
3304 (process_target::breakpoint_kind_from_pc): ... this.
3305 (process_target::breakpoint_kind_from_current_state): Define.
3307 Update the derived classes and callers below.
3309 * mem-break.cc (bp_size): Update.
3310 (bp_opcode): Update.
3311 * linux-low.cc (linux_target_ops): Update.
3312 (linux_wait_1): Update.
3313 (linux_breakpoint_kind_from_pc): Turn into ...
3314 (linux_process_target::breakpoint_kind_from_pc): ... this.
3315 (linux_sw_breakpoint_from_kind): Turn into ...
3316 (linux_process_target::sw_breakpoint_from_kind): ... this.
3317 (linux_breakpoint_kind_from_current_state): Turn into ...
3318 (linux_process_target::breakpoint_kind_from_current_state): ... this.
3319 * linux-low.h (class linux_process_target): Update.
3320 * lynx-low.cc (lynx_target_ops): Update.
3321 (lynx_process_target::sw_breakpoint_from_kind): Define.
3322 * lynx-low.h (class lynx_process_target): Update.
3323 * nto-low.cc (nto_target_ops): Update.
3324 (nto_sw_breakpoint_from_kind): Turn into ...
3325 (nto_process_target::sw_breakpoint_from_kind): ... this.
3326 * nto-low.h (class nto_process_target): Update.
3327 * win32-low.cc (win32_target_ops): Update.
3328 (win32_sw_breakpoint_from_kind): Turn into ...
3329 (win32_process_target::sw_breakpoint_from_kind): ... this.
3330 * win32-low.h (class win32_process_target): Update.
3332 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3334 Turn process_stratum_target's multifs_open, multifs_readlink,
3335 multifs_unlink ops into methods of process_target.
3337 * target.h (struct process_stratum_target): Remove the target ops.
3338 (class process_target): Add the target ops. Also add
3340 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
3342 (process_target::supports_multifs): Define.
3343 (process_target::multifs_open): Define.
3344 (process_target::multifs_readlink): Define.
3345 (process_target::multifs_unlink): Define.
3347 Update the derived classes and callers below.
3349 * hostio.cc (handle_setfs): Update.
3350 (handle_open): Update.
3351 (handle_unlink): Update.
3352 (handle_readlink): Update.
3353 * linux-low.cc (linux_target_ops): Update.
3354 (linux_process_target::supports_multifs): Define.
3355 (linux_process_target::multifs_open): Define.
3356 (linux_process_target::multifs_readlink): Define.
3357 (linux_process_target::multifs_unlink): Define.
3358 * linux-low.h (class linux_process_target): Update.
3359 * lynx-low.cc (lynx_target_ops): Update.
3360 * nto-low.cc (nto_target_ops): Update.
3361 * win32-low.cc (win32_target_ops): Update.
3363 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3365 Turn process_stratum_target's pid_to_exec_file op into a method
3368 * target.h (struct process_stratum_target): Remove the target op.
3369 (class process_target): Add the target op. Also add
3370 'supports_pid_to_exec_file'.
3371 * target.cc (process_target::pid_to_exec_file): Define.
3372 (process_target::supports_pid_to_exec_file): Define.
3374 Update the derived classes and callers below.
3376 * server.cc (handle_qxfer_exec_file): Update.
3377 (handle_query): Update.
3378 * linux-low.cc (linux_target_ops): Update.
3379 (linux_process_target::supports_pid_to_exec_file): Define.
3380 (linux_process_target::pid_to_exec_file): Define.
3381 * linux-low.h (class linux_process_target): Update.
3382 * lynx-low.cc (lynx_target_ops): Update.
3383 * nto-low.cc (nto_target_ops): Update.
3384 * win32-low.cc (win32_target_ops): Update.
3386 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3388 Turn process_stratum_target's supports_range_stepping op into a
3389 method of process_target.
3391 * target.h (struct process_stratum_target): Remove the target op.
3392 (class process_target): Add the target op.
3393 (target_supports_range_stepping): Update the macro.
3394 * target.cc (process_target::supports_range_stepping): Define.
3396 Update the derived classes and callers below.
3398 * linux-low.cc (linux_target_ops): Update.
3399 (linux_supports_range_stepping): Turn into ...
3400 (linux_process_target::supports_range_stepping): ... this.
3401 * linux-low.h (class linux_process_target): Update.
3402 * lynx-low.cc (lynx_target_ops): Update.
3403 * nto-low.cc (nto_target_ops): Update.
3404 * win32-low.cc (win32_target_ops): Update.
3406 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3408 Turn process_stratum_target's btrace-related ops (enable_btrace,
3409 disable_btrace, read_btrace, read_btrace_conf) into methods of
3412 * target.h (struct process_stratum_target): Remove the target ops.
3413 (class process_target): Add the target ops.
3414 (target_enable_btrace): Update.
3415 (target_disable_btrace): Update.
3416 (target_read_btrace): Update.
3417 (target_read_btrace_conf): Update.
3418 * target.cc (process_target::enable_btrace): Define.
3419 (process_target::disable_btrace): Define.
3420 (process_target::read_btrace): Define.
3421 (process_target::read_btrace_conf): Define.
3423 Update the derived classes and callers below.
3425 * linux-low.cc (linux_target_ops): Update.
3426 (linux_process_target:enable_btrace): Define as a wrapper around
3427 linux_enable_btrace.
3428 (linux_low_disable_btrace): Turn into ...
3429 (linux_process_target::disable_btrace): ... this.
3430 (linux_low_read_btrace): Turn into ...
3431 (linux_process_target::read_btrace): ... this.
3432 (linux_low_btrace_conf): Turn into ...
3433 (linux_process_target::read_btrace_conf): ... this.
3434 * linux-low.h (class linux_process_target): Update.
3435 * lynx-low.cc (lynx_target_ops): Update.
3436 * nto-low.cc (nto_target_ops): Update.
3437 * win32-low.cc (win32_target_ops): Update.
3439 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3441 Turn process_stratum_target's supports_agent op into a method of
3444 * target.h (struct process_stratum_target): Remove the target op.
3445 (class process_target): Add the target op.
3446 (target_supports_agent): Update the macro.
3447 * target.cc (process_target::supports_agent): Define.
3449 Update the derived classes and callers below.
3451 * linux-low.cc (linux_target_ops): Update.
3452 (linux_supports_agent): Turn into ...
3453 (linux_process_target::supports_agent): ... this.
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 qxfer_libraries_svr4 op into a
3462 method of process_target.
3464 * target.h (struct process_stratum_target): Remove the target op.
3465 (class process_target): Add the target op. Also add
3466 'supports_qxfer_libraries_svr4'.
3467 * target.cc (process_target::qxfer_libraries_svr4): Define.
3468 (process_target::supports_qxfer_libraries_svr4): Define.
3470 Update the derived classes and callers below.
3472 * server.cc (handle_qxfer_libraries_svr4): Update.
3473 (handle_query): Update.
3474 * linux-low.cc (linux_target_ops): Update.
3475 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3476 (linux_qxfer_libraries_svr4): Turn into ...
3477 (linux_process_target::qxfer_libraries_svr4): ... this.
3478 * linux-low.h (class linux_process_target): Update.
3479 * lynx-low.cc (lynx_target_ops): Update.
3480 * nto-low.cc (nto_target_ops): Update.
3481 * win32-low.cc (win32_target_ops): Update.
3483 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3485 Turn process_stratum_target's supports_disable_randomization op
3486 into a method of process_target.
3488 * target.h (struct process_stratum_target): Remove the target op.
3489 (class process_target): Add the target op.
3490 (target_supports_disable_randomization): Update the macro.
3491 * target.cc (process_target::supports_disable_randomization): Define.
3493 Update the derived classes and callers below.
3495 * linux-low.cc (linux_target_ops): Update.
3496 (linux_supports_disable_randomization): Turn into ...
3497 (linux_process_target::supports_disable_randomization): ... this.
3498 * linux-low.h (class linux_process_target): Update.
3499 * lynx-low.cc (lynx_target_ops): Update.
3500 * nto-low.cc (nto_target_ops): Update.
3501 * win32-low.cc (win32_target_ops): Update.
3503 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3505 Turn process_stratum_target's emit_ops op into a method of
3508 * target.h (struct process_stratum_target): Remove the target op.
3509 (class process_target): Add the target op.
3510 (target_emit_ops): Update the macro.
3511 * target.cc (process_target::emit_ops): Define.
3513 Update the derived classes and callers below.
3515 * linux-low.cc (linux_target_ops): Update.
3516 (linux_emit_ops): Turn into ...
3517 (linux_process_target::emit_ops): ... this.
3518 * linux-low.h (class linux_process_target): Update.
3519 * lynx-low.cc (lynx_target_ops): Update.
3520 * nto-low.cc (nto_target_ops): Update.
3521 * win32-low.cc (win32_target_ops): Update.
3523 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3525 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3526 and get_min_fast_tracepoint_insn_len ops into methods of
3529 * target.h (struct process_stratum_target): Remove the target ops.
3530 (class process_target): Add the target ops. Also add
3531 'supports_fast_tracepoints'.
3532 (target_supports_fast_tracepoints): Update the macro.
3533 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3534 (install_fast_tracepoint_jump_pad): Update and rename the macro
3536 (target_install_fast_tracepoint_jump_pad): ... this.
3537 * target.cc (process_target::supports_fast_tracepoints): Define.
3538 (process_target::install_fast_tracepoint_jump_pad): Define.
3539 (process_target::get_min_fast_tracepoint_insn_len): Define.
3541 Update the derived classes and callers below.
3543 * tracepoint.cc (install_fast_tracepoint): Update.
3544 * linux-low.cc (linux_target_ops): Update.
3545 (linux_process_target::supports_fast_tracepoints): Define.
3546 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3547 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3548 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3549 (linux_process_target::get_min_fast_tracepoint_insn_len): ... 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 stabilize_threads 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.
3562 (target_stabilize_threads): Update the macro.
3563 * target.cc (process_target::stabilize_threads): Define.
3565 Update the derived classes and callers below.
3567 * server.cc (handle_status): Update.
3568 * tracepoint.cc (cmd_qtdp): Update.
3569 (cmd_qtstart): Update.
3570 * linux-low.cc (linux_target_ops): Update.
3571 (linux_stabilize_threads): Turn into ...
3572 (linux_process_target::stabilize_threads): ... this.
3573 (linux_wait_1): Update.
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 pause_all and unpause_all ops
3582 into methods of process_target.
3584 * target.h (struct process_stratum_target): Remove the target ops.
3585 (class process_target): Add the target ops.
3586 (pause_all): Update the macro and rename to...
3587 (target_pause_all): ... this.
3588 (unpause_all): Update the macro and rename to...
3589 (target_unpause_all): ... this.
3590 * target.cc (process_target::pause_all): Define.
3591 (process_target::unpause_all): Define.
3593 Update the derived classes and callers below.
3595 * server.cc (handle_status): Update.
3596 * tracepoint.cc (clear_installed_tracepoints): Update.
3598 (cmd_qtstart): Update.
3599 (stop_tracing): Update.
3600 (cmd_qtstatus): Update.
3601 (upload_fast_traceframes): Update.
3602 (run_inferior_command): Update.
3603 * linux-low.cc (linux_target_ops): Update.
3604 (linux_pause_all): Turn into ...
3605 (linux_process_target::pause_all): ... this.
3606 (linux_unpause_all): Turn into ...
3607 (linux_process_target::unpause_all): ... this.
3608 (linux_process_target::prepare_to_access_memory): Update.
3609 (linux_process_target::done_accessing_memory): Update.
3610 * linux-low.h (class linux_process_target): Update.
3611 * lynx-low.cc (lynx_target_ops): Update.
3612 * nto-low.cc (nto_target_ops): Update.
3613 * win32-low.cc (win32_target_ops): Update.
3615 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3617 Turn process_stratum_target's get_tib_address op into a method of
3620 * target.h (struct process_stratum_target): Remove the target op.
3621 (class process_target): Add the target op. Also add
3622 'supports_get_tib_address'.
3623 * target.cc (process_target::get_tib_address): Define.
3624 (process_target::supports_get_tib_address): Define.
3626 Update the derived classes and callers below.
3628 * server.cc (handle_query): Update.
3629 * linux-low.cc (win32_target_ops): Update.
3630 * lynx-low.cc (lynx_target_ops): Update.
3631 * nto-low.cc (nto_target_ops): Update.
3632 * win32-low.cc (win32_target_ops): Update.
3633 (win32_process_target::supports_get_tib_address): Define.
3634 (win32_get_tib_address): Turn into ...
3635 (win32_process_target::get_tib_address): ... this.
3636 * win32-low.h (class win32_process_target): Update.
3638 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3640 Turn process_stratum_target's thread_stopped op into a method of
3643 * target.h (struct process_stratum_target): Remove the target op.
3644 (class process_target): Add the target op. Also add
3645 'supports_thread_stopped'.
3646 (target_thread_stopped): Update the macro.
3647 * target.cc (process_target::thread_stopped): Define.
3648 (process_target::supports_thread_stopped): Define.
3649 (prepare_to_access_memory): Update.
3651 Update the derived classes and callers below.
3653 * server.cc (queue_stop_reply_callback): Update.
3654 * linux-low.cc (linux_target_ops): Update.
3655 (linux_process_target::supports_thread_stopped): Define.
3656 (linux_thread_stopped): Turn into ...
3657 (linux_process_target::thread_stopped): ... this.
3658 * linux-low.h (class linux_process_target): Update.
3659 * lynx-low.cc (lynx_target_ops): Update.
3660 * nto-low.cc (nto_target_ops): Update.
3661 * win32-low.cc (win32_target_ops): Update.
3663 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3665 Turn process_stratum_target's read_pc and write_pc ops into
3666 methods of process_target.
3668 * target.h (struct process_stratum_target): Remove the target ops.
3669 (class process_target): Add the target ops.
3670 * target.cc (process_target::read_pc): Define.
3671 (process_target::write_pc): Define.
3673 Update the derived classes and callers below.
3675 * regcache.cc (regcache_read_pc): Update.
3676 (regcache_write_pc): Update.
3677 * linux-low.cc (linux_target_ops): Update.
3678 (linux_read_pc): Turn into ...
3679 (linux_process_target::read_pc): ... this.
3680 (linux_write_pc): Turn into ...
3681 (linux_process_target::write_pc): ... this.
3682 * linux-low.h (class linux_process_target): Update.
3683 * lynx-low.cc (lynx_target_ops): Update.
3684 * nto-low.cc (nto_target_ops): Update.
3685 * win32-low.cc (win32_target_ops): Update.
3687 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3689 Turn process_stratum_target's supports_tracepoints op into a
3690 method of process_target.
3692 * target.h (struct process_stratum_target): Remove the target op.
3693 (class process_target): Add the target op.
3694 (target_supports_tracepoints): Update the macro.
3695 * target.cc (process_target::supports_tracepoints): Define.
3697 Update the derived classes and callers below.
3699 * linux-low.cc (linux_target_ops): Update.
3700 (linux_supports_tracepoints): Turn into ...
3701 (linux_process_target::supports_tracepoints): ... this.
3702 * linux-low.h (class linux_process_target): Update.
3703 * lynx-low.cc (lynx_target_ops): Update.
3704 * nto-low.cc (nto_target_ops): Update.
3705 * win32-low.cc (win32_target_ops): Update.
3707 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3709 Turn process_stratum_target's process_qsupported op into a method
3712 * target.h (struct process_stratum_target): Remove the target op.
3713 (class process_target): Add the target op.
3714 (target_process_qsupported): Update the macro.
3715 * target.cc (process_target::process_qsupported): Define.
3717 Update the derived classes and callers below.
3719 * linux-low.cc (linux_target_ops): Update.
3720 (linux_process_qsupported): Turn into ...
3721 (linux_process_target::process_qsupported): ... this.
3722 * linux-low.h (class linux_process_target): Update.
3723 * lynx-low.cc (lynx_target_ops): Update.
3724 * nto-low.cc (nto_target_ops): Update.
3725 * win32-low.cc (win32_target_ops): Update.
3727 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3729 Turn process_stratum_target's read_loadmap op into a method of
3732 * target.h (struct process_stratum_target): Remove the target op.
3733 (class process_target): Add the target op. Also add
3734 'supports_read_loadmap'.
3735 * target.cc (process_target::read_loadmap): Define.
3736 (process_target::supports_read_loadmap): Define.
3738 Update the derived classes and callers below.
3740 * server.cc (handle_qxfer_fdpic): Update.
3741 (handle_query): Update.
3742 * linux-low.cc (linux_target_ops): Update.
3743 (linux_process_target::supports_read_loadmap): Define.
3744 (linux_read_loadmap): Turn into ...
3745 (linux_process_target::read_loadmap): ... this.
3746 * linux-low.h (class linux_process_target): Update.
3747 * lynx-low.cc (lynx_target_ops): Update.
3748 * nto-low.cc (nto_target_ops): Update.
3749 * win32-low.cc (win32_target_ops): Update.
3751 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3753 Turn process_stratum_target's core_of_thread op into a method of
3756 * target.h (struct process_stratum_target): Remove the target op.
3757 (class process_target): Add the target op.
3758 (target_core_of_thread): Update the macro.
3759 * target.cc (process_target::core_of_thread): Define.
3761 Update the derived classes and callers below.
3763 * linux-low.cc (linux_target_ops): Update.
3764 (linux_process_target::core_of_thread): Define.
3765 * linux-low.h (class linux_process_target): Update.
3766 * lynx-low.cc (lynx_target_ops): Update.
3767 * nto-low.cc (nto_target_ops): Update.
3768 * win32-low.cc (win32_target_ops): Update.
3770 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3772 Turn process_stratum_target's handle_monitor_command op into a
3773 method of process_target.
3775 * target.h (struct process_stratum_target): Remove the target op.
3776 (class process_target): Add the target op.
3777 (target_handle_monitor_command): Update the macro.
3778 * target.cc (process_target::handle_monitor_command): Define.
3780 Update the derived classes and callers below.
3782 * server.cc (handle_query): Update.
3783 * linux-low.cc (linux_target_ops): Update.
3784 (linux_process_target::handle_monitor_command): Define.
3785 * linux-low.h (class linux_process_target): Update.
3786 * lynx-low.cc (lynx_target_ops): Update.
3787 * nto-low.cc (nto_target_ops): Update.
3788 * win32-low.cc (win32_target_ops): Update.
3790 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3792 Turn process_stratum_target's handle_new_gdb_connection op into a
3793 method of process_target.
3795 * target.h (struct process_stratum_target): Remove the target op.
3796 (class process_target): Add the target op.
3797 (target_handle_new_gdb_connection): Update the macro.
3798 * target.cc (process_target::handle_new_gdb_connection): Define.
3800 Update the derived classes and callers below.
3802 * linux-low.cc (linux_target_ops): Update.
3803 (linux_handle_new_gdb_connection): Turn into ...
3804 (linux_process_target::handle_new_gdb_connection): ... this.
3805 * linux-low.h (class linux_process_target): Update.
3806 * lynx-low.cc (lynx_target_ops): Update.
3807 * nto-low.cc (nto_target_ops): Update.
3808 * win32-low.cc (win32_target_ops): Update.
3810 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3812 Turn process_stratum_target's supports_fork_events,
3813 supports_vfork_events, and supports_exec_events ops into methods
3816 * target.h (struct process_stratum_target): Remove the target ops.
3817 (class process_target): Add the target ops.
3818 (target_supports_fork_events): Update the macro.
3819 (target_supports_vfork_events): Update the macro.
3820 (target_supports_exec_events): Update the macro.
3821 * target.cc (process_target::supports_fork_events): Define.
3822 (process_target::supports_vfork_events): Define.
3823 (process_target::supports_exec_events): Define.
3825 Update the derived classes and callers below.
3827 * linux-low.cc (linux_target_ops): Update.
3828 (linux_supports_fork_events): Turn into ...
3829 (linux_process_target::supports_fork_events): ... this.
3830 (linux_supports_vfork_events): Turn into ...
3831 (linux_process_target::supports_vfork_events): ... this.
3832 (linux_supports_exec_events): Turn into ...
3833 (linux_process_target::supports_exec_events): ... this.
3834 * linux-low.h (class linux_process_target): Update.
3835 * lynx-low.cc (lynx_target_ops): Update.
3836 * nto-low.cc (nto_target_ops): Update.
3837 * win32-low.cc (win32_target_ops): Update.
3839 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3841 Turn process_stratum_target's supports_multi_process op into a
3842 method of process_target.
3844 * target.h (struct process_stratum_target): Remove the target op.
3845 (class process_target): Add the target op.
3846 * target.cc (process_target::supports_multi_process): Define.
3847 (target_supports_multi_process): Update.
3849 Update the derived classes and callers below.
3851 * linux-low.cc (linux_target_ops): Update.
3852 (linux_supports_multi_process): Turn into ...
3853 (linux_process_target::supports_multi_process): ... this.
3854 * linux-low.h (class linux_process_target): Update.
3855 * lynx-low.cc (lynx_target_ops): Update.
3856 * nto-low.cc (nto_target_ops): Update.
3857 * win32-low.cc (win32_target_ops): Update.
3859 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3861 Turn process_stratum_target's supports_non_stop, async, and
3862 start_non_stop ops into methods of process_target.
3864 * target.h (struct process_stratum_target): Remove the target ops.
3865 (class process_target): Add the target ops.
3866 (target_supports_non_stop): Update the macro.
3867 (target_async): Update the macro.
3868 (start_non_stop): Remove declaration.
3869 * target.cc (process_target::supports_non_stop): Define.
3870 (process_target::async): Define.
3871 (process_target::start_non_stop): Define.
3872 (start_non_stop): Remove.
3874 Update the derived classes and callers below.
3876 * server.cc (handle_qxfer_siginfo): Update.
3877 (handle_query): Update.
3878 * linux-low.cc (linux_target_ops): Update.
3879 (linux_supports_non_stop): Turn into ...
3880 (linux_process_target::supports_non_stop): ... this.
3881 (linux_async): Turn into ...
3882 (linux_process_target::async): ... this.
3883 (linux_start_non_stop): Turn into ...
3884 (linux_process_target::start_non_stop): ... this.
3885 * linux-low.h (class linux_process_target): Update.
3886 * lynx-low.cc (lynx_target_ops): Update.
3887 * nto-low.cc (nto_target_ops): Update.
3888 (nto_supports_non_stop): Remove; rely on the default behavior
3890 * win32-low.cc (win32_target_ops): Update.
3892 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3894 Turn process_stratum_target's qxfer_siginfo op into a method of
3897 * target.h (struct process_stratum_target): Remove the target op.
3898 (class process_target): Add the target op. Also add
3899 'supports_qxfer_siginfo'.
3900 * target.cc (process_target::qxfer_siginfo): Define.
3901 (process_target::supports_qxfer_siginfo): Define.
3903 Update the derived classes and callers below.
3905 * server.cc (handle_qxfer_siginfo): Update.
3906 (handle_query): Update.
3907 * linux-low.cc (linux_target_ops): Update.
3908 (linux_process_target::supports_qxfer_siginfo): Define.
3909 (linux_xfer_siginfo): Turn into ...
3910 (linux_process_target::qxfer_siginfo): ... this.
3911 * linux-low.h (class linux_process_target): Update.
3912 * lynx-low.cc (lynx_target_ops): Update.
3913 * nto-low.cc (nto_target_ops): Update.
3914 * win32-low.cc (win32_target_ops): Update.
3916 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3918 Turn process_stratum_target's qxfer_osdata op into a method of
3921 * target.h (struct process_stratum_target): Remove the target op.
3922 (class process_target): Add the target op. Also add
3923 'supports_qxfer_osdata'.
3924 * target.cc (process_target::qxfer_osdata): Define.
3925 (process_target::supports_qxfer_osdata): Define.
3927 Update the derived classes and callers below.
3929 * server.cc (handle_qxfer_osdata): Update.
3930 (handle_query): Update.
3931 * linux-low.cc (linux_target_ops): Update.
3932 (linux_process_target::supports_qxfer_osdata): Define.
3933 (linux_qxfer_osdata): Turn into ...
3934 (linux_process_target::qxfer_osdata): ... this.
3935 * linux-low.h (class linux_process_target): Update.
3936 * lynx-low.cc (lynx_target_ops): Update.
3937 * nto-low.cc (nto_target_ops): Update.
3938 * win32-low.cc (win32_target_ops): Update.
3940 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3942 Turn process_stratum_target's hostio_last_error op into a
3943 method of process_target.
3945 * target.h (struct process_stratum_target): Remove the target op.
3946 (class process_target): Add the target op.
3947 * target.cc: Add "hostio.h" to includes.
3948 (process_target::hostio_last_error): Define.
3950 Update the derived classes and callers below.
3952 * hostio.cc (hostio_error): Update.
3953 * linux-low.cc: Remove "hostio.h" from includes.
3954 (linux_target_ops): Update.
3955 * lynx-low.cc (lynx_target_ops): Update.
3956 * nto-low.cc (nto_target_ops): Update.
3957 * win32-low.h (class win32_process_target): Update.
3958 * win32-low.cc (win32_target_ops): Update.
3959 (wince_hostio_last_error): Turn into ...
3960 (win32_process_target::hostio_last_error): ... this.
3962 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3964 Turn process_stratum_target's get_tls_address op into a method of
3967 * target.h (struct process_stratum_target): Remove the target op.
3968 (class process_target): Add the target op. Also add
3969 'supports_get_tls_address'.
3970 * target.cc (process_target::get_tls_address): Define.
3971 (process_target::supports_get_tls_address): Define.
3973 Update the derived classes and callers below.
3975 * server.cc (handle_query): Update.
3976 * linux-low.cc (linux_target_ops): Update.
3977 (linux_process_target::supports_get_tls_address): Define.
3978 (linux_process_target::get_tls_address): Define.
3979 * linux-low.h (class linux_process_target): Update.
3980 * lynx-low.cc (lynx_target_ops): Update.
3981 * nto-low.cc (nto_target_ops): Update.
3982 * win32-low.cc (win32_target_ops): Update.
3984 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3986 Turn process_stratum_target's read_offsets op into a method of
3989 * target.h (struct process_stratum_target): Remove the target op.
3990 (class process_target): Add the target op. Also add
3991 'supports_read_offsets'.
3992 * target.cc (process_target::read_offsets): Define.
3993 (process_target::supports_read_offsets): Define.
3995 Update the derived classes and callers below.
3997 * server.cc (handle_query): Update.
3998 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3999 (linux_target_ops): Update.
4000 (linux_process_target::supports_read_offsets): Define.
4001 (linux_read_offsets): Turn into ...
4002 (linux_process_target::read_offsets): ... this.
4003 * linux-low.h (class linux_process_target): Update.
4004 * lynx-low.cc (lynx_target_ops): Update.
4005 * nto-low.cc (nto_target_ops): Update.
4006 * win32-low.cc (win32_target_ops): Update.
4008 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4010 Turn process_stratum_target's stopped_by_watchpoint and
4011 stopped_data_address ops into methods of process_target.
4013 * target.h (struct process_stratum_target): Remove the target ops.
4014 (class process_target): Add the target ops.
4015 * target.cc (process_target::stopped_by_watchpoint): Define.
4016 (process_target::stopped_data_address): Define.
4018 Update the derived classes and callers below.
4020 * remote-utils.cc (prepare_resume_reply): Update.
4021 * linux-low.cc (linux_target_ops): Update.
4022 (linux_stopped_by_watchpoint): Turn into ...
4023 (linux_process_target::stopped_by_watchpoint): ... this.
4024 (linux_stopped_data_address): Turn into ...
4025 (linux_process_target::stopped_data_address): ... this.
4026 * linux-low.h (class linux_process_target): Update.
4027 * lynx-low.cc (lynx_target_ops): Update.
4028 * nto-low.cc (nto_target_ops): Update.
4029 (nto_stopped_by_watchpoint): Turn into ...
4030 (nto_process_target::stopped_by_watchpoint): ... this.
4031 (nto_stopped_data_address): Turn into ...
4032 (nto_process_target::stopped_data_address): ... this.
4033 * nto-low.h (class nto_process_target): Update.
4034 * win32-low.cc (win32_target_ops): Update.
4035 (win32_stopped_by_watchpoint): Turn into ...
4036 (win32_process_target::stopped_by_watchpoint): ... this.
4037 (win32_stopped_data_address): Turn into ...
4038 (win32_process_target::stopped_data_address): ... this.
4039 * win32-low.h (class win32_process_target): Update.
4041 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4043 Turn process_stratum_target's supports_hardware_single_step op into
4044 a method of process_target.
4046 * target.h (struct process_stratum_target): Remove the target op.
4047 (class process_target): Add the target op.
4048 (target_supports_hardware_single_step): Update the macro.
4049 (target_can_do_hardware_single_step): Remove declaration.
4050 * target.cc (process_target::supports_hardware_single_step): Define.
4051 (target_can_do_hardware_single_step): Remove.
4053 Update the derived classes and callers below.
4055 * linux-low.h (class linux_process_target): Update.
4056 * linux-low.cc (linux_target_ops): Update.
4057 (linux_supports_hardware_single_step): Turn into ...
4058 (linux_process_target::supports_hardware_single_step): ... this.
4059 * lynx-low.h (class lynx_process_target): Update.
4060 * lynx-low.cc (lynx_target_ops): Update.
4061 (lynx_process_target::supports_hardware_single_step): Define.
4062 * nto-low.h (class nto_process_target): Update.
4063 * nto-low.cc (nto_target_ops): Update.
4064 (nto_process_target::supports_hardware_single_step): Define.
4065 * win32-low.h (class win32_process_target): Update.
4066 * win32-low.cc (win32_target_ops): Update.
4067 (win32_process_target::supports_hardware_single_step): Define.
4069 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4071 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
4072 ops into methods of process_target.
4074 * target.h (struct process_stratum_target): Remove the target ops.
4075 (class process_target): Add the target ops.
4076 (target_stopped_by_hw_breakpoint): Update the macro.
4077 (target_supports_stopped_by_hw_breakpoint): Update the macro.
4078 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
4079 (process_target::supports_stopped_by_hw_breakpoint): Define.
4081 Update the derived classes and callers below.
4083 * linux-low.cc (linux_target_ops): Update.
4084 (linux_stopped_by_hw_breakpoint): Turn into ...
4085 (linux_process_target::stopped_by_hw_breakpoint): ... this.
4086 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
4087 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
4088 * linux-low.h (class linux_process_target): Update.
4089 * lynx-low.cc (lynx_target_ops): Update.
4090 * nto-low.cc (nto_target_ops): Update.
4091 * win32-low.cc (win32_target_ops): Update.
4093 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4095 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
4096 ops into methods of process_target.
4098 * target.h (struct process_stratum_target): Remove the target ops.
4099 (class process_target): Add the target ops.
4100 (target_stopped_by_sw_breakpoint): Update the macro.
4101 (target_supports_stopped_by_sw_breakpoint): Update the macro.
4102 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
4103 (process_target::supports_stopped_by_sw_breakpoint): Define.
4105 Update the derived classes and callers below.
4107 * linux-low.cc (linux_target_ops): Update.
4108 (linux_stopped_by_sw_breakpoint): Turn into ...
4109 (linux_process_target::stopped_by_sw_breakpoint): ... this.
4110 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
4111 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
4112 * linux-low.h (class linux_process_target): Update.
4113 * lynx-low.cc (lynx_target_ops): Update.
4114 * nto-low.cc (nto_target_ops): Update.
4115 * win32-low.cc (win32_target_ops): Update.
4117 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4119 Turn process_stratum_target's insert_point and remove_point ops
4120 into methods of process_target.
4122 * target.h (struct process_stratum_target): Remove the target ops.
4123 (class process_target): Add the target ops.
4124 * target.cc (process_target::insert_point): Define.
4125 (process_target::remove_point): Define.
4127 Update the derived classes and callers below.
4129 * mem-break.cc (set_raw_breakpoint_at): Update.
4130 (delete_raw_breakpoint): Update.
4131 (uninsert_raw_breakpoint): Update.
4132 (reinsert_raw_breakpoint): Update.
4133 * linux-low.cc (linux_target_ops): Update.
4134 (linux_insert_point): Turn into ...
4135 (linux_process_target::insert_point): ... this.
4136 (linux_remove_point): Turn into ...
4137 (linux_process_target::remove_point): ... this.
4138 * linux-low.h (class linux_process_target): Update.
4139 * lynx-low.cc (lynx_target_ops): Update.
4140 * nto-low.cc (nto_target_ops): Update.
4141 (nto_insert_point): Turn into ...
4142 (nto_process_target::insert_point): ... this.
4143 (nto_remove_point): Turn into ...
4144 (nto_process_target::remove_point): ... this.
4145 * nto-low.h (class nto_process_target): Update.
4146 * win32-low.cc (win32_target_ops): Update.
4147 (win32_insert_point): Turn into ...
4148 (win32_process_target::insert_point): ... this.
4149 (win32_remove_point): Turn into ...
4150 (win32_process_target::remove_point): ... this.
4151 * win32-low.h (class win32_process_target): Update.
4153 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4155 Turn process_stratum_target's supports_z_point_type op into a
4156 method of process_target.
4158 * target.h (struct process_stratum_target): Remove the target op.
4159 (class process_target): Add the target op.
4160 * target.cc (process_target::supports_z_point_type): Define.
4162 Update the derived classes and callers below.
4164 * mem-break.cc (z_type_supported): Update.
4165 * linux-low.cc (linux_target_ops): Update.
4166 (linux_supports_z_point_type): Turn into ...
4167 (linux_process_target::supports_z_point_type): ... this.
4168 * linux-low.h (class linux_process_target): Update.
4169 * lynx-low.cc (lynx_target_ops): Update.
4170 * nto-low.cc (nto_target_ops): Update.
4171 (nto_supports_z_point_type): Turn into ...
4172 (nto_process_target::supports_z_point_type): ... this.
4173 * nto-low.h (class nto_process_target): Update.
4174 * win32-low.cc (win32_target_ops): Update.
4175 (win32_supports_z_point_type): Turn into ...
4176 (win32_process_target::supports_z_point_type): ... this.
4177 * win32-low.h (class win32_process_target): Update.
4179 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4181 Turn process_stratum_target's read_auxv op into a method of
4184 * target.h (class process_stratum_target): Remove the target op.
4185 (struct process_target): Add the target op. Also add
4186 'supports_read_auxv'.
4187 * target.cc (process_target::read_auxv): Define.
4188 (process_target::supports_read_auxv): Define.
4190 Update the derived classes and callers below.
4192 * server.cc (handle_qxfer_auxv): Update.
4193 (handle_query): Update.
4194 * linux-low.cc (linux_target_ops): Update.
4195 (linux_process_target::supports_read_auxv): Define.
4196 (linux_read_auxv): Turn into ...
4197 (linux_process_target::read_auxv): ... this.
4198 * linux-low.h (class linux_process_target): Update.
4199 * lynx-low.cc (lynx_target_ops): Update.
4200 * nto-low.cc (nto_target_ops): Update.
4201 (nto_process_target::supports_read_auxv): Define.
4202 (nto_read_auxv): Turn into ...
4203 (nto_process_target::read_auxv): ... this.
4204 * nto-low.h (class nto_process_target): Update.
4205 * win32-low.cc (win32_target_ops): Update.
4207 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4209 Turn process_stratum_target's request_interrupt op into a method of
4212 * target.h (struct process_stratum_target): Remove the target op.
4213 (class process_target): Add the target op.
4215 Update the derived classes and callers below.
4217 * remote-utils.cc (putpkt_binary_1): Update.
4218 (input_interrupt): Update.
4220 * server.cc (handle_v_requests): Update.
4221 * linux-low.cc (linux_target_ops): Update.
4222 (linux_request_interrupt): Turn into ...
4223 (linux_process_target::request_interrupt): ... this.
4224 * linux-low.h (class linux_process_target): Update.
4225 * lynx-low.cc (lynx_target_ops): Update.
4226 (lynx_request_interrupt): Turn into ...
4227 (lynx_process_target::request_interrupt): ... this.
4228 * lynx-low.h (class lynx_process_target): Update.
4229 * nto-low.cc (nto_target_ops): Update.
4230 (nto_request_interrupt): Turn into ...
4231 (nto_process_target::request_interrupt): ... this.
4232 * nto-low.h (class nto_process_target): Update.
4233 * win32-low.cc (win32_target_ops): Update.
4234 (win32_request_interrupt): Turn into ...
4235 (win32_process_target::request_interrupt): ... this.
4236 * win32-low.h (class win32_process_target): Update.
4238 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4240 Turn process_stratum_target's look_up_symbols op into a method of
4243 * target.h (struct process_stratum_target): Remove the target op.
4244 (class process_target): Add the target op.
4245 * target.cc (process_target::look_up_symbols): Define.
4247 Update the derived classes and callers below.
4249 * server.cc (handle_query): Update.
4250 * linux-low.cc (linux_target_ops): Update.
4251 (linux_look_up_symbols): Turn into ...
4252 (linux_process_target::look_up_symbols): ... this.
4253 * linux-low.h (class linux_process_target): Update.
4254 * lynx-low.cc (lynx_target_ops): Update.
4255 * nto-low.cc (nto_target_ops): Update.
4256 * win32-low.cc (win32_target_ops): Update.
4258 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4260 Turn process_stratum_target's read_memory and write_memory
4261 ops into methods of process_target.
4263 * target.h (struct process_stratum_target): Remove the target ops.
4264 (class process_target): Add the target ops.
4266 Update the derived classes and callers below.
4268 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
4269 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
4270 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
4271 (arm_get_syscall_trapinfo): Update.
4272 * linux-cris-low.cc (cris_breakpoint_at): Update.
4273 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
4274 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
4275 * linux-mips-low.cc (mips_breakpoint_at): Update.
4276 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
4277 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
4278 * linux-sh-low.cc (sh_breakpoint_at): Update.
4279 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
4280 (sparc_store_gregset_from_stack): Update.
4281 (sparc_breakpoint_at): Update.
4282 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
4283 * linux-tile-low.cc (tile_breakpoint_at): Update.
4284 * linux-x86-low.cc (x86_breakpoint_at): Update.
4285 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
4286 * mem-brea.cc (insert_memory_breakpoint): Update.
4287 (validate_inserted_breakpoint): Update.
4288 * target.cc (read_inferior_memory): Update.
4289 (target_write_memory): Update.
4290 * linux-low.cc (linux_target_ops): Update.
4291 (linux_read_memory): Make a wrapper around the read_memory target
4293 (linux_process_target::read_memory): Rename from linux_read_memory.
4294 (linux_write_memory): Turn into ...
4295 (linux_process_target::write_memory): ... this.
4296 * linux-low.h (class linux_process_target): Update.
4297 * lynx-low.cc (lynx_target_ops): Update.
4298 (lynx_read_memory): Turn into ...
4299 (lynx_process_target::read_memory): ... this.
4300 (lynx_write_memory): Turn into ...
4301 (lynx_process_target::write_memory): ... this.
4302 * lynx-low.h (class lynx_process_target): Update.
4303 * nto-low.cc (nto_target_ops): Update.
4304 (nto_read_memory): Turn into ...
4305 (nto_process_target::read_memory): ... this.
4306 (nto_write_memory): Turn into ...
4307 (nto_process_target::write_memory): ... this.
4308 * nto-low.h (class nto_process_target): Update.
4309 * win32-low.cc (win32_target_ops): Update.
4310 (win32_read_inferior_memory): Turn into ...
4311 (win32_process_target::read_memory): ... this.
4312 (win32_write_inferior_memory): Turn into ...
4313 (win32_process_target::write_memory): ... this.
4314 * win32-low.h (class win32_process_target): Update.
4316 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4318 Turn process_stratum_target's prepare_to_access_memory and
4319 done_accessing_memory ops into methods of process_target.
4321 * target.h (struct process_stratum_target): Remove the target ops.
4322 (class process_target): Add the target ops.
4323 * target.cc (process_target::prepare_to_access_memory): Define.
4324 (process_target::done_accessing_memory): Define.
4325 (prepare_to_access_memory): Update.
4326 (done_accessing_memory): Update.
4328 Update the derived classes and callers below.
4330 * linux-low.cc (linux_target_ops): Update.
4331 (linux_prepare_to_access_memory): Turn into ...
4332 (linux_process_target::prepare_to_access_memory): ... this.
4333 (linux_done_accessing_memory): Turn into ...
4334 (linux_process_target::done_accessing_memory): ... this.
4335 * linux-low.h (class linux_process_target): Update.
4336 * lynx-low.cc (lynx_target_ops): Update.
4337 * nto-low.cc (nto_target_ops): Update.
4338 * win32-low.cc (win32_target_ops): Update.
4340 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4342 Turn process_stratum_target's fetch_registers and store_registers
4343 ops into methods of process_target.
4345 * target.h (struct process_stratum_target): Remove the target ops.
4346 (class process_target): Add the target ops.
4347 (fetch_inferior_registers): Update the macro.
4348 (store_inferior_registers): Update the macro.
4350 Update the derived classes and callers below.
4352 * linux-low.cc (linux_target_ops): Update.
4353 (linux_fetch_registers): Turn into ...
4354 (linux_process_target::fetch_registers): ... this.
4355 (linux_store_registers): Turn into ...
4356 (linux_process_target::store_registers): ... this.
4357 * linux-low.h (class linux_process_target): Update.
4358 * lynx-low.cc (lynx_target_ops): Update.
4359 (lynx_fetch_registers): Turn into ...
4360 (lynx_process_target::fetch_registers): ... this.
4361 (lynx_store_registers): Turn into ...
4362 (lynx_process_target::store_registers): ... this.
4363 * lynx-low.h (class lynx_process_target): Update.
4364 * nto-low.cc (nto_target_ops): Update.
4365 (nto_fetch_registers): Turn into ...
4366 (nto_process_target::fetch_registers): ... this.
4367 (nto_store_registers): Turn into ...
4368 (nto_process_target::store_registers): ... this.
4369 * nto-low.h (class nto_process_target): Update.
4370 * win32-low.cc (win32_target_ops): Update.
4371 (win32_fetch_inferior_registers): Turn into ...
4372 (win32_process_target::fetch_registers): ... this.
4373 (win32_store_inferior_registers): Turn into ...
4374 (win32_process_target::store_registers): ... this.
4375 * win32-low.h (class win32_process_target): Update.
4377 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4379 Turn process_stratum_target's wait op into a method of
4382 * target.h (struct process_stratum_target): Remove the target op.
4383 (class process_target): Add the target op.
4385 Update the derived classes and callers below.
4387 * target.cc (target_wait): Update.
4388 * linux-low.cc (linux_target_ops): Update.
4389 (linux_wait): Turn into ...
4390 (linux_process_target::wait): ... this.
4391 * linux-low.h (class linux_process_target): Update.
4392 * lynx-low.cc (lynx_target_ops): Update.
4393 (lynx_wait): Turn into ...
4394 (lynx_process_target::wait): ... this.
4395 * lynx-low.h (class lynx_process_target): Update.
4396 * nto-low.cc (nto_target_ops): Update.
4397 (nto_wait): Turn into ...
4398 (nto_process_target::wait): ... this.
4399 * nto-low.h (class nto_process_target): Update.
4400 * win32-low.cc (win32_target_ops): Update.
4401 (win32_wait): Turn into ...
4402 (win32_process_target::wait): ... this.
4403 (do_initial_child_stuff): Update.
4404 * win32-low.h (class win32_process_target): Update.
4406 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4408 Turn process_stratum_target's resume op into a method of
4411 * target.h (struct process_stratum_target): Remove the target op.
4412 (class process_target): Add the target op.
4414 Update the derived classes and callers below.
4416 * server.cc (resume): Update.
4417 * target.cc (target_stop_and_wait): Update.
4418 (target_continue_no_signal): Update.
4419 (target_continue): Update.
4420 * linux-low.cc (linux_target_ops): Update.
4421 (linux_resume): Turn into ...
4422 (linux_process_target::resume): ... this.
4423 * linux-low.h (class linux_process_target): Update.
4424 * lynx-low.cc (lynx_target_ops): Update.
4425 (lynx_resume): Turn into ...
4426 (lynx_process_target::resume): ... this.
4427 * lynx-low.h (class lynx_process_target): Update.
4428 * nto-low.cc (nto_target_ops): Update.
4429 (nto_resume): Turn into ...
4430 (nto_process_target::resume): ... this.
4431 * nto-low.h (class nto_process_target): Update.
4432 * win32-low.cc (win32_target_ops): Update.
4433 (win32_resume): Turn into ...
4434 (win32_process_target::resume): ... this.
4435 (win32_process_target::detach): Update.
4436 (do_initial_child_stuff): Update.
4437 * win32-low.h (class win32_process_target): Update.
4439 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4441 Turn process_stratum_target's thread_alive op into a method of
4444 * target.h (struct process_stratum_target): Remove the target op.
4445 (class process_target): Add the target op.
4446 (mythread_alive): Update the macro.
4448 Update the derived classes and callers below.
4450 * linux-low.cc (linux_target_ops): Update.
4451 (linux_thread_alive): Turn into ...
4452 (linux_process_target::thread_alive): ... this.
4453 (wait_for_sigstop): Update.
4454 * linux-low.h (class linux_process_target): Update.
4455 * lynx-low.cc (lynx_target_ops): Update.
4456 (lynx_thread_alive): Turn into ...
4457 (lynx_process_target::thread_alive): ... this.
4458 * lynx-low.h (class lynx_process_target): Update.
4459 * nto-low.cc (nto_target_ops): Update.
4460 (nto_thread_alive): Turn into ...
4461 (nto_process_target::thread_alive): ... this.
4462 * nto-low.h (class nto_process_target): Update.
4463 * win32-low.cc (win32_target_ops): Update.
4464 (win32_thread_alive): Turn into ...
4465 (win32_process_target::thread_alive): ... this.
4466 * win32-low.h (class win32_process_target): Update.
4468 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4470 Turn process_stratum_target's join op into a method of
4473 * target.h (struct process_stratum_target): Remove the target op.
4474 (class process_target): Add the target op.
4475 (join_inferior): Update the macro.
4477 Update the derived classes and callers below.
4479 * linux-low.cc (linux_target_ops): Update.
4480 (linux_join): Turn into ...
4481 (linux_process_target::join): ... this.
4482 * linux-low.h (class linux_process_target): Update.
4483 * lynx-low.cc (lynx_target_ops): Update.
4484 (lynx_join): Turn into ...
4485 (lynx_process_target::join): ... this.
4486 * lynx-low.h (class lynx_process_target): Update.
4487 * nto-low.cc (nto_target_ops): Update.
4488 (nto_process_target::join): Define.
4489 * nto-low.h (class nto_process_target): Update.
4490 * win32-low.cc (win32_target_ops): Update.
4491 (win32_join): Turn into ...
4492 (win32_process_target::join): ... this.
4493 * win32-low.h (class win32_process_target): Update.
4495 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4497 Turn process_stratum_target's mourn op into a method of
4500 * target.h (struct process_stratum_target): Remove the target op.
4501 (class process_target): Add the target op.
4503 Update the derived classes and callers below.
4505 * target.cc (target_mourn_inferior): Update.
4506 * linux-low.cc (linux_target_ops): Update.
4507 (linux_mourn): Turn into ...
4508 (linux_process_target::mourn): ... this.
4509 (handle_extended_wait): Update.
4510 (linux_process_target::kill): Update.
4511 (linux_process_target::detach): Update.
4512 * linux-low.h (class linux_process_target): Update.
4513 * lynx-low.cc (lynx_target_ops): Update.
4514 (lynx_mourn): Turn into ...
4515 (lynx_process_target::mourn): ... this.
4516 * lynx-low.h (class lynx_process_target): Update.
4517 * nto-low.cc (nto_target_ops): Update.
4518 (nto_mourn): Turn into ...
4519 (nto_process_target::mourn): ... this.
4520 * nto-low.h (class nto_process_target): Update.
4521 * win32-low.cc (win32_target_ops): Update.
4522 (win32_mourn): Turn into ...
4523 (win32_process_target::mourn): ... this.
4524 * win32-low.h (class win32_process_target): Update.
4526 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4528 Turn process_stratum_target's detach op into a method of
4531 * target.h (struct process_stratum_target): Remove the target op.
4532 (class process_target): Add the target op.
4533 (detach_inferior): Update the macro.
4535 Update the derived classes and callers below.
4537 * linux-low.cc (linux_target_ops): Update.
4538 (linux_detach): Turn into ...
4539 (linux_process_target::detach): ... this.
4540 * linux-low.h (class linux_process_target): Update.
4541 * lynx-low.cc (lynx_target_ops): Update.
4542 (lynx_detach): Turn into ...
4543 (lynx_process_target::detach): ... this.
4544 * lynx-low.h (class lynx_process_target): Update.
4545 * nto-low.cc (nto_target_ops): Update.
4546 (nto_detach): Turn into ...
4547 (nto_process_target::detach): ... this.
4548 * nto-low.h (class nto_process_target): Update.
4549 * win32-low.cc (win32_target_ops): Update.
4550 (win32_detach): Turn into ...
4551 (win32_process_target::detach): ... this.
4552 * win32-low.h (class win32_process_target): Update.
4554 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4556 Turn process_stratum_target's kill op into a method of
4559 * target.h (struct process_stratum_target): Remove the target op.
4560 (class process_target): Add the target op.
4562 Update the derived classes and callers below.
4564 * target.cc (kill_inferior): Update.
4565 * linux-low.cc (linux_target_ops): Update.
4566 (linux_kill): Turn into ...
4567 (linux_process_target::kill): ... this.
4568 * linux-low.h (class linux_process_target): Update.
4569 * lynx-low.cc (lynx_target_ops): Update.
4570 (lynx_kill): Turn into ...
4571 (lynx_process_target::kill): ... this.
4572 * lynx-low.h (class lynx_process_target): Update.
4573 * nto-low.cc (nto_target_ops): Update.
4574 (nto_kill): Turn into ...
4575 (nto_process_target::kill): ... this.
4576 * nto-low.h (class nto_process_target): Update.
4577 * win32-low.cc (win32_target_ops): Update.
4578 (win32_kill): Turn into ...
4579 (win32_process_target::kill): ... this.
4580 * win32-low.h (class win32_process_target): Update.
4582 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4584 Turn process_stratum_target's attach op into a method of
4587 * target.h (struct process_stratum_target): Remove the target op.
4588 (class process_target): Add the target op.
4589 (myattach): Update the macro.
4591 Update the derived classes and callers below.
4593 * linux-low.cc (linux_target_ops): Update.
4594 (linux_attach): Turn into ...
4595 (linux_process_target::attach): ... this.
4596 * linux-low.h (class linux_process_target): Update.
4597 * lynx-low.cc (lynx_target_ops): Update.
4598 (lynx_attach): Turn into ...
4599 (lynx_process_target::attach): ... this.
4600 * lynx-low.h (class lynx_process_target): Update.
4601 * nto-low.cc (nto_target_ops): Update.
4602 (nto_attach): Turn into ...
4603 (nto_process_target::attach): ... this.
4604 * nto-low.h (class nto_process_target): Update.
4605 * win32-low.cc (win32_target_ops): Update.
4606 (win32_attach): Turn into ...
4607 (win32_process_target::attach): ... this.
4608 * win32-low.h (class win32_process_target): Update.
4610 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4612 Turn process_stratum_target's post_create_inferior op into a method
4615 * target.h (struct process_stratum_target): Remove the target op.
4616 (class process_target): Add the target op.
4617 (target_post_create_inferior): Update the macro.
4618 * target.cc (process_target::post_create_inferior): Define.
4620 Update the derived classes and callers below.
4622 * linux-low.cc (linux_target_ops): Update.
4623 (linux_post_create_inferior): Turn into ...
4624 (linux_process_target::post_create_inferior): ... this.
4625 * linux-low.h (class linux_process_target): Update.
4626 * lynx-low.cc (lynx_target_ops): Update.
4627 * nto-low.cc (nto_target_ops): Update.
4628 * win32-low.cc (win32_target_ops): Update.
4630 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4632 Turn process_stratum_target's create_inferior op into a method of
4635 * target.h (struct process_stratum_target): Remove the target op.
4636 (class process_target): Add the target op.
4637 (create_inferior): Rename the macro to ...
4638 (target_create_inferior): ... this.
4640 Update the derived classes and callers below.
4642 * server.cc (handle_v_run): Update.
4643 (captured_main): Update.
4644 (process_serial_event): Update.
4645 * linux-low.cc (linux_target_ops): Update.
4646 (linux_create_inferior): Turn into ...
4647 (linux_process_target::create_inferior): ... this.
4648 * linux-low.h (class linux_process_target): Update.
4649 * lynx-low.cc (lynx_target_ops): Update.
4650 (lynx_create_inferior): Turn into ...
4651 (lynx_process_target::create_inferior): ... this.
4652 * lynx-low.h (class lynx_process_target): Update.
4653 * nto-low.cc (nto_target_ops): Update.
4654 (nto_create_inferior): Turn into ...
4655 (nto_process_target::create_inferior): ... this.
4656 * nto-low.h (class nto_process_target): Update.
4657 * win32-low.cc (win32_target_ops): Update.
4658 (win32_create_inferior): Turn into ...
4659 (win32_process_target::create_inferior): ... this.
4660 * win32-low.h (class win32_process_target): Update.
4662 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4664 * target.h (class process_target): New class definition.
4665 (struct process_stratum_target) <pt>: New field with type
4667 * linux-low.h (class linux_process_target): Define as a derived
4668 class of 'process_target'.
4669 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4671 * lynx-low.h (class lynx_process_target): Define as a derived
4672 class of 'process_target'.
4673 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4675 * nto-low.h (class nto_process_target): Define as a derived
4676 class of 'process_target'.
4677 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4679 * win32-low.h (class win32_process_target): Define as a derived
4680 class of 'process_target'.
4681 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4684 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4686 * configure: Regenerate.
4688 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4689 Andrew Burgess <andrew.burgess@embecosm.com>
4691 * linux-riscv-low.cc: New file.
4692 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4693 and nat/riscv-linux-tdesc.c.
4694 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4695 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4698 2020-02-14 Tom Tromey <tom@tromey.com>
4700 * acinclude.m4: Don't include acx_configure_dir.m4.
4701 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4702 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4703 (all, install-only, uninstall, clean-info, clean)
4704 (maintainer-clean): Don't recurse.
4705 (subdir_do, all-lib): Remove.
4706 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4708 (generated_files): Update.
4709 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4710 * configure: Rebuild.
4711 * configure.ac: Don't configure gnulib or libiberty.
4714 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4716 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4717 preparing the command line for CreateProcess.
4718 (win32_create_inferior): Reflect the program name in debugging
4719 output that shows the process and its command line.
4721 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4723 * Makefile.in: Rename source files from .c to .cc.
4724 * %.c: Rename to %.cc.
4725 * configure.ac: Rename server.c to server.cc.
4726 * configure: Re-generate.
4728 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4730 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4732 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4734 * win32-low.c (win32_create_inferior): Set signal_pid.
4736 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4737 Pedro Alves <palves@redhat.com>
4739 Skip building gdbserver in a cross-configuration.
4740 * configure.srv: Set $gdbserver_host depending on whether $target
4741 is $host. Use $gdbserver_host instead of $host.
4743 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4745 * configure: Re-generate.
4747 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4749 * configure: Re-generate.
4751 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4753 * acinclude.m4: Update warning.m4 path.
4755 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4757 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4758 (handle_exception): Set siginfo_er.
4759 (win32_xfer_siginfo): New function.
4761 2020-02-07 Tom Tromey <tom@tromey.com>
4762 Pedro Alves <palves@redhat.com>
4764 * README: Update build documentation.
4765 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4767 * configure.ac: Update paths.
4768 * configure: Rebuild.
4769 * acinclude.m4: Update paths.
4770 * Makefile.in: Update include paths.
4771 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4772 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4773 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4774 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4775 (%-generated.c): Update paths.
4776 * Move entire directory from ../gdb/gdbserver.
4778 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4780 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4782 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4784 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4785 assignment instead of srv_linux_obj.
4787 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4789 * server.c (handle_qxfer_libraries): Write segment-address with
4792 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4794 * Makefile.in (install-strip): New target.
4795 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4796 * aclocal.m4: Regenerate.
4797 * configure: Regenerate.
4798 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4800 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4802 * Makefile.in (SFILES): Adjust paths to point to real files.
4803 (OBS): Move waitstatus.o to target/waitstatus.o.
4804 (TAGS): Transform paths appropriately.
4806 (nat/%.o): ... this pattern rule.
4808 (target/%.o): ... this pattern rule.
4809 * configure.srv: Adjust paths throughout to include nat/ prefix
4810 with the revant files.
4811 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4812 * configure: Regenerate.
4814 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4816 * Makefile.in (TAGS): Remove config files from the recipe.
4818 2020-01-14 Tom Tromey <tom@tromey.com>
4820 * configure: Rebuild.
4821 * configure.ac: Remove any checks that were added to common.m4.
4822 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4825 2020-01-14 Tom Tromey <tom@tromey.com>
4827 * server.h: Include config.h.
4828 * gdbreplay.c: Include config.h.
4829 * configure: Rebuild.
4830 * configure.ac: Don't source common.host.
4831 * acinclude.m4: Update path.
4832 * Makefile.in (INCSUPPORT): New variable.
4833 (INCLUDE_CFLAGS): Add INCSUPPORT.
4834 (SFILES): Update paths.
4835 (version-generated.c): Update path to create-version.sh.
4836 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4838 2020-01-14 Tom Tromey <tom@tromey.com>
4840 * configure.ac (LIBS): Use WIN32APILIBS.
4841 (USE_WIN32API): Don't define.
4842 * configure: Rebuild.
4844 2020-01-14 Tom Tromey <tom@tromey.com>
4846 * configure: Rebuild.
4848 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4850 * Makefile.in (%-generated.c): Remove rule for files from
4853 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4855 * configure: Re-generate.
4857 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4859 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4861 * tracepoint.c (stop_tracing, flush_trace_buffer,
4862 about_to_request_buffer_space, get_trace_state_variable_value,
4863 set_trace_state_variable_value, gdb_collect): Add declaration.
4865 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4867 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4868 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4869 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4870 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4871 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4874 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4876 * inferiors.c: Include gdbsupport/common-inferior.h.
4878 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4880 * hostio-errno.c: Include hostio.h.
4882 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4884 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4887 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4889 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4890 * linux-arm-tdesc.h: Include arch/arm.h.
4892 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4894 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4896 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4898 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4899 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4901 2020-01-10 Pedro Alves <palves@redhat.com>
4903 * fork-child.c (post_fork_inferior): Pass target down to
4905 * inferiors.c (switch_to_thread): Add process_stratum_target
4907 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4908 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4909 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4910 * remote-utils.c (prepare_resume_reply): Pass the target to
4912 * target.c (the_target): Now a process_stratum_target.
4913 (done_accessing_memory): Pass the target to switch_to_thread.
4914 (set_target_ops): Ajust to use process_stratum_target.
4915 * target.h (struct target_ops): Rename to ...
4916 (struct process_stratum_target): ... this.
4917 (the_target, set_target_ops): Adjust.
4918 (prepare_to_access_memory): Adjust comment.
4919 * win32-low.c (child_xfer_memory): Adjust to use
4920 process_stratum_target.
4921 (win32_target_ops): Now a process_stratum_target.
4923 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4924 Pedro Alves <palves@redhat.com>
4926 * win32-low.c (get_child_debug_event): Extract the fatal exception
4927 from the exit status and convert to the equivalent Posix signal
4929 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4930 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4932 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4934 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4936 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4938 * server.c (gdbserver_version): Change copyright year to 2020.
4939 * gdbreplay.c (gdbreplay_version): Likewise.
4941 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4943 * configure: Regenerate.
4944 * configure.ac: Quote variable arguments of test.
4946 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4948 * Makefile.in: Fix build with GNU Make 3.81
4950 2019-12-16 Tom Tromey <tromey@adacore.com>
4952 * server.c (get_exec_file): Constify result.
4954 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4956 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4957 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4958 * config.in: Regenerate.
4959 * configure: Regenerate.
4960 * configure.ac: Don't check for strerror.
4961 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4962 Call safe_strerror instead of strerror.
4963 * server.h (strerror): Remove this now-unnecessary declaration.
4964 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4966 (gdb_agent_helper_thread): Likewise.
4967 * utils.c (perror_with_name): Likewise.
4969 2019-11-26 Tom Tromey <tom@tromey.com>
4971 * configure, config.in: Rebuild.
4973 2019-11-26 Tom Tromey <tom@tromey.com>
4975 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4976 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4978 * configure, config.in: Rebuild.
4980 2019-11-26 Tom Tromey <tom@tromey.com>
4982 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4983 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4984 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4985 * acinclude.m4: Include ax_pthread.m4.
4986 * config.in, configure: Rebuild.
4988 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4990 * debug.c (debug_set_output): Call safe_strerror instead of
4992 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4993 (linux_kill_one_lwp): Likewise.
4994 (linux_detach_one_lwp): Likewise.
4995 (linux_wait_for_event_filtered): Likewise.
4996 (store_register): Likewise.
4997 * lynx-low.c (lynx_attach): Likewise.
4998 * mem-break.c (insert_memory_breakpoint): Likewise.
4999 (remove_memory_breakpoint): Likewise.
5000 (delete_fast_tracepoint_jump): Likewise.
5001 (set_fast_tracepoint_jump): Likewise.
5002 (uninsert_fast_tracepoint_jumps_at): Likewise.
5003 (reinsert_fast_tracepoint_jumps_at): Likewise.
5004 * nto-low.c (nto_xfer_memory): Likewise.
5005 (nto_resume): Likewise.
5007 2019-11-20 Luis Machado <luis.machado@linaro.org>
5009 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
5010 instead of register count.
5011 * tdesc.c (tdesc_contains_feature): New function.
5012 * tdesc.h (tdesc_contains_feature): New prototype.
5014 2019-11-15 Christian Biesinger <cbiesinger@google.com>
5016 * Makefile.in: Add safe-strerror.c.
5017 * configure: Regenerate.
5018 * configure.ac: Don't source common.host.
5020 2019-11-15 Christian Biesinger <cbiesinger@google.com>
5022 * config.in: Regenerate.
5023 * configure: Regenerate.
5025 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
5027 * ax.c (ax_printf): Handle size_t_arg.
5029 2019-11-06 Christian Biesinger <cbiesinger@google.com>
5031 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
5032 * mi/mi-main.c (output_cores): Likewise.
5033 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
5034 (linux_xfer_osdata_modules): Likewise.
5035 * remote.c (register_remote_support_xml): Likewise.
5036 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
5037 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
5039 2019-11-01 Christian Biesinger <cbiesinger@google.com>
5041 * configure: Regenerate.
5042 * configure.ac: Remove check for strerror_r.
5044 2019-10-31 Christian Biesinger <cbiesinger@google.com>
5046 * config.in: Regenerate.
5047 * configure: Regenerate.
5048 * configure.ac: Also check for strerror_r.
5050 2019-10-31 Christian Biesinger <cbiesinger@google.com>
5052 * ax.h (debug_agent): Remove duplicate declaration.
5054 2019-10-26 Tom de Vries <tdevries@suse.de>
5056 * linux-aarch64-low.c: Fix typos in comments.
5057 * linux-arm-low.c: Same.
5058 * linux-low.c: Same.
5059 * linux-ppc-low.c: Same.
5060 * proc-service.c: Same.
5063 * tracepoint.c: Same.
5064 * win32-low.c: Same.
5066 2019-10-25 Tom Tromey <tromey@adacore.com>
5068 * utils.c (xstrdup): Remove.
5070 2019-10-23 Tom Tromey <tom@tromey.com>
5072 * configure, config.in: Rebuild.
5074 2019-10-23 Tom Tromey <tom@tromey.com>
5076 * configure: Rebuild.
5077 * acinclude.m4: Use m4_include, not sinclude.
5079 2019-10-17 Tom Tromey <tromey@adacore.com>
5081 * configure: Rebuild.
5082 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
5083 in AC_CONFIG_FILES invocation.
5084 * Makefile.in (stamp-h, Makefile): Use new-style config.status
5087 2019-10-16 Christian Biesinger <cbiesinger@google.com>
5089 * server.c: Include xml-builtin.h.
5090 (get_xml_features): Don't declare xml_builtins here.
5092 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5094 * Makefile.in: Remove references to vec-ipa.o.
5096 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5098 * Makefile.in: Remove references to vec.c.
5100 2019-10-02 Christian Biesinger <cbiesinger@google.com>
5102 * server.c (server_waiting): Change to bool.
5103 (extended_protocol): Likewise.
5104 (response_needed): Likewise.
5105 (exit_requested): Likewise.
5106 (run_once): Likewise.
5107 (report_no_resumed): Likewise.
5108 (non_stop): Likewise.
5109 (disable_packet_vCont): Likewise.
5110 (disable_packet_Tthread): Likewise.
5111 (disable_packet_qC): Likewise.
5112 (disable_packet_qfThreadInfo): Likewise.
5113 (handle_general_set): Update.
5114 (handle_detach): Update.
5115 (handle_monitor_command): Update.
5116 (handle_query): Update.
5117 (captured_main): Update.
5118 (process_serial_event): Update.
5119 * server.h (server_waiting): Change to bool.
5120 (disable_packet_vCont): Likewise.
5121 (disable_packet_Tthread): Likewise.
5122 (disable_packet_qC): Likewise.
5123 (disable_packet_qfThreadInfo): Likewise.
5124 (run_once): Likewise.
5125 (non_stop): Likewise.
5126 * target.c (target_stop_and_wait): Update.
5128 2019-10-02 Tom Tromey <tromey@adacore.com>
5130 * Makefile.in (SFILES): Add common-inferior.c.
5131 (OBS): Add common-inferior.o.
5132 * server.c (startup_with_shell): Don't define.
5134 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
5136 * linux-low.c (linux_low_read_btrace): Update for change to
5139 2019-09-20 Christian Biesinger <cbiesinger@google.com>
5141 * debug.c (debug_threads): Remove comment in favor of the header.
5142 * debug.h (using_threads): Add declaration.
5143 (debug_threads): Add comment.
5144 * linux-aarch64-low.c: Include debug.h and remove declaration of
5146 * nto-low.c: Likewise.
5147 * remote-utils.c: Likewise.
5148 * thread-db.c: Likewise.
5150 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
5152 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
5153 and powerpc-cell64l-ipa.o.
5154 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
5155 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
5156 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
5159 * spu-low.c: Remove file.
5161 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
5162 (parse_spufs_run): Remove.
5163 (ppc_get_pc): Remove Cell/B.E. support.
5164 (ppc_set_pc): Likewise.
5165 (ppc_breakpoint_at): Likewise.
5166 (ppc_arch_setup): Likewise.
5167 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
5168 tdesc_powerpc_cell32l.
5169 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
5170 or init_registers_powerpc_cell32l.
5171 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
5172 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
5173 or init_registers_powerpc_cell32l.
5174 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
5175 (init_registers_powerpc_cell32l): Remove prototype.
5176 (init_registers_powerpc_cell64l): Likewise.
5178 * target.h (struct target_ops): Remove qxfer_spu member.
5179 * server.c (handle_qxfer_spu): Remove.
5180 (qxfer_packets): Remove entry for "spu".
5181 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
5182 * linux-low.c (SPUFS_MAGIC): Remove.
5183 (spu_enumerate_spu_ids): Remove.
5184 (linux_qxfer_spu): Remove.
5185 (linux_target_ops): Remove qxfer_spu member.
5186 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
5187 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
5188 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
5190 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5192 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
5193 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
5194 * config.in: Regenerate.
5195 * configure: Regenerate.
5197 2019-08-15 Tom Tromey <tromey@adacore.com>
5199 * target.c (target_write_memory): Use gdb::byte_vector.
5201 2019-08-15 Tom Tromey <tromey@adacore.com>
5203 * tracepoint.c (write_inferior_data_pointer)
5204 (write_inferior_integer, write_inferior_int8)
5205 (write_inferior_uinteger, m_tracepoint_action_download)
5206 (r_tracepoint_action_download, x_tracepoint_action_download)
5207 (l_tracepoint_action_download, clear_inferior_trace_buffer)
5208 (download_agent_expr, download_tracepoint_1)
5209 (download_trace_state_variables, upload_fast_traceframes): Update.
5210 * server.c (gdb_write_memory): Update.
5211 * remote-utils.c (relocate_instruction): Update.
5212 * proc-service.c (ps_pdwrite): Update.
5213 * mem-break.c (remove_memory_breakpoint)
5214 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
5215 (uninsert_fast_tracepoint_jumps_at)
5216 (reinsert_fast_tracepoint_jumps_at): Update.
5217 * linux-x86-low.c (append_insns)
5218 (i386_install_fast_tracepoint_jump_pad)
5219 (amd64_write_goto_address, i386_write_goto_address): Update.
5220 * linux-s390-low.c (append_insns, s390_write_goto_address):
5222 * linux-ppc-low.c (ppc_relocate_instruction)
5223 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
5224 (ppc_write_goto_address): Update.
5225 * linux-aarch64-low.c (append_insns): Update.
5226 * target.h (struct target_ops): Update.
5227 (write_inferior_memory): Don't declare.
5228 * target.c (target_write_memory): Rename from
5229 write_inferior_memory. Remove old target_write_memory.
5231 2019-08-15 Tom Tromey <tromey@adacore.com>
5233 * target.c (write_inferior_memory): Use std::vector.
5235 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5238 * configure.ac: Drop enable-libmcheck support.
5239 * configure, config.in: Rebuild.
5240 * acinclude.m4: Don't include it.
5242 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5244 * configure.srv: Remove Arm xml files.
5246 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5248 * configure.srv: Add new files. Remove xml generated files.
5249 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
5251 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
5252 * linux-aarch32-tdesc.c: New file.
5253 * linux-aarch32-tdesc.h: New file.
5254 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
5255 * linux-arm-low.c (init_registers_arm, tdesc_arm)
5256 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
5257 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
5258 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
5259 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
5260 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
5261 (arm_read_description): Call arm_linux_read_description.
5262 (initialize_low_arch): Don't init registers.
5263 * linux-arm-tdesc.c: New file.
5264 * linux-arm-tdesc.h: New file.
5266 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5268 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
5269 Move counter inside for.
5270 (arm_read_description): Check ptrace earlier.
5271 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
5273 2019-07-09 Tom Tromey <tom@tromey.com>
5275 * configure: Rebuild.
5276 * configure.ac: Change common to gdbsupport.
5277 * acinclude.m4: Change common to gdbsupport.
5278 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
5279 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
5280 common to gdbsupport.
5281 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
5282 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
5283 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
5284 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
5285 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
5286 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
5287 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
5288 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
5289 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
5290 common to gdbsupport.
5292 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5294 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
5296 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
5298 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5300 * configure.srv: Remove legacy xml.
5301 * linux-aarch64-low.c (initialize_low_arch): Remove
5302 initialize_low_tdesc call.
5303 * linux-aarch64-tdesc-selftest.c: Remove file.
5304 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
5305 * linux-x86-low.c (initialize_low_arch): Remove
5306 initialize_low_tdesc call.
5307 * linux-x86-tdesc-selftest.c: Remove file.
5308 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
5310 2019-06-20 Tom de Vries <tdevries@suse.de>
5312 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
5313 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
5315 2019-06-19 Tom de Vries <tdevries@suse.de>
5317 * debug.h (debug_write): Change return type to ssize_t.
5318 * debug.c (debug_write): Same.
5320 2019-06-14 Tom Tromey <tom@tromey.com>
5322 * configure.ac: Use new path to gnulib.
5323 * configure: Rebuild.
5324 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
5327 2019-06-11 Tom Tromey <tom@tromey.com>
5329 * Makefile.in (SFILES): Add alloc.c.
5331 (IPA_OBJS): Add alloc-ipa.o.
5332 (alloc-ipa.o): New target.
5333 (%.o: ../%.c): New pattern rule.
5335 2019-06-10 Tom Tromey <tromey@adacore.com>
5337 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
5338 end warning with a newline.
5339 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
5341 * thread-db.c (attach_thread): Don't end warning with a newline.
5342 (thread_db_notice_clone): Likewise.
5343 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
5345 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
5346 end warning with a newline.
5348 2019-06-04 Pedro Alves <palves@redhat.com>
5350 * server.c (captured_main): Use make_unique_xstrdup.
5352 2019-06-02 Tom Tromey <tom@tromey.com>
5354 * gdbreplay.c (fromhex): Remove.
5355 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
5357 2019-05-29 Tom Tromey <tromey@adacore.com>
5359 * configure: Rebuild.
5361 2019-05-06 Kevin Buettner <kevinb@redhat.com>
5363 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
5364 sign extension code on 32-bit builds.
5366 2019-05-03 Eli Zaretskii <eliz@gnu.org>
5369 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
5371 2019-04-19 Tom Tromey <tom@tromey.com>
5373 * server.c (struct vstop_notif): Derive from notif_event.
5375 (queue_stop_reply): Update.
5376 (remove_all_on_match_ptid): Change type. Rewrite.
5377 (discard_queued_stop_replies): Rewrite.
5378 (in_queued_stop_replies_ptid): Change type.
5379 (in_queued_stop_replies): Rewrite.
5380 (notif_stop): Update.
5381 (queue_stop_reply_callback): Update.
5382 (captured_main): Don't call initialize_notif.
5383 (push_stop_notification): Update.
5384 * notif.c (notif_write_event, handle_notif_ack)
5385 (notif_event_enque, notif_push): Update.
5386 (notif_event_xfree, initialize_notif): Remove.
5387 * notif.h (struct notif_event): Include <list>, not
5389 (struct notif_server) <queue>: Now a std::list.
5390 (notif_event_p): Remove typedef.
5391 (initialize_notif): Don't declare.
5392 (struct notif_event): Add virtual destructor.
5394 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5396 * ax.c (ax_vdebug): Call debug_printf.
5397 * debug.c (debug_write): New function.
5398 * debug.h (debug_write): New declaration.
5399 * linux-low.c (sigchld_handler): Call debug_write.
5401 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5403 * debug.c (debug_set_output): New function.
5404 (debug_vprintf): Send output to debug_file.
5405 (debug_flush): Likewise.
5406 * debug.h (debug_set_output): New declaration.
5407 * server.c (handle_monitor_command): Add debug-file option.
5408 (captured_main): Likewise.
5410 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5412 * debug.c (remote_debug): Add definition.
5413 * debug.h (remote_debug): Add declaration.
5414 * hostio.c (remote_debug): Remove declaration.
5415 * remote-utils.c (struct ui_file): Likewise.
5416 (remote_debug): Likewise.
5417 * remote-utils.h (remote_debug): Likewise,
5418 * server.c (remote_debug): Remove definition.
5420 2019-04-10 Kevin Buettner <kevinb@redhat.com>
5422 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5423 when using a 64-bit gdbserver.
5425 2019-04-09 Tom Tromey <tromey@adacore.com>
5427 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5429 2019-04-08 Tom Tromey <tom@tromey.com>
5431 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5433 (linux_resume_one_lwp): Likewise.
5435 2019-04-08 Tom Tromey <tom@tromey.com>
5437 * gdbreplay.c: Update.
5438 * linux-low.c: Update.
5441 2019-04-08 Tom Tromey <tom@tromey.com>
5443 * server.c: Use C++ exception handling.
5444 * linux-low.c: Use C++ exception handling.
5445 * gdbreplay.c: Use C++ exception handling.
5447 2019-04-08 Tom Tromey <tom@tromey.com>
5449 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5450 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5451 (captured_main, main): Update.
5452 * gdbreplay.c (main): Update.
5454 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5456 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5457 value in argument pointer, return 1 if the entry is found and 0
5458 otherwise. Move comment.
5459 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5460 * linux-low.h (linux_get_auxv): Declare.
5461 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5463 2019-04-05 Tom Tromey <tromey@adacore.com>
5465 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5468 2019-03-28 Alan Hayward <alan.hayward@arm.com>
5470 * linux-low.c (AT_HWCAP2): Add define if not already included.
5472 2019-03-26 Alan Hayward <alan.hayward@arm.com>
5474 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5475 (aarch64_arch_setup): Call linux_get_hwcap.
5476 * linux-arm-low.c (arm_get_hwcap): Remove function.
5477 (arm_read_description): Call linux_get_hwcap.
5478 * linux-low.c (linux_get_auxv): New function.
5479 (linux_get_hwcap): Likewise.
5480 (linux_get_hwcap2): Likewise.
5481 * linux-low.h (linux_get_hwcap): New declaration.
5482 (linux_get_hwcap2): Likewise.
5483 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5484 (ppc_arch_setup): Call linux_get_hwcap.
5485 * linux-s390-low.c (s390_get_hwcap): Remove function.
5486 (s390_arch_setup): Call linux_get_hwcap.
5488 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5489 Jiong Wang <jiong.wang@arm.com>
5491 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5492 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5494 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5496 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5497 Jiong Wang <jiong.wang@arm.com>
5499 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5500 (aarch64_get_hwcap): New function.
5501 (aarch64_arch_setup): Read APIA hwcap.
5503 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5504 Jiong Wang <jiong.wang@arm.com>
5506 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5507 (initialize_low_tracepoint): Likewise.
5508 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5509 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5510 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5511 (aarch64_linux_read_description): Likewise.
5512 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5514 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5516 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5517 i386_create_target_description for 'segments' parameter.
5518 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5519 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5520 * win32-i386-low.c (i386_arch_setup): Likewise.
5522 2019-03-12 Tom Tromey <tromey@adacore.com>
5524 * linux-low.c (iterate_over_lwps): Update.
5526 2019-03-06 Tom Tromey <tom@tromey.com>
5528 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5529 (captured_main): Use SCOPE_EXIT.
5531 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5533 * configure.srv: Use '$enable_unittest' instead of '$development'
5534 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5537 2019-02-27 Tom Tromey <tromey@adacore.com>
5539 * gdbreplay.c (logchar): Handle \r\n.
5541 2019-02-07 Alan Hayward <alan.hayward@arm.com>
5543 * linux-low.c (linux_attach): Add process before lwp.
5544 * server.c (attach_inferior): Check if already attached.
5546 2019-02-07 Tom Tromey <tom@tromey.com>
5548 * x86-tdesc.h: Rename include guard.
5549 * x86-low.h: Add include guard.
5550 * wincecompat.h: Rename include guard.
5551 * win32-low.h: Add include guard.
5552 * utils.h: Rename include guard.
5553 * tracepoint.h: Rename include guard.
5554 * tdesc.h: Rename include guard.
5555 * target.h: Rename include guard.
5556 * server.h: Rename include guard.
5557 * remote-utils.h: Rename include guard.
5558 * regcache.h: Rename include guard.
5559 * nto-low.h: Rename include guard.
5560 * notif.h: Add include guard.
5561 * mem-break.h: Rename include guard.
5562 * lynx-low.h: Add include guard.
5563 * linux-x86-tdesc.h: Add include guard.
5564 * linux-s390-tdesc.h: Add include guard.
5565 * linux-ppc-tdesc-init.h: Add include guard.
5566 * linux-low.h: Add include guard.
5567 * linux-aarch64-tdesc.h: Add include guard.
5568 * linux-aarch32-low.h: Add include guard.
5569 * inferiors.h: Rename include guard.
5570 * i387-fp.h: Rename include guard.
5571 * hostio.h: Rename include guard.
5572 * gdbthread.h: Rename include guard.
5573 * gdb_proc_service.h: Rename include guard.
5574 * event-loop.h: Rename include guard.
5575 * dll.h: Rename include guard.
5576 * debug.h: Rename include guard.
5577 * ax.h: Rename include guard.
5579 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5582 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5583 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5585 2019-01-25 Tom Tromey <tom@tromey.com>
5587 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5589 2019-01-25 Tom Tromey <tom@tromey.com>
5591 * win32-low.c: Fix common/ includes.
5592 * win32-i386-low.c: Fix common/ includes.
5593 * tracepoint.c: Fix common/ includes.
5594 * thread-db.c: Fix common/ includes.
5595 * target.h: Fix common/ includes.
5596 * symbol.c: Fix common/ includes.
5597 * spu-low.c: Fix common/ includes.
5598 * server.h: Fix common/ includes.
5599 * server.c: Fix common/ includes.
5600 * remote-utils.c: Fix common/ includes.
5601 * regcache.h: Fix common/ includes.
5602 * regcache.c: Fix common/ includes.
5603 * nto-x86-low.c: Fix common/ includes.
5604 * notif.h: Fix common/ includes.
5605 * mem-break.h: Fix common/ includes.
5606 * lynx-low.c: Fix common/ includes.
5607 * lynx-i386-low.c: Fix common/ includes.
5608 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5609 * linux-x86-low.c: Fix common/ includes.
5610 * linux-low.c: Fix common/ includes.
5611 * inferiors.h: Fix common/ includes.
5612 * i387-fp.c: Fix common/ includes.
5613 * hostio.c: Fix common/ includes.
5614 * hostio-errno.c: Fix common/ includes.
5615 * gdbthread.h: Fix common/ includes.
5616 * gdbreplay.c: Fix common/ includes.
5617 * fork-child.c: Fix common/ includes.
5618 * event-loop.c: Fix common/ includes.
5620 (enum gdb_agent_op): Fix common/ includes.
5622 2019-01-21 Tom Tromey <tom@tromey.com>
5624 * tracepoint.c: Fix includes.
5625 * remote-utils.c: Fix includes.
5626 * linux-x86-low.c: Fix includes.
5628 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5630 * gdbreplay.c (gdbreplay_version): Update copyright year in
5632 * server.c (gdbserver_version): Likewise.
5634 2018-12-05 Alan Hayward <alan.hayward@arm.com>
5636 * linux-low.c (add_lwp): Switch ordering.
5638 2018-11-29 Tom Tromey <tom@tromey.com>
5640 * win32-low.c (win32_join): Take pid, not process.
5641 * target.h (struct target_ops) <join>: Change argument type.
5642 (join_inferior): Change argument name.
5643 * spu-low.c (spu_join): Take pid, not process.
5644 * server.c (handle_detach): Preserve pid before destroying
5646 * lynx-low.c (lynx_join): Take pid, not process.
5647 * linux-low.c (linux_join): Take pid, not process.
5649 2018-11-23 Alan Hayward <alan.hayward@arm.com>
5651 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5652 (aarch64_cannot_fetch_register): Likewise.
5653 (struct linux_target_ops): Update references.
5655 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5657 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5659 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5661 * configure.srv (ipa_ppc_linux_regobj): Add
5662 powerpc-isa207-htm-vsx32l-ipa.o and
5663 powerpc-isa207-htm-vsx64l-ipa.o.
5664 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5665 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5666 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5667 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5668 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5669 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5670 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5671 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5672 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5673 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5674 (init_registers_powerpc_isa207_htm_vsx32l)
5675 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5676 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5677 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5678 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5679 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5680 (ppc_store_tm_ctarregset): New functions.
5681 (ppc_regsets): Add entries for HTM regsets.
5682 (ppc_arch_setup): Set htm in features struct when needed. Set
5683 sizes for the HTM regsets.
5684 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5685 (initialize_low_arch): Call
5686 init_registers_powerpc_isa207_htm_vsx32l and
5687 init_registers_powerpc_isa207_htm_vsx64l.
5688 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5689 PPC_TDESC_ISA207_HTM_VSX.
5690 (initialize_low_tracepoint): Call
5691 init_registers_powerpc_isa207_htm_vsx32l and
5692 init_registers_powerpc_isa207_htm_vsx64l.
5694 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5696 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5697 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5698 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5699 (ppc_store_pmuregset): New functions.
5700 (ppc_regsets): Add entries for ebb and pmu regsets.
5701 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5702 pmu regsets are available. Set sizes for these regsets.
5704 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5706 * configure.srv (ipa_ppc_linux_regobj): Add
5707 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5708 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5709 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5710 rs6000/powerpc-isa207-vsx32l.xml, and
5711 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5712 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5713 <PPC_TDESC_ISA207_VSX>: New enum value.
5714 (init_registers_powerpc_isa207_vsx32l): Declare.
5715 (init_registers_powerpc_isa207_vsx64l): Declare.
5716 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5717 (ppc_store_tarregset): New function.
5718 (ppc_regsets): Add entry for the TAR regset.
5719 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5720 size for the TAR regsets.
5721 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5722 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5723 and init_registers_powerpc_isa207_vsx64l.
5724 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5725 (initialize_low_tracepoint): Call
5726 init_registers_powerpc_isa207_vsx32l and
5727 init_registers_powerpc_isa207_vsx64l.
5729 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5730 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5732 * configure.srv (ipa_ppc_linux_regobj): Add
5733 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5734 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5735 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5736 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5737 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5738 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5739 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5740 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5741 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5742 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5743 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5744 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5745 (ppc_hwcap): Add comment.
5746 (ppc_hwcap2): New global.
5747 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5748 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5749 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5750 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5751 when needed. Set sizes for the the DSCR and PPR regsets.
5752 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5753 (initialize_low_arch): Call
5754 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5755 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5756 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5757 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5758 (initialize_low_tracepoint): Call
5759 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5760 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5762 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5764 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5766 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5767 Simon Marchi <simark@simark.ca>
5769 * acinclude.m4: Include "../selftest.m4".
5770 * configure: Regenerate.
5771 * configure.ac: Use "GDB_AC_SELFTEST".
5772 * configure.srv: Use "$enable_unittests" instead of
5773 "$development" when checking whether unit tests have been
5775 * server.c (captured_main): Update message informing that
5776 selftests have been disabled.
5778 2018-10-04 Tom Tromey <tom@tromey.com>
5780 * configure: Rebuild.
5782 2018-10-04 Tom Tromey <tom@tromey.com>
5784 * server.c (handle_status): Rename inner "thread".
5785 (process_serial_event): Declare "res" in 'm' case.
5786 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5787 (iterate_over_lwps): Rename inner "thread".
5788 (linux_qxfer_libraries_svr4): Rename inner "len".
5789 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5791 2018-10-01 Gary Benson <gbenson@redhat.com>
5793 * gdb_proc_service.h: Moved common code to
5794 common/gdb_proc_service.h.
5796 2018-10-01 Gary Benson <gbenson@redhat.com>
5798 * gdb_proc_service.h: Synchronize comments and whitespace with
5799 GDB's version of this file.
5801 2018-09-25 Tom Tromey <tom@tromey.com>
5803 * configure: Rebuild.
5804 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5806 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5808 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5809 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5810 ($(IPA_LIB)): Sort IPA_OBJS.
5812 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5814 * Makefile.in: Remove references to $(ADD_DEPS).
5816 2018-09-16 Tom Tromey <tom@tromey.com>
5818 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5820 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5823 2018-09-05 Tom Tromey <tom@tromey.com>
5825 * configure: Rebuild.
5827 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5830 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5832 2018-08-27 Tom Tromey <tom@tromey.com>
5835 * configure: Rebuild.
5837 2018-08-27 Tom Tromey <tom@tromey.com>
5839 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5840 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5841 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5842 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5843 (s390x_emit_stack_adjust): Add casts to unsigned char.
5845 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5849 * server.h (struct client_state) <disable_randomization>:
5852 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5854 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5856 (mips_supply_ptrace_register): Likewise.
5858 2018-07-22 Tom Tromey <tom@tromey.com>
5860 * configure: Rebuild.
5862 2018-07-22 Tom Tromey <tom@tromey.com>
5864 * win32-low.c (win32_create_inferior): Remove unused variables.
5865 * gdbreplay.c (remote_open): Remove unused variable.
5866 * remote-utils.c (remote_prepare): Remove unused variable.
5867 * x86-tdesc.h (X86_TDESC_H): Define.
5868 (amd64_expedite_regs): Define conditionally.
5869 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5870 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5871 * remote-utils.c (readchar): Remove unused variable.
5873 2018-07-13 Pedro Alves <palves@redhat.com>
5875 * linux-low.c (linux_kill): Change parameter to process_info
5876 pointer instead of pid. Adjust.
5877 * lynx-low.c (lynx_kill): Likewise.
5878 * nto-low.c (nto_kill): Likewise.
5879 * spu-low.c (spu_kill): Likewise.
5880 * win32-low.c (win32_kill): Likewise.
5881 * server.c (handle_v_kill, kill_inferior_callback)
5882 (detach_or_kill_for_exit): Adjust.
5883 * target.c (kill_inferior): Change parameter to process_info
5884 pointer instead of pid. Adjust.
5885 * target.h (struct target_ops) <kill>: Change parameter to
5886 process_info pointer instead of pid. Adjust all implementations
5888 (kill_inferior): Likewise.
5890 2018-07-13 Pedro Alves <palves@redhat.com>
5892 * linux-low.c (linux_detach, linux_join): Change parameter to
5893 process_info pointer instead of pid. Adjust.
5894 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5895 * nto-low.c (nto_detach): Likewise.
5896 * spu-low.c (spu_detach, spu_join): Likewise.
5897 * win32-low.c (win32_detach, win32_join): Likewise.
5898 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5899 * target.h (struct target_ops) <detach, join>: Change parameter to
5900 process_info pointer instead of pid. Adjust all implementations
5902 (detach_inferior, join_inferior): Rename 'pid' parameter to
5905 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5906 Jan Kratochvil <jan.kratochvil@redhat.com>
5907 Paul Fertser <fercerpav@gmail.com>
5908 Tsutomu Seki <sekiriki@gmail.com>
5910 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5911 (OBS): Add 'common/netstuff.o'.
5912 (GDBREPLAY_OBS): Likewise.
5913 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5914 (remote_open): Implement support for IPv6
5916 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5918 (handle_accept_event): Accept connections from IPv6 sources.
5919 (remote_prepare): Handle IPv6-style hostnames; implement
5920 support for IPv6 connections.
5921 (remote_open): Implement support for printing connections from
5924 2018-07-11 Pedro Alves <palves@redhat.com>
5927 * mem-break.c (any_persistent_commands): Add process_info
5928 parameter and use it instead of relying on the current process.
5929 Change return type to bool.
5930 * mem-break.h (any_persistent_commands): Add process_info
5931 parameter and change return type to bool.
5932 * server.c (handle_detach): Remove require_running_or_return call.
5933 Look up the process_info for the process we're about to detach.
5934 If not found, return back error to GDB. Adjust
5935 any_persistent_commands call to pass down a process pointer.
5937 2018-07-11 Pedro Alves <palves@redhat.com>
5939 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5940 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5941 instead of collect_register_by_name.
5942 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5943 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5945 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5946 Pedro Alves <palves@redhat.com>
5948 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5950 2018-07-03 Tom Tromey <tom@tromey.com>
5952 * linux-low.c: Update.
5953 * lynx-low.c: Update.
5954 * mem-break.c: Update.
5955 * nto-low.c: Update.
5956 * remote-utils.c: Update.
5958 * spu-low.c: Update.
5960 * win32-low.c: Update.
5962 2018-07-03 Tom Tromey <tom@tromey.com>
5966 2018-07-03 Tom Tromey <tom@tromey.com>
5968 * linux-low.c: Update.
5970 2018-07-03 Tom Tromey <tom@tromey.com>
5974 2018-07-03 Tom Tromey <tom@tromey.com>
5976 * linux-low.c: Update.
5977 * linux-mips-low.c: Update.
5978 * lynx-low.c: Update.
5979 * nto-low.c: Update.
5980 * remote-utils.c: Update.
5982 * spu-low.c: Update.
5984 * thread-db.c: Update.
5986 2018-07-03 Tom Tromey <tom@tromey.com>
5988 * linux-low.c: Update.
5989 * linux-mips-low.c: Update.
5990 * lynx-low.c: Update.
5991 * mem-break.c: Update.
5992 * nto-low.c: Update.
5993 * remote-utils.c: Update.
5995 * spu-low.c: Update.
5997 * tracepoint.c: Update.
5999 2018-07-03 Tom Tromey <tom@tromey.com>
6001 * linux-low.c: Update.
6002 * linux-ppc-low.c: Update.
6003 * linux-x86-low.c: Update.
6004 * proc-service.c: Update.
6006 * spu-low.c: Update.
6007 * thread-db.c: Update.
6008 * win32-low.c: Update.
6010 2018-07-03 Tom Tromey <tom@tromey.com>
6012 * linux-low.c: Update.
6013 * lynx-low.c: Update.
6014 * nto-low.c: Update.
6015 * remote-utils.c: Update.
6016 * spu-low.c: Update.
6017 * thread-db.c: Update.
6018 * win32-low.c: Update.
6020 2018-06-29 Joel Brobecker <brobecker@adacore.com>
6022 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
6023 parameter in call to 'amd64_create_target_description'.
6025 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6027 * x86-tdesc.h: Remove executable permission flag.
6029 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
6031 * configure.ac: Remove AC_PREREQ, add missing quoting.
6032 * configure: Re-generate.
6033 * config.in: Re-generate.
6034 * aclocal.m4: Re-generate.
6036 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
6038 * tracepoint.h (current_traceframe): Remove declaration.
6040 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6042 * linux-aarch64-low.c (is_sve_tdesc): New function.
6043 (aarch64_sve_regs_copy_to_regcache): Likewise.
6044 (aarch64_sve_regs_copy_from_regcache): Likewise.
6045 (aarch64_regs_info): Add SVE checks.
6046 (initialize_low_arch): Initialize SVE.
6048 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6050 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
6052 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6054 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
6055 (initialize_low_tracepoint): Likewise
6056 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
6057 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
6059 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
6061 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
6063 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6065 * server.h (PBUFSIZ): Increase size
6067 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6069 * regcache.c (regcache::raw_compare): New function.
6070 * regcache.h (regcache::raw_compare): New declaration.
6072 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6074 * regcache.c (new_register_cache): Use new.
6075 (free_register_cache): Use delete.
6076 (register_data): Use const.
6077 (supply_register): Move body inside regcache.
6078 (regcache::raw_supply): New override function.
6079 (collect_register): Move body inside regcache.
6080 (regcache::raw_collect): New override function.
6081 (regcache::get_register_status): New override function.
6082 * regcache.h (struct regcache): Inherit from reg_buffer_common.
6084 2018-06-09 Tom Tromey <tom@tromey.com>
6086 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
6088 (event_queue): Use std::queue.
6089 (gdb_event_xfree): Remove.
6090 (initialize_event_loop, process_event, wait_for_event): Update.
6092 2018-06-08 Stan Cox <scox@redhat.com>
6094 * win32-low.c (win32_create_inferior): last_ptid and last_status
6095 moved to client_state.
6097 2018-06-08 Pedro Alves <palves@redhat.com>
6099 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
6100 common/common-exceptions.o, common/common-utils.o,
6101 common/errors.o, common/print-utils.o and utils.o.
6102 * gdbreplay.c: Include "common-defs.h" instead of the two
6103 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
6104 string.h or alloca.h.
6105 (perror_with_name): Delete.
6106 (remote_open): Use xstrdup instead of strdup.
6107 (main): Rename to ...
6108 (captured_main): ... this.
6111 2018-06-08 Tom Tromey <tom@tromey.com>
6113 * linux-low.c (linux_low_read_btrace): Update.
6115 2018-06-04 Stan Cox <scox@redhat.com>
6117 * server.h (struct client_state): New.
6118 * server.c (cont_thread, general_thread, multi_process)
6119 (report_fork_events, report_vfork_events, report_exec_events)
6120 (report_thread_events, swbreak_feature, hwbreak_feature)
6121 (vCont_supported, disable_randomization, pass_signals)
6122 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
6123 Moved to client_state.
6124 * remote-utils.c (remote_debug, noack_mode)
6125 (transport_is_reliable): Moved to client_state.
6126 * tracepoint.c (current_traceframe): Moved to client_state.
6129 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
6130 linux-low.c, remote-utils.h, target.c: Use client_state.
6132 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6134 * configure.srv: Add new c/h file.
6136 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6138 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
6141 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6143 * gdb.arch/mips-fpregset-core.exp: New test.
6144 * gdb.arch/mips-fpregset-core.c: New test source.
6146 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
6149 * hostio.c (require_int): Do not report overflow for integers
6150 between 0xfffffff and 0x7fffffff.
6152 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6154 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
6155 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
6156 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
6158 (the_low_target): Wire them.
6160 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6162 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
6163 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
6164 mode. Call collect_register_by_name with vscr using
6165 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
6166 (ppc_store_vrregset): Add and set vscr_offset variable as in
6167 ppc_fill_vrregset. Call supply_register_by_name with vscr using
6170 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6172 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6173 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
6174 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
6176 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6178 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
6179 (ppc_store_vsxregset): Likewise.
6180 (ppc_fill_vrregset): Likewise.
6181 (ppc_store_vrregset): Likewise.
6182 (ppc_fill_evrregset): Likewise.
6183 (ppc_store_evrregset): Likewise.
6184 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
6185 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
6188 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6190 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
6191 wordsize of the inferior. Call ppc_linux_target_wordsize.
6193 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6195 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
6196 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
6197 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
6198 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6199 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6200 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6201 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6202 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6203 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6204 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6205 (tdesc_powerpc_e500l): Remove.
6206 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
6207 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
6208 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
6209 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
6211 (ppc_arch_setup): Remove target description matching code. Fill a
6212 ppc_linux_features struct and call ppc_linux_match_description
6215 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6217 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
6218 width of the requested register exceeds the width of the
6220 (mips_cannot_store_register): Likewise.
6222 2018-05-21 Maciej W. Rozycki <macro@mips.com>
6224 * linux-mips-low.c (mips_fetch_register): New function. Update
6226 (mips_store_gregset): Supply 0 rather than $restart for $zero.
6227 (the_low_target): Wire `mips_fetch_register'.
6229 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6231 * lynx-i386-low.c (LYNXOS_178): New macro.
6232 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
6233 the layout on LynxOS-178.
6234 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
6235 handle floating point registers that are not supported by
6238 2018-05-10 Tom Tromey <tom@tromey.com>
6240 * configure: Rebuild.
6242 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6245 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
6246 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
6247 Use it to set the expedite_regs field in the given tdesc.
6248 * x86-tdesc.h: New file.
6249 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
6250 Adjust following the addition of the new expedite_regs parameter
6251 to init_target_desc.
6252 * linux-tic6x-low.c (tic6x_read_description): Likewise.
6253 * linux-x86-tdesc.c: #include "x86-tdesc.h".
6254 (i386_linux_read_description, amd64_linux_read_description):
6255 Adjust following the addition of the new expedite_regs parameter
6256 to init_target_desc.
6257 * lynx-i386-low.c: #include "x86-tdesc.h".
6258 (lynx_i386_arch_setup): Adjust following the addition of the new
6259 expedite_regs parameter to init_target_desc.
6260 * nto-x86-low.c: #include "x86-tdesc.h".
6261 (nto_x86_arch_setup): Adjust following the addition of the new
6262 expedite_regs parameter to init_target_desc.
6263 * win32-i386-low.c: #include "x86-tdesc.h".
6264 (i386_arch_setup): Adjust following the addition of the new
6265 expedite_regs parameter to init_target_desc.
6267 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6270 * win32-low.c (win32_create_inferior): Add call to my_wait
6271 setting last_status global.
6273 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6276 * win32-low.c (create_process): Only call gdb_tilde_expand if
6277 inferior_cwd is not NULL.
6279 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6281 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
6282 registers to the cache if their values have changed.
6283 (i387_xsave_to_cache): Provide default values for x87 control
6284 registers when these features are available, but disabled.
6285 * regcache.c (supply_register_by_name_zeroed): New function.
6286 * regcache.h (supply_register_by_name_zeroed): Declare new
6289 2018-05-07 Tom Tromey <tom@tromey.com>
6291 * configure: Rebuild.
6293 2018-05-04 Tom Tromey <tom@tromey.com>
6295 * configure: Rebuild.
6297 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6298 Pedro Alves <palves@redhat.com>
6300 * linux-aarch64-low.c (aarch64_stopped_data_address):
6303 2018-04-27 Tom Tromey <tom@tromey.com>
6305 * configure: Rebuild.
6307 2018-04-23 Tom Tromey <tom@tromey.com>
6309 * configure: Rebuild.
6311 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
6313 * Makefile.in (depcomp): Add "..".
6314 (all_deps_files): New and use it.
6316 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6318 * configure.srv (aarch64*-*-linux*): Don't include xml.
6319 (i[34567]86-*-cygwin*): Likewise.
6320 (i[34567]86-*-linux*): Likewise.
6321 (i[34567]86-*-lynxos*): Likewise.
6322 (i[34567]86-*-mingw32ce*): Likewise.
6323 (i[34567]86-*-mingw*): Likewise.
6324 (i[34567]86-*-nto*): Likewise.
6325 (tic6x-*-uclinux): Likewise.
6326 (x86_64-*-linux*): Likewise.
6327 (x86_64-*-mingw*): Likewise.
6328 (x86_64-*-cygwin*): Likewise.
6330 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6332 * tdesc.c: Remove xml parameter.
6334 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6336 * server.c (get_features_xml): Remove cast.
6337 * tdesc.c (void target_desc::accept): Fill in function.
6338 (tdesc_get_features_xml): Remove old xml creation.
6339 (print_xml_feature::visit_pre): Add xml vistor.
6340 * tdesc.h (struct target_desc): Make xmltarget mutable.
6341 (tdesc_get_features_xml): Remove declaration.
6343 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6345 * tdesc.c (tdesc_architecture_name): Add new function.
6346 (tdesc_osabi_name): Likewise.
6347 (tdesc_get_features_xml): Use new functions.
6349 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6351 * tdesc.c (tdesc_create_flags): Remove.
6352 (tdesc_add_flag): Likewise.
6353 (tdesc_named_type): Likewise.
6354 (tdesc_create_union): Likewise.
6355 (tdesc_create_struct): Likewise.
6356 (tdesc_create_vector): Likewise.
6357 (tdesc_add_bitfield): Likewise.
6358 (tdesc_add_field): Likewise.
6359 (tdesc_set_struct_size): Likewise.
6361 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6363 * tdesc.c (~target_desc): Remove implictly deleted items.
6364 (init_target_desc): Iterate all features.
6365 (tdesc_get_features_xml): Use vector.
6366 (tdesc_create_feature): Create feature.
6367 * tdesc.h (tdesc_feature) Remove
6368 (target_desc): Add features.
6370 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6372 * Makefile.in: Add common/tdesc.c
6373 * tdesc.c (init_target_desc): init all reg_defs from register
6375 (tdesc_create_reg): Create tdesc_reg.
6376 * tdesc.h (tdesc_feature): Add register vector.
6378 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6380 * tdesc.h (struct target_desc) <features>: Change type to
6381 std::vector<std::string>.
6382 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6384 (tdesc_get_features_xml): Likewise.
6385 (tdesc_create_feature): Likewise.
6387 2018-03-26 Alan Hayward <alan.hayward@arm.com>
6389 * regcache.c (find_register_by_number): Return a ref.
6390 (find_regno): Use references.
6391 (register_size): Likewise.
6392 (register_data): Likewise.
6393 * tdesc.c (target_desc::~target_desc): Remove free calls.
6394 (target_desc::operator==): Use std::vector compare.
6395 (init_target_desc): Use reference.
6396 (tdesc_create_reg): Use reg constructors.
6397 * tdesc.h (struct target_desc): Replace pointer with object.
6399 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6401 * regcache.c (find_register_by_number): Make static.
6402 (find_regno): Use find_register_by_number
6403 * regcache.h (struct reg): Remove declaration.
6405 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6407 * tdesc.c (target_desc::~target_desc): Move to here.
6408 (target_desc::operator==): Likewise.
6409 * tdesc.h (target_desc::~target_desc): Move from here.
6410 (target_desc::operator==): Likewise.
6412 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6414 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6416 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6418 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6420 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6421 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6422 and init_registers_s390_gs_linux64.
6424 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6426 * linux-s390-low.c (s390_fill_gs): Remove function.
6427 (s390_fill_gsbc): Remove function.
6428 (s390_regsets): Set fill functions for the guarded storage regsets
6431 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6433 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6434 the word size. Add comment.
6435 (s390_get_wordsize): New function.
6436 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6437 pswm with it. Instead, use s390_get_wordsize to determine the
6438 word size first and derive the correct tdesc from that directly.
6440 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6442 * Makefile.in: Include silent-rules.mk.
6443 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6444 (COMPILE): Add ECHO_CXX.
6445 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6446 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6447 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6448 (version-generated.c): Add ECHO_GEN.
6449 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6450 (IPAGENT_COMPILE): Add ECHO_CXX.
6451 (%-generated.c): Add ECHO_REGDAT.
6453 2018-03-14 Tom Tromey <tom@tromey.com>
6456 * ax.c (ax_printf): Special case for NULL.
6458 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6460 * linux-low.c (linux_qxfer_libraries_svr4): Use
6461 xml_escape_text_append.
6463 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6465 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6467 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6469 * server.c (handle_general_set): Remove unnecessary xstrdup.
6471 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6473 * server.c (parse_debug_format_options): Adjust to
6474 delim_string_to_char_ptr_vec changes.
6475 * thread-db.c (thread_db_load_search): Adjust to
6476 dirnames_to_char_ptr_vec changes.
6478 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6480 * target.h (target_enable_btrace, target_disable_btrace)
6481 (target_read_btrace, target_read_btrace_conf): Turn macro into
6482 inline function. Throw error if target method is not defined.
6483 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6484 check for btrace target method. Be prepared to handle exceptions
6485 from btrace target methods.
6487 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6489 * server.c (captured_main): Change order of error message printed
6490 when the current working directory cannot be found.
6492 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6494 * server.c: Include "filenames.h" and "pathstuff.h".
6495 (program_name): Delete variable.
6496 (program_path): New anonymous class.
6497 (get_exec_wrapper): Use "program_path" instead of
6499 (handle_v_run): Likewise.
6500 (captured_main): Likewise.
6501 (process_serial_event): Likewise.
6503 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6505 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6506 (OBJS): Add "pathstuff.o".
6507 * server.c (current_directory): New global variable.
6508 (captured_main): Initialize "current_directory".
6510 2018-02-26 Alan Hayward <alan.hayward@arm.com>
6512 * tdesc.c: Use common/tdesc.h.
6513 * tdesc.h: Likewise.
6515 2018-02-20 Alan Hayward <alan.hayward@arm.com>
6516 Simon Marchi <simon.marchi@ericsson.com>
6518 * Makefile.in: Switch order of make rules.
6520 2018-02-19 Alan Hayward <alan.hayward@arm.com>
6522 * Makefile.in: Add common directory in build.
6523 * configure.ac: Add common reference.
6524 * configure: Regenerate.
6526 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6528 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6529 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6530 * spu-low.c (spu_target_ops): Likewise.
6531 * win32-low.c (win32_target_ops): Likewise.
6532 * server.c (supported_btrace_packets): Report packets unconditionally.
6533 * target.h (target_ops) <supports_btrace>: Remove.
6534 (target_supports_btrace): Remove.
6536 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6538 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6539 (handle_btrace_disable): Change return type to void. Use exceptions
6541 (handle_btrace_general_set): Catch exception and copy message to
6544 2018-02-08 Tom Tromey <tom@tromey.com>
6546 * linux-low.c (install_software_single_step_breakpoints): Use
6547 make_scoped_restore.
6548 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6549 (do_restore_current_thread_cleanup): Remove.
6550 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6553 2018-02-08 Tom Tromey <tom@tromey.com>
6555 * mem-break.c (set_raw_breakpoint_at): Use
6556 gdb::unique_xmalloc_ptr.
6558 2018-01-30 Pedro Alves <palves@redhat.com>
6561 * target.c (target_terminal::terminal_state): Rename to ...
6562 (target_terminal::m_terminal_state): ... this.
6564 2018-01-19 James Clarke <jrtc27@jrtc27.com>
6566 * linux-low.c (handle_extended_wait): Surround call to
6567 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6569 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6571 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6572 linux_ptrace_attach_fail_reason_string now returning an
6574 (linux_attach): Likewise.
6575 * thread-db.c (attach_thread): Likewise.
6577 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6580 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6581 checking for fs_base/gs_base fields in struct user_regs_struct.
6582 * configure: Regenerate.
6584 2018-01-16 Yao Qi <yao.qi@linaro.org>
6587 * linux-low.c (fetch_register): Call supply_register instead of
6590 2018-01-08 Yao Qi <yao.qi@linaro.org>
6591 Simon Marchi <simon.marchi@ericsson.com>
6593 * Makefile.in (OBS): Remove selftest.o.
6594 * configure.ac: Set srv_selftest_objs if $development is true.
6595 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6596 * configure: Re-generated.
6597 * server.c (captured_main): Wrap variable selftest_filter with
6600 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6602 * server.c (parse_debug_format_options): Return std::string.
6603 (handle_monitor_command, captured_main): Adjust.
6605 2018-01-05 Pedro Alves <palves@redhat.com>
6608 * server.c (captured_main): Pass quiet=false to
6609 save_original_signals_state.
6611 2018-01-01 Joel Brobecker <brobecker@adacore.com>
6613 * gdbreplay.c (gdbreplay_version): Update copyright year in
6615 * server.c (gdbserver_version): Likewise.
6617 2017-12-08 Tom Tromey <tom@tromey.com>
6619 * ax.c (ax_printf): Update.
6621 2017-12-07 Yao Qi <yao.qi@linaro.org>
6623 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6624 aarch64_linux_read_description.
6625 * linux-amd64-ipa.c (idx2mask): New array.
6626 (get_ipa_tdesc): Move idx2mask out.
6627 (initialize_low_tracepoint): Initialize target descriptions.
6628 * linux-i386-ipa.c (idx2mask): New array.
6629 (get_ipa_tdesc): Move idx2mask out.
6630 (initialize_low_tracepoint): Initialize target descriptions.
6632 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6634 * tdesc.c (struct tdesc_type): Change return type.
6635 (tdesc_add_flag): Change parameter type.
6636 (tdesc_add_bitfield): Likewise.
6637 (tdesc_add_field): Likewise.
6638 (tdesc_set_struct_size): Likewise.
6640 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6642 * regcache.c (registers_to_string): Remove unused variable.
6644 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6646 * inferiors.c (for_each_inferior_with_data): Remove.
6647 * inferiors.h (for_each_inferior_with_data): Remove.
6648 * server.c (handle_qxfer_threads_worker): Change parameter type.
6649 (handle_qxfer_threads_proper): Use for_each_thread.
6651 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6653 * inferiors.c (for_each_inferior): Remove.
6654 (clear_inferiors): Use for_each_thread.
6655 * inferiors.h (for_each_inferior): Remove.
6656 * linux-low.c (linux_wait_for_event_filtered): Use
6658 (linux_stabilize_threads): Likewise.
6659 * regcache.c (regcache_release): Likewise.
6660 * server.c (gdb_wants_all_threads_stopped): Likewise.
6661 (clear_pending_status_callback): Remove.
6662 (handle_status): Use for_each_thread.
6663 (captured_main): Likewise.
6664 * win32-low.c (child_init_thread_list): Likewise.
6665 (win32_clear_inferiors): Likewise.
6666 (fake_breakpoint_event): Likewise.
6668 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6670 * inferiors.h (find_inferior): Remove.
6671 * inferiors.c (find_inferior): Remove.
6673 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6675 * linux-low.c (resume_status_pending_p): Update comment.
6676 (need_step_over_p): Update comment.
6678 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6680 * linux-low.c (proceed_one_lwp): Return void, change parameter
6682 (unsuspend_and_proceed_one_lwp): Likewise.
6683 (proceed_all_lwps): Use for_each_thread.
6684 (unstop_all_lwps): Likewise.
6686 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6688 * linux-low.c (linux_resume_one_thread): Return void, take
6690 (linux_resume): Use for_each_thread.
6692 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6694 * linux-low.c (send_sigstop_callback): Return void, change
6695 parameter type. Rename to...
6696 (send_sigstop): ... this.
6697 (suspend_and_send_sigstop_callback): Return void, change parameter
6699 (suspend_and_send_sigstop): ... this.
6700 (stop_all_lwps): Use for_each_thread.
6702 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6704 * linux-low.c (lwp_running): Return bool, remove unused
6706 (linux_stabilize_threads): Use find_thread.
6708 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6710 * linux-low.c (select_singlestep_lwp_callback): Remove.
6711 (count_events_callback): Remove.
6712 (select_event_lwp_callback): Remove.
6713 (select_event_lwp): Use find_thread/for_each_thread.
6715 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6717 * linux-low.c (not_stopped_callback): Return bool, take filter
6719 (linux_wait_for_event_filtered): Use find_thread.
6720 (linux_wait_1): Likewise.
6722 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6724 * linux-low.c (same_lwp): Remove.
6725 (find_lwp_pid): Use find_thread.
6727 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6729 * linux-low.c (delete_lwp_callback): Remove.
6730 (linux_mourn): Use for_each_thread.
6732 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6734 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6735 args parameter, don't check for pid.
6736 (linux_detach): Use for_each_thread.
6738 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6740 * linux-low.c (struct counter): Remove.
6741 (second_thread_of_pid_p): Remove.
6742 (last_thread_of_process_p): Use find_thread.
6744 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6746 * inferiors.c (find_inferior_in_random): Remove.
6747 * inferiors.h (find_inferior_in_random): Remove.
6748 * linux-low.c (status_pending_p_callback): Return bool, accept
6749 parameter ptid directly.
6750 (linux_wait_for_event_filtered): Use find_thread_in_random.
6751 (linux_wait_1): Likewise.
6753 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6755 * inferiors.c (find_inferior_id): Remove.
6756 (find_thread_ptid): Move implemention from find_inferior_id to
6758 * inferiors.h (find_inferior_id): Remove.
6759 * server.c (handle_status): Use find_thread_ptid.
6760 (process_serial_event): Likewise.
6761 * thread-db.c (find_one_thread): Likewise.
6762 (thread_db_thread_handle): Likewise.
6763 * win32-low.c (thread_rec): Likewise.
6764 (child_delete_thread): Likewise.
6765 (win32_thread_alive): Likewise.
6766 (get_child_debug_event): Likewise.
6768 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6770 * linux-mips-low.c (update_watch_registers_callback): Return
6771 void, remove pid_p parameter, don't check for pid.
6772 (mips_insert_point, mips_remove_point): Use for_each_thread.
6774 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6776 * lynx.low (lynx_delete_thread_callback): Remove.
6777 (lynx_mourn): Use for_each_thread.
6779 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6781 * regcache.c (regcache_invalidate_one): Remove.
6782 (regcache_invalidate_pid): use for_each_thread.
6784 2017-11-26 Tom Tromey <tom@tromey.com>
6786 * linux-low.c (linux_create_inferior): Update.
6788 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6790 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6792 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6794 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6795 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6796 * linux-aarch64-tdesc-selftest.c: New file.
6797 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6799 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6801 * configure.srv: Add new file.
6802 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6803 * linux-aarch64-tdesc-selftest.c: New file.
6804 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6806 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6808 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6809 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6810 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6812 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6814 * configure.srv: Add new files.
6815 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6816 aarch64_linux_read_description.
6817 * linux-aarch64-low.c (aarch64_linux_read_description):
6818 Merge with aarch64_arch_setup.
6819 (aarch64_arch_setup): Call aarch64_linux_read_description.
6820 * linux-aarch64-tdesc.c: New file.
6821 * linux-aarch64-tdesc.h: New file.
6823 2017-11-24 Yao Qi <yao.qi@linaro.org>
6825 * configure.srv: Set $srv_regobj for tic6x-linux.
6826 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6827 (tic6x_read_description): Move some code to tic6x_arch_setup.
6828 (tic6x_tdesc_test): New function.
6829 (initialize_low_arch): Call selftests::register_test.
6831 2017-11-22 Yao Qi <yao.qi@linaro.org>
6833 * remote-utils.c (prepare_resume_reply): Use memcpy.
6835 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6837 * linux-low.c (kill_one_lwp_callback): Return void, take
6838 argument directly, don't filter on pid.
6839 (linux_kill): Use for_each_thread.
6841 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6843 * linux-low.c (need_step_over_p): Return bool, remove dummy
6845 (linux_resume, proceed_all_lwps): Use find_thread.
6847 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6849 * linux-low.c (resume_status_pending_p): Return bool, remove
6851 (linux_resume): Use find_thread.
6853 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6855 * linux-low.c (struct thread_resume_array): Remove.
6856 (linux_set_resume_request): Return void, take arguments
6858 (linux_resume): Use for_each_thread.
6860 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6862 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6863 return bool, remove data argument.
6864 (linux_stabilize_threads): Use find_thread.
6866 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6868 * linux-low.c (unsuspend_one_lwp): Remove.
6869 (unsuspend_all_lwps): Use for_each_thread, inline code from
6872 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6874 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6875 * linux-low.c (struct iterate_over_lwps_args): Remove.
6876 (iterate_over_lwps_filter): Remove.
6877 (iterate_over_lwps): Use find_thread.
6879 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6881 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6882 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6883 code from reset_lwp_ptrace_options_callback.
6885 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6887 * linux-arm-low.c (struct update_registers_data): Remove.
6888 (update_registers_callback): Return void, take arguments
6889 directly, don't check thread's pid.
6890 (arm_insert_point, arm_remove_point): Use for_each_thread.
6892 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6894 * win32-low.c (continue_one_thread): Return void, take argument
6896 (child_continue): Use for_each_thread.
6898 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6900 * win32-i386-low.c (update_debug_registers_callback): Rename
6902 (update_debug_registers): ... this, return void, remove pid_p arg.
6903 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6905 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6907 * inferiors.h (struct process_info): Add constructor, initialize
6909 <syscalls_to_catch>: Change type to std::vector<int>.
6910 * inferiors.c (add_process): Allocate process_info with new.
6911 (remove_process): Free process_info with delete.
6912 * linux-low.c (handle_extended_wait): Adjust.
6913 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6914 * server.c (handle_general_set): Adjust.
6916 2017-11-16 Pedro Alves <palves@redhat.com>
6918 * remote-utils.c (remote_close): Block SIGIO signals instead of
6919 uninstalling the SIGIO handler.
6921 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6923 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6925 2017-11-16 Yao Qi <yao.qi@linaro.org>
6927 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6928 (tic6x_store_gregset): Likewise.
6929 (tic6x_usrregs_info): Move it up.
6931 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6933 * Makefile.in: Update arch rules.
6934 * configure.srv: Explicitly mark arch/ files.
6936 2017-11-13 Andreas Schwab <schwab@suse.de>
6938 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6940 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6942 2017-11-06 Pedro Alves <palves@redhat.com>
6944 * config.in, configure: Regenerate.
6946 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6948 * target.c (struct thread_search): Remove.
6949 (thread_search_callback): Remove.
6950 (prepare_to_access_memory): Use for_each_thread instead of
6951 find_inferior. Inline code from thread_search_callback.
6953 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6955 * server.c (struct visit_actioned_threads_data): Remove.
6956 (visit_actioned_threads): Change prototype to take arguments
6958 (resume): Use find_thread instead of find_inferior.
6960 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6962 * server.c (queue_stop_reply_callback): Change prototype, return
6964 (find_status_pending_thread_callback): Remove.
6965 (handle_status): Replace find_inferior with find_thread and
6968 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6970 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6972 (aarch64_store_gregset): Likewise.
6973 (aarch64_fill_fpregset): Likewise.
6974 (aarch64_store_fpregset): Likewise.
6976 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6978 * gdbthread.h (find_thread, for_each_thread): New functions.
6979 * inferiors.c (thread_of_pid): Remove.
6980 (find_any_thread_of_pid): Use find_thread.
6981 * linux-low.c (num_lwps): Use for_each_thread.
6983 2017-10-17 Yao Qi <yao.qi@linaro.org>
6985 * Makefile.in: Remove one rule.
6986 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6988 2017-10-17 Yao Qi <yao.qi@linaro.org>
6990 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6991 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6993 2017-10-17 Yao Qi <yao.qi@linaro.org>
6995 * configure.srv: Rename arm.o with arch/arm.o.
6997 2017-10-17 Yao Qi <yao.qi@linaro.org>
6999 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
7000 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
7001 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
7002 (arch-i386.o, arch-amd64.o): Remove rules.
7003 (arch/%.o): New rule.
7004 Update POSTCOMPILE and COMPILE.pre.
7005 * configure.ac: Invoke AC_CONFIG_COMMANDS.
7006 * configure: Re-generated.
7007 * configure.srv: Replace arch-i386.o with arch/i386.o.
7008 Replace arch-amd64.o with arch/amd64.o.
7010 2017-10-16 Yao Qi <yao.qi@linaro.org>
7012 * configure: Regenerated.
7014 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7016 * inferiors.h: (struct inferior_list): Remove.
7017 (struct inferior_list_entry); Remove.
7018 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
7019 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
7020 get_first_inferior): Remove.
7021 (for_each_inferior, for_each_inferior_with_data, find_inferior,
7022 find_inferior_id, find_inferior_in_random): Change signature.
7023 * inferiors.c (all_threads): Change type to
7024 std::list<thread_info *>.
7025 (get_thread): Remove macro.
7026 (find_inferior, find_inferior_id): Change signature, implement
7028 (find_inferior_in_random): Change signature, implement using
7029 find_thread_in_random.
7030 (for_each_inferior, for_each_inferior_with_data): Change
7031 signature, implement using for_each_thread.
7032 (add_inferior_to_list, remove_inferior): Remove.
7033 (add_thread, get_first_thread, thread_of_pid,
7034 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
7035 (get_first_inferior, one_inferior_p, clear_inferior_list):
7037 (clear_inferiors, get_thread_process): Update.
7038 * gdbthread.h: Include <list>.
7039 (struct thread_info) <entry>: Remove field.
7041 (all_threads): Change type to std::list<thread_info *>.
7042 (get_first_inferior): Add doc.
7043 (find_thread, for_each_thread, find_thread_in_random): New
7045 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
7046 * linux-arm-low.c (update_registers_callback): Update.
7047 * linux-low.c (second_thread_of_pid_p): Update.
7048 (kill_one_lwp_callback, linux_detach_lwp_callback,
7049 delete_lwp_callback, status_pending_p_callback, same_lwp,
7050 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
7051 iterate_over_lwps, not_stopped_callback,
7052 resume_stopped_resumed_lwps, count_events_callback,
7053 select_singlestep_lwp_callback, select_event_lwp_callback,
7054 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
7055 suspend_and_send_sigstop_callback, wait_for_sigstop,
7056 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
7057 lwp_running, linux_set_resume_request, resume_status_pending_p,
7058 need_step_over_p, start_step_over, linux_resume_one_thread,
7059 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
7060 reset_lwp_ptrace_options_callback): Update.
7061 * linux-mips-low.c (update_watch_registers_callback): Update.
7062 * regcache.c (regcache_invalidate_one, regcache_invalidate):
7064 (free_register_cache_thread_one): Remove.
7065 (regcache_release): Update.
7066 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
7067 handle_qxfer_threads_worker): Update.
7068 (handle_query): Update, use list iterator.
7069 (visit_actioned_threads, handle_pending_status,
7070 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
7071 clear_pending_status_callback, set_pending_status_callback,
7072 find_status_pending_thread_callback, handle_status,
7073 process_serial_event): Update.
7074 * target.c (thread_search_callback): Update.
7075 * thread-db.c (thread_db_get_tls_address): Update.
7076 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
7078 * win32-i386-low.c (update_debug_registers_callback): Update.
7079 * win32-low.c (delete_thread_info, child_delete_thread,
7080 continue_one_thread, suspend_one_thread,
7081 get_child_debug_event): Adjust.
7083 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7085 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
7086 * inferiors.h: Include <list>.
7087 (struct process_info) <entry>: Remove field.
7089 (pid_of): Change macro to function.
7090 (ptid_of, lwpid_of): Remove macro.
7091 (all_processes): Change type to std::list<process_info *>.
7092 (ALL_PROCESSES): Remove macro.
7093 (for_each_process, find_process): New function.
7094 * inferiors.c (all_processes): Change type to
7095 std::list<process_info *>.
7096 (find_thread_process): Adjust.
7097 (add_process): Likewise.
7098 (remove_process): Likewise.
7099 (find_process_pid): Likewise.
7100 (get_first_process): Likewise.
7101 (started_inferior_callback): Remove.
7102 (have_started_inferiors_p): Adjust.
7103 (attached_inferior_callback): Remove.
7104 (have_attached_inferiors_p): Adjust.
7105 * linux-low.c (check_zombie_leaders): Likewise.
7106 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
7107 (x86_linux_update_xmltarget): Adjust.
7108 * server.c (handle_query): Likewise.
7109 (gdb_reattached_process): Remove.
7110 (handle_status): Adjust.
7111 (kill_inferior_callback): Likewise.
7112 (detach_or_kill_inferior): Remove.
7113 (print_started_pid): Likewise.
7114 (print_attached_pid): Likewise.
7115 (detach_or_kill_for_exit): Update.
7116 (process_serial_event): Likewise.
7117 * linux-arm-low.c (arm_new_fork): Likewise.
7119 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7121 * dll.h: Include <list>.
7122 (struct dll_info): Add constructor.
7123 <entry>: Remove field.
7124 (all_dlls): Change type to std::list<dll_info>.
7125 * dll.c: Include <algorithm>.
7126 (get_dll): Remove macro.
7127 (all_dlls): Change type to std::list<dll_info *>.
7128 (free_one_dll): Remove.
7129 (match_dll): Likewise.
7130 (loaded_dll): Adjust.
7131 (unloaded_dll): Adjust to all_dlls type change, use
7132 std::find_if. Inline code from match_dll.
7133 (clear_dlls): Adjust to all_dlls type change.
7134 * server.c (emit_dll_description): Remove.
7135 (handle_qxfer_libraries): Adjust to all_dlls type change,
7136 integrate emit_dll_description's functionality.
7138 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7140 * linux-low.h (struct linux_target_ops) <delete_process>: New
7142 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
7143 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
7144 (struct linux_target_ops): Add delete_process callback.
7145 * linux-arm-low.c (arm_delete_process): New.
7146 (struct linux_target_ops): Add delete_process callback.
7147 * linux-bfin-low.c (struct linux_target_ops): Likewise.
7148 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
7149 * linux-m32r-low.c (struct linux_target_ops): Likewise.
7150 * linux-mips-low.c (mips_linux_delete_process): New.
7151 (struct linux_target_ops): Add delete_process callback.
7152 * linux-ppc-low.c (struct linux_target_ops): Likewise.
7153 * linux-s390-low.c (struct linux_target_ops): Likewise.
7154 * linux-sh-low.c (struct linux_target_ops): Likewise.
7155 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
7156 * linux-tile-low.c (struct linux_target_ops): Likewise.
7157 * linux-x86-low.c (x86_linux_delete_process): New.
7158 (struct linux_target_ops): Add delete_process callback.
7159 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
7161 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7163 * linux-aarch64-low.c (the_low_target): Add thread delete
7165 * linux-arm-low.c (arm_delete_thread): New function.
7166 (the_low_target): Add thread delete callback.
7167 * linux-bfin-low.c (the_low_target): Likewise.
7168 * linux-crisv32-low.c (the_low_target): Likewise.
7169 * linux-low.c (delete_lwp): Invoke delete_thread callback if
7171 * linux-low.h (struct linux_target_ops) <delete_thread>: New
7173 * linux-m32r-low.c (the_low_target): Add thread delete callback.
7174 * linux-mips-low.c (mips_linux_delete_thread): New function.
7175 (the_low_target): Add thread delete callback.
7176 * linux-ppc-low.c (the_low_target): Likewise.
7177 * linux-s390-low.c (the_low_target): Likewise.
7178 * linux-sh-low.c (the_low_target): Likewise.
7179 * linux-tic6x-low.c (the_low_target): Likewise.
7180 * linux-tile-low.c (the_low_target): Likewise.
7181 * linux-x86-low.c (the_low_target): Likewise.
7182 * linux-xtensa-low.c (the_low_target): Likewise.
7184 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
7186 * win32-low.c: Include "common-inferior.h".
7188 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7190 * inferiors.c (set_inferior_cwd): New function.
7191 * server.c (handle_general_set): Handle QSetWorkingDir packet.
7192 (handle_query): Inform that QSetWorkingDir is supported.
7193 * win32-low.c (create_process): Pass the inferior's cwd to
7196 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7198 * inferiors.c (current_inferior_cwd): New global variable.
7199 (get_inferior_cwd): New function.
7200 * inferiors.h (struct process_info) <cwd>: New field.
7202 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7204 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
7205 (OBS): Add gdb_tilde_expand.o.
7207 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
7209 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
7210 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
7212 2017-09-29 Pedro Alves <palves@redhat.com>
7214 * ax.c (gdb_parse_agent_expr): Constify.
7215 * ax.h (gdb_parse_agent_expr): Constify.
7216 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7218 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
7219 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
7220 * remote-utils.h (read_ptid): Constify.
7221 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
7222 (process_point_options, process_serial_event): Constify.
7223 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
7224 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
7225 (cmd_qtbuffer): Constify.
7227 2017-09-29 Pedro Alves <palves@redhat.com>
7229 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
7232 2017-09-29 Pedro Alves <palves@redhat.com>
7234 * linux-low.c (handle_extended_wait): Pass parent thread instead
7235 of process to thread_db_notice_clone.
7236 * linux-low.h (thread_db_notice_clone): Replace parent process
7237 parameter with parent thread parameter.
7238 * thread-db.c (find_one_thread): Add comment.
7239 (thread_db_notice_clone): Replace parent process parameter with
7240 parent thread parameter. Temporarily switch to the parent thread.
7242 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
7244 * gdbthread.h: Include "common-gdbthread.h".
7245 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
7246 "if" when validating the ptid.
7247 * remote-utils.c: Include "gdbthread.h".
7248 (prepare_resume_reply): Use "switch_to_thread".
7249 * target.c (done_accessing_memory): Likewise.
7251 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7253 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
7254 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
7255 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
7256 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
7257 s390x-gs-linux64-ipa.o to ipa_obj.
7258 * linux-s390-low.c (HWCAP_S390_GS): New define.
7259 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
7261 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
7262 (s390_arch_setup): Check for guarded-storage support and choose
7264 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
7265 init_registers_s390x_gs_linux64.
7266 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
7268 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
7269 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
7271 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
7273 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
7275 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7277 * linux-low.h (struct lwp_info): Add new field, thread_handle.
7278 (thread_db_thread_handle): Declare.
7279 * linux-low.c (linux_target_ops): Initialize thread_handle.
7280 * server.c (handle_qxfer_threads_worker): Add support for
7282 * target.h (struct target_ops): Add new function pointer,
7284 (target_thread_handle): Define.
7285 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
7287 (thread_db_thread_handle): New function.
7289 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7291 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
7292 * linux-low.h (thread_db_notice_clone): Declare.
7293 * thread-db.c (thread_db_notice_clone): New function.
7295 2017-09-21 Pedro Alves <palves@redhat.com>
7297 * server.c (gdb_read_memory, handle_status, process_serial_event)
7298 (handle_serial_event, handle_target_event): Adjust to
7299 set_desired_thread prototype change.
7300 * target.c (set_desired_thread): Remove 'use_general' parameter
7302 * target.h (set_desired_thread): Remove 'use_general' parameter.
7304 2017-09-20 Tom Tromey <tom@tromey.com>
7306 * target.c (target_terminal::terminal_state): Define.
7307 (target_terminal::init): Rename from target_terminal_init.
7308 (target_terminal::inferior): Rename from
7309 target_terminal_inferior.
7310 (target_terminal::ours): Rename from target_terminal_ours.
7311 (target_terminal::ours_for_output, target_terminal::info): New.
7313 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7315 * server.c (accumulate_file_name_length): Remove.
7316 (emit_dll_description): Adjust to std::string change.
7317 (handle_qxfer_libraries): Use std::string to hold document.
7319 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7321 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
7322 return type of xml_escape_text.
7323 * server.c (emit_dll_description): Likewise.
7325 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7327 * server.c (captured_main): Accept argument for --selftest.
7328 Update run_tests call.
7329 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
7330 when registering selftests.
7332 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
7334 * regcache.c (get_thread_regcache): Update code to use "std::vector"
7335 instead of "VEC" for "target_desc.reg_defs".
7336 (regcache_cpy): Likewise.
7337 (registers_to_string): Likewise.
7338 (registers_from_string): Likewise.
7339 (find_regno): Likewise.
7340 (supply_regblock): Likewise.
7341 (regcache_raw_read_unsigned): Likewise.
7342 * tdesc.c (init_target_desc): Likewise.
7343 (tdesc_create_reg): Likewise.
7344 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
7345 (struct target_desc) <reg_defs>: Convert to "std::vector".
7346 (target_desc): Do not initialize "reg_defs".
7347 (~target_desc): Update code to use "std::vector" instead of "VEC"
7348 for "target_desc.reg_defs".
7349 (operator==): Likewise.
7351 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7353 * inferiors.h (thread_to_gdb_id): Remove.
7354 * inferiors.c (thread_to_gdb_id): Remove.
7355 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
7356 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
7357 lynx_store_registers, lynx_read_memory, lynx_write_memory):
7359 * nto-low.c (nto_fetch_registers, nto_store_registers,
7360 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
7362 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7364 * inferiors.h (gdb_id_to_thread_id): Remove.
7365 * inferiors.c (gdb_id_to_thread_id): Remove.
7366 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
7367 removal. Move pid declaration closer to where it's used.
7369 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7371 * server.c (handle_detach): New function.
7372 (process_serial_event): Move code out, call handle_detach.
7374 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7376 * server.c (require_running): Rename to ...
7377 (require_running_or_return): ... this ...
7378 (require_running_or_break): ... and this.
7379 (handle_query, process_serial_event): Adjust.
7381 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7383 * linux-low.c (linux_set_resume_request): Remove unused
7386 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7388 * server.c (first_thread_of): Remove.
7389 (process_serial_event): Replace usage of first_thread_of with
7390 find_any_thread_of_pid.
7391 * tracepoint.c (same_process_p): Remove.
7392 (gdb_agent_about_to_close): Replace usage of same_process_p with
7393 find_any_thread_of_pid.
7394 * linux-x86-low.c (same_process_callback): Remove.
7395 (x86_arch_setup_process_callback): Replace usage of
7396 same_process_callback with find_any_thread_of_pid.
7397 * thread-db.c (any_thread_of): Remove.
7398 (switch_to_process): Replace usage of any_thread_of with
7399 find_any_thread_of_pid.
7400 * inferiors.c (thread_pid_matches_callback): Remove.
7401 (find_thread_process): Adjust to use find_any_thread_of_pid.
7403 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7405 * regcache.c (get_thread_regcache): Guard calls to "memset"
7408 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7410 * linux-low.c (handle_extended_wait): Use
7411 "allocate_target_description" instead of "XNEW".
7412 * linux-x86-low.c (initialize_low_arch): Likewise.
7414 2017-09-05 Yao Qi <yao.qi@linaro.org>
7416 * configure.srv (srv_i386_regobj): Remove.
7417 (srv_amd64_regobj): Remove.
7418 (srv_regobj): Set it to "" for x86 non-linux targets.
7419 * linux-x86-tdesc.c (i386_linux_read_description):
7420 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7421 (init_registers_i386): Remove the declaration.
7422 (tdesc_i386): Remove the declaration.
7423 (lynx_i386_arch_setup): Call i386_create_target_description.
7424 * nto-x86-low.c: Likewise.
7425 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7426 [!__x86_64__]: include arch/i386.h.
7427 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7429 2017-09-05 Yao Qi <yao.qi@linaro.org>
7431 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7432 i386/amd64-XXX-linux from it.
7434 2017-09-05 Yao Qi <yao.qi@linaro.org>
7436 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7438 (ipa_amd64_linux_regobj): Remove.
7439 (ipa_x32_linux_regobj): Remove.
7441 2017-09-05 Yao Qi <yao.qi@linaro.org>
7443 * Makefile.in (arch-amd64.o): New rule.
7444 * configure.srv: Append arch-amd64.o.
7445 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7446 (get_ipa_tdesc): Call amd64_linux_read_description.
7447 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7448 and init_registers_amd64_XXX.
7449 * linux-x86-low.c (x86_linux_read_description): Call
7450 amd64_linux_read_description.
7451 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7452 (initialize_low_arch): Don't call init_registers_x32_XXX and
7453 init_registers_amd64_XXX.
7454 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7455 and tdesc_amd64_XXX.
7456 [__x86_64__] (amd64_tdesc_test): New function.
7457 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7458 and init_registers_amd64_XXX.
7459 * linux-x86-tdesc.c: Include arch/amd64.h.
7460 (xcr0_to_tdesc_idx): New function.
7461 (i386_linux_read_description): New function.
7462 (amd64_get_ipa_tdesc_idx): New function.
7463 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7464 (amd64_get_ipa_tdesc): Declare.
7466 2017-09-05 Yao Qi <yao.qi@linaro.org>
7468 * configure.srv (srv_i386_linux_xmlfiles): Remove
7469 i386/i386-XXX-linux.xml from it.
7471 2017-09-05 Yao Qi <yao.qi@linaro.org>
7473 * configure.srv: Set srv_i386_linux_regobj empty if $development
7475 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7476 initialize_low_tdesc.
7477 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7478 with #if initialize_low_tdesc.
7479 * linux-x86-tdesc-selftest.c: New file.
7480 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7482 2017-09-05 Yao Qi <yao.qi@linaro.org>
7484 * Makefile.in (arch-i386.o): New rule.
7485 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7486 (x86_64-*-linux*): Likewise.
7487 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7488 include arch/i386.h.
7489 (i386_linux_read_description): Remove code and call
7490 i386_create_target_description.
7491 * tdesc.c (allocate_target_description): New function.
7492 * tdesc.h (set_tdesc_architecture): Remove declaration.
7493 (set_tdesc_osabi): Likewise.
7495 2017-09-05 Yao Qi <yao.qi@linaro.org>
7497 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7498 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7499 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7501 * server.c (get_features_xml): Call tdesc_get_features_xml.
7502 * tdesc.c (set_tdesc_architecture): New function.
7503 (set_tdesc_osabi): New function.
7504 (tdesc_get_features_xml): New function.
7505 (tdesc_create_feature): Add an argument.
7506 * tdesc.h (struct target_desc) <features>: New field.
7507 <arch, osabi>: New field.
7508 (~target_desc): xfree features, arch, and osabi.
7509 (target_desc::oerator==): Don't compare .xmltarget.
7510 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7511 (set_tdesc_osabi): Likewise.
7512 (tdesc_get_features_xml): Likewise.
7514 2017-09-05 Yao Qi <yao.qi@linaro.org>
7516 * linux-x86-tdesc.c: Include selftest.h.
7517 (i386_tdesc_test): New function.
7518 (initialize_low_tdesc): Call selftests::register_test.
7519 * tdesc.h: Include regdef.h.
7520 (target_desc): Override operator == and !=.
7522 2017-09-05 Yao Qi <yao.qi@linaro.org>
7524 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7525 (ipa_obj): Likewise.
7526 * linux-i386-ipa.c: Include common/x86-xstate.h
7527 (get_ipa_tdesc): Call i386_linux_read_description.
7528 (initialize_low_tracepoint): Don't call init_registers_XXX
7529 functions, call initialize_low_tdesc instead.
7530 * linux-x86-low.c (x86_linux_read_description): Call
7531 i386_linux_read_description.
7532 (initialize_low_arch): Don't call init_registers_i386_XXX
7533 functions, call initialize_low_tdesc.
7534 * linux-x86-tdesc.c: New file.
7535 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7536 (i386_get_ipa_tdesc_idx): Declare.
7537 (i386_get_ipa_tdesc): Declare.
7538 (initialize_low_tdesc): Declare.
7540 2017-09-05 Yao Qi <yao.qi@linaro.org>
7542 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7545 2017-09-05 Yao Qi <yao.qi@linaro.org>
7547 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7548 * regcache.c (get_thread_regcache): Use VEC_length.
7549 (init_register_cache): Likewise.
7550 (regcache_cpy): Likewise.
7551 (registers_to_string): Iterate reg_defs via VEC_iterate.
7552 (find_regno): Likewise.
7553 (find_register_by_number): Use VEC_index.
7554 (register_size): Call find_register_by_number.
7555 (register_data): Call find_register_by_number.
7556 (supply_regblock): Use VEC_length.
7557 (regcache_raw_read_unsigned): Likewise.
7558 * tdesc.c (init_target_desc): Iterate reg_defs via
7560 (default_description): Update initializer.
7561 (copy_target_description): Don't update field num_registers.
7562 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7563 <num_registers>: Remove.
7565 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7567 * Makefile.in (.SECONDARY): Define target.
7569 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7571 * linux-low.c (linux_wait_1): Adjust.
7572 * server.c (queue_stop_reply_callback): Adjust.
7574 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7576 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7577 QEnvironmentUnset and QEnvironmentReset packets.
7578 (handle_query): Inform remote that QEnvironmentHexEncoded,
7579 QEnvironmentUnset and QEnvironmentReset are supported.
7581 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7583 * inferiors.h (inferior_target_data): Rename to ...
7584 (thread_target_data): ... this.
7585 (inferior_regcache_data): Rename to ...
7586 (thread_regcache_data): ... this.
7587 (set_inferior_regcache_data): Rename to ...
7588 (set_thread_regcache_data): ... this.
7589 * inferiors.c (inferior_target_data): Rename to ...
7590 (thread_target_data): ... this.
7591 (inferior_regcache_data): Rename to ...
7592 (thread_regcache_data): ... this.
7593 (set_inferior_regcache_data): Rename to ...
7594 (set_thread_regcache_data): ... this.
7595 (free_one_thread): Update.
7596 * linux-low.h (get_thread_lwp): Update.
7597 * regcache.c (get_thread_regcache): Update.
7598 (regcache_invalidate_thread): Update.
7599 (free_register_cache_thread): Update.
7600 * win32-i386-low.c (update_debug_registers_callback): Update.
7601 (win32_get_current_dr): Update.
7602 * win32-low.c (thread_rec): Update.
7603 (delete_thread_info): Update.
7604 (continue_one_thread): Update.
7605 (suspend_one_thread): Update.
7607 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7609 * inferiors.c (set_inferior_target_data): Remove.
7610 * inferiors.h (set_inferior_target_data): Remove.
7612 2017-08-18 Yao Qi <yao.qi@linaro.org>
7614 * Makefile.in (OBS): Add selftest.o.
7615 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7616 * configure, config.in: Re-generated.
7617 * server.c: Include common/sefltest.h.
7618 (captured_main): Handle option --selftest.
7620 2017-08-09 Yao Qi <yao.qi@linaro.org>
7622 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7623 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7624 i386-avx-mpx.o and i386-mmx.o.
7625 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7626 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7627 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7628 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7629 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7630 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7631 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7632 i386/amd64-avx-mpx.xml.
7634 2017-08-09 Yao Qi <yao.qi@linaro.org>
7636 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7637 and x32-avx-avx512.o.
7638 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7639 i386/x32-avx-avx512.xml.
7641 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7643 * tracepoint.h (enum class fast_tpoint_collect_result): New
7645 (fast_tracepoint_collecting): Change return type to
7646 fast_tpoint_collect_result.
7647 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7648 * linux-low.h: Include tracepoint.h.
7649 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7650 fast_tpoint_collect_result.
7651 * linux-low.c (handle_tracepoints): Adjust.
7652 (linux_fast_tracepoint_collecting): Change return type to
7653 fast_tpoint_collect_result.
7654 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7655 linux_wait_1, stuck_in_jump_pad_callback,
7656 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7657 proceed_one_lwp): Adjust to type change.
7659 2017-07-10 Yao Qi <yao.qi@linaro.org>
7661 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7663 2017-06-29 Yao Qi <yao.qi@linaro.org>
7665 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7667 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7669 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7671 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7673 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7675 * linux-low.c (linux_create_inferior): Adjust code to access the
7676 environment information via 'gdb_environ' class.
7677 * lynx-low.c (lynx_create_inferior): Likewise.
7678 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7679 (get_environ): Return a pointer to 'our_environ'.
7680 (captured_main): Initialize 'our_environ'.
7681 * server.h (get_environ): Adjust prototype.
7682 * spu-low.c (spu_create_inferior): Adjust code to access the
7683 environment information via 'gdb_environ' class.
7685 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7687 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7688 usage of "register" keyword.
7690 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7692 * configure: Re-generate.
7694 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7696 * configure: Re-generate.
7698 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7700 * Makefile.in (COMPILE.pre): Add "-x c++".
7702 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7704 * fork-child.c: Conditionally include <signal.h>.
7706 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7708 * server.c (handle_general_set): Handle new packet
7709 "QStartupWithShell".
7710 (handle_query): Add "QStartupWithShell" to the list of supported
7712 (gdbserver_usage): Add help text explaining the
7713 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7715 (captured_main): Recognize and act upon the presence of the new
7718 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7719 Pedro Alves <palves@redhat.com>
7721 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7722 * configure: Regenerate.
7723 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7725 (i[34567]86-*-lynxos*): Likewise.
7726 (spu*-*-*): Likewise.
7727 * fork-child.c: New file.
7728 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7730 (linux_ptrace_fun): New function.
7731 (linux_create_inferior): Adjust function prototype to reflect
7732 change on "target.h". Adjust function code to use
7734 (linux_request_interrupt): Delete "signal_pid".
7735 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7736 (lynx_ptrace_fun): New function.
7737 (lynx_create_inferior): Adjust function prototype to reflect
7738 change on "target.h". Adjust function code to use
7740 * nto-low.c (nto_create_inferior): Adjust function prototype and
7741 code to reflect change on "target.h". Update comments.
7742 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7743 "common-terminal.h" and "environ.h".
7744 (terminal_fd): Moved to fork-child.c.
7745 (old_foreground_pgrp): Likewise.
7746 (restore_old_foreground_pgrp): Likewise.
7747 (last_status): Make it global.
7748 (last_ptid): Likewise.
7749 (our_environ): New variable.
7750 (startup_with_shell): Likewise.
7751 (program_name): Likewise.
7752 (program_argv): Rename to...
7753 (program_args): ...this.
7754 (wrapper_argv): New variable.
7755 (start_inferior): Delete function.
7756 (get_exec_wrapper): New function.
7757 (get_exec_file): Likewise.
7758 (get_environ): Likewise.
7759 (prefork_hook): Likewise.
7760 (post_fork_inferior): Likewise.
7761 (postfork_hook): Likewise.
7762 (postfork_child_hook): Likewise.
7763 (handle_v_run): Update code to deal with arguments coming from the
7764 remote host. Update calls from "start_inferior" to
7766 (captured_main): Likewise. Initialize environment variable. Call
7768 * server.h (post_fork_inferior): New prototype.
7769 (get_environ): Likewise.
7770 (last_status): Declare.
7771 (last_ptid): Likewise.
7772 (signal_pid): Likewise.
7773 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7774 (spu_ptrace_fun): New function.
7775 (spu_create_inferior): Adjust function prototype to reflect change
7776 on "target.h". Adjust function code to use "fork_inferior".
7777 * target.c (target_terminal_init): New function.
7778 (target_terminal_inferior): Likewise.
7779 (target_terminal_ours): Likewise.
7780 * target.h: Include <vector>.
7781 (struct target_ops) <create_inferior>: Update prototype.
7782 (create_inferior): Update macro.
7783 * utils.c (gdb_flush_out_err): New function.
7784 * win32-low.c (win32_create_inferior): Adjust function prototype
7785 and code to reflect change on "target.h".
7787 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7789 * inferiors.c (switch_to_thread): New function.
7791 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7793 * Makefile.in (SFILE): Add "common/job-control.c".
7794 (OBS): Add "job-control.o".
7796 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7798 * Makefile: Remove "@host_makefile_frag@".
7800 2017-05-05 Pedro Alves <palves@redhat.com>
7802 * configure: Regenerate.
7804 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7806 * configure: Regenerate.
7808 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7810 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7811 software_single_step change of return type to
7812 std::vector<CORE_ADDR>.
7813 * linux-low.c (install_software_single_step_breakpoints):
7815 * linux-low.h (install_software_single_step_breakpoints):
7818 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7820 * remote-utils.c: Include "gdb_termios.h" instead of
7822 * terminal.h: Delete file.
7824 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7826 * server.c: Include <vector>.
7827 <program_argv, wrapper_argv>: Convert to std::vector.
7828 (start_inferior): Rewrite function to use C++.
7829 (handle_v_run): Likewise. Update code that calculates the argv
7830 based on the vRun packet; use C++.
7831 (captured_main): Likewise.
7833 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7835 * server.c (handle_v_cont): Initialize thread_resume::thread
7838 2017-04-05 Pedro Alves <palves@redhat.com>
7840 * configure: Regenerate.
7842 2017-04-05 Pedro Alves <palves@redhat.com>
7844 * gdbreplay.c (sync_error): Constify.
7845 * linux-x86-low.c (push_opcode): Constify.
7847 2017-04-05 Pedro Alves <palves@redhat.com>
7849 * win32-low.c (get_child_debug_event)
7850 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7851 Report TARGET_WAITKIND_SPURIOUS instead.
7853 2017-04-05 Pedro Alves <palves@redhat.com>
7855 * remote-utils.c (remote_prepare, remote_open): Constify.
7856 * remote-utils.h (remote_prepare, remote_open): Constify.
7857 * server.c (captured_main): Constify 'port' handling.
7859 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7861 * Makefile.in (clean): Clear .deps.
7863 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7865 * .gitignore: Remove generated files, replace with wildcard.
7866 * (clean): Replace removal of generated files with wildcard.
7867 (version.c): Replace with...
7868 (version-generated.c): ...this.
7869 (xml-builtin.c): Replace with...
7870 (xml-builtin-generated.c): ...this.
7871 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7872 (%.c: *regformats*): Replace with...
7873 (%-generated.c: *regformats*): ...this.
7875 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7877 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7878 (xtensa_fill_gregset): Call collect_register_by_name for
7880 (xtensa_store_gregset): Call supply_register_by_name for
7883 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7885 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7886 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7887 (xtensa_store_gregset): Call supply_register for all registers in
7888 a0_regnum..a0_regnum + C0_NREGS range.
7890 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7892 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7893 (ax-ipa.o: ax.c): Remove.
7894 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7895 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7896 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7897 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7898 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7900 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7902 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7903 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7904 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7905 (errors-ipa.o: ../common/errors.c): Remove.
7906 (format-ipa.o: ../common/format.c): Remove.
7907 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7909 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7911 * Makefile.in (%-ipa.o: %.c): New rule.
7912 (tracepoint-ipa.o: tracepoint.c): Remove.
7913 (utils-ipa.o: utils.c): Remove.
7914 (remote-utils-ipa.o: remote-utils.c): Remove.
7915 (regcache-ipa.o: regcache.c): Remove.
7916 (i386-linux-ipa.o: i386-linux.c): Remove.
7917 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7918 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7919 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7920 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7921 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7922 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7923 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7924 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7925 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7926 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7927 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7928 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7929 (aarch64-ipa.o: aarch64.c): Remove.
7930 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7931 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7932 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7933 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7934 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7935 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7936 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7937 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7938 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7939 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7940 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7941 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7942 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7943 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7944 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7945 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7946 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7947 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7948 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7949 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7950 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7951 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7952 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7953 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7954 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7955 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7956 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7957 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7958 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7959 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7960 (tdesc-ipa.o: tdesc.c): Remove.
7961 (x32-linux-ipa.o: x32-linux.c): Remove.
7962 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7963 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7965 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7967 * Makefile.in (%.o: ../arch/%.c): New rule.
7968 (arm.o: ../arch/arm.c): Remove.
7969 (arm-linux.o: ../arch/arm-linux.c): Remove.
7970 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7971 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7973 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7975 * Makefile.in (%.o: ../nat/%.c): New rule.
7976 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7977 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7978 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7979 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7980 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7981 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7982 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7983 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7984 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7985 (linux-personality.o: ../nat/linux-personality.c): Remove.
7986 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7987 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7988 (x86-linux.o: ../nat/x86-linux.c): Remove.
7989 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7990 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7992 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7994 * Makefile.in (%.o: ../common/%.c): New rule.
7995 (signals.o: ../common/signals.c): Remove.
7996 (print-utils.o: ../common/print-utils.c): Remove.
7997 (rsp-low.o: ../common/rsp-low.c): Remove.
7998 (common-utils.o: ../common/common-utils.c): Remove.
7999 (posix-strerror.o: ../common/posix-strerror.c): Remove.
8000 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
8001 (vec.o: ../common/vec.c): Remove.
8002 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
8003 (xml-utils.o: ../common/xml-utils.c): Remove.
8004 (ptid.o: ../common/ptid.c): Remove.
8005 (buffer.o: ../common/buffer.c): Remove.
8006 (format.o: ../common/format.c): Remove.
8007 (filestuff.o: ../common/filestuff.c): Remove.
8008 (agent.o: ../common/agent.c): Remove.
8009 (errors.o: ../common/errors.c): Remove.
8010 (environ.o: ../common/environ.c): Remove.
8011 (common-debug.o: ../common/common-debug.c): Remove.
8012 (cleanups.o: ../common/cleanups.c): Remove.
8013 (common-exceptions.o: ../common/common-exceptions.c): Remove.
8014 (fileio.o: ../common/fileio.c): Remove.
8015 (common-regcache.o: ../common/common-regcache.c): Remove.
8016 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
8017 (new-op.o: ../common/new-op.c): Remove.
8018 (btrace-common.o: ../common/btrace-common.c): Remove.
8020 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8022 * Makefile.in (%.o: ../target/%.c): New rule.
8023 (waitstatus.o: ../target/waitstatus.c): Remove.
8025 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8028 (%.c: ../regformats/%.dat,
8029 (%.c: ../regformats/arm/%.dat,
8030 (%.c: ../regformats/i386/%.dat,
8031 (%.c: ../regformats/rs6000/%.dat): New rules.
8032 (aarch64.c): Remove.
8033 (reg-arm.c): Remove.
8034 (arm-with-iwmmxt.c): Remove.
8035 (arm-with-vfpv2.c): Remove.
8036 (arm-with-vfpv3.c): Remove.
8037 (arm-with-neon.c): Remove.
8038 (reg-bfin.c): Remove.
8039 (reg-cris.c): Remove.
8040 (reg-crisv32.c): Remove.
8042 (i386-linux.c): Remove.
8043 (i386-avx.c): Remove.
8044 (i386-avx-linux.c): Remove.
8045 (i386-avx-avx512.c): Remove.
8046 (i386-avx-avx512-linux.c): Remove.
8047 (i386-mpx.c): Remove.
8048 (i386-mpx-linux.c): Remove.
8049 (i386-avx-mpx-avx512-pku.c): Remove.
8050 (i386-avx-mpx-avx512-pku-linux.c): Remove.
8051 (i386-avx-mpx.c): Remove.
8052 (i386-avx-mpx-linux.c): Remove.
8053 (i386-mmx.c): Remove.
8054 (i386-mmx-linux.c): Remove.
8055 (reg-ia64.c): Remove.
8056 (reg-m32r.c): Remove.
8057 (reg-m68k.c): Remove.
8059 (mips-linux.c): Remove.
8060 (mips-dsp-linux.c): Remove.
8061 (mips64-linux.c): Remove.
8062 (mips64-dsp-linux.c): Remove.
8063 (nios2-linux.c): Remove.
8064 (powerpc-32.c): Remove.
8065 (powerpc-32l.c): Remove.
8066 (powerpc-altivec32l.c): Remove.
8067 (powerpc-cell32l.c): Remove.
8068 (powerpc-vsx32l.c): Remove.
8069 (powerpc-isa205-32l.c): Remove.
8070 (powerpc-isa205-altivec32l.c): Remove.
8071 (powerpc-isa205-vsx32l.c): Remove.
8072 (powerpc-e500l.c): Remove.
8073 (powerpc-64l.c): Remove.
8074 (powerpc-altivec64l.c): Remove.
8075 (powerpc-cell64l.c): Remove.
8076 (powerpc-vsx64l.c): Remove.
8077 (powerpc-isa205-64l.c): Remove.
8078 (powerpc-isa205-altivec64l.c): Remove.
8079 (powerpc-isa205-vsx64l.c): Remove.
8080 (s390-linux32.c): Remove.
8081 (s390-linux32v1.c): Remove.
8082 (s390-linux32v2.c): Remove.
8083 (s390-linux64.c): Remove.
8084 (s390-linux64v1.c): Remove.
8085 (s390-linux64v2.c): Remove.
8086 (s390-te-linux64.c): Remove.
8087 (s390-vx-linux64.c): Remove.
8088 (s390-tevx-linux64.c): Remove.
8089 (s390x-linux64.c): Remove.
8090 (s390x-linux64v1.c): Remove.
8091 (s390x-linux64v2.c): Remove.
8092 (s390x-te-linux64.c): Remove.
8093 (s390x-vx-linux64.c): Remove.
8094 (s390x-tevx-linux64.c): Remove.
8095 (tic6x-c64xp-linux.c): Remove.
8096 (tic6x-c64x-linux.c): Remove.
8097 (tic6x-c62x-linux.c): Remove.
8099 (reg-sparc64.c): Remove.
8100 (reg-spu.c): Remove.
8102 (amd64-linux.c): Remove.
8103 (amd64-avx.c): Remove.
8104 (amd64-avx-linux.c): Remove.
8105 (amd64-avx-avx512.c): Remove.
8106 (amd64-avx-avx512-linux.c): Remove.
8107 (amd64-mpx.c): Remove.
8108 (amd64-mpx-linux.c): Remove.
8109 (amd64-avx-mpx-avx512-pku.c): Remove.
8110 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
8111 (amd64-avx-mpx.c): Remove.
8112 (amd64-avx-mpx-linux.c): Remove.
8114 (x32-linux.c): Remove.
8115 (x32-avx.c): Remove.
8116 (x32-avx-linux.c): Remove.
8117 (x32-avx-avx512.c): Remove.
8118 (x32-avx-avx512-linux.c): Remove.
8119 (reg-xtensa.c): Remove.
8120 (reg-tilegx.c): Remove.
8121 (reg-tilegx32.c): Remove.
8123 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
8125 * Makefile.in (SFILES): Add "common/environ.c".
8126 (OBJS): Add "common/environ.h".
8128 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8130 * configure.ac: Check if the fs_base and gs_base members of
8131 `struct user_regs_struct' exist.
8132 * config.in: Regenerated.
8133 * configure: Likewise.
8135 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
8137 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
8139 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
8140 (get_next_pcs_syscall_next_pc): Likewise.
8142 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
8144 * win32-i386-low.c: Fix incorrect reference to a couple source files.
8145 * nto-x86-low.c: Likewise.
8147 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
8149 * Makefile.in: Include disable-implicit-rules.mk.
8151 2016-11-23 Pedro Alves <palves@redhat.com>
8153 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
8154 (debug_vprintf): Use std::chrono::steady_clock instead of
8155 gettimeofday. Use '.' instead of ':'.
8156 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
8157 (get_timestamp): Use std::chrono::steady_clock instead of
8160 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8162 * Makefile.in: Fix whitespace formatting.
8164 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8166 * Makefile.in (SFILES, OBS): Flatten list and order
8169 2016-11-23 Pedro Alves <palves@redhat.com>
8171 * event-loop.c (handle_file_event): Use warning.
8172 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
8173 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
8176 2016-11-23 Pedro Alves <palves@redhat.com>
8178 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
8180 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
8181 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
8182 debug_printf and debug_flush for debug output.
8183 * server.c (handle_general_set): Likewise.
8184 * thread-db.c (try_thread_db_load): Use debug_printf for debug
8187 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8189 * Makefile.in (.c.o): Replace rule with ...
8190 (%.o: %.c): ... this one.
8192 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8194 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
8195 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
8197 * configure.ac: Remove checks for the make program.
8198 * configure: Re-generate.
8200 2016-10-28 Pedro Alves <palves@redhat.com>
8202 * Makefile.in (CXX_DIALECT): Get from configure.
8203 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
8204 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
8205 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
8206 * config.in: Regenerate.
8207 * configure: Regenerate.
8209 2016-10-27 Yao Qi <yao.qi@linaro.org>
8211 * linux-low.c (linux_supports_range_stepping): Return true if
8212 can_software_single_step return true.
8214 2016-10-27 Yao Qi <yao.qi@linaro.org>
8216 * inferiors.c (find_inferior_in_random): New function.
8217 * inferiors.h (find_inferior_in_random): Declare.
8218 * linux-low.c (linux_wait_for_event_filtered): Call
8219 find_inferior_in_random instead of find_inferior.
8221 2016-10-27 Yao Qi <yao.qi@linaro.org>
8223 * linux-low.c (linux_wait_1): If single-step breakpoints are
8224 inserted, remove them.
8226 2016-10-26 Pedro Alves <palves@redhat.com>
8228 * linux-low.c (handle_extended_wait): Link parent/child fork
8230 (linux_wait_1): Unlink them.
8231 (linux_set_resume_request): Ignore resume requests for
8232 already-resumed and unhandled fork child threads.
8233 * linux-low.h (struct lwp_info) <fork_relative>: New field.
8234 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
8236 (handle_v_requests) <vCont>: Don't call require_running.
8237 * server.h (in_queued_stop_replies): New declaration.
8239 2016-10-24 Yao Qi <yao.qi@linaro.org>
8242 * linux-aarch64-low.c (append_insns): Cast the return value to
8245 2016-10-10 Yao Qi <yao.qi@linaro.org>
8247 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
8249 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
8251 * target.c (target_supports_multi_process): New function, moved
8253 * target.h (target_supports_multi_process): ... here. Remove
8256 2016-10-05 Tom Tromey <tom@tromey.com>
8259 * tracepoint.c (handle_tracepoint_bkpts): Check
8260 ipa_error_tracepoint, not ipa_stopping_tracepoint.
8262 2016-10-05 Yao Qi <yao.qi@linaro.org>
8264 * configure.srv: Update the path of arm-*.xml files.
8266 2016-10-05 Terry Guo <terry.guo@arm.com>
8267 Yao Qi <yao.qi@linaro.org>
8269 * Makefile.in: Adjust the path of rules.
8270 * configure.srv: Update the path of xml files.
8271 * regformats/arm-with-iwmmxt.dat: Regenerated.
8272 * regformats/arm-with-neon.dat: Likewise.
8273 * regformats/arm-with-vfpv2.dat: Likewise.
8274 * regformats/arm-with-vfpv3.dat Likewise.
8276 2016-09-30 Yao Qi <yao.qi@linaro.org>
8279 * target.c (target_stop_and_wait): Don't call
8280 target_continue_no_signal, use resume_stop instead.
8282 2016-09-26 Yao Qi <yao.qi@linaro.org>
8284 * linux-low.c (linux_wait_1): Call debug_exit.
8286 2016-09-23 Pedro Alves <palves@redhat.com>
8288 * Makefile.in (SFILES): Add common/new-op.c.
8289 (OBS): Add common/new-op.o.
8290 (new-op.o): New rule.
8292 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
8294 * .gitinore: Ignore more files.
8296 2016-09-21 Yao Qi <yao.qi@linaro.org>
8298 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
8301 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
8303 * server.c (start_inferior): Call target_mourn_inferior instead of
8304 mourn_inferior; pass ptid_t argument to it.
8306 (handle_target_event): Likewise.
8307 * target.c (target_mourn_inferior): New function.
8308 * target.h (mourn_inferior): Delete macro.
8310 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
8312 * linux-low.c (lwp_is_stepping): New function.
8314 2016-09-06 Carl Love <cel@us.ibm.com>
8316 * server.c (start_inferior): Fixed comment, requested comment change
8317 didn't get updated correctly. Removed reference to ptrace () call as
8318 it is only true on Linux systems.
8320 2016-09-06 Carl Love <cel@us.ibm.com>
8322 * server.c (start_inferior): Do not call
8323 function target_post_create_inferior () if the
8324 inferior process has already exited.
8326 2016-09-05 Pedro Alves <palves@redhat.com>
8328 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
8329 (COMPILE.pre, CC_LD): Use CXX directly.
8330 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
8331 * acinclude.m4: Don't include build-with-cxx.m4.
8332 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
8333 * configure: Regenerate.
8335 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
8338 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
8339 call writing data to own_buf.
8341 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8343 * target.c (mywait): Call target_wait instead of
8345 (target_wait): New function.
8347 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8349 * server.c (start_inferior): New variable 'ptid'. Replace calls
8350 to the_target->resume by target_continue{,_no_signal}, depending
8352 * target.c (target_stop_and_wait): Call target_continue_no_signal
8353 instead of the_target->resume.
8354 (target_continue): New function.
8356 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8358 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
8360 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8363 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
8365 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
8366 * linux-arm-low.c (ps_get_thread_area): Likewise.
8367 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
8368 * linux-m68k-low.c (ps_get_thread_area): Likewise.
8369 * linux-mips-low.c (ps_get_thread_area): Likewise.
8370 * linux-nios2-low.c (ps_get_thread_area): Likewise.
8371 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
8372 * linux-x86-low.c (ps_get_thread_area): Likewise.
8373 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
8375 2016-08-19 Pedro Alves <palves@redhat.com>
8377 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
8379 2016-08-19 Pedro Alves <palves@redhat.com>
8381 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8382 comment. Use memcpy instead of casting through unsigned long.
8384 2016-08-19 Pedro Alves <palves@redhat.com>
8386 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8387 allocating around 0x80000000.
8389 2016-08-19 Pedro Alves <palves@redhat.com>
8392 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8393 (x32-avx512-linux-ipa.o): New rules.
8394 * configure.ac (x86_64-*-linux*): New x32 check.
8395 * configure.srv (ipa_x32_linux_regobj): New.
8396 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8397 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8399 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8401 * configure: Regenerate.
8403 2016-08-09 Pedro Alves <palves@redhat.com>
8406 * Makefile.in (OBS): Add signals-state-save-restore.o.
8407 (signals-state-save-restore.o): New rule.
8408 * config.in: Regenerate.
8409 * configure: Regenerate.
8410 * linux-low.c: Include "signals-state-save-restore.h".
8411 (linux_create_inferior): Call
8412 restore_original_signals_state.
8413 * server.c: Include "dispositions-save-restore.h".
8414 (captured_main): Call save_original_signals_state.
8416 2016-08-05 Pedro Alves <palves@redhat.com>
8418 * configure: Regenerate.
8420 2016-08-04 Yao Qi <yao.qi@linaro.org>
8422 * linux-low.c (regsets_fetch_inferior_registers): Check
8423 errno is ESRCH or not.
8425 2016-08-02 Yao Qi <yao.qi@linaro.org>
8427 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8428 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8429 (thread_db_load_search): Update.
8430 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8431 td_ta_set_event and td_ta_event_getmsg.
8433 2016-07-26 Pedro Alves <palves@redhat.com>
8436 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8437 of unsigned long for 64-bit registers and use uint32_t instead of
8438 unsigned int for 32-bit registers.
8440 2016-07-26 Pedro Alves <palves@redhat.com>
8442 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8445 2016-07-21 Tom Tromey <tom@tromey.com>
8447 * configure: Rebuild.
8449 2016-07-21 Yao Qi <yao.qi@linaro.org>
8451 * mem-break.c (find_gdb_breakpoint): Cast bp to
8452 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8454 2016-07-21 Yao Qi <yao.qi@linaro.org>
8456 * server.c (handle_v_requests): Support s and S actions
8457 if target_supports_software_single_step return true.
8459 2016-07-21 Yao Qi <yao.qi@linaro.org>
8461 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8462 is resume_step, call maybe_hw_step.
8463 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8465 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8467 (proceed_one_lwp): If resume request is resume_step, install
8468 reinsert breakpoints and call maybe_hw_step.
8470 2016-07-21 Yao Qi <yao.qi@linaro.org>
8472 * linux-low.c (proceed_one_lwp): Declare.
8473 (linux_resume_one_thread): Remove local variable 'step'.
8474 Lift code enqueue signal. Call proceed_one_lwp instead of
8475 linux_resume_one_lwp.
8477 2016-07-21 Yao Qi <yao.qi@linaro.org>
8479 * linux-low.c (linux_resume_one_thread): Call
8480 enqueue_pending_signal.
8482 2016-07-21 Yao Qi <yao.qi@linaro.org>
8484 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8485 * inferiors.c (do_restore_current_thread_cleanup): New function.
8486 (make_cleanup_restore_current_thread): Likewise.
8487 * linux-low.c (install_software_single_step_breakpoints): Call
8488 make_cleanup_restore_current_thread. Switch current_thread to
8491 2016-07-21 Yao Qi <yao.qi@linaro.org>
8493 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8494 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8495 (clone_one_breakpoint): Likewise.
8496 (delete_reinsert_breakpoints): Change parameter to thread.
8498 (has_reinsert_breakpoints): Likewise.
8499 (uninsert_reinsert_breakpoints): Likewise.
8500 (reinsert_reinsert_breakpoints): Likewise.
8501 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8502 (delete_reinsert_breakpoints): Likewise.
8503 (reinsert_reinsert_breakpoints): Likewise.
8504 (uninsert_reinsert_breakpoints): Likewise.
8505 (has_reinsert_breakpoints): Likewise.
8507 2016-07-21 Yao Qi <yao.qi@linaro.org>
8509 * inferiors.c (get_thread_process): Make parameter const.
8510 * inferiors.h (get_thread_process): Update declaration.
8511 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8512 Add new parameters child_thread and parent_thread. Callers
8514 * mem-break.h (clone_all_breakpoints): Update declaration.
8516 2016-07-21 Yao Qi <yao.qi@linaro.org>
8518 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8519 <command_list, handler>: Remove.
8520 (struct gdb_breakpoint): New.
8521 (struct other_breakpoint): New.
8522 (struct reinsert_breakpoint): New.
8523 (is_gdb_breakpoint): New function.
8524 (any_persistent_commands): Update command_list if
8525 is_gdb_breakpoint returns true.
8526 (set_breakpoint): Create breakpoints according to their types.
8527 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8528 (set_gdb_breakpoint_1): Likewise.
8529 (set_gdb_breakpoint): Likewise.
8530 (clear_breakpoint_conditions): Change parameter type to
8531 'struct gdb_breakpoint *'.
8532 (clear_breakpoint_commands): Likewise.
8533 (clear_breakpoint_conditions_and_commands): Likewise.
8534 (add_condition_to_breakpoint): Likewise.
8535 (add_breakpoint_condition): Likewise.
8536 (add_commands_to_breakpoint): Likewise.
8537 (check_breakpoints): Check other_breakpoint.
8538 (clone_one_breakpoint): Clone breakpopint according to its type.
8539 * mem-break.h (struct gdb_breakpoint): Declare.
8540 (set_gdb_breakpoint): Update declaration.
8541 (clear_breakpoint_conditions_and_commands): Likewise.
8542 (add_breakpoint_condition): Likewise.
8543 (add_breakpoint_commands): Likewise.
8544 * server.c (process_point_options): Change parameter type to
8545 'struct gdb_breakpoint *'.
8547 2016-07-21 Yao Qi <yao.qi@linaro.org>
8549 * mem-break.c (set_breakpoint_at): Rename it to ...
8550 (set_breakpoint_type_at): ... it.
8551 (set_breakpoint_at): Call set_breakpoint_type_at.
8552 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8553 * mem-break.h (set_breakpoint_at): Update comments.
8555 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8557 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8559 (nios2_store_gregset): Likewise.
8561 2016-07-01 Pedro Alves <palves@redhat.com>
8562 Antoine Tremblay <antoine.tremblay@ericsson.com>
8564 * linux-low.c: Change interface to take the target lwp_info
8565 pointer directly and return void. Handle detaching from a zombie
8567 (linux_detach_lwp_callback): New function.
8568 (linux_detach): Detach from the leader thread after detaching from
8571 2016-06-28 Yao Qi <yao.qi@linaro.org>
8573 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8574 for variable new_offset.
8575 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8576 (aarch64_ftrace_insn_reloc_cb): Likewise.
8577 (aarch64_ftrace_insn_reloc_tb): Likewise.
8578 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8579 PRIx64 instead of PRIx32.
8581 2016-06-28 Yao Qi <yao.qi@linaro.org>
8583 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8584 (the_low_target): Install arm_get_syscall_trapinfo.
8586 2016-06-28 Yao Qi <yao.qi@linaro.org>
8588 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8590 (the_low_target): Install aarch64_get_syscall_trapinfo.
8592 2016-06-28 Yao Qi <yao.qi@linaro.org>
8594 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8596 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8597 Remove parameter sysno.
8598 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8601 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8603 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8604 (s390_emit_ne_goto): Likewise.
8605 (s390_emit_lt_goto): Likewise.
8606 (s390_emit_le_goto): Likewise.
8607 (s390_emit_gt_goto): Likewise.
8608 (s390_emit_ge_goto): Likewise.
8609 (s390x_emit_eq_goto): Likewise.
8610 (s390x_emit_ne_goto): Likewise.
8611 (s390x_emit_lt_goto): Likewise.
8612 (s390x_emit_le_goto): Likewise.
8613 (s390x_emit_gt_goto): Likewise.
8614 (s390x_emit_ge_goto): Likewise.
8615 (s390_emit_ops_impl): Mark variable static.
8616 (s390x_emit_ops): Likewise.
8618 2016-06-17 Yao Qi <yao.qi@linaro.org>
8620 * linux-low.c (handle_extended_wait): Call
8621 uninsert_reinsert_breakpoints for the parent process. Remove
8622 reinsert breakpoints from the child process. Reinsert them to
8623 the parent process when vfork is done.
8624 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8625 (reinsert_reinsert_breakpoints): New function.
8626 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8627 (reinsert_reinsert_breakpoints): Declare.
8629 2016-06-17 Yao Qi <yao.qi@linaro.org>
8631 * linux-low.c (handle_extended_wait): If the parent is doing
8632 step-over, remove the reinsert breakpoints from the forked child.
8634 2016-06-17 Yao Qi <yao.qi@linaro.org>
8636 * linux-low.c (unsuspend_all_lwps): Declare.
8637 (linux_low_filter_event): If thread exited, call finish_step_over.
8638 If step-over is finished, unsuspend other threads.
8640 2016-06-17 Yao Qi <yao.qi@linaro.org>
8642 * linux-low.c (linux_resume_one_lwp_throw): Assert
8643 has_reinsert_breakpoints returns false.
8644 * mem-break.c (delete_disabled_breakpoints): Assert
8645 bp type isn't reinsert_breakpoint.
8647 2016-06-17 Yao Qi <yao.qi@linaro.org>
8649 * linux-low.c (maybe_hw_step): New function.
8650 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8651 (finish_step_over): Switch current_thread to lwp temporarily,
8652 and assert has_reinsert_breakpoints returns true.
8653 (proceed_one_lwp): Call maybe_hw_step.
8654 * mem-break.c (has_reinsert_breakpoints): New function.
8655 * mem-break.h (has_reinsert_breakpoints): Declare.
8657 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8659 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8661 2016-05-17 Yao Qi <yao.qi@linaro.org>
8663 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8664 instead of find_inferior.
8666 2016-05-05 Yao Qi <yao.qi@linaro.org>
8668 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8669 Initialize res to zero.
8671 2016-05-05 Yao Qi <yao.qi@linaro.org>
8673 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8676 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8678 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8679 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8680 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8682 2016-04-28 Par Olsson <par.olsson@windriver.com>
8683 Simon Marchi <simon.marchi@ericsson.com>
8685 * tracepoint.c (write_inferior_int8): New function.
8686 (cmd_qtenable_disable): Write enable flag using
8687 write_inferior_int8.
8689 2016-04-25 Yao Qi <yao.qi@linaro.org>
8691 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8692 (need_step_over_p): Return zero if the LWP has pending signals
8693 can be delivered on software single step target.
8695 2016-04-25 Yao Qi <yao.qi@linaro.org>
8697 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8698 return instead of error.
8700 2016-04-22 Yao Qi <yao.qi@linaro.org>
8702 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8705 2016-04-22 Yao Qi <yao.qi@linaro.org>
8707 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8708 signal when stepping over breakpoint with software single
8711 2016-04-21 Pedro Alves <palves@redhat.com>
8713 * linux-s390-low.c (s390_collect_ptrace_register)
8714 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8716 (s390_check_regset): Use void * instead of gdb_byte *.
8718 2016-04-20 Pedro Alves <palves@redhat.com>
8720 * configure: Renegerate.
8722 2016-04-20 Yao Qi <yao.qi@linaro.org>
8724 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8725 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8727 (arm_store_gregset): Likewise.
8729 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8731 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8732 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8733 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8734 (amd64-avx-mpx-linux.c): New rules.
8735 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8736 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8737 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8738 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8739 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8740 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8741 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8742 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8743 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8744 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8745 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8746 * linux-x86-low.c (x86_linux_read_description): Add case for
8747 X86_XSTATE_AVX_MPX_MASK.
8748 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8749 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8750 init_registers_i386_avx_mpx_linux.
8751 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8752 (initialize_low_tracepoint): Call
8753 init_registers_i386_avx_mpx_linux.
8754 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8755 (initialize_low_tracepoint): Call
8756 init_registers_amd64_avx_mpx_linux.
8757 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8758 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8759 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8762 2016-04-18 Pedro Alves <palves@redhat.com>
8764 * configure: Regenerate.
8766 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8768 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8769 (aarch64_emit_sub): Likewise.
8771 2016-04-12 Pedro Alves <palves@redhat.com>
8773 * utils.c (prepare_to_throw_exception): Delete.
8775 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8777 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8779 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8781 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8783 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8785 * linux-aarch64-ipa.c: Add <elf.h> include.
8786 * linux-ppc-ipa.c: Add <elf.h> include.
8787 * linux-s390-ipa.c: Add <elf.h> include.
8789 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8791 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8792 (get_raw_reg_ptr): Likewise.
8793 (get_trace_state_variable_value_ptr): Likewise.
8794 (set_trace_state_variable_value_ptr): Likewise.
8795 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8798 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8799 Marcin Kościelnicki <koriakin@0x04.net>
8802 * linux-ppc-low.c (emit_insns): New function.
8803 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8804 (ppc_emit_prologue): New function.
8805 (ppc_emit_epilogue): New function.
8806 (ppc_emit_add): New function.
8807 (ppc_emit_sub): New function.
8808 (ppc_emit_mul): New function.
8809 (ppc_emit_lsh): New function.
8810 (ppc_emit_rsh_signed): New function.
8811 (ppc_emit_rsh_unsigned): New function.
8812 (ppc_emit_ext): New function.
8813 (ppc_emit_zero_ext): New function.
8814 (ppc_emit_log_not): New function.
8815 (ppc_emit_bit_and): New function.
8816 (ppc_emit_bit_or): New function.
8817 (ppc_emit_bit_xor): New function.
8818 (ppc_emit_bit_not): New function.
8819 (ppc_emit_equal): New function.
8820 (ppc_emit_less_signed): New function.
8821 (ppc_emit_less_unsigned): New function.
8822 (ppc_emit_ref): New function.
8823 (ppc_emit_const): New function.
8824 (ppc_emit_reg): New function.
8825 (ppc_emit_pop): New function.
8826 (ppc_emit_stack_flush): New function.
8827 (ppc_emit_swap): New function.
8828 (ppc_emit_stack_adjust): New function.
8829 (ppc_emit_call): New function.
8830 (ppc_emit_int_call_1): New function.
8831 (ppc_emit_void_call_2): New function.
8832 (ppc_emit_if_goto): New function.
8833 (ppc_emit_goto): New function.
8834 (ppc_emit_eq_goto): New function.
8835 (ppc_emit_ne_goto): New function.
8836 (ppc_emit_lt_goto): New function.
8837 (ppc_emit_le_goto): New function.
8838 (ppc_emit_gt_goto): New function.
8839 (ppc_emit_ge_goto): New function.
8840 (ppc_write_goto_address): New function.
8841 (ppc_emit_ops_impl): New static variable.
8842 (ppc64v1_emit_prologue): New function.
8843 (ppc64v2_emit_prologue): New function.
8844 (ppc64_emit_epilogue): New function.
8845 (ppc64_emit_add): New function.
8846 (ppc64_emit_sub): New function.
8847 (ppc64_emit_mul): New function.
8848 (ppc64_emit_lsh): New function.
8849 (ppc64_emit_rsh_signed): New function.
8850 (ppc64_emit_rsh_unsigned): New function.
8851 (ppc64_emit_ext): New function.
8852 (ppc64_emit_zero_ext): New function.
8853 (ppc64_emit_log_not): New function.
8854 (ppc64_emit_bit_and): New function.
8855 (ppc64_emit_bit_or): New function.
8856 (ppc64_emit_bit_xor): New function.
8857 (ppc64_emit_bit_not): New function.
8858 (ppc64_emit_equal): New function.
8859 (ppc64_emit_less_signed): New function.
8860 (ppc64_emit_less_unsigned): New function.
8861 (ppc64_emit_ref): New function.
8862 (ppc64_emit_const): New function.
8863 (ppc64v1_emit_reg): New function.
8864 (ppc64v2_emit_reg): New function.
8865 (ppc64_emit_pop): New function.
8866 (ppc64_emit_stack_flush): New function.
8867 (ppc64_emit_swap): New function.
8868 (ppc64v1_emit_call): New function.
8869 (ppc64v2_emit_call): New function.
8870 (ppc64v1_emit_int_call_1): New function.
8871 (ppc64v2_emit_int_call_1): New function.
8872 (ppc64v1_emit_void_call_2): New function.
8873 (ppc64v2_emit_void_call_2): New function.
8874 (ppc64_emit_if_goto): New function.
8875 (ppc64_emit_eq_goto): New function.
8876 (ppc64_emit_ne_goto): New function.
8877 (ppc64_emit_lt_goto): New function.
8878 (ppc64_emit_le_goto): New function.
8879 (ppc64_emit_gt_goto): New function.
8880 (ppc64_emit_ge_goto): New function.
8881 (ppc64v1_emit_ops_impl): New static variable.
8882 (ppc64v2_emit_ops_impl): New static variable.
8883 (ppc_emit_ops): New function.
8884 (linux_low_target): Wire in ppc_emit_ops.
8886 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8887 Marcin Kościelnicki <koriakin@0x04.net>
8890 * Makefile.in: Add powerpc-*-ipa.o
8891 * configure.srv: Add ipa_obj for powerpc*-linux.
8892 * linux-ppc-ipa.c: New file.
8893 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8895 (PPC_FIELD): New macro.
8896 (PPC_SEXT): New macro.
8897 (PPC_OP6): New macro.
8898 (PPC_BO): New macro.
8899 (PPC_LI): New macro.
8900 (PPC_BD): New macro.
8901 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8902 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8903 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8904 (ppc_get_thread_area): New function.
8905 (is_elfv2_inferior): New function.
8906 (gen_ds_form): New function.
8907 (GEN_STD): New macro.
8908 (GEN_STDU): New macro.
8909 (GEN_LD): New macro.
8910 (GEN_LDU): New macro.
8911 (gen_d_form): New function.
8912 (GEN_ADDI): New macro.
8913 (GEN_ADDIS): New macro.
8914 (GEN_LI): New macro.
8915 (GEN_LIS): New macro.
8916 (GEN_ORI): New macro.
8917 (GEN_ORIS): New macro.
8918 (GEN_LWZ): New macro.
8919 (GEN_STW): New macro.
8920 (GEN_STWU): New macro.
8921 (gen_xfx_form): New function.
8922 (GEN_MFSPR): New macro.
8923 (GEN_MTSPR): New macro.
8924 (GEN_MFCR): New macro.
8925 (GEN_MTCR): New macro.
8926 (GEN_SYNC): New macro.
8927 (GEN_LWSYNC): New macro.
8928 (gen_x_form): New function.
8929 (GEN_OR): New macro.
8930 (GEN_MR): New macro.
8931 (GEN_LWARX): New macro.
8932 (GEN_STWCX): New macro.
8933 (GEN_CMPW): New macro.
8934 (gen_md_form): New function.
8935 (GEN_RLDICL): New macro.
8936 (GEN_RLDICR): New macro.
8937 (gen_i_form): New function.
8939 (GEN_BL): New macro.
8940 (gen_b_form): New function.
8941 (GEN_BNE): New macro.
8942 (GEN_LOAD): New macro.
8943 (GEN_STORE): New macro.
8944 (gen_limm): New function.
8945 (gen_atomic_xchg): New function.
8946 (gen_call): New function.
8947 (ppc_relocate_instruction): New function.
8948 (ppc_install_fast_tracepoint_jump_pad): New function.
8949 (ppc_get_min_fast_tracepoint_insn_len): New function.
8950 (ppc_get_ipa_tdesc_idx): New function.
8951 (the_low_target): Wire in the new functions.
8952 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8954 * linux-ppc-tdesc.h: New file.
8956 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8958 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8959 (alloc_jump_pad_buffer): New function.
8960 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8961 (alloc_jump_pad_buffer): New function.
8962 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8963 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8964 (alloc_jump_pad_buffer): New function.
8965 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8966 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8967 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8968 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8970 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8972 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8973 * linux-amd64-ipa.c: Likewise.
8974 * linux-i386-ipa.c: Likewise.
8975 * linux-s390-ipa.c: Likewise.
8976 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8977 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8978 set_trace_state_variable_value_ptr.
8979 (struct ipa_sym_addresses): Likewise.
8980 (symbol_list): Likewise.
8981 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8982 accessing gdb_collect directly.
8983 (gdb_collect_ptr_type): New typedef.
8984 (get_raw_reg_ptr_type): New typedef.
8985 (get_trace_state_variable_value_ptr_type): New typedef.
8986 (set_trace_state_variable_value_ptr_type): New typedef.
8987 (gdb_collect_ptr): New global.
8988 (get_raw_reg_ptr): New global.
8989 (get_trace_state_variable_value_ptr): New global.
8990 (set_trace_state_variable_value_ptr): New global.
8991 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8992 accessing get_raw_reg directly.
8993 (get_get_tsv_func_addr): Likewise for
8994 get_trace_state_variable_value_ptr.
8995 (get_set_tsv_func_addr): Likewise for
8996 set_trace_state_variable_value_ptr.
8997 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8999 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
9001 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
9003 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
9005 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
9007 (relocate_instruction): Remove own_buf.
9008 * server.c (own_buf): Make global.
9009 (handle_v_requests): Make global.
9010 * server.h (own_buf): New declaration.
9011 (handle_v_requests): New prototype.
9013 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9016 * linux-s390-low.c (add_insns): New function.
9017 (s390_emit_prologue): New function.
9018 (s390_emit_epilogue): New function.
9019 (s390_emit_add): New function.
9020 (s390_emit_sub): New function.
9021 (s390_emit_mul): New function.
9022 (s390_emit_lsh): New function.
9023 (s390_emit_rsh_signed): New function.
9024 (s390_emit_rsh_unsigned): New function.
9025 (s390_emit_ext): New function.
9026 (s390_emit_log_not): New function.
9027 (s390_emit_bit_and): New function.
9028 (s390_emit_bit_or): New function.
9029 (s390_emit_bit_xor): New function.
9030 (s390_emit_bit_not): New function.
9031 (s390_emit_equal): New function.
9032 (s390_emit_less_signed): New function.
9033 (s390_emit_less_unsigned): New function.
9034 (s390_emit_ref): New function.
9035 (s390_emit_if_goto): New function.
9036 (s390_emit_goto): New function.
9037 (s390_write_goto_address): New function.
9038 (s390_emit_litpool): New function.
9039 (s390_emit_const): New function.
9040 (s390_emit_call): New function.
9041 (s390_emit_reg): New function.
9042 (s390_emit_pop): New function.
9043 (s390_emit_stack_flush): New function.
9044 (s390_emit_zero_ext): New function.
9045 (s390_emit_swap): New function.
9046 (s390_emit_stack_adjust): New function.
9047 (s390_emit_set_r2): New function.
9048 (s390_emit_int_call_1): New function.
9049 (s390_emit_void_call_2): New function.
9050 (s390_emit_eq_goto): New function.
9051 (s390_emit_ne_goto): New function.
9052 (s390_emit_lt_goto): New function.
9053 (s390_emit_le_goto): New function.
9054 (s390_emit_gt_goto): New function.
9055 (s390_emit_ge_goto): New function.
9056 (s390x_emit_prologue): New function.
9057 (s390x_emit_epilogue): New function.
9058 (s390x_emit_add): New function.
9059 (s390x_emit_sub): New function.
9060 (s390x_emit_mul): New function.
9061 (s390x_emit_lsh): New function.
9062 (s390x_emit_rsh_signed): New function.
9063 (s390x_emit_rsh_unsigned): New function.
9064 (s390x_emit_ext): New function.
9065 (s390x_emit_log_not): New function.
9066 (s390x_emit_bit_and): New function.
9067 (s390x_emit_bit_or): New function.
9068 (s390x_emit_bit_xor): New function.
9069 (s390x_emit_bit_not): New function.
9070 (s390x_emit_equal): New function.
9071 (s390x_emit_less_signed): New function.
9072 (s390x_emit_less_unsigned): New function.
9073 (s390x_emit_ref): New function.
9074 (s390x_emit_if_goto): New function.
9075 (s390x_emit_const): New function.
9076 (s390x_emit_call): New function.
9077 (s390x_emit_reg): New function.
9078 (s390x_emit_pop): New function.
9079 (s390x_emit_stack_flush): New function.
9080 (s390x_emit_zero_ext): New function.
9081 (s390x_emit_swap): New function.
9082 (s390x_emit_stack_adjust): New function.
9083 (s390x_emit_int_call_1): New function.
9084 (s390x_emit_void_call_2): New function.
9085 (s390x_emit_eq_goto): New function.
9086 (s390x_emit_ne_goto): New function.
9087 (s390x_emit_lt_goto): New function.
9088 (s390x_emit_le_goto): New function.
9089 (s390x_emit_gt_goto): New function.
9090 (s390x_emit_ge_goto): New function.
9091 (s390_emit_ops): New function.
9092 (struct linux_target_ops): Fill in emit_ops hook.
9094 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9097 * Makefile.in: Add s390 IPA files.
9098 * configure.srv: Build IPA for s390.
9099 * linux-s390-ipa.c: New file.
9100 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
9101 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
9102 (tdesc_s390_linux32): Likewise.
9103 (init_registers_s390_linux32v1): Likewise.
9104 (tdesc_s390_linux32v1): Likewise.
9105 (init_registers_s390_linux32v2): Likewise.
9106 (tdesc_s390_linux32v2): Likewise.
9107 (init_registers_s390_linux64): Likewise.
9108 (tdesc_s390_linux64): Likewise.
9109 (init_registers_s390_linux64v1): Likewise.
9110 (tdesc_s390_linux64v1): Likewise.
9111 (init_registers_s390_linux64v2): Likewise.
9112 (tdesc_s390_linux64v2): Likewise.
9113 (init_registers_s390_te_linux64): Likewise.
9114 (tdesc_s390_te_linux64): Likewise.
9115 (init_registers_s390_vx_linux64): Likewise.
9116 (tdesc_s390_vx_linux64): Likewise.
9117 (init_registers_s390_tevx_linux64): Likewise.
9118 (tdesc_s390_tevx_linux64): Likewise.
9119 (init_registers_s390x_linux64): Likewise.
9120 (tdesc_s390x_linux64): Likewise.
9121 (init_registers_s390x_linux64v1): Likewise.
9122 (tdesc_s390x_linux64v1): Likewise.
9123 (init_registers_s390x_linux64v2): Likewise.
9124 (tdesc_s390x_linux64v2): Likewise.
9125 (init_registers_s390x_te_linux64): Likewise.
9126 (tdesc_s390x_te_linux64): Likewise.
9127 (init_registers_s390x_vx_linux64): Likewise.
9128 (tdesc_s390x_vx_linux64): Likewise.
9129 (init_registers_s390x_tevx_linux64): Likewise.
9130 (tdesc_s390x_tevx_linux64): Likewise.
9131 (have_hwcap_s390_vx): New static variable.
9132 (s390_arch_setup): Fill have_hwcap_s390_vx.
9133 (s390_get_thread_area): New function.
9134 (s390_ft_entry_gpr_esa): New const.
9135 (s390_ft_entry_gpr_zarch): New const.
9136 (s390_ft_entry_misc): New const.
9137 (s390_ft_entry_fr): New const.
9138 (s390_ft_entry_vr): New const.
9139 (s390_ft_main_31): New const.
9140 (s390_ft_main_64): New const.
9141 (s390_ft_exit_fr): New const.
9142 (s390_ft_exit_vr): New const.
9143 (s390_ft_exit_misc): New const.
9144 (s390_ft_exit_gpr_esa): New const.
9145 (s390_ft_exit_gpr_zarch): New const.
9146 (append_insns): New function.
9147 (s390_relocate_instruction): New function.
9148 (s390_install_fast_tracepoint_jump_pad): New function.
9149 (s390_get_min_fast_tracepoint_insn_len): New function.
9150 (s390_get_ipa_tdesc_idx): New function.
9151 (struct linux_target_ops): Wire in the above functions.
9152 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
9153 * linux-s390-tdesc.h: New file.
9155 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9157 * linux-s390-low.c (s390_supports_tracepoints): New function.
9158 (struct linux_target_ops): Fill supports_tracepoints hook.
9160 2016-03-18 Yao Qi <yao.qi@linaro.org>
9162 * linux-low.c (lwp_signal_can_be_delivered): New function.
9163 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
9165 2016-03-18 Yao Qi <yao.qi@linaro.org>
9167 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
9168 0 if signal is enqueued. Remove 'signal' from one debugging
9169 message. Move one debugging message to some lines below.
9170 Remove code setting 'signal' to 0.
9172 2016-03-18 Yao Qi <yao.qi@linaro.org>
9174 * linux-low.c (linux_low_filter_event): Remove redundant
9175 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
9177 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
9179 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
9180 (struct linux_target_ops): Wire in the above.
9182 2016-03-03 Yao Qi <yao.qi@linaro.org>
9184 * linux-low.c: Update comments to start_step_over.
9186 2016-03-03 Yao Qi <yao.qi@linaro.org>
9189 * linux-low.c (handle_extended_wait): Set child suspended
9190 if event_lwp->bp_reinsert isn't zero.
9192 2016-03-02 Yao Qi <yao.qi@linaro.org>
9194 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
9195 enqueue_pending_signal.
9197 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
9199 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
9202 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9204 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
9205 (s390_regmap_3264) [!__s390x__]: New global.
9206 (s390_collect_ptrace_register): Skip map entries containing -1.
9207 (s390_supply_ptrace_register): Ditto.
9208 (s390_fill_gprs_high): New function.
9209 (s390_store_gprs_high): New function.
9210 (s390_regsets): Add NT_S390_HIGH_GPRS.
9211 (s390_get_hwcap): Enable on 31-bit.
9212 (have_hwcap_s390_high_gprs): Enable on 31-bit.
9213 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
9214 Detect NT_S390_HIGH_GPRS.
9215 (s390_usrregs_info_3264): Enable on 31-bit.
9216 (s390_regs_info): Enable regs_info_3264 on 31-bit.
9217 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
9219 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9222 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
9223 * configure.srv: Ditto.
9224 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
9225 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
9226 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
9227 (init_registers_amd64_linux): Remove prototype.
9228 (tdesc_amd64_linux): Remove declaration.
9229 (get_ipa_tdesc): New function.
9230 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9231 initialize remaining tdescs.
9232 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
9233 (init_registers_i386_linux): Remove prototype.
9234 (tdesc_i386_linux): Remove declaration.
9235 (get_ipa_tdesc): New function.
9236 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9237 initialize remaining tdescs.
9238 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
9239 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
9240 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
9241 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
9242 (x86_get_ipa_tdesc_idx): New function.
9243 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
9244 * linux-x86-tdesc.h: New file.
9245 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
9246 (target_get_ipa_tdesc_idx): New macro.
9247 * tracepoint.c (ipa_tdesc_idx): New macro.
9248 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
9249 (symbol_list): Add ipa_tdesc_idx.
9250 (cmd_qtstart): Write ipa_tdesc_idx in the target.
9251 (ipa_tdesc): Remove.
9252 (ipa_tdesc_idx): New variable.
9253 (get_context_regcache): Use get_ipa_tdesc.
9254 (gdb_collect): Ditto.
9256 * tracepoint.h (get_ipa_tdesc): New prototype.
9257 (ipa_tdesc): Remove.
9259 2016-02-24 Pedro Alves <palves@redhat.com>
9261 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
9262 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
9263 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
9264 Factor out common code between the USE_SIGTRAP_SIGINFO and
9265 !USE_SIGTRAP_SIGINFO blocks.
9266 (linux_low_filter_event): Call save_stop_reason instead of
9267 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
9269 (linux_wait_1): Update comments.
9271 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
9273 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
9274 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
9275 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
9276 ppc_insert_point, ppc_remove_point.
9278 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
9280 * linux-s390-low.c (s390_supports_z_point_type): New function.
9281 (struct linux_target_ops): Wire s390_supports_z_point_type in.
9283 2016-02-16 Yao Qi <yao.qi@linaro.org>
9285 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
9286 PC. Get pc from regcache_read_pc.
9288 2016-02-12 Yao Qi <yao.qi@linaro.org>
9290 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
9291 or linux_get_pc_32bit.
9292 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
9294 2016-02-12 Yao Qi <yao.qi@linaro.org>
9296 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
9297 arm_linux_get_next_pcs_fixup.
9299 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
9301 * tracepoint.c (x_tracepoint_action_download): Change
9302 write_inferior_data_ptr to write_inferior_data_pointer.
9303 (cmd_qtstart): Likewise.
9304 (write_inferior_data_ptr): Remove.
9305 (download_agent_expr): Change write_inferior_data_ptr to
9306 write_inferior_data_pointer.
9307 (download_tracepoint_1): Likewise.
9308 (download_tracepoint): Likewise.
9309 (download_trace_state_variables): Likewise.
9311 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
9312 Marcin Kościelnicki <koriakin@0x04.net>
9314 * tracepoint.c (struct tracepoint_action_ops): Remove.
9315 (struct tracepoint_action): Remove ops.
9316 (m_tracepoint_action_download, r_tracepoint_action_download)
9317 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
9318 size and offset accordingly.
9319 (m_tracepoint_action_ops, r_tracepoint_action_ops)
9320 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
9321 (tracepoint_action_send, tracepoint_action_download): New functions.
9322 Helpers for trace action handlers.
9323 (add_tracepoint_action): Remove setup actions ops.
9324 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
9326 2016-02-10 Yao Qi <yao.qi@linaro.org>
9328 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
9330 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9332 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
9334 * configure: Regenerate.
9336 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9338 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
9339 void * to gdb_byte *.
9340 * linux-low.c (siginfo_fixup): Likewise.
9341 (linux_xfer_siginfo): Likewise.
9342 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
9344 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
9346 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9348 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
9350 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
9352 * linux-x86-low.c [__x86_64__]: Include
9353 "nat/amd64-linux-siginfo.h".
9354 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
9355 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
9356 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
9357 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
9358 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
9359 (cpt_si_fd, si_timerid, si_overrun): Move from
9360 nat/amd64-linux-siginfo.c.
9361 * Makefile.in (amd64-linux-siginfo.o:): New rule.
9363 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9365 * server.c (skip_to_semicolon): Remove.
9366 (process_point_options): Use strchrnul instead of
9369 2016-01-26 Yao Qi <yao.qi@linaro.org>
9371 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
9372 * linux-low.c (install_software_single_step_breakpoints): Don't
9373 call regcache_read_pc.
9374 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
9377 2016-01-26 Yao Qi <yao.qi@linaro.org>
9379 * linux-low.c (install_software_single_step_breakpoints): Call
9380 regcache_read_pc instead of get_pc.
9382 2016-01-26 Yao Qi <yao.qi@linaro.org>
9384 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9385 (unblock_async_io): Rename to ...
9386 (block_unblock_async_io): ... it. New function.
9387 (enable_async_io): Don't install SIGIO handler. Unblock it
9389 (disable_async_io): Don't ignore SIGIO. Block it instead.
9390 (initialize_async_io): Install SIGIO handler. Don't call
9393 2016-01-26 Yao Qi <yao.qi@linaro.org>
9395 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9396 first character is '\003', call *the_target->request_interrupt.
9398 2016-01-25 Yao Qi <yao.qi@linaro.org>
9400 * remote-utils.c (new_thread_notify): Remove.
9401 (dead_thread_notify): Likewise.
9402 * remote-utils.h (new_thread_notify): Remove declaration.
9403 (dead_thread_notify): Likewise.
9405 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9407 * gdb.trace/pending.exp: Fix expected message on continue.
9409 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9411 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9412 it works properly on big-endian machines where sizeof (CORE_ADDR)
9415 2016-01-21 Pedro Alves <palves@redhat.com>
9417 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9418 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9419 * configure: Regenerate.
9421 2016-01-21 Yao Qi <yao.qi@linaro.org>
9423 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9424 is_thumb and set it according to CPSR saved on the stack.
9425 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9426 arm_sigreturn_next_pc.
9428 2016-01-18 Yao Qi <yao.qi@linaro.org>
9430 * linux-low.c (linux_set_pc_64bit): New function.
9431 (linux_get_pc_64bit): New function.
9432 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9434 * linux-sparc-low.c (debug_threads): Remove declaration.
9435 (sparc_get_pc): Remove.
9436 (the_low_target): Use linux_get_pc_64bit instead of
9438 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9439 (the_low_target): Use linux_get_pc_64bit and
9442 2016-01-18 Yao Qi <yao.qi@linaro.org>
9444 * linux-arm-low.c (debug_threads): Remove declaration.
9445 (arm_get_pc, arm_set_pc): Remove.
9446 (the_low_target): Use linux_get_pc_32bit and
9448 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9449 (the_low_target): Use linux_get_pc_32bit and
9451 * linux-cris-low.c (debug_threads): Remove declaration.
9452 (cris_get_pc, cris_set_pc,): Remove.
9453 (the_low_target): Use linux_get_pc_32bit and
9455 * linux-crisv32-low.c (debug_threads): Remove declaration.
9456 (cris_get_pc, cris_set_pc): Remove.
9457 (the_low_target): Use linux_get_pc_32bit and
9459 * linux-low.c: Include inttypes.h.
9460 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9461 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9462 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9463 (the_low_target): Use linux_get_pc_32bit and
9465 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9466 (the_low_target): Use linux_get_pc_32bit and
9468 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9469 (the_low_target): Use linux_get_pc_32bit and
9471 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9472 (the_low_target): Use linux_get_pc_32bit and
9474 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9475 (the_low_target): Use linux_get_pc_32bit and
9478 2016-01-18 Gary Benson <gbenson@redhat.com>
9480 * configure.ac (AC_FUNC_FORK): New check.
9481 * config.in: Regenerate.
9482 * configure: Likewise.
9484 2016-01-14 Yao Qi <yao.qi@linaro.org>
9486 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9487 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9488 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9489 arm_get_next_pcs_ctor.
9491 2016-01-12 Josh Stone <jistone@redhat.com>
9492 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9494 * inferiors.h: Include "gdb_vecs.h".
9495 (struct process_info): Add syscalls_to_catch.
9496 * inferiors.c (remove_process): Free syscalls_to_catch.
9497 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9498 syscall_return stops.
9499 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9500 * server.c (handle_general_set): Handle QCatchSyscalls.
9501 (handle_query): Report support for QCatchSyscalls.
9502 * target.h (struct target_ops): Add supports_catch_syscall.
9503 (target_supports_catch_syscall): New macro.
9504 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9505 (struct lwp_info): Add syscall_state.
9506 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9507 Maintain syscall_state and syscalls_to_catch across exec.
9508 (get_syscall_trapinfo): New function, proxy to the_low_target.
9509 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9510 (linux_low_filter_event): Toggle syscall_state entry/return for
9511 syscall traps, and set it ignored for all others.
9512 (gdb_catching_syscalls_p): New function.
9513 (gdb_catch_this_syscall_p): New function.
9514 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9515 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9516 (linux_supports_catch_syscall): New function.
9517 (linux_target_ops): Install it.
9518 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9519 (the_low_target): Install it.
9521 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9523 * acinclude.m4: Include new ../warning.m4 file.
9524 * configure: Regenerated.
9525 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9527 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9529 * ax.c (is_goto_target): Mark static.
9530 * linux-low.c (register_addr): Likewise.
9531 (linux_fetch_registers, linux_store_registers): Likewise.
9532 * mem-break.c (any_persistent_commands): Fix old prototype.
9533 (add_commands_to_breakpoint): Mark static.
9534 * regcache.c (find_register_by_name): Delete unused func.
9535 * remote-utils.c (hex_or_minus_one): Mark static.
9536 * server.c (monitor_show_help): Mark static.
9537 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9538 handle_v_requests): Likewise.
9540 2016-01-12 Pedro Alves <palves@redhat.com>
9542 Remove use of the registered trademark symbol throughout.
9544 2016-01-08 Yao Qi <yao.qi@linaro.org>
9546 * remote-utils.c (getpkt): If c is '\003', call target hook
9549 2016-01-06 Yao Qi <yao.qi@linaro.org>
9551 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9552 linux-aarch32-low.c.
9553 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9554 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9555 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9556 (thumb2_breakpoint): Declare.
9557 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9558 linux-aarch32-low.h.
9559 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9560 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9561 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9563 2016-01-01 Joel Brobecker <brobecker@adacore.com>
9565 * gdbreplay.c (gdbreplay_version): Change copyright year in
9567 * server.c (gdbserver_version): Likewise.
9569 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9571 * server.c (crc32_table): Delete.
9572 (crc32): Use libiberty's xcrc32 function.
9574 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9576 * lynx-low.c (lynx_delete_thread_callback): New function.
9577 (lynx_mourn): Properly delete our process and all of its
9578 threads. Remove call to clear_inferiors.
9580 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9582 * target.c (thread_search_callback): Add check that
9583 the thread_stopped target callback is not NULL before
9586 2015-12-21 Yao Qi <yao.qi@linaro.org>
9588 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9591 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9593 * server.c (handle_query): Call target_supports_software_single_step.
9595 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9597 * linux-low.c (single_step): New function.
9598 (linux_resume_one_lwp_throw): Call single_step.
9599 (start_step_over): Likewise.
9601 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9603 * Makefile.in (SFILES): Append arch/arm-linux.c,
9604 arch/arm-get-next-pcs.c.
9605 (arm-linux.o): New rule.
9606 (arm-get-next-pcs.o): New rule.
9607 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9609 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9610 to linux-aarch32-low.c.
9611 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9612 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9613 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9614 (thumb2_breakpoint_len): Likewise.
9615 (arm_is_thumb_mode): Make non-static.
9616 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9617 from linux-aarch32-low.c.
9618 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9619 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9620 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9621 (thumb2_breakpoint_len): Likewise.
9622 (arm_is_thumb_mode): New declaration.
9623 * linux-arm-low.c: Include arch/arm-linux.h
9624 aarch/arm-get-next-pcs.h, sys/syscall.h.
9625 (get_next_pcs_ops): New struct.
9626 (get_next_pcs_addr_bits_remove): New function.
9627 (get_next_pcs_is_thumb): New function.
9628 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9629 (arm_sigreturn_next_pc): Likewise.
9630 (get_next_pcs_syscall_next_pc): Likewise.
9631 (arm_gdbserver_get_next_pcs): Likewise.
9632 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9634 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9635 * server.h: Include gdb_vecs.h.
9637 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9639 * Makefile.in (SFILES): Append common/common-regcache.c.
9640 (OBS): Append common-regcache.o.
9641 (common-regcache.o): New rule.
9642 * regcache.c (init_register_cache): Initialize cache to
9644 (regcache_raw_read_unsigned): New function.
9645 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9646 register_status enum.
9648 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9650 * linux-aarch64-low.c (the_low_targets): Rename
9651 breakpoint_reinsert_addr to get_next_pcs.
9652 * linux-arm-low.c (the_low_targets): Likewise.
9653 * linux-bfin-low.c (the_low_targets): Likewise.
9654 * linux-cris-low.c (the_low_targets): Likewise.
9655 * linux-crisv32-low.c (the_low_targets): Likewise.
9656 * linux-low.c (can_software_single_step): Likewise.
9657 (install_software_single_step_breakpoints): New function.
9658 (start_step_over): Use install_software_single_step_breakpoints.
9659 * linux-low.h: New CORE_ADDR vector.
9660 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9662 * linux-mips-low.c (the_low_targets): Likewise.
9663 * linux-nios2-low.c (the_low_targets): Likewise.
9664 * linux-sparc-low.c (the_low_targets): Likewise.
9666 2015-12-17 Pedro Alves <palves@redhat.com>
9668 * linux-low.c (linux_kill_one_lwp): Remove references to
9670 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9672 (linux_init_signals): Delete.
9673 (initialize_low): Adjust.
9674 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9676 2015-12-16 Pedro Alves <palves@redhat.com>
9678 * configure.ac (compiler warning flags): When testing a
9679 -Wno-foo option, check whether -Wfoo works instead.
9680 * configure: Regenerate.
9682 2015-12-11 Don Breazeal <donb@codesourcery.com>
9684 * server.c (process_serial_event): Don't exit from gdbserver
9685 in remote mode if there are still active inferiors.
9687 2015-12-11 Yao Qi <yao.qi@linaro.org>
9689 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9690 arm_breakpoint_at if the process is 32-bit.
9692 2015-12-11 Yao Qi <yao.qi@linaro.org>
9694 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9697 2015-12-07 Yao Qi <yao.qi@linaro.org>
9699 * configure.srv: Append arm.o to srv_tgtobj for
9700 aarch64*-*-linux* target.
9701 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9702 from linux-arm-low.c.
9703 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9704 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9705 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9706 (thumb2_breakpoint_len): Likewise.
9707 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9708 (arm_breakpoint_kinds): Likewise.
9709 (arm_breakpoint_kind_from_pc): Likewise.
9710 (arm_sw_breakpoint_from_kind): Likewise.
9711 (arm_breakpoint_kind_from_current_state): Likewise.
9712 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9713 (arm_sw_breakpoint_from_kind): Declare.
9714 (arm_breakpoint_kind_from_current_state): Declare.
9715 (arm_breakpoint_at): Declare.
9716 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9717 arm_sw_breakpoint_from_kind if process is 32-bit.
9718 (aarch64_breakpoint_kind_from_pc): New function.
9719 (aarch64_breakpoint_kind_from_current_state): New function.
9720 (the_low_target): Initialize fields breakpoint_kind_from_pc
9721 and breakpoint_kind_from_current_state.
9722 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9723 linux-aarch32-low.c.
9724 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9725 (arm_breakpoint, arm_breakpoint_len): Likewise.
9726 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9727 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9728 (arm_is_thumb_mode): Likewise.
9729 (arm_breakpoint_at): Likewise.
9730 (arm_breakpoint_kind_from_pc): Likewise.
9731 (arm_sw_breakpoint_from_kind): Likewise.
9732 (arm_breakpoint_kind_from_current_state): Likewise.
9735 2015-08-04 Yao Qi <yao.qi@linaro.org>
9737 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9738 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9739 * server.c (extended_protocol): Remove "static".
9740 * server.h (extended_protocol): Declare it.
9742 2015-12-04 Josh Stone <jistone@redhat.com>
9744 * target.h (struct target_ops) <arch_setup>: Rename to ...
9745 (struct target_ops) <post_create_inferior>: ... this.
9746 (target_arch_setup): Rename to ...
9747 (target_post_create_inferior): ... this, calling post_create_inferior.
9748 * server.c (start_inferior): Update target_arch_setup calls to
9749 target_post_create_inferior.
9750 * linux-low.c (linux_low_ptrace_options): Forward declare.
9751 (linux_arch_setup): Update its comment for general use.
9752 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9753 (struct linux_target_ops): Use linux_post_create_inferior.
9754 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9755 to post_create_inferior.
9756 * nto-low.c (struct nto_target_ops): Likewise.
9757 * spu-low.c (struct spu_target_ops): Likewise.
9758 * win32-low.c (struct win32_target_ops): Likewise.
9760 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9762 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9764 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9766 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9767 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9768 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9769 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9770 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9771 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9772 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9773 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9774 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9775 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9776 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9777 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9779 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9781 * linux-low.c (linux_look_up_symbols): Don't call
9782 linux_supports_traceclone.
9783 * linux-low.h (thread_db_init): Remove use_events argument.
9784 * thread-db.c (thread_db_use_event): Remove global variable.
9785 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9786 (struct thread_db) <td_create_bp>: Remove field.
9787 (thread_db_create_event): Remove function.
9788 (thread_db_enable_reporting): Likewise.
9789 (find_one_thread): Don't check for thread_db_use_events.
9790 (attach_thread): Likewise.
9791 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9792 (try_thread_db_load_1): Don't check for thread_db_use_events.
9793 (thread_db_init): Remove use_events argument and thread events
9795 (remove_thread_event_breakpoints): Remove function.
9796 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9798 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9800 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9802 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9803 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9804 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9805 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9806 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9808 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9810 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9811 * linux-low.c (can_hardware_single_step): Use
9812 supports_hardware_single_step.
9813 (can_software_single_step): New function.
9814 (start_step_over): Call can_software_single_step.
9815 (linux_supports_hardware_single_step): New function.
9816 (struct target_ops) <supports_software_single_step>: Initialize.
9817 * linux-low.h (struct linux_target_ops)
9818 <supports_hardware_single_step>: Initialize.
9819 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9820 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9821 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9822 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9823 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9824 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9825 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9826 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9827 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9828 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9830 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9831 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9833 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9834 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9835 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9837 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9838 * target.h (struct target_ops): <supports_software_single_step>:
9840 (target_supports_software_single_step): New macro.
9842 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9844 * linux-low.c (linux_wait_1): Fix pc advance condition.
9845 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9846 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9848 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9850 * linux-arm-low.c (arm_is_thumb_mode): New function.
9851 (arm_breakpoint_at): Use arm_is_thumb_mode.
9852 (arm_breakpoint_kind_from_current_state): New function.
9853 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9855 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9856 (linux_breakpoint_kind_from_current_state): New function.
9857 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9858 * linux-low.h (struct linux_target_ops)
9859 <breakpoint_kind_from_current_state>: New field.
9860 * target.h (struct target_ops): Likewise.
9861 (target_breakpoint_kind_from_current_state): New macro.
9863 2015-11-30 Pedro Alves <palves@redhat.com>
9865 * linux-low.c (linux_resume): Wake up the event loop before
9868 2015-11-30 Pedro Alves <palves@redhat.com>
9870 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9872 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9874 * target.c (struct thread_search): New structure.
9875 (thread_search_callback): New function.
9876 (prev_general_thread): New global.
9877 (prepare_to_access_memory, done_accessing_memory): New functions.
9878 * target.h (prepare_to_access_memory, done_accessing_memory):
9879 Replace macros with function declarations.
9881 2015-11-30 Pedro Alves <palves@redhat.com>
9884 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9885 report TARGET_WAITKIND_NO_RESUMED.
9886 * remote-utils.c (prepare_resume_reply): Handle
9887 TARGET_WAITKIND_NO_RESUMED.
9888 * server.c (report_no_resumed): New global.
9889 (handle_query) <qSupported>: Handle "no-resumed+". Report
9890 "no-resumed+" support.
9891 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9892 return error if the client doesn't support no-resumed events.
9893 (push_stop_notification): New function.
9894 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9895 events if the client supports them.
9897 2015-11-30 Pedro Alves <palves@redhat.com>
9899 * linux-low.c (thread_still_has_status_pending_p): Don't check
9901 (lwp_resumed): New function.
9902 (status_pending_p_callback): Return early if the LWP is not
9903 supposed to be resumed.
9905 2015-11-30 Pedro Alves <palves@redhat.com>
9907 * linux-low.c (handle_extended_wait): Assert that the LWP's
9908 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9909 thread create events, leave the new child's status pending.
9910 (linux_low_filter_event): If GDB wants to hear about thread exit
9911 events, leave the LWP marked dead and don't delete it.
9912 (linux_wait_for_event_filtered): Don't check for thread exit.
9913 (filter_exit_event): New function.
9914 (linux_wait_1): Use it, when returning an exit event.
9915 (linux_resume_one_lwp_throw): Assert that the LWP's
9916 waitstatus is TARGET_WAITKIND_IGNORE.
9917 * remote-utils.c (prepare_resume_reply): Handle
9918 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9919 * server.c (report_thread_events): New global.
9920 (handle_general_set): Handle QThreadEvents.
9921 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9922 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9923 TARGET_WAITKIND_THREAD_EXITED.
9924 * server.h (report_thread_events): Declare.
9926 2015-11-30 Pedro Alves <palves@redhat.com>
9928 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9929 the thread's last_resume_kind was resume_stop.
9931 2015-11-30 Pedro Alves <palves@redhat.com>
9933 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9936 2015-11-30 Pedro Alves <palves@redhat.com>
9938 * server.c (handle_v_requests): Handle vCtrlC.
9940 2015-11-30 Pedro Alves <palves@redhat.com>
9942 * gdbthread.h (find_any_thread_of_pid): Declare.
9943 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9945 * server.c (handle_query): If current_thread is NULL, look for
9946 another thread of the selected process.
9948 2015-11-26 Daniel Colascione <dancol@dancol.org>
9949 Simon Marchi <simon.marchi@ericsson.com>
9951 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9952 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9954 * target.h (struct target_ops) <thread_name>: New field.
9955 (target_thread_name): New macro.
9957 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9959 * regcache.h (regcache_invalidate_pid): Add declaration.
9960 * regcache.c (regcache_invalidate_pid): New function, extracted
9961 from regcache_invalidate.
9962 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9963 Add trivial documentation comment.
9964 * lynx-low.c: Use regcache_invalidate_pid instead of
9965 regcache_invalidate.
9967 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9969 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9970 and Elf64_auxv_t if the target is Android.
9972 2015-11-22 Doug Evans <xdje42@gmail.com>
9974 * target.h: #include <sys/types.h>.
9976 2015-11-19 Pedro Alves <palves@redhat.com>
9978 * linux-low.c (linux_process_qsupported): Change prototype.
9980 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9982 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9983 and adjust to loop over all features.
9984 * server.c (handle_query) <qSupported>: Adjust to call
9985 target_process_qsupported once, passing it a vector of unprocessed
9987 * target.h (struct target_ops) <process_qsupported>: Change
9989 (target_process_qsupported): Adjust.
9991 2015-11-19 Pedro Alves <palves@redhat.com>
9993 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9995 * configure: Regenerate.
9997 2015-11-19 Pedro Alves <palves@redhat.com>
9999 * configure: Regenerate.
10001 2015-11-19 Yao Qi <yao.qi@linaro.org>
10003 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
10006 2015-11-19 Yao Qi <yao.qi@linaro.org>
10008 * linux-aarch64-low.c (enum aarch64_operand_type): New.
10009 (struct aarch64_operand): Move enum out.
10011 2015-11-19 Yao Qi <yao.qi@linaro.org>
10013 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
10014 struct user_fpsimd_state *.
10015 (aarch64_store_fpregset): Likewise.
10017 2015-11-19 Yao Qi <yao.qi@linaro.org>
10019 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
10020 struct user_pt_regs *.
10021 (aarch64_store_gregset): Likewise.
10023 2015-11-18 Pedro Alves <palves@redhat.com>
10025 * Makefile.in (all_object_files): Add $IPA_OBJS.
10027 2015-11-17 Pedro Alves <palves@redhat.com>
10029 * win32-low.c (win32_resume): Use gdb_signal_from_host,
10030 GDB_SIGNAL_0 and gdb_signal_to_string.
10032 2015-11-17 Pedro Alves <palves@redhat.com>
10034 * win32-low.c (handle_output_debug_string): Remove parameter.
10035 (win32_kill): Remove our_status local and adjust call to
10036 handle_output_debug_string.
10037 (get_child_debug_event): Adjust call to
10038 handle_output_debug_string.
10040 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10042 * linux-mips-low.c (mips_fill_gregset): Add cast.
10043 (mips_store_gregset): Likewise.
10044 (mips_fill_fpregset): Likewise.
10045 (mips_store_fpregset): Likewise.
10047 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10049 * linux-mips-low.c (mips_add_watchpoint): Rename private to
10052 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10054 * linux-mips-low.c (mips_linux_new_thread): Change type of
10055 watch_type to enum target_hw_bp_type.
10057 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10059 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
10060 Change return type to arm_hwbp_type.
10062 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10064 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
10065 (arm_store_gregset): Likewise.
10066 * linux-arm-low.c (arm_get_hwcap): Likewise.
10067 (arm_read_description): Likewise.
10069 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10071 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
10073 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10075 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
10076 (ppc_fill_vsxregset): Likewise.
10077 (ppc_store_vsxregset): Likewise.
10078 (ppc_fill_vrregset): Likewise.
10079 (ppc_store_vrregset): Likewise.
10080 (ppc_fill_evrregset): Likewise.
10081 (ppc_store_evrregset): Likewise.
10083 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10085 * linux-ppc-low.c (ppc_usrregs_info): Remove
10086 forward-declaration.
10087 (ppc_arch_setup): Move lower in file.
10089 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
10091 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
10092 (ps_pdwrite): Likewise.
10094 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
10096 * linux-arm-low.c (arm_new_thread): Move pointer dereference
10097 to after assert checks.
10099 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
10101 * proc-service.c (ps_pdread): Add/adjust casts.
10102 (ps_pdwrite): Add/adjust casts.
10104 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10106 * server.c (handle_search_memory_1): Cast return value of
10109 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10111 * server.c (write_qxfer_response): Change type of data to
10114 2015-10-29 Pedro Alves <palves@redhat.com>
10116 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
10118 2015-10-29 Pedro Alves <palves@redhat.com>
10120 * tracepoint.c (clear_installed_tracepoints): Add casts.
10122 2015-10-29 Pedro Alves <palves@redhat.com>
10124 * server.c (handle_v_cont, process_serial_event): Add enum
10125 gdb_signal casts to signal parsing code.
10127 2015-10-29 Pedro Alves <palves@redhat.com>
10129 * linux-low.h (NULL_REGSET): Define.
10130 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10131 * linux-arm-low.c (arm_regsets): Likewise.
10132 * linux-crisv32-low.c (cris_regsets): Likewise.
10133 * linux-m68k-low.c (m68k_regsets): Likewise.
10134 * linux-mips-low.c (mips_regsets): Likewise.
10135 * linux-nios2-low.c (nios2_regsets): Likewise.
10136 * linux-ppc-low.c (ppc_regsets): Likewise.
10137 * linux-s390-low.c (s390_regsets): Likewise.
10138 * linux-sh-low.c (sh_regsets): Likewise.
10139 * linux-sparc-low.c (sparc_regsets): Likewise.
10140 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10141 * linux-tile-low.c (tile_regsets): Likewise.
10142 * linux-x86-low.c (x86_regsets): Likewise.
10143 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10145 2015-10-29 Pedro Alves <palves@redhat.com>
10147 * linux-low.h (NULL_REGSET): Define.
10148 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10149 * linux-arm-low.c (arm_regsets): Likewise.
10150 * linux-crisv32-low.c (cris_regsets): Likewise.
10151 * linux-m68k-low.c (m68k_regsets): Likewise.
10152 * linux-mips-low.c (mips_regsets): Likewise.
10153 * linux-nios2-low.c (nios2_regsets): Likewise.
10154 * linux-ppc-low.c (ppc_regsets): Likewise.
10155 * linux-s390-low.c (s390_regsets): Likewise.
10156 * linux-sh-low.c (sh_regsets): Likewise.
10157 * linux-sparc-low.c (sparc_regsets): Likewise.
10158 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10159 * linux-tile-low.c (tile_regsets): Likewise.
10160 * linux-x86-low.c (x86_regsets): Likewise.
10161 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10163 2015-10-26 Doug Evans <dje@google.com>
10165 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
10167 2015-10-26 Doug Evans <dje@google.com>
10169 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
10171 2015-10-26 Doug Evans <dje@google.com>
10173 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
10175 (attach_thread, find_new_threads_callback): Ditto.
10177 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10179 * mem-break.h (set_breakpoint_data): Remove.
10181 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10183 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
10184 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10185 (initialize_low): Remove set_breakpoint_data call.
10186 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
10187 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
10188 (initialize_low): Remove set_breakpoint_data call.
10189 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
10190 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10191 (initialize_low): Remove set_breakpoint_data call.
10193 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10195 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
10196 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
10197 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
10198 * target.h (target_breakpoint_kind_from_pc): New macro.
10200 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
10202 * linux-low.c (default_breakpoint_kind_from_pc): New function.
10203 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
10204 the default breakpoint kind.
10206 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10208 * linux-arm-low.c (arm_supports_z_point_type): Add software
10209 breakpoint support.
10211 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10213 * linux-arm-low.c: Refactor breakpoint definitions.
10214 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
10215 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
10217 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10219 * Makefile.in: Add arm.c/o.
10220 * configure.srv: Likewise.
10221 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
10222 (arm_breakpoint_kind_from_pc): New function.
10223 (arm_sw_breakpoint_from_kind): Return proper kind.
10224 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
10226 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10228 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
10230 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
10231 (struct raw_breakpoint) <size>: Remove.
10232 (struct raw_breakpoint) <kind>: Add.
10233 (bp_size): New function.
10234 (bp_opcode): Likewise.
10235 (find_raw_breakpoint_at): Adjust for kind.
10236 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
10237 (remove_memory_breakpoint): Adjust for kind call bp_size.
10238 (set_raw_breakpoint_at): Adjust for kind.
10239 (set_breakpoint): Likewise.
10240 (set_breakpoint_at): Call breakpoint_kind_from_pc.
10241 (delete_raw_breakpoint): Adjust for kind.
10242 (delete_breakpoint): Likewise.
10243 (find_gdb_breakpoint): Likewise.
10244 (set_gdb_breakpoint_1): Likewise.
10245 (set_gdb_breakpoint): Likewise.
10246 (delete_gdb_breakpoint_1): Likewise.
10247 (delete_gdb_breakpoint): Likewise.
10248 (uninsert_raw_breakpoint): Likewise.
10249 (reinsert_raw_breakpoint): Likewise.
10250 (set_breakpoint_data): Remove.
10251 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
10252 (check_mem_read): Adjust for kind call bp_size.
10253 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
10254 (clone_one_breakpoint): Adjust for kind.
10255 * mem-break.h (set_gdb_breakpoint): Likewise.
10256 (delete_gdb_breakpoint): Likewise.
10257 * server.c (process_serial_event): Likewise.
10259 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10261 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
10262 (struct linux_target_ops) <breakpoint>: Remove.
10263 (struct linux_target_ops) <breakpoint_len>: Remove.
10264 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10265 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10266 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
10267 (arm_sw_breakpoint_from_kind): New function.
10268 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
10269 (struct linux_target_ops) <breakpoint>: Remove.
10270 (struct linux_target_ops) <breakpoint_len>: Remove.
10271 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10272 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10273 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
10274 (struct linux_target_ops) <breakpoint>: Remove.
10275 (struct linux_target_ops) <breakpoint_len>: Remove.
10276 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10277 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10278 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
10279 (struct linux_target_ops) <breakpoint>: Remove.
10280 (struct linux_target_ops) <breakpoint_len>: Remove.
10281 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10282 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10283 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
10284 and sw_breakpoint_from_kind to increment the pc.
10285 (linux_breakpoint_kind_from_pc): New function.
10286 (linux_sw_breakpoint_from_kind): New function.
10287 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
10288 (initialize_low): Call breakpoint_kind_from_pc and
10289 sw_breakpoint_from_kind to replace breakpoint_data/len.
10290 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
10292 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
10293 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
10294 (struct linux_target_ops) <breakpoint>: Remove.
10295 (struct linux_target_ops) <breakpoint_len>: Remove.
10296 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10297 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10298 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
10299 (struct linux_target_ops) <breakpoint>: Remove.
10300 (struct linux_target_ops) <breakpoint_len>: Remove.
10301 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10302 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10303 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
10304 (struct linux_target_ops) <breakpoint>: Remove.
10305 (struct linux_target_ops) <breakpoint_len>: Remove.
10306 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10307 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10308 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
10309 (struct linux_target_ops) <breakpoint>: Remove.
10310 (struct linux_target_ops) <breakpoint_len>: Remove.
10311 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10312 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10313 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
10314 (struct linux_target_ops) <breakpoint>: Remove.
10315 (struct linux_target_ops) <breakpoint_len>: Remove.
10316 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10317 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10318 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
10319 (struct linux_target_ops) <breakpoint>: Remove.
10320 (struct linux_target_ops) <breakpoint_len>: Remove.
10321 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10322 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10323 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
10324 (struct linux_target_ops) <breakpoint>: Remove.
10325 (struct linux_target_ops) <breakpoint_len>: Remove.
10326 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10327 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10328 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
10329 (struct linux_target_ops) <breakpoint>: Remove.
10330 (struct linux_target_ops) <breakpoint_len>: Remove.
10331 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10332 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10333 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
10334 (struct linux_target_ops) <breakpoint>: Remove.
10335 (struct linux_target_ops) <breakpoint_len>: Remove.
10336 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10337 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10338 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
10339 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
10340 (struct linux_target_ops) <breakpoint>: Remove.
10341 (struct linux_target_ops) <breakpoint_len>: Remove.
10342 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10343 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10344 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
10345 (struct linux_target_ops) <breakpoint>: Remove.
10346 (struct linux_target_ops) <breakpoint_len>: Remove.
10347 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10348 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10350 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10352 * linux-cris-low.c (cris_get_pc): Remove void arg.
10354 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10356 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
10359 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10361 * inferiors.c (thread_pid_matches_callback): New function.
10362 (find_thread_process): New function.
10363 (remove_thread): Reset current_thread.
10364 (remove_process): Assert threads have been removed first.
10366 2015-10-15 Yao Qi <yao.qi@linaro.org>
10368 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
10370 (aarch64_remove_point): Likewise.
10371 * regcache.c (regcache_register_size): New function.
10373 2015-10-12 Yao Qi <yao.qi@linaro.org>
10375 * linux-aarch64-low.c: Update all callers as emit_load_store
10376 is renamed to aarch64_emit_load_store.
10378 2015-10-12 Yao Qi <yao.qi@linaro.org>
10380 * linux-aarch64-low.c: Update all callers of function renaming
10381 from emit_insn to aarch64_emit_insn.
10383 2015-10-12 Yao Qi <yao.qi@linaro.org>
10385 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10386 arch/aarch64-insn.h.
10387 (struct aarch64_memory_operand): Likewise.
10388 (ENCODE): Likewise.
10389 (emit_insn): Move to arch/aarch64-insn.c.
10390 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10391 (emit_load_store): Move to arch/aarch64-insn.c.
10392 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10393 (can_encode_int32): Remove.
10395 2015-10-12 Yao Qi <yao.qi@linaro.org>
10397 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10398 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10399 (aarch64_relocate_instruction): Likewise.
10400 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10401 (struct aarch64_insn_visitor): Likewise.
10403 2015-10-12 Yao Qi <yao.qi@linaro.org>
10405 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10406 (struct aarch64_insn_visitor): New.
10407 (struct aarch64_insn_relocation_data): New.
10408 (aarch64_ftrace_insn_reloc_b): New function.
10409 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10410 (aarch64_ftrace_insn_reloc_cb): Likewise.
10411 (aarch64_ftrace_insn_reloc_tb): Likewise.
10412 (aarch64_ftrace_insn_reloc_adr): Likewise.
10413 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10414 (aarch64_ftrace_insn_reloc_others): Likewise.
10416 (aarch64_relocate_instruction): Use visitor.
10418 2015-10-12 Yao Qi <yao.qi@linaro.org>
10420 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10421 int. Add argument buf.
10422 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10423 aarch64_relocate_instruction.
10425 2015-10-12 Yao Qi <yao.qi@linaro.org>
10427 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10428 argument insn. Remove local variable insn. Don't call
10429 target_read_uint32.
10430 (aarch64_install_fast_tracepoint_jump_pad): Call
10431 target_read_uint32.
10433 2015-09-30 Yao Qi <yao.qi@linaro.org>
10435 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10436 (emit_load_store_pair): Likewise.
10438 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10440 * dll.c (match_dll): Add cast(s).
10441 (unloaded_dll): Likewise.
10442 * linux-low.c (second_thread_of_pid_p): Likewise.
10443 (delete_lwp_callback): Likewise.
10444 (count_events_callback): Likewise.
10445 (select_event_lwp_callback): Likewise.
10446 (linux_set_resume_request): Likewise.
10447 * server.c (accumulate_file_name_length): Likewise.
10448 (emit_dll_description): Likewise.
10449 (handle_qxfer_threads_worker): Likewise.
10450 (visit_actioned_threads): Likewise.
10451 * thread-db.c (any_thread_of): Likewise.
10452 * tracepoint.c (same_process_p): Likewise.
10453 (match_blocktype): Likewise.
10454 (build_traceframe_info_xml): Likewise.
10456 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10458 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10460 (gdb_unparse_agent_expr): Likewise.
10461 * hostio.c (require_data): Likewise.
10462 (handle_pread): Likewise.
10463 * linux-low.c (disable_regset): Likewise.
10464 (fetch_register): Likewise.
10465 (store_register): Likewise.
10466 (get_dynamic): Likewise.
10467 (linux_qxfer_libraries_svr4): Likewise.
10468 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10469 (set_fast_tracepoint_jump): Likewise.
10470 (uninsert_fast_tracepoint_jumps_at): Likewise.
10471 (reinsert_fast_tracepoint_jumps_at): Likewise.
10472 (validate_inserted_breakpoint): Likewise.
10473 (clone_agent_expr): Likewise.
10474 * regcache.c (init_register_cache): Likewise.
10475 * remote-utils.c (putpkt_binary_1): Likewise.
10476 (decode_M_packet): Likewise.
10477 (decode_X_packet): Likewise.
10478 (look_up_one_symbol): Likewise.
10479 (relocate_instruction): Likewise.
10480 (monitor_output): Likewise.
10481 * server.c (handle_search_memory): Likewise.
10482 (handle_qxfer_exec_file): Likewise.
10483 (handle_qxfer_libraries): Likewise.
10484 (handle_qxfer): Likewise.
10485 (handle_query): Likewise.
10486 (handle_v_cont): Likewise.
10487 (handle_v_run): Likewise.
10488 (captured_main): Likewise.
10489 * target.c (write_inferior_memory): Likewise.
10490 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10491 * tracepoint.c (init_trace_buffer): Likewise.
10492 (add_tracepoint_action): Likewise.
10493 (add_traceframe): Likewise.
10494 (add_traceframe_block): Likewise.
10495 (cmd_qtdpsrc): Likewise.
10496 (cmd_qtdv): Likewise.
10497 (cmd_qtstatus): Likewise.
10498 (response_source): Likewise.
10499 (response_tsv): Likewise.
10500 (cmd_qtnotes): Likewise.
10501 (gdb_collect): Likewise.
10502 (initialize_tracepoint): Likewise.
10504 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10506 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10507 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10508 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10510 (enum aarch64_condition_codes): New enum.
10511 (w0): New static global.
10514 (struct aarch64_memory_operand) <type>: New
10515 MEMORY_OPERAND_POSTINDEX type.
10516 (postindex_memory_operand): New helper function.
10517 (emit_ret): New function.
10518 (emit_load_store_pair): New function, factored out of emit_stp
10519 with support for MEMORY_OPERAND_POSTINDEX.
10520 (emit_stp): Rewrite using emit_load_store_pair.
10521 (emit_ldp): New function.
10522 (emit_load_store): Likewise.
10523 (emit_ldr): Mention post-index instruction in comment.
10524 (emit_ldrh): New function.
10525 (emit_ldrb): New function.
10526 (emit_ldrsw): Mention post-index instruction in comment.
10527 (emit_str): Likewise.
10528 (emit_subs): New function.
10529 (emit_cmp): Likewise.
10530 (emit_and): Likewise.
10531 (emit_orr): Likewise.
10532 (emit_orn): Likewise.
10533 (emit_eor): Likewise.
10534 (emit_mvn): Likewise.
10535 (emit_lslv): Likewise.
10536 (emit_lsrv): Likewise.
10537 (emit_asrv): Likewise.
10538 (emit_mul): Likewise.
10539 (emit_sbfm): Likewise.
10540 (emit_sbfx): Likewise.
10541 (emit_ubfm): Likewise.
10542 (emit_ubfx): Likewise.
10543 (emit_csinc): Likewise.
10544 (emit_cset): Likewise.
10545 (emit_nop): Likewise.
10546 (emit_ops_insns): New helper function.
10547 (emit_pop): Likewise.
10548 (emit_push): Likewise.
10549 (aarch64_emit_prologue): New function.
10550 (aarch64_emit_epilogue): Likewise.
10551 (aarch64_emit_add): Likewise.
10552 (aarch64_emit_sub): Likewise.
10553 (aarch64_emit_mul): Likewise.
10554 (aarch64_emit_lsh): Likewise.
10555 (aarch64_emit_rsh_signed): Likewise.
10556 (aarch64_emit_rsh_unsigned): Likewise.
10557 (aarch64_emit_ext): Likewise.
10558 (aarch64_emit_log_not): Likewise.
10559 (aarch64_emit_bit_and): Likewise.
10560 (aarch64_emit_bit_or): Likewise.
10561 (aarch64_emit_bit_xor): Likewise.
10562 (aarch64_emit_bit_not): Likewise.
10563 (aarch64_emit_equal): Likewise.
10564 (aarch64_emit_less_signed): Likewise.
10565 (aarch64_emit_less_unsigned): Likewise.
10566 (aarch64_emit_ref): Likewise.
10567 (aarch64_emit_if_goto): Likewise.
10568 (aarch64_emit_goto): Likewise.
10569 (aarch64_write_goto_address): Likewise.
10570 (aarch64_emit_const): Likewise.
10571 (aarch64_emit_call): Likewise.
10572 (aarch64_emit_reg): Likewise.
10573 (aarch64_emit_pop): Likewise.
10574 (aarch64_emit_stack_flush): Likewise.
10575 (aarch64_emit_zero_ext): Likewise.
10576 (aarch64_emit_swap): Likewise.
10577 (aarch64_emit_stack_adjust): Likewise.
10578 (aarch64_emit_int_call_1): Likewise.
10579 (aarch64_emit_void_call_2): Likewise.
10580 (aarch64_emit_eq_goto): Likewise.
10581 (aarch64_emit_ne_goto): Likewise.
10582 (aarch64_emit_lt_goto): Likewise.
10583 (aarch64_emit_le_goto): Likewise.
10584 (aarch64_emit_gt_goto): Likewise.
10585 (aarch64_emit_ge_got): Likewise.
10586 (aarch64_emit_ops_impl): New static global variable.
10587 (aarch64_emit_ops): New target function, return
10588 &aarch64_emit_ops_impl.
10589 (struct linux_target_ops): Install it.
10591 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10593 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10594 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10596 * linux-aarch64-ipa.c: New file.
10597 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10599 (aarch64_get_thread_area): New target method.
10600 (extract_signed_bitfield): New helper function.
10601 (aarch64_decode_ldr_literal): New function.
10602 (enum aarch64_opcodes): New enum.
10603 (struct aarch64_register): New struct.
10604 (struct aarch64_operand): New struct.
10605 (x0): New static global.
10614 (aarch64_register): New helper function.
10615 (register_operand): Likewise.
10616 (immediate_operand): Likewise.
10617 (struct aarch64_memory_operand): New struct.
10618 (offset_memory_operand): New helper function.
10619 (preindex_memory_operand): Likewise.
10620 (enum aarch64_system_control_registers): New enum.
10621 (ENCODE): New macro.
10622 (emit_insn): New helper function.
10623 (emit_b): New function.
10624 (emit_bcond): Likewise.
10625 (emit_cb): Likewise.
10626 (emit_tb): Likewise.
10627 (emit_blr): Likewise.
10628 (emit_stp): Likewise.
10629 (emit_ldp_q_offset): Likewise.
10630 (emit_stp_q_offset): Likewise.
10631 (emit_load_store): Likewise.
10632 (emit_ldr): Likewise.
10633 (emit_ldrsw): Likewise.
10634 (emit_str): Likewise.
10635 (emit_ldaxr): Likewise.
10636 (emit_stxr): Likewise.
10637 (emit_stlr): Likewise.
10638 (emit_data_processing_reg): Likewise.
10639 (emit_data_processing): Likewise.
10640 (emit_add): Likewise.
10641 (emit_sub): Likewise.
10642 (emit_mov): Likewise.
10643 (emit_movk): Likewise.
10644 (emit_mov_addr): Likewise.
10645 (emit_mrs): Likewise.
10646 (emit_msr): Likewise.
10647 (emit_sevl): Likewise.
10648 (emit_wfe): Likewise.
10649 (append_insns): Likewise.
10650 (can_encode_int32_in): New helper function.
10651 (aarch64_relocate_instruction): New function.
10652 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10653 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10654 (struct linux_target_ops): Install aarch64_get_thread_area,
10655 aarch64_install_fast_tracepoint_jump_pad and
10656 aarch64_get_min_fast_tracepoint_insn_len.
10658 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10660 * Makefile.in (aarch64-insn.o): New rule.
10661 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10663 2015-09-21 Yao Qi <yao.qi@linaro.org>
10665 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10667 2015-09-21 Yao Qi <yao.qi@linaro.org>
10669 * tracepoint.c (max_jump_pad_size): Remove.
10671 2015-09-18 Yao Qi <yao.qi@linaro.org>
10673 * linux-aarch64-low.c: Don't include sys/uio.h.
10674 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10676 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
10678 * tracepoint.c (eval_result_type): Change prototype.
10679 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10681 2015-09-15 Pedro Alves <palves@redhat.com>
10683 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10684 Check whether to report exec events instead of checking whether
10685 multiprocess is enabled.
10687 2015-09-15 Pedro Alves <palves@redhat.com>
10690 * remote-utils.c (prepare_resume_reply): Merge
10691 TARGET_WAITKIND_VFORK_DONE switch case with the
10692 TARGET_WAITKIND_FORKED case.
10694 2015-09-15 Yao Qi <yao.qi@linaro.org>
10696 * server.c (handle_query): Check string comparison using
10697 "else if" instead of "if".
10699 2015-09-15 Yao Qi <yao.qi@linaro.org>
10701 * server.c (vCont_supported): New global variable.
10702 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10703 matches. Append ";vContSupported+" to own_buf.
10704 (handle_v_requests): Append ";s;S" to own_buf if target supports
10705 hardware single step or vCont_supported is false.
10706 (capture_main): Set vCont_supported to zero.
10708 2015-09-15 Yao Qi <yao.qi@linaro.org>
10710 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10712 (linux_supports_hardware_single_step): ... New function.
10713 (linux_target_ops): Update.
10714 * lynx-low.c (lynx_target_ops): Set field
10715 supports_hardware_single_step to target_can_do_hardware_single_step.
10716 * nto-low.c (nto_target_ops): Likewise.
10717 * spu-low.c (spu_target_ops): Likewise.
10718 * win32-low.c (win32_target_ops): Likewise.
10719 * target.c (target_can_do_hardware_single_step): New function.
10720 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10721 Remove. <supports_hardware_single_step>: New field.
10722 (target_supports_conditional_breakpoints): Remove.
10723 (target_supports_hardware_single_step): New macro.
10724 (target_can_do_hardware_single_step): Declare.
10725 * server.c (handle_query): Use target_supports_hardware_single_step
10726 instead of target_supports_conditional_breakpoints.
10728 2015-09-15 Yao Qi <yao.qi@linaro.org>
10730 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10732 (struct linux_target_ops the_low_target): Install
10733 aarch64_linux_siginfo_fixup.
10735 2015-09-11 Don Breazeal <donb@codesourcery.com>
10736 Luis Machado <lgustavo@codesourcery.com>
10738 * linux-low.c (linux_mourn): Static declaration.
10739 (linux_arch_setup): Move in front of
10740 handle_extended_wait.
10741 (linux_arch_setup_thread): New function.
10742 (handle_extended_wait): Handle exec events. Call
10743 linux_arch_setup_thread. Make event_lwp argument a
10744 pointer-to-a-pointer.
10745 (check_zombie_leaders): Do not check stopped threads.
10746 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10747 (linux_low_filter_event): Add lwp and thread for exec'ing
10748 non-leader thread if leader thread has been deleted.
10749 Refactor code into linux_arch_setup_thread and call it.
10750 Pass child lwp pointer by reference to handle_extended_wait.
10751 (linux_wait_for_event_filtered): Update comment.
10752 (linux_wait_1): Prevent clobbering exec event status.
10753 (linux_supports_exec_events): New function.
10754 (linux_target_ops) <supports_exec_events>: Initialize new member.
10755 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10757 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10758 * server.c (report_exec_events): New global variable.
10759 (handle_query): Handle qSupported query for exec-events feature.
10760 (captured_main): Initialize report_exec_events.
10761 * server.h (report_exec_events): Declare new global variable.
10762 * target.h (struct target_ops) <supports_exec_events>: New
10764 (target_supports_exec_events): New macro.
10765 * win32-low.c (win32_target_ops) <supports_exec_events>:
10766 Initialize new member.
10768 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10770 * linux-low.c (linux_low_enable_btrace): Remove.
10771 (linux_target_ops): Replace linux_low_enable_btrace with
10772 linux_enable_btrace.
10774 2015-09-03 Yao Qi <yao.qi@linaro.org>
10776 * linux-aarch64-low.c (aarch64_insert_point): Call
10777 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10780 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10782 * linux-low.c (check_stopped_by_breakpoint): Use
10783 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10785 2015-08-27 Pedro Alves <palves@redhat.com>
10787 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10789 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10791 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10792 the XNEW-family equivalent.
10793 (compile_bytecodes): Likewise.
10794 * dll.c (loaded_dll): Likewise.
10795 * event-loop.c (append_callback_event): Likewise.
10796 (create_file_handler): Likewise.
10797 (create_file_event): Likewise.
10798 * hostio.c (handle_open): Likewise.
10799 * inferiors.c (add_thread): Likewise.
10800 (add_process): Likewise.
10801 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10802 * linux-arm-low.c (arm_new_process): Likewise.
10803 (arm_new_thread): Likewise.
10804 * linux-low.c (add_to_pid_list): Likewise.
10805 (linux_add_process): Likewise.
10806 (handle_extended_wait): Likewise.
10807 (add_lwp): Likewise.
10808 (enqueue_one_deferred_signal): Likewise.
10809 (enqueue_pending_signal): Likewise.
10810 (linux_resume_one_lwp_throw): Likewise.
10811 (linux_resume_one_thread): Likewise.
10812 (linux_read_memory): Likewise.
10813 (linux_write_memory): Likewise.
10814 * linux-mips-low.c (mips_linux_new_process): Likewise.
10815 (mips_linux_new_thread): Likewise.
10816 (mips_add_watchpoint): Likewise.
10817 * linux-x86-low.c (initialize_low_arch): Likewise.
10818 * lynx-low.c (lynx_add_process): Likewise.
10819 * mem-break.c (set_raw_breakpoint_at): Likewise.
10820 (set_breakpoint): Likewise.
10821 (add_condition_to_breakpoint): Likewise.
10822 (add_commands_to_breakpoint): Likewise.
10823 (clone_agent_expr): Likewise.
10824 (clone_one_breakpoint): Likewise.
10825 * regcache.c (new_register_cache): Likewise.
10826 * remote-utils.c (look_up_one_symbol): Likewise.
10827 * server.c (queue_stop_reply): Likewise.
10828 (start_inferior): Likewise.
10829 (queue_stop_reply_callback): Likewise.
10830 (handle_target_event): Likewise.
10831 * spu-low.c (fetch_ppc_memory): Likewise.
10832 (store_ppc_memory): Likewise.
10833 * target.c (set_target_ops): Likewise.
10834 * thread-db.c (thread_db_load_search): Likewise.
10835 (try_thread_db_load_1): Likewise.
10836 * tracepoint.c (add_tracepoint): Likewise.
10837 (add_tracepoint_action): Likewise.
10838 (create_trace_state_variable): Likewise.
10839 (cmd_qtdpsrc): Likewise.
10840 (cmd_qtro): Likewise.
10841 (add_while_stepping_state): Likewise.
10842 * win32-low.c (child_add_thread): Likewise.
10843 (get_image_name): Likewise.
10845 2015-08-25 Yao Qi <yao.qi@linaro.org>
10847 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10849 2015-08-25 Yao Qi <yao.qi@linaro.org>
10851 * Makefile.in (aarch64-linux.o): New rule.
10852 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10854 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10855 (aarch64_init_debug_reg_state): Make it extern.
10856 (aarch64_linux_prepare_to_resume): Remove.
10858 2015-08-25 Yao Qi <yao.qi@linaro.org>
10860 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10861 lwp_arch_private_info and ptid_of_lwp.
10863 2015-08-25 Yao Qi <yao.qi@linaro.org>
10865 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10866 Find proc_info by find_process_pid. All callers updated.
10868 2015-08-25 Yao Qi <yao.qi@linaro.org>
10870 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10872 (debug_reg_change_callback): Remove.
10873 (aarch64_notify_debug_reg_change): Remove.
10875 2015-08-25 Yao Qi <yao.qi@linaro.org>
10877 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10878 Call current_lwp_ptid.
10880 2015-08-25 Yao Qi <yao.qi@linaro.org>
10882 * linux-aarch64-low.c (debug_reg_change_callback): Use
10885 2015-08-25 Yao Qi <yao.qi@linaro.org>
10887 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10889 2015-08-25 Yao Qi <yao.qi@linaro.org>
10891 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10893 2015-08-25 Yao Qi <yao.qi@linaro.org>
10895 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10898 2015-08-25 Yao Qi <yao.qi@linaro.org>
10900 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10902 (debug_reg_change_callback): Remove argument entry and add argument
10903 lwp. Remove local variable thread. Don't print thread id in the
10904 debugging output. Don't check whether pid of thread equals to pid.
10905 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10906 iterate_over_lwps instead find_inferior.
10908 2015-08-24 Pedro Alves <palves@redhat.com>
10910 * inferiors.c (get_first_process): New function.
10911 * inferiors.h (get_first_process): New declaration.
10912 * remote-utils.c (read_ptid): Default to the first process in the
10913 list, instead of to the current thread's process.
10915 2015-08-24 Pedro Alves <palves@redhat.com>
10917 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10918 * event-loop.c: Likewise.
10919 * remote-utils.c: Likewise.
10920 * tracepoint.c: Likewise.
10922 2015-08-24 Pedro Alves <palves@redhat.com>
10924 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10927 2015-08-21 Pedro Alves <palves@redhat.com>
10929 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10930 instead of literal 1.
10932 2015-08-21 Pedro Alves <palves@redhat.com>
10934 * tdesc.c (default_description): Explicitly zero-initialize.
10936 2015-08-21 Pedro Alves <palves@redhat.com>
10939 * inferiors.c (remove_thread): Discard any pending stop reply for
10941 * server.c (remove_all_on_match_pid): Rename to ...
10942 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10944 (discard_queued_stop_replies): Change parameter to a ptid. Now
10946 (handle_v_kill, kill_inferior_callback, captured_main)
10947 (process_serial_event): Adjust.
10948 * server.h (discard_queued_stop_replies): Declare.
10950 2015-08-21 Pedro Alves <palves@redhat.com>
10952 * linux-low.c (wait_for_sigstop): Always switch to no thread
10953 selected if the previously current thread dies.
10954 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10955 process instead of the current thread's.
10956 * remote-utils.c (input_interrupt): Don't check if there's no
10958 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10959 current thread to the general thread fails, error out.
10960 (handle_qxfer_auxv, handle_qxfer_libraries)
10961 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10962 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10963 (handle_query): Check if there's a thread selected instead of
10964 checking whether there's any thread in the thread list.
10965 (handle_qxfer_threads, handle_qxfer_btrace)
10966 (handle_qxfer_btrace_conf): Don't error out early if there's no
10967 thread in the thread list.
10968 (handle_v_cont, myresume): Don't set the current thread to the
10970 (process_serial_event) <Hg handling>: Also set thread_id if the
10971 previous general thread is still alive.
10972 (process_serial_event) <g/G handling>: If setting the current
10973 thread to the general thread fails, error out.
10974 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10975 thread's lwp instead of the current thread's.
10976 * target.c (set_desired_thread): If the desired thread was not
10977 found, leave the current thread pointing to NULL. Return an int
10978 (boolean) indicating success.
10979 * target.h (set_desired_thread): Change return type to int.
10981 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10983 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10984 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10986 (ps_get_thread_area): New function.
10988 2015-08-19 Gary Benson <gbenson@redhat.com>
10990 * hostio.c (handle_pread): Do not attempt to read more data
10991 than hostio_reply_with_data can fit in a packet.
10993 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10995 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10997 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10999 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
11001 2015-08-06 Pedro Alves <palves@redhat.com>
11003 * tracepoint.c (expr_eval_result): Now an int.
11005 2015-08-06 Pedro Alves <palves@redhat.com>
11007 * gdbthread.h (struct regcache): Forward declare.
11008 (struct thread_info) <regcache_data>: Now a struct regcache
11010 * inferiors.c (inferior_regcache_data)
11011 (set_inferior_regcache_data): Now work with struct regcache
11013 * inferiors.h (struct regcache): Forward declare.
11014 (inferior_regcache_data, set_inferior_regcache_data): Now work
11015 with struct regcache pointers.
11016 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
11017 (free_register_cache_thread): Remove struct regcache pointer
11020 2015-08-06 Pedro Alves <palves@redhat.com>
11022 * server.c (captured_main): On error, print the exception message
11023 to stderr, and if run_once is set, throw a quit.
11025 2015-08-06 Pedro Alves <palves@redhat.com>
11027 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
11028 the current thread.
11030 2015-08-06 Pedro Alves <palves@redhat.com>
11032 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
11033 reading beyond the passed in buffer length.
11035 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
11037 * tracepoint.c (symbol_list) <required>: Remove.
11039 2015-08-06 Pedro Alves <palves@redhat.com>
11041 * linux-low.c (handle_extended_wait): Set the fork child's suspend
11042 count if stopping and suspending threads.
11043 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
11044 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
11045 (linux_detach): Complete an ongoing step-over.
11046 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
11048 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
11049 (linux_wait_1): If passing a signal to the inferior after
11050 finishing a step-over, unsuspend and re-resume all lwps. If we
11051 see a single-step event but the thread should be continuing, don't
11052 pass the trap to gdb.
11053 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
11054 internal_error instead of gdb_assert.
11055 (enqueue_pending_signal): New function.
11056 (check_ptrace_stopped_lwp_gone): Add debug output.
11057 (start_step_over): Use internal_error instead of gdb_assert.
11058 (complete_ongoing_step_over): New function.
11059 (linux_resume_one_thread): Don't resume a suspended thread.
11060 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
11063 2015-08-06 Pedro Alves <palves@redhat.com>
11065 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
11066 (linux_thread_alive): Use lwp_is_marked_dead.
11067 (extended_event_reported): Delete.
11068 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
11069 instead of extended_event_reported.
11070 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
11072 (lwp_is_marked_dead): New function.
11073 (lwp_running): Use lwp_is_marked_dead.
11074 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
11077 2015-08-06 Pedro Alves <palves@redhat.com>
11079 * linux-low.c (linux_wait_1): Move fork event output out of the
11080 !report_to_gdb check. Pass event_child->waitstatus to
11081 target_waitstatus_to_string instead of ourstatus.
11083 2015-08-04 Yao Qi <yao.qi@linaro.org>
11085 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
11086 if current_thread is 32 bit.
11088 2015-08-04 Yao Qi <yao.qi@linaro.org>
11090 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
11091 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
11092 * server.c (extended_protocol): Remove "static".
11093 * server.h (extended_protocol): Declare it.
11095 2015-08-04 Yao Qi <yao.qi@linaro.org>
11097 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
11098 both aarch64 and aarch32.
11099 (aarch64_set_pc): Likewise.
11101 2015-08-04 Yao Qi <yao.qi@linaro.org>
11103 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
11104 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
11105 arm-with-neon.xml to srv_xmlfiles.
11106 * linux-aarch64-low.c: Include linux-aarch32-low.h.
11107 (is_64bit_tdesc): New function.
11108 (aarch64_linux_read_description): New function.
11109 (aarch64_arch_setup): Call aarch64_linux_read_description.
11110 (regs_info): Rename to regs_info_aarch64.
11111 (aarch64_regs_info): Return right regs_info.
11112 (initialize_low_arch): Call initialize_low_arch_aarch32.
11114 2015-08-04 Yao Qi <yao.qi@linaro.org>
11116 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
11117 * linux-aarch32-low.c: New file.
11118 * linux-aarch32-low.h: New file.
11119 * linux-arm-low.c (arm_fill_gregset): Move it to
11120 linux-aarch32-low.c.
11121 (arm_store_gregset): Likewise.
11122 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
11123 (arm_store_vfpregset): Call arm_store_vfpregset_num.
11124 (arm_arch_setup): Check if PTRACE_GETREGSET works.
11125 (regs_info): Rename to regs_info_arm.
11126 (arm_regs_info): Return regs_info_aarch32 if
11127 have_ptrace_getregset is 1 and target description is
11128 arm_with_neon or arm_with_vfpv3.
11129 (initialize_low_arch): Don't call init_registers_arm_with_neon.
11130 Call initialize_low_arch_aarch32 instead.
11132 2015-08-04 Yao Qi <yao.qi@linaro.org>
11134 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
11135 * linux-low.c: ... here.
11136 * linux-low.h (have_ptrace_getregset): Declare it.
11138 2015-08-04 Pedro Alves <palves@redhat.com>
11140 * thread-db.c (struct thread_db): Use new typedefs.
11141 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
11143 (disable_thread_event_reporting): Cast result of dlsym to
11144 destination function pointer type.
11145 (thread_db_mourn): Use td_ta_delete_ftype.
11147 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
11149 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
11151 (CDX_BREAKPOINT): Define for R2.
11152 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
11153 (the_low_target): Add comments.
11155 2015-07-30 Yao Qi <yao.qi@linaro.org>
11157 * linux-arm-low.c (arm_hwcap): Remove it.
11158 (arm_read_description): New local variable arm_hwcap. Don't
11159 set arm_hwcap to zero.
11161 2015-07-30 Yao Qi <yao.qi@linaro.org>
11163 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
11164 Use regcache->tdesc instead.
11165 (arm_store_wmmxregset): Likewise.
11166 (arm_fill_vfpregset): Likewise.
11167 (arm_store_vfpregset): Likewise.
11169 2015-07-30 Yao Qi <yao.qi@linaro.org>
11171 * linux-arm-low.c: Include arch/arm.h.
11172 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
11173 (arm_store_gregset): Likewise.
11175 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
11177 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
11178 ptrace's 4th parameter.
11180 2015-07-27 Yao Qi <yao.qi@linaro.org>
11182 * configure.srv (case aarch64*-*-linux*): Don't set
11185 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
11187 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
11189 * linux-arm-low.c: Likewise.
11190 * linux-cris-low.c: Likewise.
11191 * linux-crisv32-low.c: Likewise.
11192 * linux-low.c: Likewise.
11193 * linux-m68k-low.c: Likewise.
11194 * linux-mips-low.c: Likewise.
11195 * linux-nios2-low.c: Likewise.
11196 * linux-s390-low.c: Likewise.
11197 * linux-sparc-low.c: Likewise.
11198 * linux-tic6x-low.c: Likewise.
11199 * linux-tile-low.c: Likewise.
11200 * linux-x86-low.c: Likewise.
11202 2015-07-24 Pedro Alves <palves@redhat.com>
11204 * config.in: Regenerate.
11205 * configure: Regenerate.
11207 2015-07-24 Pedro Alves <palves@redhat.com>
11209 * acinclude.m4: Include ../ptrace.m4.
11210 * configure.ac: Call GDB_AC_PTRACE.
11211 * config.in, configure: Regenerate.
11213 2015-07-24 Yao Qi <yao.qi@linaro.org>
11215 * linux-low.c (linux_create_inferior): Remove setting to
11216 proc->priv->new_inferior.
11217 (linux_attach): Likewise.
11218 (linux_low_filter_event): Likewise.
11219 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
11221 2015-07-24 Yao Qi <yao.qi@linaro.org>
11223 * linux-low.c (linux_arch_setup): New function.
11224 (linux_low_filter_event): If proc->tdesc is NULL and
11225 proc->attached is true, call the_low_target.arch_setup.
11226 Otherwise, keep status pending, and return.
11227 (linux_resume_one_lwp_throw): Don't call get_pc if
11228 thread->while_stepping isn't NULL. Don't call
11229 get_thread_regcache if proc->tdesc is NULL.
11230 (need_step_over_p): Return 0 if proc->tdesc is NULL.
11231 (linux_target_ops): Install arch_setup.
11232 * server.c (start_inferior): Call the_target->arch_setup.
11233 * target.h (struct target_ops) <arch_setup>: New field.
11234 (target_arch_setup): New marco.
11235 * lynx-low.c (lynx_target_ops): Update.
11236 * nto-low.c (nto_target_ops): Update.
11237 * spu-low.c (spu_target_ops): Update.
11238 * win32-low.c (win32_target_ops): Update.
11240 2015-07-24 Yao Qi <yao.qi@linaro.org>
11242 * linux-low.c (linux_add_process): Don't set
11243 proc->priv->new_inferior.
11244 (linux_create_inferior): Set proc->priv->new_inferior to 1.
11245 (linux_attach): Likewise.
11247 2015-07-24 Yao Qi <yao.qi@linaro.org>
11249 * server.c (start_inferior): Code refactor.
11251 2015-07-24 Yao Qi <yao.qi@linaro.org>
11253 * server.c (process_serial_event): Set general_thread.
11255 2015-07-21 Yao Qi <yao.qi@linaro.org>
11257 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
11258 aarch64_linux_get_debug_reg_capacity.
11260 2015-07-17 Yao Qi <yao.qi@linaro.org>
11262 * Makefile.in (aarch64-linux-hw-point.o): New rule.
11263 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
11264 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
11265 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
11266 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
11267 (AARCH64_HWP_ALIGNMENT): Likewise.
11268 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
11269 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
11270 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
11271 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
11272 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
11273 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
11274 (struct aarch64_debug_reg_state): Likewise.
11275 (struct arch_lwp_info): Likewise.
11276 (aarch64_align_watchpoint): Likewise.
11277 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
11278 (aarch64_watchpoint_length): Likewise.
11279 (aarch64_point_encode_ctrl_reg): Likewise
11280 (aarch64_point_is_aligned): Likewise.
11281 (aarch64_align_watchpoint): Likewise.
11282 (aarch64_linux_set_debug_regs):
11283 (aarch64_dr_state_insert_one_point): Likewise.
11284 (aarch64_dr_state_remove_one_point): Likewise.
11285 (aarch64_handle_breakpoint): Likewise.
11286 (aarch64_handle_aligned_watchpoint): Likewise.
11287 (aarch64_handle_unaligned_watchpoint): Likewise.
11288 (aarch64_handle_watchpoint): Likewise.
11290 2015-07-17 Yao Qi <yao.qi@linaro.org>
11292 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
11293 and don't aarch64_get_debug_reg_state. All callers update.
11294 (aarch64_handle_aligned_watchpoint): Likewise.
11295 (aarch64_handle_unaligned_watchpoint): Likewise.
11296 (aarch64_handle_watchpoint): Likewise.
11297 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
11298 (aarch64_remove_point): Likewise.
11300 2015-07-17 Yao Qi <yao.qi@linaro.org>
11302 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
11304 (aarch64_handle_unaligned_watchpoint): Likewise.
11306 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11308 Revert the previous 3 commits:
11309 Move gdb_regex* to common/
11310 Move linux_find_memory_regions_full & co.
11311 gdbserver build-id attribute generator
11313 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11314 Jan Kratochvil <jan.kratochvil@redhat.com>
11316 gdbserver build-id attribute generator.
11317 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
11318 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
11319 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
11321 (get_dynamic): Use find_pdhr to traverse program headers.
11322 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
11323 (compare_mapping_entry_range, struct find_memory_region_callback_data)
11324 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
11325 (get_hex_build_id): New.
11326 (linux_qxfer_libraries_svr4): Add optional build-id attribute
11327 to reply XML document.
11329 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11330 Jan Kratochvil <jan.kratochvil@redhat.com>
11332 * target.c: Include target/target-utils.h and fcntl.h.
11333 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
11334 (target_fileio_read_stralloc): New functions.
11336 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11338 * Makefile.in (OBS): Add gdb_regex.o.
11339 (gdb_regex.o): New.
11340 * config.in: Rebuilt.
11341 * configure: Rebuilt.
11343 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11344 Jan Kratochvil <jan.kratochvil@redhat.com>
11346 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
11347 * Makefile.in (OBS): Add target-utils.o.
11348 (linux-maps.o, target-utils.o): New.
11349 * configure.srv (srv_linux_obj): Add linux-maps.o.
11351 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
11353 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
11354 function, return 1.
11355 (the_low_target): Install it.
11357 2015-07-14 Pedro Alves <palves@redhat.com>
11359 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
11360 Instead, ignore ECHILD, and throw an error for other errnos.
11362 2015-07-10 Pedro Alves <palves@redhat.com>
11364 * event-loop.c (struct callback_event) <data>: Change type to
11365 gdb_client_data instance instead of gdb_client_data pointer.
11366 (append_callback_event): Adjust.
11368 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
11370 * linux-aarch64-low.c: Add comments for each linux_target_ops
11371 method. Remove comments already covered in target_ops and
11372 linux_target_ops definitions.
11373 (the_low_target): Add comments for each unimplemented method.
11375 2015-07-09 Yao Qi <yao.qi@linaro.org>
11377 * linux-aarch64-low.c (aarch64_regmap): Remove.
11378 (aarch64_usrregs_info): Remove.
11379 (regs_info): Set field usrregs to NULL.
11381 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11383 * linux-low.c: Include "rsp-low.h"
11384 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11385 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11386 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11387 (handle_btrace_enable_pt): New.
11388 (handle_btrace_general_set): Support "pt".
11389 (handle_btrace_conf_general_set): Support "pt:size".
11391 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11393 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11396 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11398 * linux-aarch64-low.c: Remove comment about endianness.
11399 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11400 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11403 2015-06-24 Gary Benson <gbenson@redhat.com>
11405 * linux-i386-ipa.c (stdint.h): Do not include.
11406 * lynx-i386-low.c (stdint.h): Likewise.
11407 * lynx-ppc-low.c (stdint.h): Likewise.
11408 * mem-break.c (stdint.h): Likewise.
11409 * thread-db.c (stdint.h): Likewise.
11410 * tracepoint.c (stdint.h): Likewise.
11411 * win32-low.c (stdint.h): Likewise.
11413 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11415 * server.c (write_qxfer_response): Update call to
11416 remote_escape_output.
11418 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11419 Jan Kratochvil <jan.kratochvil@redhat.com>
11421 Merge multiple hex conversions.
11422 * gdbreplay.c (tohex): Rename to 'fromhex'.
11423 (logchar): Use fromhex.
11425 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11427 * server.c (handle_qxfer_libraries): Set `version' attribute for
11430 2015-06-10 Gary Benson <gbenson@redhat.com>
11432 * target.h (struct target_ops) <multifs_open>: New field.
11433 <multifs_unlink>: Likewise.
11434 <multifs_readlink>: Likewise.
11435 * linux-low.c (nat/linux-namespaces.h): New include.
11436 (linux_target_ops): Initialize the_target->multifs_open,
11437 the_target->multifs_unlink and the_target->multifs_readlink.
11438 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11439 * hostio.c (hostio_fs_pid): New static variable.
11440 (hostio_handle_new_gdb_connection): New function.
11441 (handle_setfs): Likewise.
11442 (handle_open): Use the_target->multifs_open as appropriate.
11443 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11444 (handle_readlink): Use the_target->multifs_readlink as
11446 (handle_vFile): Handle vFile:setfs packets.
11447 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11448 after target_handle_new_gdb_connection.
11450 2015-06-10 Gary Benson <gbenson@redhat.com>
11452 * configure.ac (AC_CHECK_FUNCS): Add setns.
11453 * config.in: Regenerate.
11454 * configure: Likewise.
11455 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11456 (linux-namespaces.o): New rule.
11457 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11459 2015-06-09 Gary Benson <gbenson@redhat.com>
11461 * hostio.c (handle_open): Process mode argument with
11462 fileio_to_host_mode.
11464 2015-06-01 Yao Qi <yao.qi@linaro.org>
11466 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11467 * linux-x86-low.c: Likewise.
11469 2015-05-28 Don Breazeal <donb@codesourcery.com>
11471 * linux-low.c (handle_extended_wait): Initialize
11472 thread_info.last_resume_kind for new fork children.
11474 2015-05-15 Pedro Alves <palves@redhat.com>
11476 * target.h (target_handle_new_gdb_connection): Rewrite using if
11477 wrapped in do/while.
11479 2015-05-14 Joel Brobecker <brobecker@adacore.com>
11481 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11482 * configure, config.in: Regenerate.
11483 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11486 2015-05-12 Don Breazeal <donb@codesourcery.com>
11488 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11489 PTRACE_EVENT_VFORK_DONE.
11490 (linux_low_ptrace_options, extended_event_reported): Add vfork
11492 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11493 and "vforkdone" for RSP 'T' Stop Reply Packet.
11494 * server.h (report_vfork_events): Declare
11497 2015-05-12 Don Breazeal <donb@codesourcery.com>
11499 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11500 (the_low_target) <new_fork>: Initialize new member.
11501 * linux-arm-low.c (arm_new_fork): New function.
11502 (the_low_target) <new_fork>: Initialize new member.
11503 * linux-low.c (handle_extended_wait): Call new target function
11505 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11506 * linux-mips-low.c (mips_add_watchpoint): New function
11507 extracted from mips_insert_point.
11508 (the_low_target) <new_fork>: Initialize new member.
11509 (mips_linux_new_fork): New function.
11510 (mips_insert_point): Call mips_add_watchpoint.
11511 * linux-x86-low.c (x86_linux_new_fork): New function.
11512 (the_low_target) <new_fork>: Initialize new member.
11514 2015-05-12 Don Breazeal <donb@codesourcery.com>
11516 * linux-low.c (handle_extended_wait): Implement return value,
11517 rename argument 'event_child' to 'event_lwp', handle
11518 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11519 (linux_low_ptrace_options): New function.
11520 (linux_low_filter_event): Call linux_low_ptrace_options,
11521 use different argument fo linux_enable_event_reporting,
11522 use return value from handle_extended_wait.
11523 (extended_event_reported): New function.
11524 (linux_wait_1): Call extended_event_reported and set
11525 status to report fork events.
11526 (linux_write_memory): Add pid to debug message.
11527 (reset_lwp_ptrace_options_callback): New function.
11528 (linux_handle_new_gdb_connection): New function.
11529 (linux_target_ops): Initialize new structure member.
11530 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11531 * lynx-low.c: Initialize new structure member.
11532 * remote-utils.c (prepare_resume_reply): Implement stop reason
11533 "fork" for "T" stop message.
11534 * server.c (handle_query): Call handle_new_gdb_connection.
11535 * server.h (report_fork_events): Declare global flag.
11536 * target.h (struct target_ops) <handle_new_gdb_connection>:
11538 (target_handle_new_gdb_connection): New macro.
11539 * win32-low.c: Initialize new structure member.
11541 2015-05-12 Don Breazeal <donb@codesourcery.com>
11543 * mem-break.c (APPEND_TO_LIST): Define macro.
11544 (clone_agent_expr): New function.
11545 (clone_one_breakpoint): New function.
11546 (clone_all_breakpoints): New function.
11547 * mem-break.h: Declare new functions.
11549 2015-05-12 Don Breazeal <donb@codesourcery.com>
11551 * linux-low.c (linux_supports_fork_events): New function.
11552 (linux_supports_vfork_events): New function.
11553 (linux_target_ops): Initialize new structure members.
11554 (initialize_low): Call linux_check_ptrace_features.
11555 * lynx-low.c (lynx_target_ops): Initialize new structure
11557 * server.c (report_fork_events, report_vfork_events):
11559 (handle_query): Add new features to qSupported packet and
11561 (captured_main): Initialize new global variables.
11562 * target.h (struct target_ops) <supports_fork_events>:
11564 <supports_vfork_events>: New member.
11565 (target_supports_fork_events): New macro.
11566 (target_supports_vfork_events): New macro.
11567 * win32-low.c (win32_target_ops): Initialize new structure
11570 2015-05-12 Gary Benson <gbenson@redhat.com>
11572 * server.c (handle_qxfer_exec_file): Use current process
11575 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11577 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11578 Remove HAVE_PTRACE_GETREGS conditionals.
11579 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11580 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11582 2015-05-08 Yao Qi <yao.qi@linaro.org>
11584 * linux-low.c (linux_supports_conditional_breakpoints): New
11586 (linux_target_ops): Install new target method.
11587 * lynx-low.c (lynx_target_ops): Install NULL hook for
11588 supports_conditional_breakpoints.
11589 * nto-low.c (nto_target_ops): Likewise.
11590 * spu-low.c (spu_target_ops): Likewise.
11591 * win32-low.c (win32_target_ops): Likewise.
11592 * server.c (handle_query): Check
11593 target_supports_conditional_breakpoints.
11594 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11596 (target_supports_conditional_breakpoints): New macro.
11598 2015-05-06 Pedro Alves <palves@redhat.com>
11601 * server.c (start_inferior): If the process exits, mourn it.
11603 2015-04-21 Gary Benson <gbenson@redhat.com>
11605 * hostio.c (fileio_open_flags_to_host): Factored out to
11606 fileio_to_host_openflags in common/fileio.c. Single use
11609 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11611 * linux-xtensa-low.c (xtensa_fill_gregset)
11612 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11615 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11617 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11618 (regs_info): Replace usrregs pointer with NULL.
11620 2015-04-17 Gary Benson <gbenson@redhat.com>
11622 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11623 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11624 * server.c (handle_qxfer_exec_file): New function.
11625 (qxfer_packets): Add exec-file entry.
11626 (handle_query): Report qXfer:exec-file:read as supported packet.
11628 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11630 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11632 2015-04-09 Gary Benson <gbenson@redhat.com>
11634 * hostio-errno.c (errno_to_fileio_error): Remove function.
11635 Update caller to use remote_fileio_to_fio_error.
11637 2015-04-09 Yao Qi <yao.qi@linaro.org>
11639 * linux-low.c (linux_insert_point): Call
11640 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11641 (linux_remove_point): Call remove_memory_breakpoint if type is
11643 * linux-x86-low.c (x86_insert_point): Don't call
11644 insert_memory_breakpoint.
11645 (x86_remove_point): Don't call remove_memory_breakpoint.
11647 2015-04-01 Pedro Alves <palves@redhat.com>
11648 Cleber Rosa <crosa@redhat.com>
11650 * server.c (gdbserver_usage): Reorganize and extend the usage
11653 2015-03-24 Pedro Alves <palves@redhat.com>
11655 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11656 output. Also dump TRAP_TRACE.
11657 (linux_low_filter_event): In debug output, distinguish a
11658 resume_stop SIGSTOP from a delayed SIGSTOP.
11660 2015-03-24 Gary Benson <gbenson@redhat.com>
11662 * linux-x86-low.c (x86_linux_new_thread): Moved to
11664 (x86_linux_prepare_to_resume): Likewise.
11666 2015-03-24 Gary Benson <gbenson@redhat.com>
11668 * Makefile.in (x86-linux-dregs.o): New rule.
11669 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11670 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11671 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11672 (x86_linux_dr_get): Likewise.
11673 (x86_linux_dr_set): Likewise.
11674 (update_debug_registers_callback): Likewise.
11675 (x86_linux_dr_set_addr): Likewise.
11676 (x86_linux_dr_get_addr): Likewise.
11677 (x86_linux_dr_set_control): Likewise.
11678 (x86_linux_dr_get_control): Likewise.
11679 (x86_linux_dr_get_status): Likewise.
11680 (x86_linux_update_debug_registers): Likewise.
11682 2015-03-24 Gary Benson <gbenson@redhat.com>
11684 * linux-x86-low.c (x86_linux_update_debug_registers):
11685 New function, factored out from...
11686 (x86_linux_prepare_to_resume): ...this.
11688 2015-03-24 Gary Benson <gbenson@redhat.com>
11690 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11691 (x86_linux_dr_set): Likewise.
11692 (update_debug_registers_callback): Likewise.
11693 (x86_linux_dr_set_addr): Likewise.
11694 (x86_linux_dr_get_addr): Likewise.
11695 (x86_linux_dr_set_control): Likewise.
11696 (x86_linux_dr_get_control): Likewise.
11697 (x86_linux_dr_get_status): Likewise.
11698 (x86_linux_prepare_to_resume): Likewise.
11700 2015-03-24 Gary Benson <gbenson@redhat.com>
11702 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11703 Use perror_with_name. Pass string through gettext.
11704 (x86_linux_dr_set): Likewise.
11706 2015-03-24 Gary Benson <gbenson@redhat.com>
11708 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11709 (x86_linux_dr_set_addr): ...this.
11710 (x86_dr_low_get_addr): Rename to...
11711 (x86_linux_dr_get_addr): ...this.
11712 (x86_dr_low_set_control): Rename to...
11713 (x86_linux_dr_set_control): ...this.
11714 (x86_dr_low_get_control): Rename to...
11715 (x86_linux_dr_get_control): ...this.
11716 (x86_dr_low_get_status): Rename to...
11717 (x86_linux_dr_get_status): ...this.
11718 (x86_dr_low): Update with new function names.
11720 2015-03-24 Gary Benson <gbenson@redhat.com>
11722 * Makefile.in (x86-linux.o): New rule.
11723 * configure.srv: Add x86-linux.o to relevant targets.
11724 * linux-low.c (lwp_set_arch_private_info): New function.
11725 (lwp_arch_private_info): Likewise.
11726 * linux-x86-low.c: Include nat/x86-linux.h.
11727 (arch_lwp_info): Removed structure.
11728 (update_debug_registers_callback):
11729 Use lwp_set_debug_registers_changed.
11730 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11731 and lwp_set_debug_registers_changed.
11732 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11734 2015-03-24 Gary Benson <gbenson@redhat.com>
11736 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11737 * linux-arm-low.c (arm_new_thread): Likewise.
11738 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11739 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11740 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11741 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11743 2015-03-24 Gary Benson <gbenson@redhat.com>
11745 * linux-low.c (ptid_of_lwp): New function.
11746 (lwp_is_stopped): Likewise.
11747 (lwp_stop_reason): Likewise.
11748 * linux-x86-low.c (update_debug_registers_callback):
11749 Use lwp_is_stopped.
11750 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11753 2015-03-24 Gary Benson <gbenson@redhat.com>
11755 * linux-low.h (linux_stop_lwp): Remove declaration.
11757 2015-03-24 Gary Benson <gbenson@redhat.com>
11759 * linux-low.h: Include nat/linux-nat.h.
11760 * linux-low.c (iterate_over_lwps_args): New structure.
11761 (iterate_over_lwps_filter): New function.
11762 (iterate_over_lwps): Likewise.
11763 * linux-x86-low.c (update_debug_registers_callback):
11764 Update signature to what iterate_over_lwps expects.
11765 Remove PID check that iterate_over_lwps now performs.
11766 (x86_dr_low_set_addr): Use iterate_over_lwps.
11767 (x86_dr_low_set_control): Likewise.
11769 2015-03-24 Gary Benson <gbenson@redhat.com>
11771 * linux-x86-low.c (x86_debug_reg_state): New function.
11772 (x86_linux_prepare_to_resume): Use the above.
11774 2015-03-24 Gary Benson <gbenson@redhat.com>
11776 * linux-low.c (current_lwp_ptid): New function.
11777 * linux-x86-low.c: Include nat/linux-nat.h.
11778 (x86_dr_low_get_addr): Use current_lwp_ptid.
11779 (x86_dr_low_get_control): Likewise.
11780 (x86_dr_low_get_status): Likewise.
11782 2015-03-20 Pedro Alves <palves@redhat.com>
11784 * tracepoint.c (cmd_qtstatus): Make "str" const.
11786 2015-03-20 Pedro Alves <palves@redhat.com>
11788 * server.c (handle_general_set): Make "req_str" const.
11790 2015-03-19 Pedro Alves <palves@redhat.com>
11792 * linux-low.c (linux_resume_one_lwp): Rename to ...
11793 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11794 instead call perror_with_name.
11795 (check_ptrace_stopped_lwp_gone): New function.
11796 (linux_resume_one_lwp): Reimplement as wrapper around
11797 linux_resume_one_lwp_throw that swallows errors if the LWP is
11800 2015-03-19 Pedro Alves <palves@redhat.com>
11802 * linux-low.c (count_events_callback, select_event_lwp_callback):
11803 No longer check whether the thread has resume_stop as last resume
11806 2015-03-19 Pedro Alves <palves@redhat.com>
11808 * linux-low.c (count_events_callback, select_event_lwp_callback):
11809 Use the lwp's status_pending_p field, not the thread's.
11811 2015-03-19 Pedro Alves <palves@redhat.com>
11813 * linux-low.c (select_event_lwp_callback): Update comments to
11814 no longer mention SIGTRAP.
11816 2015-03-18 Gary Benson <gbenson@redhat.com>
11818 * server.c (handle_query): Do not report vFile:fstat as supported.
11820 2015-03-11 Gary Benson <gbenson@redhat.com>
11822 * hostio.c (sys/types.h): New include.
11823 (sys/stat.h): Likewise.
11824 (common-remote-fileio.h): Likewise.
11825 (handle_fstat): New function.
11826 (handle_vFile): Handle vFile:fstat packets.
11828 2015-03-11 Gary Benson <gbenson@redhat.com>
11830 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11831 struct stat.st_blocks and struct stat.st_blksize.
11832 * configure: Regenerate.
11833 * config.in: Likewise.
11834 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11835 (OBS): Add common-remote-fileio.o.
11836 (common-remote-fileio.o): New rule.
11838 2015-03-09 Pedro Alves <palves@redhat.com>
11840 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11841 'struct sockaddr' pointer in 'accept' call.
11843 2015-03-09 Pedro Alves <palves@redhat.com>
11846 2015-03-07 Pedro Alves <palves@redhat.com>
11847 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11848 or <winsock2.h> here. Instead include "gdb_socket.h".
11849 (remote_open): Use union gdb_sockaddr_u.
11850 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11851 or <winsock2.h> here. Instead include "gdb_socket.h".
11852 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11853 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11855 (init_named_socket, gdb_agent_helper_thread): Use union
11858 2015-03-07 Pedro Alves <palves@redhat.com>
11860 * configure.ac (build_warnings): Move
11861 -Wdeclaration-after-statement to the C-specific set.
11862 * configure: Regenerate.
11864 2015-03-07 Pedro Alves <palves@redhat.com>
11866 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11867 or <winsock2.h> here. Instead include "gdb_socket.h".
11868 (remote_open): Use union gdb_sockaddr_u.
11869 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11870 or <winsock2.h> here. Instead include "gdb_socket.h".
11871 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11872 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11874 (init_named_socket, gdb_agent_helper_thread): Use union
11877 2015-03-07 Pedro Alves <palves@redhat.com>
11879 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11882 2015-03-06 Yao Qi <yao.qi@linaro.org>
11884 * linux-aarch64-low.c (aarch64_insert_point): Use
11885 show_debug_regs as a boolean.
11886 (aarch64_remove_point): Likewise.
11888 2015-03-05 Pedro Alves <palves@redhat.com>
11890 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11891 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11892 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11893 * nto-low.c (nto_target_ops): Likewise.
11894 * spu-low.c (spu_target_ops): Likewise.
11895 * win32-low.c (win32_target_ops): Likewise.
11897 2015-03-04 Pedro Alves <palves@redhat.com>
11899 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11900 Decide whether a breakpoint triggered based on the SIGTRAP's
11902 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11903 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11904 (linux_low_filter_event): Check for breakpoints before checking
11906 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11908 (linux_stopped_by_sw_breakpoint)
11909 (linux_supports_stopped_by_sw_breakpoint)
11910 (linux_stopped_by_hw_breakpoint)
11911 (linux_supports_stopped_by_hw_breakpoint): New functions.
11912 (linux_target_ops): Install new target methods.
11914 2015-03-04 Pedro Alves <palves@redhat.com>
11916 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11917 * server.c (swbreak_feature, hwbreak_feature): New globals.
11918 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11919 (captured_main): Clear swbreak_feature and hwbreak_feature.
11920 * server.h (swbreak_feature, hwbreak_feature): Declare.
11921 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11922 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11923 supports_stopped_by_hw_breakpoint>: New fields.
11924 (target_supports_stopped_by_sw_breakpoint)
11925 (target_stopped_by_sw_breakpoint)
11926 (target_supports_stopped_by_hw_breakpoint)
11927 (target_stopped_by_hw_breakpoint): Declare.
11929 2015-03-04 Pedro Alves <palves@redhat.com>
11931 enum lwp_stop_reason -> enum target_stop_reason
11932 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11933 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11934 (linux_wait_1, stuck_in_jump_pad_callback)
11935 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11936 (linux_stopped_by_watchpoint):
11937 * linux-low.h (enum lwp_stop_reason): Delete.
11938 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11939 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11941 2015-03-04 Yao Qi <yao.qi@linaro.org>
11943 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11945 2015-03-03 Gary Benson <gbenson@redhat.com>
11947 * hostio.c (handle_vFile): Fix prefix lengths.
11949 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11951 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11954 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11956 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11957 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11958 (clean): Add "rm -f" for above C files.
11959 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11960 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11961 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11962 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11963 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11964 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11965 (init_registers_s390x_vx_linux64)
11966 (init_registers_s390x_tevx_linux64)
11967 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11968 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11970 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11971 (s390_store_vxrs_high): New functions.
11972 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11974 (s390_arch_setup): Add logic for selecting one of the new target
11975 descriptions. Activate the new vector regsets if applicable.
11976 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11977 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11978 and init_registers_s390x_tevx_linux64.
11980 2015-03-01 Pedro Alves <palves@redhat.com>
11982 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11985 2015-02-27 Pedro Alves <palves@redhat.com>
11987 * linux-x86-low.c (u_debugreg_offset): New function.
11988 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11990 2015-02-27 Pedro Alves <palves@redhat.com>
11992 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11993 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11994 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11995 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11996 (ps_lsetfpregs, ps_getpid)
11997 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11998 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11999 (ps_lsetxregs, ps_plog): Declare.
12001 2015-02-27 Pedro Alves <palves@redhat.com>
12003 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
12004 IP_AGENT_EXPORT_FUNC.
12005 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
12006 IP_AGENT_EXPORT_FUNC.
12007 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
12008 (IP_AGENT_EXPORT): Delete.
12009 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12010 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
12011 (gdb_trampoline_buffer_error, collecting, gdb_collect)
12012 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
12013 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
12014 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
12015 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
12016 (traceframe_read_count, traceframe_write_count)
12017 (traceframes_created, trace_state_variables, get_raw_reg)
12018 (get_trace_state_variable_value, set_trace_state_variable_value)
12019 (ust_loaded, helper_thread_id, cmd_buf): Use
12020 IPA_SYM_EXPORTED_NAME.
12021 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
12022 (tracepoints) Use IP_AGENT_EXPORT_VAR.
12023 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
12024 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12025 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
12026 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
12027 EXTERN_C_PUSH/EXTERN_C_POP.
12028 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
12029 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
12030 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12031 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
12032 (traceframe_write_count, traceframe_read_count)
12033 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
12034 (about_to_request_buffer_space, get_trace_state_variable_value)
12035 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
12036 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
12037 EXTERN_C_PUSH/EXTERN_C_POP.
12038 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
12039 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
12040 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
12041 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12042 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12043 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
12044 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
12045 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
12047 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
12048 (IP_AGENT_EXPORT_VAR_DECL): Define.
12049 (tracing): Declare.
12050 (gdb_agent_get_raw_reg): Declare.
12052 2015-02-27 Tom Tromey <tromey@redhat.com>
12053 Pedro Alves <palves@redhat.com>
12055 Rename symbols whose names are reserved C++ keywords throughout.
12057 2015-02-27 Pedro Alves <palves@redhat.com>
12059 * Makefile.in (COMPILER): New, get it from autoconf.
12060 (CXX): Get from autoconf instead.
12061 (COMPILE.pre): Use COMPILER.
12062 (CC-LD): Rename to ...
12063 (CC_LD): ... this. Use COMPILER.
12064 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
12065 (CXX_FOR_TARGET): Default to g++ instead of gcc.
12066 * acinclude.m4: Include build-with-cxx.m4.
12067 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
12068 Disable -Werror by default if building in C++ mode.
12069 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
12070 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
12071 the C++ compiler. Save/restore CXXFLAGS too.
12072 * configure: Regenerate.
12074 2015-02-27 Pedro Alves <palves@redhat.com>
12076 * acinclude.m4: Include libiberty.m4.
12077 * configure.ac: Call libiberty_INIT.
12078 * config.in, configure: Regenerate.
12080 2015-02-26 Pedro Alves <palves@redhat.com>
12082 * linux-low.c (linux_wait_1): When incrementing the PC past a
12083 program breakpoint always use the_low_target.breakpoint_len as
12084 increment, rather than the maximum between that and
12085 the_low_target.decr_pc_after_break.
12087 2015-02-23 Pedro Alves <palves@redhat.com>
12089 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
12090 thread was doing a step-over; always adjust the PC if
12091 we stepped over a permanent breakpoint.
12092 (linux_wait_1): If we stepped over breakpoint that was on top of a
12093 permanent breakpoint, manually advance the PC past it.
12095 2015-02-23 Pedro Alves <palves@redhat.com>
12097 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
12099 (x86_fill_gregset, x86_store_gregset): Use it when handling
12102 2015-02-20 Pedro Alves <palves@redhat.com>
12104 * thread-db.c: Include "nat/linux-procfs.h".
12105 (thread_db_init): Skip listing new threads if the kernel supports
12106 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
12108 2015-02-20 Pedro Alves <palves@redhat.com>
12110 * linux-low.c (status_pending_p_callback): Use ptid_match.
12112 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
12114 PR breakpoints/16812
12115 * linux-low.c (wstatus_maybe_breakpoint): Remove.
12116 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
12117 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
12119 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
12121 PR breakpoints/15956
12122 * tracepoint.c (cmd_qtinit): Add check for current_thread.
12124 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12126 * linux-low.c (linux_low_btrace_conf): Print size.
12127 * server.c (handle_btrace_conf_general_set): New.
12128 (hanle_general_set): Call handle_btrace_conf_general_set.
12129 (handle_query): Report Qbtrace-conf:bts:size as supported.
12131 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12133 * linux-low.c (linux_low_enable_btrace): Update parameters.
12134 (linux_low_btrace_conf): New.
12135 (linux_target_ops)<to_btrace_conf>: Initialize.
12136 * server.c (current_btrace_conf): New.
12137 (handle_btrace_enable): Rename to ...
12138 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
12139 to target_enable_btrace. Update comment. Update users.
12140 (handle_qxfer_btrace_conf): New.
12141 (qxfer_packets): Add btrace-conf entry.
12142 (handle_query): Report qXfer:btrace-conf:read as supported packet.
12143 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
12144 (target_ops)<read_btrace_conf>: New.
12145 (target_enable_btrace): Update parameters.
12146 (target_read_btrace_conf): New.
12148 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12150 * server.c (handle_btrace_general_set): Remove call to
12151 target_supports_btrace.
12152 (supported_btrace_packets): New.
12153 (handle_query): Call supported_btrace_packets.
12154 * target.h: include btrace-common.h.
12155 (btrace_target_info): Removed.
12156 (supports_btrace, target_supports_btrace): Update parameters.
12158 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12160 * Makefile.in (SFILES): Add common/btrace-common.c.
12161 (OBS): Add common/btrace-common.o.
12162 (btrace-common.o): Add build rules.
12163 * linux-low: Include btrace-common.h.
12164 (linux_low_read_btrace): Use struct btrace_data. Call
12165 btrace_data_init and btrace_data_fini.
12167 2015-02-06 Pedro Alves <palves@redhat.com>
12169 * thread-db.c (find_new_threads_callback): Add debug output.
12171 2015-02-04 Pedro Alves <palves@redhat.com>
12173 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
12174 (resume_stopped_resumed_lwps): New function.
12175 (linux_wait_for_event_filtered): Use it.
12177 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12179 * Makefile.in (SFILES): Add linux-personality.c.
12180 (linux-personality.o): New rule.
12181 * configure.srv (srv_linux_obj): Add linux-personality.o to the
12182 list of objects to be built.
12183 * linux-low.c: Include nat/linux-personality.h.
12184 (linux_create_inferior): Remove code to disable address space
12185 randomization (moved to ../nat/linux-personality.c). Create
12186 cleanup to disable address space randomization.
12188 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12190 * Makefile.in (posix-strerror.o): New rule.
12191 (mingw-strerror.o): Likewise.
12192 * configure: Regenerated.
12193 * configure.ac: Source file ../common/common.host. Initialize new
12194 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
12196 2015-01-14 Yao Qi <yao@codesourcery.com>
12198 * Makefile.in (SFILES): Add nat/ppc-linux.c.
12199 (ppc-linux.o): New rule.
12200 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
12201 * configure.ac: AC_CHECK_FUNCS(getauxval).
12202 * config.in: Re-generated.
12203 * configure: Re-generated.
12204 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
12205 ppc64_64bit_inferior_p
12207 2015-01-14 Yao Qi <yao@codesourcery.com>
12209 * linux-ppc-low.c: Include "nat/ppc-linux.h".
12210 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
12211 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
12212 (PT_ORIG_R3, PT_TRAP): Likewise.
12213 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12214 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12215 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12217 2015-01-10 Joel Brobecker <brobecker@adacore.com>
12219 * i387-fp.c (i387_cache_to_xsave): In look over
12220 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
12221 zmmh_low_space field by use of zmmh_high_space.
12223 2015-01-09 Pedro Alves <palves@redhat.com>
12225 * linux-low.c (step_over_bkpt): Move higher up in the file.
12226 (handle_extended_wait): Don't store the stop_pc here.
12227 (get_stop_pc): Adjust comments and rename to ...
12228 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12229 stopped for a software breakpoint or hardware breakpoint.
12230 (thread_still_has_status_pending_p): New function.
12231 (status_pending_p_callback): Use
12232 thread_still_has_status_pending_p. If the event is no longer
12233 interesting, resume the LWP.
12234 (handle_tracepoints): Add assert.
12235 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
12236 (wstatus_maybe_breakpoint): New function.
12237 (cancel_breakpoint): Delete function.
12238 (check_stopped_by_watchpoint): New function, factored out from
12239 linux_low_filter_event.
12240 (lp_status_maybe_breakpoint): Delete function.
12241 (linux_low_filter_event): Remove filter_ptid argument.
12242 Leave thread group exits pending here. Store the LWP's stop PC.
12243 Always leave events pending.
12244 (linux_wait_for_event_filtered): Pull all events out of the
12245 kernel, and leave them all pending.
12246 (count_events_callback, select_event_lwp_callback): Consider all
12248 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
12249 (select_event_lwp): Only give preference to the stepping LWP in
12250 all-stop mode. Adjust comments.
12251 (ignore_event): New function.
12252 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
12253 references to cancel_breakpoints. Adjust to renames. Also give
12254 equal priority to all LWPs that have had events in non-stop mode.
12255 If reporting a software breakpoint event, unadjust the LWP's PC.
12256 (linux_wait): If linux_wait_1 returned an ignored event, retry.
12257 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
12259 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
12260 (resume_status_pending_p): Use thread_still_has_status_pending_p.
12261 (linux_stopped_by_watchpoint): Adjust.
12262 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
12263 * linux-low.h (enum lwp_stop_reason): New.
12264 (struct lwp_info) <stop_pc>: Adjust comment.
12265 <stopped_by_watchpoint>: Delete field.
12266 <stop_reason>: New field.
12267 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12268 * mem-break.c (software_breakpoint_inserted_here)
12269 (hardware_breakpoint_inserted_here): New function.
12270 * mem-break.h (software_breakpoint_inserted_here)
12271 (hardware_breakpoint_inserted_here): Declare.
12272 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
12273 (cancel_breakpoints): Delete.
12274 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
12275 (upload_fast_traceframes): Remove references to
12276 cancel_breakpoints.
12278 2015-01-09 Pedro Alves <palves@redhat.com>
12280 * thread-db.c (find_new_threads_callback): Ignore thread if the
12281 kernel thread ID is -1.
12283 2015-01-09 Pedro Alves <palves@redhat.com>
12285 * linux-low.c (linux_attach_fail_reason_string): Move to
12286 nat/linux-ptrace.c, and rename.
12287 (linux_attach_lwp): Update comment.
12288 (attach_proc_task_lwp_callback): New function.
12289 (linux_attach): Adjust to rename and use
12290 linux_proc_attach_tgid_threads.
12291 (linux_attach_fail_reason_string): Delete declaration.
12293 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12295 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
12296 * server.c (gdbserver_version): Likewise.
12298 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
12300 * remote-utils.c: Include ctype.h.
12301 (input_interrupt): Explicitly handle the case when the char
12302 received is the NUL byte. Improve the printing of non-ASCII
12305 2014-12-16 Joel Brobecker <brobecker@adacore.com>
12307 * linux-low.c (linux_low_filter_event): Update call to
12308 linux_enable_event_reporting following the addition of
12309 a new parameter to that function.
12311 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
12314 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
12315 (AARCH64_FPCR_REGNO): Likewise.
12316 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
12317 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
12318 (aarch64_store_fpregset): Likewise.
12320 2014-12-15 Joel Brobecker <brobecker@adacore.com>
12322 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
12323 Remove FIXME comment about assumption about N.
12325 2014-12-13 Joel Brobecker <brobecker@adacore.com>
12327 * configure.ac: If large-file support is disabled in GDBserver,
12328 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
12329 * configure: Regenerate.
12331 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12333 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
12334 warning upon ENODATA from ptrace.
12335 * linux-s390-low.c (s390_store_tdb): New.
12336 (s390_regsets): Add regset for NT_S390_TDB.
12338 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12340 * linux-low.c (regsets_store_inferior_registers): Skip regsets
12341 without a fill_function.
12342 * linux-s390-low.c (s390_fill_last_break): Remove.
12343 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
12344 (s390_arch_setup): Use regset's size instead of fill_function for
12345 loop end condition.
12347 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12349 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
12350 the regset's store function when ptrace returned an error.
12351 * regcache.c (get_thread_regcache): Invalidate register cache
12352 before fetching inferior's registers.
12354 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12356 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
12357 while-loop as for-loop.
12358 (regsets_store_inferior_registers): Likewise.
12360 2014-11-28 Yao Qi <yao@codesourcery.com>
12362 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
12363 * config.in, configure: Re-generate.
12364 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
12367 2014-11-21 Yao Qi <yao@codesourcery.com>
12369 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
12370 (AC_CHECK_HEADERS): Remove malloc.h.
12371 * configure: Re-generated.
12372 * config.in: Re-generated.
12373 * server.h: Don't include alloca.h and malloc.h.
12374 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
12375 Don't include malloc.h.
12377 2014-11-17 Joel Brobecker <brobecker@adacore.com>
12379 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12380 corresponding ERRNO check in same block.
12382 2014-11-12 Pedro Alves <palves@redhat.com>
12384 * server.c (cont_thread): Update comment.
12385 (start_inferior, attach_inferior): No longer clear cont_thread.
12386 (handle_v_cont): No longer set cont_thread.
12387 (captured_main): Clear cont_thread each time a GDB connects.
12389 2014-11-12 Pedro Alves <palves@redhat.com>
12391 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12392 thread, and don't resume all threads if the Hc thread has exited.
12394 2014-11-12 Pedro Alves <palves@redhat.com>
12396 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12397 the process group instead of to a specific LWP.
12399 2014-10-15 Pedro Alves <palves@redhat.com>
12402 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12404 (arm_set_thread_context): Delete.
12405 (the_low_target): Adjust.
12406 * win32-i386-low.c (debug_registers_changed)
12407 (debug_registers_used): Delete.
12408 (update_debug_registers_callback): New function.
12409 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12410 needing to update their debug registers.
12411 (win32_get_current_dr): New function.
12412 (x86_dr_low_get_addr, x86_dr_low_get_control)
12413 (x86_dr_low_get_status): Fetch the debug register from the thread
12415 (i386_initial_stuff): Adjust.
12416 (i386_get_thread_context): Remove current_event parameter. Don't
12417 clear debug_registers_changed nor copy DR values to
12419 (i386_set_thread_context): Delete.
12420 (i386_prepare_to_resume): New function.
12421 (i386_thread_added): Mark the thread as needing to update irs
12423 (the_low_target): Remove i386_set_thread_context and install
12424 i386_prepare_to_resume.
12425 * win32-low.c (win32_get_thread_context): Adjust.
12426 (win32_set_thread_context): Use SetThreadContext
12428 (win32_prepare_to_resume): New function.
12429 (win32_require_context): New function, factored out from ...
12430 (thread_rec): ... this.
12431 (continue_one_thread): Call win32_prepare_to_resume on each thread
12432 we're about to continue.
12433 (win32_resume): Call win32_prepare_to_resume on the event thread.
12434 * win32-low.h (struct win32_thread_info)
12435 <debug_registers_changed>: New field.
12436 (struct win32_target_ops): Change prototype of set_thread_context,
12437 delete set_thread_context and add prepare_to_resume.
12438 (win32_require_context): New declaration.
12440 2014-10-08 Gary Benson <gbenson@redhat.com>
12442 * server.h: Do not include common-exceptions.h.
12444 2014-10-08 Gary Benson <gbenson@redhat.com>
12446 * server.h: Do not include cleanups.h.
12448 2014-09-30 James Hogan <james.hogan@imgtec.com>
12450 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12451 mips64-dsp-linux.c.
12453 2014-09-23 Yao Qi <yao@codesourcery.com>
12455 * linux-low.c (lp_status_maybe_breakpoint): New function.
12456 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12457 (count_events_callback): Likewise.
12458 (select_event_lwp_callback): Likewise.
12459 (cancel_breakpoints_callback): Likewise.
12461 2014-09-19 Don Breazeal <donb@codesourcery.com>
12463 * linux-low.c (handle_extended_wait): Call
12464 linux_ptrace_get_extended_event.
12465 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12466 linux_is_extended_waitstatus.
12468 2014-09-16 Joel Brobecker <brobecker@adacore.com>
12470 * Makefile.in (CPPFLAGS): Define.
12471 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12472 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12474 2014-09-16 Gary Benson <gbenson@redhat.com>
12476 * inferiors.h (current_inferior): Renamed as...
12477 (current_thread): New variable. All uses updated.
12478 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12479 (maybe_move_out_of_jump_pad): Likewise.
12480 (cancel_breakpoint): Likewise.
12481 (linux_low_filter_event): Likewise.
12482 (wait_for_sigstop): Likewise.
12483 (linux_resume_one_lwp): Likewise.
12484 (need_step_over_p): Likewise.
12485 (start_step_over): Likewise.
12486 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12487 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12488 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12489 and save_inferior as saved_thread.
12490 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12492 (regcache_invalidate_thread): Likewise.
12493 * remote-utils.c (prepare_resume_reply): Likewise.
12494 * thread-db.c (thread_db_get_tls_address): Likewise.
12495 (disable_thread_event_reporting): Likewise.
12496 (remove_thread_event_breakpoints): Likewise.
12497 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12499 * target.h (set_desired_inferior): Renamed as...
12500 (set_desired_thread): New declaration. All uses updated.
12501 * server.c (myresume): Updated comment to reference thread instead
12503 (handle_serial_event): Likewise.
12504 (handle_target_event): Likewise.
12506 2014-09-12 Tom Tromey <tromey@redhat.com>
12507 Gary Benson <gbenson@redhat.com>
12509 * regcache.h: Include common-regcache.h.
12510 (regcache_read_pc): Don't declare.
12511 * regcache.c (get_thread_regcache_for_ptid): New function.
12513 2014-09-11 Tom Tromey <tromey@redhat.com>
12514 Gary Benson <gbenson@redhat.com>
12516 * symbol.c: New file.
12517 * Makefile.in (SFILES): Add symbol.c.
12518 (OBS): Add symbol.o.
12520 2014-09-11 Gary Benson <gbenson@redhat.com>
12522 * target.c (target_stop_ptid, target_continue_ptid): New
12525 2014-09-11 Tom Tromey <tromey@redhat.com>
12526 Gary Benson <gbenson@redhat.com>
12528 * target.h: Include target/target.h.
12529 * target.c (target_read_memory, target_read_uint32)
12530 (target_write_memory): New functions.
12532 2014-09-11 Gary Benson <gbenson@redhat.com>
12534 * server.h (debug_hw_points): Don't declare.
12535 * server.c (debug_hw_points): Don't define. Replace all uses
12536 with show_debug_regs.
12537 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12538 all uses with show_debug_regs.
12540 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12542 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12543 endianness into account.
12544 (ppc_supply_ptrace_register): Likewise.
12546 2014-09-03 James Hogan <james.hogan@imgtec.com>
12548 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12549 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12551 2014-09-03 Gary Benson <gbenson@redhat.com>
12553 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12554 ALL_DEBUG_ADDRESS_REGISTERS.
12556 2014-09-02 Gary Benson <gbenson@redhat.com>
12558 * i386-low.h: Renamed as...
12559 * x86-low.h: New file. All type, function and variable name
12560 prefixes changed from "i386_" to "x86_". All references updated.
12561 * i386-low.c: Renamed as...
12562 * x86-low.c: New file. All type, function and variable name
12563 prefixes changed from "i386_" to "x86_". All references updated.
12565 2014-09-02 Gary Benson <gbenson@redhat.com>
12567 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12568 (x86_linux_new_thread): Likewise.
12570 2014-08-29 Gary Benson <gbenson@redhat.com>
12572 * server.h (setjmp.h): Do not include.
12573 (toplevel): Do not declare.
12574 (common-exceptions.h): Include.
12575 (cleanups.h): Likewise.
12576 * server.c (toplevel): Do not define.
12577 (exit_code): New static global.
12578 (detach_or_kill_for_exit_cleanup): New function.
12579 (main): New function. Original main renamed to...
12580 (captured_main): New function.
12581 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12583 2014-08-29 Gary Benson <gbenson@redhat.com>
12585 * Makefile.in (SFILES): Add common/common-exceptions.c.
12586 (OBS): Add common-exceptions.o.
12587 (common-exceptions.o): New rule.
12588 * utils.c (prepare_to_throw_exception): New function.
12590 2014-08-29 Gary Benson <gbenson@redhat.com>
12592 * config.in: Regenerate.
12593 * configure: Likewise.
12595 2014-08-29 Gary Benson <gbenson@redhat.com>
12597 * Makefile.in (SFILES): Add common/cleanups.c.
12599 (cleanups.o): New rule.
12601 2014-08-29 Gary Benson <gbenson@redhat.com>
12603 * utils.c (internal_vwarning): New function.
12605 2014-08-28 Gary Benson <gbenson@redhat.com>
12607 * utils.h (fatal): Remove declaration.
12608 * utils.c (fatal): Remove function.
12610 2014-08-28 Gary Benson <gbenson@redhat.com>
12612 * tracepoint.c (gdb_agent_init): Replace fatal with
12614 (initialize_tracepoint): Likewise.
12616 2014-08-28 Gary Benson <gbenson@redhat.com>
12618 * remote-utils.c (remote_prepare): Replace fatal with error.
12620 2014-08-28 Gary Benson <gbenson@redhat.com>
12622 * linux-low.c (linux_async): Replace fatal with warning.
12623 Tidy up and return.
12624 (linux_start_non_stop): Return -1 if linux_async failed.
12626 2014-08-28 Gary Benson <gbenson@redhat.com>
12628 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12630 (i386_dr_low_get_addr): Remove vague comment.
12631 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12634 2014-08-28 Gary Benson <gbenson@redhat.com>
12636 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12637 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12639 (linux_resume_one_lwp): Likewise.
12640 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12642 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12643 with internal_error.
12644 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12645 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12646 (find_register_by_name): Replace fatal with internal_error.
12647 (find_regno): Likewise.
12648 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12649 * thread-db.c (thread_db_create_event): Likewise.
12650 (thread_db_load_search): Likewise.
12651 (try_thread_db_load_1): Likewise.
12652 * tracepoint.c (get_jump_space_head): Replace fatal with
12654 (claim_trampoline_space): Likewise.
12655 (have_fast_tracepoint_trampoline_buffer): Likewise.
12656 (cmd_qtstart): Likewise.
12657 (stop_tracing): Likewise.
12658 (fast_tracepoint_collecting): Likewise.
12659 (target_malloc): Likewise.
12660 (download_tracepoint): Likewise.
12661 (download_trace_state_variables): Replace check with gdb_assert.
12662 (upload_fast_traceframes): Replace fatal with internal_error.
12664 2014-08-19 Tom Tromey <tromey@redhat.com>
12665 Gary Benson <gbenson@redhat.com>
12667 * Makefile.in (SFILES): Add common/common-debug.c.
12668 (OBS): Add common-debug.o.
12669 (common-debug.o): New rule.
12670 * debug.h (debug_printf): Don't declare.
12671 * debug.c (debug_printf): Renamed and rewritten as...
12672 (debug_vprintf): New function.
12674 2014-08-19 Gary Benson <gbenson@redhat.com>
12676 * utils.h: Do not include print-utils.h.
12678 2014-08-19 Tom Tromey <tromey@redhat.com>
12679 Gary Benson <gbenson@redhat.com>
12681 * server.h: Add static assertion.
12682 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12684 2014-08-19 Tom Tromey <tromey@redhat.com>
12685 Gary Benson <gbenson@redhat.com>
12687 * Makefile.in (SFILES): Add common/errors.c.
12688 (OBS): Add errors.o.
12689 (IPA_OBS): Add errors-ipa.o.
12690 (errors.o): New rule.
12691 (errors-ipa.o): Likewise.
12692 * utils.h (perror_with_name, error, warning): Don't declare.
12693 * utils.c (warning): Renamed and rewritten as...
12694 (vwarning): New function.
12695 (error): Renamed and rewritten as...
12696 (verror): New function.
12697 (internal_error): Renamed and rewritten as...
12698 (internal_verror): New function.
12700 2014-08-07 Gary Benson <gbenson@redhat.com>
12702 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12703 * configure: Regenerate.
12704 * config.in: Likewise.
12705 * server.h: Do not include errno.h.
12706 * event-loop.c: Likewise.
12707 * hostio-errno.c: Likewise.
12708 * linux-low.c: Likewise.
12709 * remote-utils.c: Likewise.
12710 * spu-low.c: Likewise.
12711 * utils.c: Likewise.
12712 * gdbreplay.c: Unconditionally include errno.h.
12714 2014-08-07 Gary Benson <gbenson@redhat.com>
12716 * server.h: Do not include string.h.
12717 * event-loop.c: Likewise.
12718 * linux-low.c: Likewise.
12719 * regcache.c: Likewise.
12720 * remote-utils.c: Likewise.
12721 * spu-low.c: Likewise.
12722 * utils.c: Likewise.
12724 2014-08-07 Gary Benson <gbenson@redhat.com>
12726 * server.h: Do not include gdb_assert.h.
12728 2014-08-07 Gary Benson <gbenson@redhat.com>
12730 * server.h: Do not include common-utils.h.
12732 2014-08-07 Gary Benson <gbenson@redhat.com>
12734 * server.h: Do not include ptid.h.
12735 * notif.h: Likewise.
12737 2014-08-07 Gary Benson <gbenson@redhat.com>
12739 * server.h: Do not include gdb_locale.h.
12741 2014-08-07 Gary Benson <gbenson@redhat.com>
12743 * server.h: Do not include gdb/signals.h.
12744 * win32-low.c: Likewise.
12746 2014-08-07 Gary Benson <gbenson@redhat.com>
12748 * server.h: Do not include pathmax.h.
12750 2014-08-07 Gary Benson <gbenson@redhat.com>
12752 * server.h: Do not include libiberty.h.
12753 * linux-bfin-low.c: Likewise.
12755 2014-08-07 Gary Benson <gbenson@redhat.com>
12757 * server.h: Do not include ansidecl.h.
12759 2014-08-07 Gary Benson <gbenson@redhat.com>
12761 * linux-x86-low.c: Do not include stddef.h.
12762 * lynx-ppc-low.c: Likewise.
12763 * tracepoint.c: Likewise.
12765 2014-08-07 Gary Benson <gbenson@redhat.com>
12767 * server.h: Do not include stdarg.h.
12768 * nto-low.c: Likewise.
12770 2014-08-07 Gary Benson <gbenson@redhat.com>
12772 * server.h: Do not include stdlib.h.
12773 * inferiors.c: Likewise.
12774 * linux-low.c: Likewise.
12775 * regcache.c: Likewise.
12776 * spu-low.c: Likewise.
12777 * tracepoint.c: Likewise.
12778 * utils.c: Likewise.
12780 2014-08-07 Gary Benson <gbenson@redhat.com>
12782 * server.h: Do not include stdio.h.
12783 * linux-low.c: Likewise.
12784 * remote-utils.c: Likewise.
12785 * spu-low.c: Likewise.
12786 * utils.c: Likewise.
12787 * wincecompat.c: Likewise.
12789 2014-08-06 Gary Benson <gbenson@redhat.com>
12791 * regcache.c (init_register_cache): Move conditionals inside if.
12793 2014-08-06 Gary Benson <gbenson@redhat.com>
12795 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12797 2014-07-31 Gary Benson <gbenson@redhat.com>
12799 * ax.h: Do not include server.h.
12800 * gdbthread.h: Likewise.
12801 * lynx-low.h: Likewise.
12802 * notif.h: Likewise.
12804 2014-07-30 Gary Benson <gbenson@redhat.com>
12806 * server.h: Include common-defs.h.
12807 Do not include config.h or build-gnulib-gdbserver/config.h.
12809 2014-07-30 Gary Benson <gbenson@redhat.com>
12811 * hostio-errno.c: Move server.h to top of includes list.
12812 * inferiors.c: Likewise.
12813 * linux-x86-low.c: Likewise.
12814 * notif.c: Include server.h.
12816 2014-07-24 Tom Tromey <tromey@redhat.com>
12817 Gary Benson <gbenson@redhat.com>
12819 * server.h (CORE_ADDR): Now unsigned.
12821 2014-07-16 Pedro Alves <palves@redhat.com>
12823 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12825 2014-07-15 Pedro Alves <palves@redhat.com>
12827 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12830 2014-07-11 Pedro Alves <palves@redhat.com>
12832 * linux-low.c (kill_wait_lwp): New function, based on
12833 kill_one_lwp_callback, but use my_waitpid directly.
12834 (kill_one_lwp_callback, linux_kill): Use it.
12836 2014-06-23 Pedro Alves <palves@redhat.com>
12838 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12839 before setting DR0..DR3.
12841 2014-06-20 Gary Benson <gbenson@redhat.com>
12843 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12844 * configure: Regenerated.
12845 * config.in: Likewise.
12847 2014-06-20 Gary Benson <gbenson@redhat.com>
12849 * Makefile.in (SFILES): Update locations for files moved
12850 from common to nat.
12851 (object file files): Reordered.
12853 2014-06-20 Gary Benson <gbenson@redhat.com>
12855 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12856 (i386_dr_low_set_addr): Likewise.
12857 (i386_dr_low_get_addr): Likewise.
12858 (i386_dr_low_can_set_control): Likewise.
12859 (i386_dr_low_set_control): Likewise.
12860 (i386_dr_low_get_control): Likewise.
12861 (i386_dr_low_get_status): Likewise.
12862 (i386_get_debug_register_length): Likewise.
12863 * linux-x86-low.c (i386_dr_low_set_addr):
12864 Changed signature. Made static.
12865 (i386_dr_low_get_addr): Likewise.
12866 (i386_dr_low_set_control): Likewise.
12867 (i386_dr_low_get_control): Likewise.
12868 (i386_dr_low_get_status): Likewise.
12869 (i386_dr_low): New global variable.
12870 * win32-i386-low.c (i386_dr_low_set_addr):
12871 Changed signature. Made static.
12872 (i386_dr_low_get_addr): Likewise.
12873 (i386_dr_low_set_control): Likewise.
12874 (i386_dr_low_get_control): Likewise.
12875 (i386_dr_low_get_status): Likewise.
12876 (i386_dr_low): New global variable.
12878 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12880 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12881 * Makefile.in (AR, AR_FLAGS): Define.
12882 * configure: Regenerate.
12884 2014-06-19 Gary Benson <gbenson@redhat.com>
12886 * Makefile.in (i386-dregs.o): New rule.
12887 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12888 * i386-low.c (target.h): Remove include.
12889 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12890 (DR_CONTROL_SHIFT): Likewise.
12891 (DR_CONTROL_SIZE): Likewise.
12892 (DR_RW_EXECUTE): Likewise.
12893 (DR_RW_WRITE): Likewise.
12894 (DR_RW_READ): Likewise.
12895 (DR_RW_IORW): Likewise.
12896 (DR_LEN_1): Likewise.
12897 (DR_LEN_2): Likewise.
12898 (DR_LEN_4): Likewise.
12899 (DR_LEN_8): Likewise.
12900 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12901 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12902 (DR_ENABLE_SIZE): Likewise.
12903 (DR_LOCAL_SLOWDOWN): Likewise.
12904 (DR_GLOBAL_SLOWDOWN): Likewise.
12905 (DR_CONTROL_RESERVED): Likewise.
12906 (I386_DR_CONTROL_MASK): Likewise.
12907 (I386_DR_VACANT): Likewise.
12908 (I386_DR_LOCAL_ENABLE): Likewise.
12909 (I386_DR_GLOBAL_ENABLE): Likewise.
12910 (I386_DR_DISABLE): Likewise.
12911 (I386_DR_SET_RW_LEN): Likewise.
12912 (I386_DR_GET_RW_LEN): Likewise.
12913 (I386_DR_WATCH_HIT): Likewise.
12914 (i386_wp_op_t): Likewise.
12915 (i386_show_dr): Likewise.
12916 (i386_length_and_rw_bits): Likewise.
12917 (i386_insert_aligned_watchpoint): Likewise.
12918 (i386_remove_aligned_watchpoint): Likewise.
12919 (i386_handle_nonaligned_watchpoint): Likewise.
12920 i386_update_inferior_debug_regs(): Likewise.
12921 (i386_dr_insert_watchpoint): Likewise.
12922 (i386_dr_remove_watchpoint): Likewise.
12923 (i386_dr_region_ok_for_watchpoint): Likewise.
12924 (i386_dr_stopped_data_address): Likewise.
12925 (i386_dr_stopped_by_watchpoint): Likewise.
12927 2014-06-19 Gary Benson <gbenson@redhat.com>
12929 * i386-low.c (i386_dr_show): Renamed to
12930 i386_show_dr and made static. All uses updated.
12931 (i386_dr_length_and_rw_bits): Renamed to
12932 i386_length_and_rw_bits and made static.
12934 (i386_dr_insert_aligned_watchpoint): Renamed to
12935 i386_insert_aligned_watchpoint and made static.
12937 (i386_dr_remove_aligned_watchpoint): Renamed to
12938 i386_remove_aligned_watchpoint and made static.
12940 (i386_dr_update_inferior_debug_regs): Renamed to
12941 i386_update_inferior_debug_regs and made static.
12944 2014-06-18 Gary Benson <gbenson@redhat.com>
12946 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12947 (i386_dr_low_can_set_control): Likewise.
12948 (i386_get_debug_register_length): Likewise.
12949 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12950 (i386_dr_low_can_set_control): Likewise.
12951 (i386_get_debug_register_length): Likewise.
12953 2014-06-17 Gary Benson <gbenson@redhat.com>
12955 * i386-low.h (i386-dregs.h): New include.
12956 (DR_FIRSTADDR): Now in i386-dregs.h.
12957 (DR_LASTADDR): Likewise.
12958 (DR_NADDR): Likewise.
12959 (DR_STATUS): Likewise.
12960 (DR_CONTROL): Likewise.
12961 (i386_debug_reg_state): Likewise.
12962 (i386_dr_insert_watchpoint): Likewise.
12963 (i386_dr_remove_watchpoint): Likewise.
12964 (i386_dr_region_ok_for_watchpoint): Likewise.
12965 (i386_dr_stopped_data_address): Likewise.
12966 (i386_dr_stopped_by_watchpoint): Likewise.
12967 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12969 2014-06-18 Gary Benson <gbenson@redhat.com>
12971 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12972 i386_dr_insert_watchpoint.
12973 (i386_low_remove_watchpoint): Renamed to
12974 i386_dr_remove_watchpoint.
12975 (i386_low_region_ok_for_watchpoint): Renamed to
12976 i386_dr_region_ok_for_watchpoint.
12977 (i386_low_stopped_data_address): Renamed to
12978 i386_dr_stopped_data_address.
12979 (i386_low_stopped_by_watchpoint): Renamed to
12980 i386_dr_stopped_by_watchpoint.
12981 * i386-low.c (i386_show_dr): Renamed to
12982 i386_dr_show and made nonstatic. All uses updated.
12983 (i386_length_and_rw_bits): Renamed to
12984 i386_dr_length_and_rw_bits and made nonstatic.
12986 (i386_insert_aligned_watchpoint): Renamed to
12987 i386_dr_insert_aligned_watchpoint and made nonstatic.
12989 (i386_remove_aligned_watchpoint): Renamed to
12990 i386_dr_remove_aligned_watchpoint and made nonstatic.
12992 (i386_update_inferior_debug_regs): Renamed to
12993 i386_dr_update_inferior_debug_regs and made nonstatic.
12995 (i386_low_insert_watchpoint): Renamed to
12996 i386_dr_insert_watchpoint. All uses updated.
12997 (i386_low_remove_watchpoint): Renamed to
12998 i386_dr_remove_watchpoint. All uses updated.
12999 (i386_low_region_ok_for_watchpoint): Renamed to
13000 i386_dr_region_ok_for_watchpoint. All uses updated.
13001 (i386_low_stopped_data_address): Renamed to
13002 i386_dr_stopped_data_address. All uses updated.
13003 (i386_low_stopped_by_watchpoint): Renamed to
13004 i386_dr_stopped_by_watchpoint. All uses updated.
13006 2014-06-18 Gary Benson <gbenson@redhat.com>
13008 * i386-low.c (i386_dr_low_can_set_addr): New macro.
13009 (i386_dr_low_can_set_control): Likewise.
13010 (i386_insert_aligned_watchpoint): New check.
13012 2014-06-18 Gary Benson <gbenson@redhat.com>
13014 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
13017 2014-06-18 Gary Benson <gbenson@redhat.com>
13019 * i386-low.c (i386_length_and_rw_bits): Use internal_error
13020 instead of fatal and error.
13021 (i386_handle_nonaligned_watchpoint): Likewise.
13023 2014-06-18 Gary Benson <gbenson@redhat.com>
13025 * i386-low.c (i386_get_debug_register_length): New macro.
13026 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
13027 (i386_show_dr): Use debug_printf instead of fprintf. Use
13028 phex to format values.
13030 2014-06-18 Gary Benson <gbenson@redhat.com>
13032 * i386-low.h: Comment changes.
13033 * i386-low.c: Likewise.
13035 2014-06-18 Gary Benson <gbenson@redhat.com>
13037 * i386-low.c: Whitespace changes.
13039 2014-06-12 Tom Tromey <tromey@redhat.com>
13041 * utils.c (freeargv): Remove.
13043 2014-06-12 Tom Tromey <tromey@redhat.com>
13045 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
13046 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
13047 (parse_debug_format_options): Likewise.
13048 (gdbserver_usage): Likewise.
13049 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
13050 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
13051 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
13053 ($(LIBGNU)): Depend on libiberty.
13054 (all-lib): Recurse into all subdirs.
13055 (install-only): Invoke "install" target in subdirs.
13056 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
13058 * configure: Rebuild.
13059 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
13060 for vasprintf, vsnprintf, or gettimeofday.
13061 * configure.srv: Don't add safe-ctype.o or lbasename.o to
13064 2014-06-05 Joel Brobecker <brobecker@adacore.com>
13066 * development.sh: Delete.
13067 * Makefile.in (config.status): Adjust dependency on development.sh.
13068 * configure.ac: Adjust development.sh source call.
13069 * configure: Regenerate.
13071 2014-06-02 Pedro Alves <palves@redhat.com>
13073 * ax.c (gdb_free_agent_expr): New function.
13074 * ax.h (gdb_free_agent_expr): New declaration.
13075 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
13077 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
13079 (clear_breakpoint_conditions_and_commands): New function.
13080 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
13081 (clear_breakpoint_conditions_and_commands): New declaration.
13083 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13085 * linux-aarch64-low.c (asm/ptrace.h): Include.
13087 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13089 Fix TLS access for -static -pthread.
13090 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
13091 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
13092 (thread_db_load_search, try_thread_db_load_1): Initialize it.
13094 2014-05-20 Pedro Alves <palves@redhat.com>
13096 * linux-aarch64-low.c (aarch64_insert_point)
13097 (aarch64_remove_point): No longer check whether the type is
13098 supported here. Adjust to new interface.
13099 (the_low_target): Install aarch64_supports_z_point_type as
13100 supports_z_point_type method.
13101 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
13102 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
13103 instead of a Z packet char. Adjust.
13104 (arm_supports_z_point_type): New function.
13105 (arm_insert_point, arm_remove_point): Adjust to new interface.
13106 (the_low_target): Install arm_supports_z_point_type.
13107 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
13108 (cris_insert_point, cris_remove_point): Adjust to new interface.
13109 Don't check whether the type is supported here.
13110 (the_low_target): Install cris_supports_z_point_type.
13111 * linux-low.c (linux_supports_z_point_type): New function.
13112 (linux_insert_point, linux_remove_point): Adjust to new interface.
13113 * linux-low.h (struct linux_target_ops) <insert_point,
13114 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
13115 raw_breakpoint pointer parameter.
13116 <supports_z_point_type>: New method.
13117 * linux-mips-low.c (mips_supports_z_point_type): New function.
13118 (mips_insert_point, mips_remove_point): Adjust to new interface.
13119 Use mips_supports_z_point_type.
13120 (the_low_target): Install mips_supports_z_point_type.
13121 * linux-ppc-low.c (the_low_target): Install NULL as
13122 supports_z_point_type method.
13123 * linux-s390-low.c (the_low_target): Install NULL as
13124 supports_z_point_type method.
13125 * linux-sparc-low.c (the_low_target): Install NULL as
13126 supports_z_point_type method.
13127 * linux-x86-low.c (x86_supports_z_point_type): New function.
13128 (x86_insert_point): Adjust to new insert_point interface. Use
13129 insert_memory_breakpoint. Adjust to new
13130 i386_low_insert_watchpoint interface.
13131 (x86_remove_point): Adjust to remove_point interface. Use
13132 remove_memory_breakpoint. Adjust to new
13133 i386_low_remove_watchpoint interface.
13134 (the_low_target): Install x86_supports_z_point_type.
13135 * lynx-low.c (lynx_target_ops): Install NULL as
13136 supports_z_point_type callback.
13137 * nto-low.c (nto_supports_z_point_type): New.
13138 (nto_insert_point, nto_remove_point): Adjust to new interface.
13139 (nto_target_ops): Install nto_supports_z_point_type.
13140 * mem-break.c: Adjust intro comment.
13141 (struct raw_breakpoint) <raw_type, size>: New fields.
13142 <inserted>: Update comment.
13143 <shlib_disabled>: Delete field.
13144 (enum bkpt_type) <gdb_breakpoint>: Delete value.
13145 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
13146 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
13147 (raw_bkpt_type_to_target_hw_bp_type): New function.
13148 (find_enabled_raw_code_breakpoint_at): New function.
13149 (find_raw_breakpoint_at): New type and size parameters. Use them.
13150 (insert_memory_breakpoint): New function, based off
13151 set_raw_breakpoint_at.
13152 (remove_memory_breakpoint): New function.
13153 (set_raw_breakpoint_at): Reimplement.
13154 (set_breakpoint): New, based on set_breakpoint_at.
13155 (set_breakpoint_at): Reimplement.
13156 (delete_raw_breakpoint): Go through the_target->remove_point
13157 instead of assuming memory breakpoints.
13158 (find_gdb_breakpoint_at): Delete.
13159 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
13160 (find_gdb_breakpoint): New function.
13161 (set_gdb_breakpoint_at): Delete.
13162 (z_type_supported): New function.
13163 (set_gdb_breakpoint_1): New function, loosely based off
13164 set_gdb_breakpoint_at.
13165 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
13166 (delete_gdb_breakpoint_at): Delete.
13167 (delete_gdb_breakpoint_1): New function, loosely based off
13168 delete_gdb_breakpoint_at.
13169 (delete_gdb_breakpoint): New function.
13170 (clear_gdb_breakpoint_conditions): Rename to ...
13171 (clear_breakpoint_conditions): ... this. Don't handle a NULL
13173 (add_condition_to_breakpoint): Make static.
13174 (add_breakpoint_condition): Take a struct breakpoint pointer
13175 instead of an address. Adjust.
13176 (gdb_condition_true_at_breakpoint): Rename to ...
13177 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
13179 (gdb_condition_true_at_breakpoint): Reimplement.
13180 (add_breakpoint_commands): Take a struct breakpoint pointer
13181 instead of an address. Adjust.
13182 (gdb_no_commands_at_breakpoint): Rename to ...
13183 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
13184 parameter. Return true if no breakpoint was found. Change debug
13186 (gdb_no_commands_at_breakpoint): Reimplement.
13187 (run_breakpoint_commands): Rename to ...
13188 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
13189 and change return type to boolean.
13190 (run_breakpoint_commands): New function.
13191 (gdb_breakpoint_here): Also check for Z1 breakpoints.
13192 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
13193 breakpoint. Go through the_target->remove_point instead of
13194 assuming memory breakpoint.
13195 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
13196 software and hardware breakpoints.
13197 (reinsert_raw_breakpoint): Go through the_target->insert_point
13198 instead of assuming memory breakpoint.
13199 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
13200 software and hardware breakpoints.
13201 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
13202 Check both software and hardware breakpoints.
13203 (validate_inserted_breakpoint): Assert the breakpoint is a
13204 software breakpoint. Set the inserted flag to -1 instead of
13205 setting shlib_disabled.
13206 (delete_disabled_breakpoints): Adjust.
13207 (validate_breakpoints): Only validate software breakpoints.
13208 Adjust to inserted flag change.
13209 (check_mem_read, check_mem_write): Skip breakpoint types other
13210 than software breakpoints. Adjust to inserted flag change.
13211 * mem-break.h (enum raw_bkpt_type): New enum.
13212 (raw_breakpoint, struct process_info): Forward declare.
13213 (Z_packet_to_target_hw_bp_type): Delete declaration.
13214 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
13215 (set_gdb_breakpoint, delete_gdb_breakpoint)
13216 (clear_breakpoint_conditions): New declarations.
13217 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
13218 (breakpoint_inserted_here): Update comment.
13219 (add_breakpoint_condition, add_breakpoint_commands): Replace
13220 address parameter with a breakpoint pointer parameter.
13221 (gdb_breakpoint_here): Update comment.
13222 (delete_gdb_breakpoint_at): Delete.
13223 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
13224 * server.c (process_point_options): Take a struct breakpoint
13225 pointer instead of an address. Adjust.
13226 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
13227 delete_gdb_breakpoint.
13228 * spu-low.c (spu_target_ops): Install NULL as
13229 supports_z_point_type method.
13230 * target.h: Include mem-break.h.
13231 (struct target_ops) <prepare_to_access_memory>: Update comment.
13232 <supports_z_point_type>: New field.
13233 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13234 instead of a char. Also take a raw breakpoint pointer.
13235 * win32-arm-low.c (the_low_target): Install NULL as
13236 supports_z_point_type.
13237 * win32-i386-low.c (i386_supports_z_point_type): New function.
13238 (i386_insert_point, i386_remove_point): Adjust to new interface.
13239 (the_low_target): Install i386_supports_z_point_type.
13240 * win32-low.c (win32_supports_z_point_type): New function.
13241 (win32_insert_point, win32_remove_point): Adjust to new interface.
13242 (win32_target_ops): Install win32_supports_z_point_type.
13243 * win32-low.h (struct win32_target_ops):
13244 <supports_z_point_type>: New method.
13245 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13246 instead of a char. Also take a raw breakpoint pointer.
13248 2014-05-20 Pedro Alves <palves@redhat.com>
13250 * mem-break.h: Include break-common.h.
13251 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13252 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
13253 (Z_packet_to_target_hw_bp_type): New declaration.
13254 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
13255 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
13256 (Z_PACKET_ACCESS_WP): Delete macros.
13257 (Z_packet_to_hw_type): Delete function.
13258 * i386-low.h: Don't include break-common.h here.
13259 (Z_packet_to_hw_type): Delete declaration.
13260 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
13261 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13262 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
13263 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13264 * linux-aarch64-low.c: Don't include break-common.h here.
13265 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13266 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
13267 (Z_packet_to_target_hw_bp_type): Delete function.
13268 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
13270 (mips_insert_point, mips_remove_point): Use
13271 Z_packet_to_target_hw_bp_type.
13273 2014-05-20 Pedro Alves <palves@redhat.com>
13275 * linux-aarch64-low.c: Include break-common.h.
13276 (enum target_point_type): Delete.
13277 (Z_packet_to_point_type): Rename to ...
13278 (Z_packet_to_target_hw_bp_type): ... this, and return a
13279 target_hw_bp_type instead.
13280 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
13281 instead of an enum target_point_type.
13282 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
13284 (aarch64_dr_state_insert_one_point)
13285 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
13286 (aarch64_handle_aligned_watchpoint)
13287 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
13288 Take an enum target_hw_bp_type instead of an enum
13290 (aarch64_supports_z_point_type): New function.
13291 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
13292 use Z_packet_to_target_hw_bp_type.
13294 2014-05-20 Joel Brobecker <brobecker@adacore.com>
13296 * configure.ac: Only use -Werror by default when DEVELOPMENT
13298 * configure: Regenerate.
13300 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
13302 Fix gdbserver qGetTLSAddr for x86_64 -m32.
13303 * linux-x86-low.c (X86_64_USER_REGS): New.
13304 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
13306 2014-04-28 Yao Qi <yao@codesourcery.com>
13308 * Makefile.in (i386-avx512.c): Fix the typo of generated file
13311 2014-04-25 Pedro Alves <palves@redhat.com>
13314 * linux-low.c (linux_attach_fail_reason_string): New function.
13315 (linux_attach_lwp): Delete.
13316 (linux_attach_lwp_1): Rename to ...
13317 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
13318 argument. Remove "initial" parameter. Return int instead of
13319 void. Don't error or warn here.
13320 (linux_attach): Adjust to call linux_attach_lwp. Call error on
13321 failure to attach to the tgid. Call warning when failing to
13323 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
13324 argument. Remove "initial" parameter. Return int instead of
13325 void. Don't error or warn here.
13326 (linux_attach_fail_reason_string): New declaration.
13327 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
13328 interface change. Use linux_attach_fail_reason_string.
13330 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
13331 Walfred Tedeschi <walfred.tedeschi@intel.com>
13333 * Makefile.in: Added rules to handle new files
13334 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
13335 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
13336 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
13337 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
13338 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
13339 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
13340 x32-avx512-linux.o.
13341 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
13342 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
13343 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
13344 i386/x32-avx512.xml.
13345 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
13346 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
13347 i386/x32-avx512-linux.xml.
13348 * i387-fp.c (num_avx512_k_registers): New constant for number
13350 (num_avx512_zmmh_low_registers): New constant for number of
13351 lower ZMM registers (0-15).
13352 (num_avx512_zmmh_high_registers): New constant for number of
13353 higher ZMM registers (16-31).
13354 (num_avx512_ymmh_registers): New contant for number of higher
13355 YMM registers (ymm16-31 added by avx521 on x86_64).
13356 (num_avx512_xmm_registers): New constant for number of higher
13357 XMM registers (xmm16-31 added by AVX512 on x86_64).
13358 (struct i387_xsave): Add space for AVX512 registers.
13359 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
13360 Add code to handle AVX512 registers.
13361 (i387_xsave_to_cache): Add code to handle AVX512 registers.
13362 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
13363 prototypei from generated file.
13364 (tdesc_amd64_avx512_linux): Likewise.
13365 (init_registers_x32_avx512_linux): Likewise.
13366 (tdesc_x32_avx512_linux): Likewise.
13367 (init_registers_i386_avx512_linux): Likewise.
13368 (tdesc_i386_avx512_linux): Likewise.
13369 (x86_64_regmap): Add AVX512 registers.
13370 (x86_linux_read_description): Add code to handle AVX512 XSTATE
13372 (initialize_low_arch): Add code to initialize AVX512 registers.
13374 2014-04-23 Pedro Alves <palves@redhat.com>
13376 * mem-break.c (find_gdb_breakpoint_at): Make static.
13377 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
13379 2014-04-23 Pedro Alves <palves@redhat.com>
13381 * i386-low.c: Don't include break-common.h here.
13382 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13383 prototype to take target_hw_bp_type as argument instead of a Z
13385 * i386-low.h: Include break-common.h here.
13386 (Z_packet_to_hw_type): Declare.
13387 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13389 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13390 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13391 (x86_remove_point): Convert the packet number to a
13392 target_hw_bp_type before calling i386_low_remove_watchpoint.
13393 * win32-i386-low.c (i386_insert_point): Convert the packet number
13394 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13395 (i386_remove_point): Convert the packet number to a
13396 target_hw_bp_type before calling i386_low_remove_watchpoint.
13398 2014-04-23 Pedro Alves <palves@redhat.com>
13400 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13402 2014-04-10 Pedro Alves <palves@redhat.com>
13404 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13405 Check if the condition or command is NULL before checking if the
13406 breakpoint is known. On success, return true.
13407 * mem-break.h (add_breakpoint_condition): Document return.
13408 (add_breakpoint_commands): Add describing comment.
13409 * server.c (skip_to_semicolon): New function.
13410 (process_point_options): Use it.
13412 2014-04-09 Pedro Alves <palves@redhat.com>
13414 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13417 2014-02-27 Pedro Alves <palves@redhat.com>
13420 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13422 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13424 (last_thread_of_process_p): Take a PID argument instead of a
13426 (linux_wait_for_lwp): Delete.
13427 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13429 (linux_low_filter_event): New function, party factored out from
13430 linux_wait_for_event.
13431 (linux_wait_for_event): Rename to ...
13432 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13433 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13434 sigsuspend. Check for zombie leaders.
13435 (linux_wait_for_event): Reimplement as wrapper around
13436 linux_wait_for_event_filtered.
13437 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13438 a normal or signal exit is seen, it's the whole process exiting.
13439 (wait_for_sigstop): No longer a for_each_inferior callback.
13440 Rewrite on top of linux_wait_for_event_filtered.
13441 (stop_all_lwps): Call wait_for_sigstop directly.
13442 * server.c (resume, handle_target_event): Handle
13443 TARGET_WAITKIND_NO_RESUMED.
13445 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13447 * win32-low.c (psapi_get_dll_name,
13448 * win32_CreateToolhelp32Snapshot): Delete.
13449 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13450 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13452 (handle_load_dll): Add function description.
13453 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13455 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13457 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13459 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13460 base address when calling win32_add_one_solib.
13461 (handle_load_dll): Delete local variable load_addr.
13462 Remove 0x1000 offset applied to DLL base address when calling
13463 win32_add_one_solib.
13464 (handle_unload_dll): Add comment.
13466 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13468 * win32-low.c (win32_add_all_dlls): Renames
13469 win32_ensure_ntdll_loaded. Rewrite function documentation.
13470 Adjust implementation to always load all DLLs.
13471 Add 0x1000 offset to DLL base address when calling
13472 win32_add_one_solib.
13473 (child_initialization_done): New static global.
13474 (do_initial_child_stuff): Set child_initialization_done to
13475 zero during child initialization, and 1 after. Replace call
13476 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13478 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13479 (handle_unload_dll): Add function documentation.
13480 (get_child_debug_event): Ignore load and unload DLL events
13481 during child initialization.
13483 2014-02-20 Doug Evans <dje@google.com>
13485 Remove global all_lwps.
13486 * inferiors.h (ptid_of): Move here from linux-low.h.
13487 (pid_of, lwpid_of): Ditto.
13488 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13489 parameter is a struct thread_info * now.
13490 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13491 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13492 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13494 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13495 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13496 * linux-arm-low.c (update_registers_callback): Update, "entry"
13497 parameter is a struct thread_info * now.
13498 Fetch lwpid from current_inferior directly.
13499 (arm_insert_point): Pass &all_threads to find_inferior instead of
13501 (arm_remove_point): Ditto.
13502 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13503 (arm_prepare_to_resume): Fetch pid from thread.
13504 (arm_read_description): Fetch lwpid from current_inferior directly.
13505 * linux-low.c (all_lwps): Delete.
13506 (delete_lwp): Delete call to remove_inferior.
13507 (handle_extended_wait): Fetch lwpid from thread.
13508 (add_lwp): Don't set lwp->entry.id. Remove call to
13509 add_inferior_to_list.
13510 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13511 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13512 (kill_one_lwp_callback): Ditto.
13513 (linux_kill): Don't dereference NULL pointer.
13514 Fetch ptid,lwpid from thread.
13515 (get_detach_signal): Fetch ptid from thread.
13516 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13517 Simplify call to regcache_invalidate_thread.
13518 (delete_lwp_callback): Update, "entry" parameter is a
13519 struct thread_info * now. Fetch pid from thread.
13520 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13521 (status_pending_p_callback): Update, "entry" parameter is a
13522 struct thread_info * now. Fetch ptid from thread.
13523 (find_lwp_pid): Update, "entry" parameter is a
13524 struct thread_info * now.
13525 (linux_wait_for_lwp): Fetch pid from thread.
13526 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13527 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13528 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13529 (dequeue_one_deferred_signal): Ditto.
13530 (cancel_breakpoint): Fetch ptid from current_inferior.
13531 (linux_wait_for_event): Pass &all_threads to find_inferior,
13532 not &all_lwps. Fetch ptid, lwpid from thread.
13533 (count_events_callback): Update, "entry" parameter is a
13534 struct thread_info * now.
13535 (select_singlestep_lwp_callback): Ditto.
13536 (select_event_lwp_callback): Ditto.
13537 (cancel_breakpoints_callback): Ditto.
13538 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13540 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13541 (unsuspend_one_lwp): Update, "entry" parameter is a
13542 struct thread_info * now.
13543 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13545 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13546 Fetch lwpid from thread, not lwp.
13547 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13548 Pass &all_threads to find_inferior, not &all_lwps.
13549 (send_sigstop): Fetch lwpid from thread, not lwp.
13550 (send_sigstop_callback): Update, "entry" parameter is a
13551 struct thread_info * now.
13552 (suspend_and_send_sigstop_callback): Ditto.
13553 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13554 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13555 struct thread_info * now.
13556 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13558 (lwp_running): Update, "entry" parameter is a
13559 struct thread_info * now.
13560 (stop_all_lwps): Fetch ptid from thread.
13561 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13562 (linux_resume_one_lwp): Fetch lwpid from thread.
13563 (linux_set_resume_request): Update, "entry" parameter is a
13564 struct thread_info * now. Fetch pid, lwpid from thread.
13565 (resume_status_pending_p): Update, "entry" parameter is a
13566 struct thread_info * now.
13567 (need_step_over_p): Ditto. Fetch lwpid from thread.
13568 (start_step_over): Fetch lwpid from thread.
13569 (linux_resume_one_thread): Update, "entry" parameter is a
13570 struct thread_info * now. Fetch lwpid from thread.
13571 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13572 (proceed_one_lwp): Update, "entry" parameter is a
13573 struct thread_info * now. Fetch lwpid from thread.
13574 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13575 struct thread_info * now.
13576 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13577 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13578 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13580 (regsets_store_inferior_registers): Ditto.
13581 (fetch_register, store_register): Ditto.
13582 (linux_read_memory, linux_write_memory): Ditto.
13583 (linux_request_interrupt): Ditto.
13584 (linux_read_auxv): Ditto.
13585 (linux_xfer_siginfo): Ditto.
13586 (linux_qxfer_spu): Ditto.
13587 (linux_qxfer_libraries_svr4): Ditto.
13588 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13589 moved to inferiors.h.
13591 (get_thread_lwp): Update.
13592 (struct lwp_info): Delete member "entry". Simplify comment for
13594 (all_lwps): Delete.
13595 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13596 current_inferior directly.
13597 (update_watch_registers_callback): Update, "entry" parameter is a
13598 struct thread_info * now. Fetch pid from thread.
13599 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13600 (mips_insert_point): Fetch lwpid from current_inferior.
13601 Pass &all_threads to find_inferior, not &all_lwps.
13602 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13603 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13605 (mips_stopped_data_address): Ditto.
13606 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13608 * linux-tile-low.c (tile_arch_setup): Ditto.
13609 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13610 (update_debug_registers_callback): Update, "entry" parameter is a
13611 struct thread_info * now. Fetch pid from thread.
13612 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13613 Pass &all_threads to find_inferior, not &all_lwps.
13614 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13615 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13616 Pass &all_threads to find_inferior, not &all_lwps.
13617 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13618 (i386_dr_low_get_status): Ditto.
13619 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13620 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13621 (x86_linux_read_description): Ditto.
13622 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13624 2014-02-20 Doug Evans <dje@google.com>
13626 * inferiors.c (get_first_inferior): Fix buglet.
13628 2014-02-19 Doug Evans <dje@google.com>
13630 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13631 * inferiors.c (add_thread): Change result type to struct thread_info *.
13632 All callers updated.
13633 (add_lwp): Call add_thread here instead of in callers.
13634 All callers updated.
13635 * linux-low.h (get_lwp_thread): Rewrite.
13636 (struct lwp_info): New member "thread".
13638 2014-02-19 Doug Evans <dje@google.com>
13640 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13641 All callers updated.
13643 2014-02-19 Doug Evans <dje@google.com>
13645 * inferiors.c (add_thread): Fix whitespace.
13647 2014-02-19 Doug Evans <dje@google.com>
13649 * dll.c (clear_dlls): Replace accessing list implemention details
13651 * gdbthread.h (get_first_thread): Declare.
13652 * inferiors.c (for_each_inferior_with_data): New function.
13653 (get_first_thread): New function.
13654 (find_thread_ptid): Simplify.
13655 (get_first_inferior): New function.
13656 (clear_list): Delete.
13657 (one_inferior_p): New function.
13658 (clear_inferior_list): New function.
13659 (clear_inferiors): Update.
13660 * inferiors.h (for_each_inferior_with_data): Declare.
13661 (clear_inferior_list): Declare.
13662 (one_inferior_p): Declare.
13663 (get_first_inferior): Declare.
13664 * linux-low.c (linux_wait_for_event): Replace accessing list
13665 implemention details with API function.
13666 * server.c (target_running): Ditto.
13667 (accumulate_file_name_length): New function.
13668 (emit_dll_description): New function.
13669 (handle_qxfer_libraries): Replace accessing list implemention
13670 details with API function.
13671 (handle_qxfer_threads_worker): New function.
13672 (handle_qxfer_threads_proper): Replace accessing list implemention
13673 details with API function.
13674 (handle_query): Ditto.
13675 (visit_actioned_threads_callback_ftype): New typedef.
13676 (visit_actioned_threads_data): New struct.
13677 (visit_actioned_threads): Rewrite to be find_inferior callback.
13678 (resume): Call find_inferior.
13679 (handle_status): Replace accessing list implemention
13680 details with API function.
13681 (process_serial_event): Replace accessing list implemention details
13683 * target.c (set_desired_inferior): Replace accessing list implemention
13684 details with API function.
13685 * tracepoint.c (same_process_p): New function.
13686 (gdb_agent_about_to_close): Replace accessing list implemention
13687 details with API function.
13688 * win32-low.c (child_delete_thread): Replace accessing list
13689 implemention details with API function.
13690 (match_dll_by_basename): New function.
13691 (dll_is_loaded_by_basename): New function.
13692 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13693 details call to dll_is_loaded_by_basename.
13695 2014-02-19 Doug Evans <dje@google.com>
13697 * dll.h (struct dll_info): Add comment.
13698 * gdbthread.h (struct thread_info): Add comment.
13699 (current_ptid): Simplify.
13700 * inferiors.c (add_process): Update.
13701 (remove_process): Update.
13702 * inferiors.h (struct process_info): Rename member "head" to "entry".
13703 * linux-low.c (delete_lwp): Update.
13705 (last_thread_of_process_p): Update.
13706 (kill_one_lwp_callback, linux_kill): Update.
13707 (status_pending_p_callback): Update.
13708 (wait_for_sigstop): Update. Simplify read of ptid.
13709 (start_step_over): Update.
13710 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13711 (get_lwp_thread): Update.
13712 (struct lwp_info): Rename member "head" to "entry".
13713 * regcache.h (inferior_list_entry): Delete.
13714 * server.c (kill_inferior_callback): Update.
13715 (detach_or_kill_inferior_callback): Update.
13716 (print_started_pid): Update.
13717 (print_attached_pid): Update.
13718 (process_serial_event): Simplify read of ptid.
13719 * thread-db.c (thread_db_create_event): Update.
13720 (thread_db_get_tls_address): Update.
13721 * win32-low.c (current_inferior_ptid): Simplify.
13723 2014-02-19 Tom Tromey <tromey@redhat.com>
13725 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13727 (target_supports_btrace): Update.
13729 2014-02-14 Yao Qi <yao@codesourcery.com>
13731 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13732 (rsp-low-ipa.o): New target.
13734 2014-02-12 Tom Tromey <tromey@redhat.com>
13736 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13737 convert_ascii_to_int.
13738 * regcache.c (registers_to_string): Likewise.
13739 * remote-utils.c (decode_M_packet): Likewise.
13740 * server.c (process_serial_event): Likewise.
13742 2014-02-12 Tom Tromey <tromey@redhat.com>
13744 * server.c (handle_query, handle_v_run): Use hex2bin, not
13746 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13748 2014-02-12 Tom Tromey <tromey@redhat.com>
13750 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13751 convert_int_to_ascii.
13752 * regcache.c (registers_to_string, collect_register_as_string):
13754 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13756 * server.c (process_serial_event): Likewise.
13757 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13758 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13760 2014-02-12 Tom Tromey <tromey@redhat.com>
13762 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13763 bin2hex, not hexify.
13764 * tracepoint.c (cmd_qtstatus): Likewise.
13766 2014-02-12 Tom Tromey <tromey@redhat.com>
13768 * remote-utils.c (monitor_output): Pass explicit length to
13771 2014-02-12 Tom Tromey <tromey@redhat.com>
13773 * tracepoint.c: Include rsp-low.h.
13774 * server.c: Include rsp-low.h.
13775 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13776 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13778 * remote-utils.c: Include rsp-low.h.
13779 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13780 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13781 (convert_int_to_ascii, convert_ascii_to_int): Move to
13783 * regcache.c: Include rsp-low.h.
13784 * ax.c: Include rsp-low.h.
13785 * Makefile.in (SFILES): Add common/rsp-low.c.
13786 (OBS): Add rsp-low.o.
13787 (rsp-low.o): New target.
13789 2014-02-12 Tom Tromey <tromey@redhat.com>
13791 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13792 Include print-utils.h.
13793 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13794 (plongest, thirty_two, phex_nz): Remove.
13795 * Makefile.in (SFILES): Add common/print-utils.c.
13796 (OBS): Add print-utils.o.
13797 (print-utils-ipa.o): New target.
13798 (print-utils.o): New target.
13799 (IPA_OBJS): Add print-utils-ipa.o.
13801 2014-02-06 Tom Tromey <tromey@redhat.com>
13803 * Makefile.in (SFILES): Fix indentation.
13805 2014-02-05 Doug Evans <dje@google.com>
13807 * linux-low.c (linux_wait_for_event): Improve comment.
13808 (linux_wait_1): Keep current_inferior in sync with event_child.
13810 2014-01-22 Doug Evans <dje@google.com>
13812 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13814 2014-01-22 Doug Evans <dje@google.com>
13816 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13817 * configure: Regenerate.
13818 * config.in: Regenerate.
13819 * Makefile.in (SFILES): Add debug.c.
13820 (OBS): Add debug.o.
13821 * debug.c: New file.
13822 * debug.h: New file.
13823 * linux-aarch64-low.c (*): Update all debugging printfs to use
13824 debug_printf instead of fprintf.
13825 * linux-arm-low.c (*): Ditto.
13826 * linux-cris-low.c (*): Ditto.
13827 * linux-crisv32-low.c (*): Ditto.
13828 * linux-m32r-low.c (*): Ditto.
13829 * linux-sparc-low.c (*): Ditto.
13830 * linux-x86.c (*): Ditto.
13831 * linux-low.c (*): Ditto.
13832 (linux_wait_1): Add calls to debug_enter, debug_exit.
13833 (linux_wait): Remove redundant debugging printf.
13834 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13835 (linux_resume, unstop_all_lwps): Ditto.
13836 * mem-break.c (*): Update all debugging printfs to use
13837 debug_printf instead of fprintf.
13838 * remote-utils.c (*): Ditto.
13839 * thread-db.c (*): Ditto.
13840 * server.c #include <ctype.h>, "gdb_vecs.h".
13841 (debug_threads): Moved to debug.c.
13842 (*): Update all debugging printfs to use debug_printf instead of
13844 (start_inferior): Replace call to fflush with call to debug_flush.
13845 (monitor_show_help): Mention set debug-format.
13846 (parse_debug_format_options): New function.
13847 (handle_monitor_command): Handle "monitor set debug-format".
13848 (gdbserver_usage): Mention --debug-format.
13849 (main): Parse --debug-format.
13850 * server.h (debug_threads): Declaration moved to debug.h.
13851 #include "debug.h".
13852 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13853 trace_debug_1 that uses debug_printf.
13854 (tracepoint_look_up_symbols): Update all debugging printfs to use
13855 debug_printf instead of fprintf.
13857 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13859 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13862 2014-01-17 Pedro Alves <palves@redhat.com>
13865 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13866 defined after including gdb_proc_service.h.
13868 2014-01-16 Doug Evans <dje@google.com>
13870 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13871 (match_dll): Use it.
13873 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13875 * target.h (target_ops) <read_btrace>: Change parameters and
13876 return type to allow error reporting.
13877 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13878 trace reading errors on.
13879 * linux-low.c (linux_low_read_btrace): Pass trace reading
13881 (linux_low_disable_btrace): New.
13883 2014-01-15 Doug Evans <dje@google.com>
13885 * inferiors.c (thread_id_to_gdb_id): Delete.
13886 * inferiors.h (thread_id_to_gdb_id): Delete.
13888 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13890 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13891 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13894 2014-01-08 Pedro Alves <palves@redhat.com>
13896 * server.c (handle_status): Don't discard previous queued stop
13897 replies or thread's pending status here.
13898 (main) <disconnection>: Do it here instead.
13900 2014-01-08 Pedro Alves <palves@redhat.com>
13902 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13903 * server.c (visit_actioned_threads, handle_pending_status): New
13905 (handle_v_cont): Factor out parts to ...
13906 (resume): ... this new function. If in all-stop, and a thread
13907 being resumed has a pending status, report it without actually
13909 (myresume): Adjust to use the new 'resume' function.
13910 (clear_pending_status_callback, set_pending_status_callback)
13911 (find_status_pending_thread_callback): New functions.
13912 (handle_status): Handle the case of multiple threads having
13913 interesting statuses to report. Report threads' real last signal
13914 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13915 with an interesting thread to report the status for, instead of
13916 always reporting the status of the first thread.
13918 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13920 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13921 * gdbreplay.c (gdbreplay_version): Likewise.
13923 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13925 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13926 iov.iov_len with the real length in use.
13928 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13930 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13931 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13932 for all targets that use win32-low.c.
13933 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13934 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13936 2013-12-13 Pedro Alves <palves@redhat.com>
13938 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13939 if equal to TARGET_WAITKIND_LOADED.
13940 * win32-low.c (cached_status): New static global.
13941 (win32_wait): Add declaration.
13942 (do_initial_child_stuff): Flush all initial pending debug events
13943 up to the initial breakpoint.
13944 (win32_wait): If CACHED_STATUS was set, return that instead
13945 of doing a real wait. Remove the code resuming the execution
13946 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13947 during the initial phase. Also remove the code changing
13948 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13949 TARGET_WAITKIND_STOPPED.
13951 2013-12-11 Yao Qi <yao@codesourcery.com>
13953 * notif.c (handle_notif_ack): Return 0 if no notification
13956 2013-11-20 Doug Evans <dje@google.com>
13958 * linux-low.c (linux_set_resume_request): Fix comment.
13960 2013-11-20 Doug Evans <dje@google.com>
13962 * linux-low.c (resume_status_pending_p): Tweak comment.
13964 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13966 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13967 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13968 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13969 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13970 (srv_amd64_regobj): Add amd64-mpx.o.
13971 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13972 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13973 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13974 * i387-fp.c (num_pl_bnd_register) Added constant.
13975 (num_pl_bnd_cfg_registers) Added constant.
13976 (struct i387_xsave) Added reserved area and MPX fields.
13977 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13978 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13980 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13981 (init_registers_amd64_mpx_linux): Declare new function.
13982 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13983 (x86_64_regmap): Add MPX registers.
13984 (x86_linux_read_description): Add MPX case.
13985 (initialize_low_arch): Initialize MPX targets.
13987 2013-11-18 Tom Tromey <tromey@redhat.com>
13989 * configure: Rebuild.
13990 * configure.ac: Don't check for stdlib.h.
13991 * gdbreplay.c: Unconditionally include stdlib.h.
13993 2013-11-18 Tom Tromey <tromey@redhat.com>
13995 * config.in: Rebuild.
13996 * configure: Rebuild.
13997 * configure.ac: Don't use AC_HEADER_DIRENT.
13999 2013-11-18 Tom Tromey <tromey@redhat.com>
14001 * server.h: Don't check HAVE_STRING_H.
14002 * gdbreplay.c: Don't check HAVE_STRING_H.
14003 * configure: Rebuild.
14005 2013-11-18 Tom Tromey <tromey@redhat.com>
14007 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
14010 2013-11-08 Tom Tromey <tromey@redhat.com>
14012 * configure, config.in: Rebuild.
14013 * configure.ac: Remove unused configury.
14015 2013-11-08 Tom Tromey <tromey@redhat.com>
14017 * acinclude.m4: Include common.m4, codeset.m4.
14018 * configure, config.in: Rebuild.
14019 * configure.ac: Use GDB_AC_COMMON.
14021 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
14023 * linux-s390-low.c (HWCAP_S390_TE): New define.
14024 (s390_arch_setup): Consider the TE field in the HWCAP for
14025 determining 'have_regset_tdb'.
14027 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
14030 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
14033 2013-10-02 Pedro Alves <palves@redhat.com>
14035 * server.c (process_serial_event): Don't output "GDBserver
14036 exiting" if GDB is connected through stdio.
14037 * target.c (mywait): Likewise, be silent if GDB is connected
14040 2013-10-01 Joel Brobecker <brobecker@adacore.com>
14042 * lynx-low.c (lynx_add_threads_after_attach): New function.
14043 (lynx_attach): Remove call to add_thread. Add call to
14044 lynx_add_threads_after_attach instead.
14046 2013-09-28 Mike Frysinger <vapier@gentoo.org>
14048 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
14049 * config.in, configure: Regenerated.
14051 2013-09-18 Yao Qi <yao@codesourcery.com>
14054 * server.c (start_inferior): Clear 'resume_info'.
14056 2013-09-16 Jiong Wang <jiwang@tilera.com>
14058 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
14061 2013-09-16 Jiong Wang <jiwang@tilera.com>
14063 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
14064 linux-tile-low.o to srv_tgtobj.
14066 2013-09-16 Will Newton <will.newton@linaro.org>
14068 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
14071 2013-09-06 Pedro Alves <palves@redhat.com>
14073 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
14074 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
14075 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
14076 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
14077 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
14078 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
14080 2013-09-06 Pedro Alves <palves@redhat.com>
14082 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
14083 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
14085 2013-09-06 Pedro Alves <palves@redhat.com>
14087 * linux-amd64-ipa.c: Include tracepoint.h.
14088 * linux-i386-ipa.c: Include tracepoint.h.
14090 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
14092 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
14093 (ps_get_thread_area): New function.
14095 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
14097 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
14098 (initialize_low_arch): Call init_registers_crisv32 rather than
14099 init_register_crisv32.
14101 2013-09-05 Pedro Alves <palves@redhat.com>
14103 * server.h (handle_vFile, hostio_last_error_from_errno): Move
14105 * hostio.h: ... this new file.
14106 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
14107 win32-low.c: Include hostio.h.
14109 2013-09-05 Pedro Alves <palves@redhat.com>
14111 * server.h (gdb_client_data, handler_func, callback_handler_func)
14112 (delete_file_handler, add_file_handler, append_callback_event)
14113 (delete_callback_event, start_event_loop, initialize_event_loop):
14114 Move to event-loop.h and include it.
14115 * event-loop.h: New file.
14117 2013-09-05 Pedro Alves <palves@redhat.com>
14119 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
14120 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
14121 (loaded_dll, unloaded_dll): Move to ...
14122 * dll.h: ... this new file.
14123 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
14125 2013-09-05 Pedro Alves <palves@redhat.com>
14127 * server.h (current_process, get_thread_process, all_processes)
14128 (add_inferior_to_list, for_each_inferior, current_inferior)
14129 (remove_inferior, add_process, remove_process, find_process_pid)
14130 (have_started_inferiors_p, have_attached_inferiors_p)
14131 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
14132 (clear_inferiors, find_inferior, find_inferior_id)
14133 (inferior_target_data, set_inferior_target_data)
14134 (inferior_regcache_data, set_inferior_regcache_data): Move to
14135 inferiors.h, and include it.
14136 * inferiors.h: New file.
14138 2013-09-05 Pedro Alves <palves@redhat.com>
14140 * server.h (struct emit_ops, current_insn_ptr, emit_error):
14144 2013-09-05 Pedro Alves <palves@redhat.com>
14146 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
14148 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
14149 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
14150 (handle_tracepoint_general_set, handle_tracepoint_query)
14151 (tracepoint_finished_step, tracepoint_was_hit)
14152 (release_while_stepping_state_list, current_traceframe)
14153 (in_readonly_region, traceframe_read_mem)
14154 (fetch_traceframe_registers, traceframe_read_sdata)
14155 (traceframe_read_info, struct fast_tpoint_collect_status)
14156 (fast_tracepoint_collecting, force_unlock_trace_buffer)
14157 (handle_tracepoit_bkpts, initialize_low_tracepoint)
14158 (supply_fast_tracepoint_registers)
14159 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
14160 (ipa_tdesc, claim_trampoline_space)
14161 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
14162 (agent_mem_read, agent_get_trace_state_variable_value)
14163 (agent_set_trace_state_variable_value, agent_tsv_read)
14164 (agent_mem_read_string, get_raw_reg_func_addr)
14165 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
14166 * tracepoint.h: ... this new file.
14168 2013-09-05 Pedro Alves <palves@redhat.com>
14170 * server.h (perror_with_name, error, fatal, warning, paddress)
14171 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
14173 * utils.h: New file.
14175 2013-09-05 Pedro Alves <palves@redhat.com>
14177 * server.h (remote_debug, noack_mode, transport_is_reliable)
14178 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
14179 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
14180 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
14181 (write_enn, initialize_async_io, enable_async_io)
14182 (disable_async_io, check_remote_input_interrupt_request)
14183 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
14184 (dead_thread_notify, prepare_resume_reply)
14185 (decode_address_to_semicolon, decode_address, decode_m_packet)
14186 (decode_M_packet, decode_X_packet, decode_xfer_write)
14187 (decode_search_memory_packet, unhexify, hexify)
14188 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
14189 (look_up_one_symbol, relocate_instruction)
14190 (monitor_output): Move to remote-utils.h, and include it.
14191 * remote-utils.h: New file.
14193 2013-09-05 Pedro Alves <palves@redhat.com>
14195 * server.h (_): Delete.
14197 2013-09-02 Pedro Alves <palves@redhat.com>
14199 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
14200 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
14202 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
14204 2013-09-02 Pierre Muller <muller@sourceware.org>
14206 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
14207 or WriteProcessMemory complete successfully and handle
14208 ERROR_PARTIAL_COPY error.
14210 2013-09-02 Pedro Alves <palves@redhat.com>
14212 * server.c (gdb_read_memory): Return -1 on traceframe memory read
14213 error instead of EIO.
14215 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14218 * linux-low.c: Include filestuff.h.
14219 (linux_create_inferior) <pid == 0>: Call close_most_fds.
14220 * lynx-low.c: Include filestuff.h.
14221 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
14222 * server.c: Include filestuff.h.
14223 (main): Call notice_open_fds.
14224 * spu-low.c: Include filestuff.h.
14225 (spu_create_inferior) <pid == 0>: Call close_most_fds.
14227 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
14229 * Makefile.in: Explain why ../target and ../nat are not
14230 listed as include file search paths.
14231 (linux-waitpid.o): New object file rule.
14232 * configure.srv (srv_native_linux_obj): New variable.
14233 Replace all occurrences of linux native object files with
14234 $srv_native_linux_obj.
14235 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
14236 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
14237 (linux_enable_event_reporting): Remove declaration.
14238 (my_waitpid): Moved to common/linux-waitpid.c.
14239 (linux_wait_for_event): Pass ptid when calling
14240 linux_enable_event_reporting.
14241 (linux_supports_tracefork_flag): Remove.
14242 (linux_enable_event_reporting): Likewise.
14243 (linux_tracefork_grandchild): Remove.
14244 (STACK_SIZE): Moved to common/linux-ptrace.c.
14245 (linux_tracefork_child): Remove.
14246 (linux_test_for_tracefork): Remove.
14247 (linux_look_up_symbols): Call linux_supports_traceclone.
14248 (initialize_low): Remove call to linux_test_for_tracefork.
14249 * linux-low.h (PTRACE_TYPE_ARG3): Move to
14250 common/linux-ptrace.h.
14251 (PTRACE_TYPE_ARG4): Likewise.
14252 Include linux-ptrace.h.
14254 2013-08-21 Pedro Alves <palves@redhat.com>
14256 * config.in: Renegerate.
14258 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
14260 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
14261 (SFILES): Remove $(srcdir)/common/target-common.c and
14262 add $(srcdir)/target/waitstatus.c.
14263 (OBS): Remove target-common.o and add waitstatus.o.
14264 (server_h): Remove $(srcdir)/../common/target-common.h and
14265 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
14266 and $(srcdir)/../target/waitstatus.h.
14267 (target-common.o): Remove.
14268 (waitstatus.o): New target object file.
14269 * target.h: Do not include target-common.h and
14270 include target/resume.h, target/wait.h and
14271 target/waitstatus.h.
14273 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
14275 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14276 to PTRACE_TYPE_ARG3.
14277 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14278 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
14280 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
14281 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
14283 2013-07-27 Jie Zhang <jie@codesourcery.com>
14284 Daniel Jacobowitz <dan@codesourcery.com>
14285 Yao Qi <yao@codesourcery.com>
14287 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
14288 (mips-linux-watch.o): New rule.
14289 (mips_linux_watch_h): New variable.
14290 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
14292 * linux-mips-low.c: Include mips-linux-watch.h.
14293 (struct arch_process_info, struct arch_lwp_info): New.
14294 (update_watch_registers_callback): New function.
14295 (mips_linux_new_process, mips_linux_new_thread) New functions.
14296 (mips_linux_prepare_to_resume, mips_insert_point): New
14298 (mips_remove_point, mips_stopped_by_watchpoint): New
14300 (rsp_bp_type_to_target_hw_bp_type): New function.
14301 (mips_stopped_data_address): New function.
14302 (the_low_target): Add watchpoint support functions.
14304 2013-07-27 Yao Qi <yao@codesourcery.com>
14306 * i386-low.c: Include break-common.h.
14307 (enum target_hw_bp_type): Remove.
14309 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
14311 * Makefile.in (SFILES): /common/target-common.c.
14312 (OBS): Add target-common.o.
14313 (server_h): Add $(srcdir)/../common/target-common.h.
14314 (target-common.o): New target.
14315 * server.c (queue_stop_reply_callback): Free
14316 status string after use.
14317 * target.c (target_waitstatus_to_string): Remove.
14318 * target.h: Include target-common.h.
14319 (resume_kind): Likewise.
14320 (target_waitkind): Likewise.
14321 (target_waitstatus): Likewise.
14322 (TARGET_WNOHANG): Likewise.
14324 2013-07-04 Yao Qi <yao@codesourcery.com>
14326 * Makefile.in (host_alias): Use @host_noncanonical@.
14327 (target_alias): Use @target_noncanonical@.
14328 * configure.ac: Use ACX_NONCANONICAL_TARGET and
14329 ACX_NONCANONICAL_HOST.
14330 * configure: Regenerated.
14333 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14335 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14336 * configure: Rebuild.
14337 * Makefile.in (version_host, version_target): Get from configure.
14338 (version.c): Use $(version_host) and $(version_target).
14340 2013-07-03 Pedro Alves <palves@redhat.com>
14342 * Makefile.in (config.status): Depend on development.sh.
14343 * acinclude.m4: Include libmcheck.m4.
14344 * configure: Regenerate.
14346 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14348 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
14349 attribute inside the parentheses.
14350 (winapi_DebugSetProcessKillOnExit): Ditto.
14351 (winapi_DebugBreakProcess): Ditto.
14352 (winapi_GenerateConsoleCtrlEvent): Ditto.
14354 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14356 * notif.h (notif_event): Add a dummy member to avoid compiler
14359 2013-07-01 Pedro Alves <palves@redhat.com>
14361 * hostio.c (HOSTIO_PATH_MAX): Define.
14362 (require_filename, handle_open, handle_unlink, handle_readlink):
14365 2013-07-01 Pedro Alves <palves@redhat.com>
14367 * server.h: Include "pathmax.h".
14368 * linux-low.c: Don't include sys/param.h.
14369 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
14371 * win32-low.c: Don't include sys/param.h.
14372 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
14374 2013-07-01 Pedro Alves <palves@redhat.com>
14376 * event-loop.c: Don't check HAVE_UNISTD_H before including
14378 * gdbreplay.c: Likewise.
14379 * remote-utils.c: Likewise.
14380 * server.c: Likewise.
14381 * configure.ac: Don't check for unistd.h.
14382 * configure: Regenerate.
14384 2013-06-28 Tom Tromey <tromey@redhat.com>
14386 * Makefile.in (version.c): Use version.in, not
14389 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14391 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14392 * configure: Rebuild.
14393 * Makefile.in (version_host, version_target): Get from configure.
14394 (version.c): Use $(version_host) and $(version_target).
14396 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14398 Fix trace-status to output user name without trailing colon.
14399 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14401 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14403 Fix trace-status to output proper start-time and stop-time.
14404 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14405 output start time and stop time in hex as gdb expects.
14407 2013-06-26 Pedro Alves <pedro@codesourcery.com>
14409 * tracepoint.c (build_traceframe_info_xml): Output trace state
14410 variables present in the trace buffer.
14412 2013-06-24 Tom Tromey <tromey@redhat.com>
14414 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14416 (version.o): Remove.
14417 * gdbreplay.c: Include version.h.
14418 (version, host_name): Don't declare.
14419 * server.h: Include version.h.
14420 (version, host_name): Don't declare.
14422 2013-06-12 Pedro Alves <palves@redhat.com>
14424 * linux-x86-low.c (linux_is_elf64): Delete global.
14425 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14426 with local linux_pid_exe_is_elf_64_file use.
14428 2013-06-11 Pedro Alves <palves@redhat.com>
14430 * linux-low.c (regset_disabled, disable_regset): New functions.
14431 (regsets_fetch_inferior_registers)
14432 (regsets_store_inferior_registers): Use them.
14433 (initialize_regsets_info); Don't allocate the disabled_regsets
14435 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14438 2013-06-11 Pedro Alves <palves@redhat.com>
14440 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14443 2013-06-11 Pedro Alves <palves@redhat.com>
14445 * linux-x86-low.c (initialize_low_arch): Call
14446 init_registers_x32_avx_linux.
14448 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14450 Fix compatibility with Android Bionic.
14451 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14454 2013-06-07 Pedro Alves <palves@redhat.com>
14457 * Makefile.in (OBS): Add tdesc.o.
14458 (IPA_OBJS): Add tdesc-ipa.o.
14459 (tdesc-ipa.o): New rule.
14460 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14462 * linux-low.c (new_inferior): Delete.
14463 (disabled_regsets, num_regsets): Delete.
14464 (linux_add_process): Adjust to set the new per-process
14466 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14467 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14468 was a stop. When calling arch_setup, switch the current inferior
14469 to the thread that got an event.
14470 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14471 (regsets_fetch_inferior_registers)
14472 (regsets_store_inferior_registers): New regsets_info parameter.
14474 (linux_register_in_regsets): New regs_info parameter. Adjust to
14476 (register_addr, fetch_register, store_register): New usrregs_info
14477 parameter. Adjust to use it.
14478 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14479 parameter regs_info. Adjust to use it.
14480 (linux_fetch_registers): Get the current inferior's regs_info, and
14482 (linux_store_registers): Ditto.
14483 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14484 (initialize_low): Don't initialize the target_regsets here. Call
14485 initialize_low_arch.
14486 * linux-low.h (target_regsets): Delete declaration.
14487 (struct regsets_info): New.
14488 (struct usrregs_info): New.
14489 (struct regs_info): New.
14490 (struct process_info_private) <new_inferior>: New field.
14491 (struct linux_target_ops): Delete the num_regs, regmap, and
14492 regset_bitmap fields. New field regs_info.
14493 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14494 * i387-fp.c (num_xmm_registers): Delete.
14495 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14496 calls to new interface.
14497 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14498 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14499 Infer the number of xmm registers from the regcache's target
14501 * i387-fp.h (num_xmm_registers): Delete.
14502 * inferiors.c (add_thread): Don't install the thread's regcache
14504 * proc-service.c (gregset_info): Fetch the current inferior's
14505 regs_info. Adjust to use it.
14506 * regcache.c: Include tdesc.h.
14507 (register_bytes, reg_defs, num_registers)
14508 (gdbserver_expedite_regs): Delete.
14509 (get_thread_regcache): If the thread doesn't have a regcache yet,
14510 create one, instead of aborting gdbserver.
14511 (regcache_invalidate_one): Rename to ...
14512 (regcache_invalidate_thread): ... this.
14513 (regcache_invalidate_one): New.
14514 (regcache_invalidate): Only invalidate registers of the current
14516 (init_register_cache): Add target_desc parameter, and use it.
14517 (new_register_cache): Ditto. Assert the target description has a
14518 non zero registers_size.
14519 (regcache_cpy): Add assertions. Adjust.
14520 (realloc_register_cache, set_register_cache): Delete.
14521 (registers_to_string, registers_from_string): Adjust.
14522 (find_register_by_name, find_regno, find_register_by_number)
14523 (register_cache_size): Add target_desc parameter, and use it.
14524 (free_register_cache_thread, free_register_cache_thread_one)
14525 (regcache_release, register_cache_size): New.
14526 (register_size): Add target_desc parameter, and use it.
14527 (register_data, supply_register, supply_register_zeroed)
14528 (supply_regblock, supply_register_by_name, collect_register)
14529 (collect_register_as_string, collect_register_by_name): Adjust.
14530 * regcache.h (struct target_desc): Forward declare.
14531 (struct regcache) <tdesc>: New field.
14532 (init_register_cache, new_register_cache): Add target_desc
14534 (regcache_invalidate_thread): Declare.
14535 (regcache_invalidate_one): Delete declaration.
14536 (regcache_release): Declare.
14537 (find_register_by_number, register_cache_size, register_size)
14538 (find_regno): Add target_desc parameter.
14539 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14541 * remote-utils.c: Include tdesc.h.
14542 (outreg, prepare_resume_reply): Adjust.
14543 * server.c: Include tdesc.h.
14544 (gdbserver_xmltarget): Delete declaration.
14545 (get_features_xml, process_serial_event): Adjust.
14546 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14548 (struct process_info) <tdesc>: New field.
14549 (ipa_tdesc): Declare.
14550 * tdesc.c: New file.
14551 * tdesc.h: New file.
14552 * tracepoint.c: Include tdesc.h.
14553 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14554 (get_context_regcache): Adjust to pass ipa_tdesc down.
14555 (do_action_at_tracepoint): Adjust to get the register cache size
14556 from the context regcache's description.
14557 (traceframe_walk_blocks): Adjust to get the register cache size
14558 from the current trace frame's description.
14559 (traceframe_get_pc): Adjust to get current trace frame's
14560 description and pass it down.
14561 (gdb_collect): Adjust to get the register cache size from the
14563 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14564 (gdbserver_xmltarget): Delete.
14565 (initialize_low_tracepoint): Set the ipa's target description.
14566 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14567 (initialize_low_tracepoint): Set the ipa's target description.
14568 * linux-x86-low.c: Include tdesc.h.
14569 [__x86_64__] (is_64bit_tdesc): New.
14570 (ps_get_thread_area, x86_get_thread_area): Use it.
14571 (i386_cannot_store_register): Rename to ...
14572 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14573 (i386_cannot_fetch_register): Rename to ...
14574 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14575 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14577 (target_regsets): Rename to ...
14578 (x86_regsets): ... this.
14579 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14581 (x86_siginfo_fixup): Use is_64bit_tdesc.
14582 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14583 (tdesc_x32_avx_linux, tdesc_x32_linux)
14584 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14586 (x86_linux_update_xmltarget): Delete.
14587 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14588 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14589 (AMD64_LINUX_USER64_CS): New.
14590 (x86_linux_read_description): New, based on
14591 x86_linux_update_xmltarget.
14592 (same_process_callback): New.
14593 (x86_arch_setup_process_callback): New.
14594 (x86_linux_update_xmltarget): New.
14595 (x86_regsets_info): New.
14596 (amd64_linux_regs_info): New.
14597 (i386_linux_usrregs_info): New.
14598 (i386_linux_regs_info): New.
14599 (x86_linux_regs_info): New.
14600 (x86_arch_setup): Reimplement.
14601 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14602 (x86_emit_ops): Ditto.
14603 (the_low_target): Adjust. Install x86_linux_regs_info,
14604 x86_cannot_fetch_register, and x86_cannot_store_register.
14605 (initialize_low_arch): New.
14606 * linux-ia64-low.c (tdesc_ia64): Declare.
14607 (ia64_fetch_register): Adjust.
14608 (ia64_usrregs_info, regs_info): New globals.
14609 (ia64_regs_info): New function.
14610 (the_low_target): Adjust.
14611 (initialize_low_arch): New function.
14612 * linux-sparc-low.c (tdesc_sparc64): Declare.
14613 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14615 (sparc_arch_setup): New function.
14616 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14617 (the_low_target): Adjust.
14618 (initialize_low_arch): New function.
14619 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14620 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14621 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14622 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14623 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14624 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14625 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14626 (tdesc_powerpc_isa205_vsx64l): Declare.
14627 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14628 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14629 (ppc_set_pc, ppc_get_hwcap): Adjust.
14630 (ppc_usrregs_info): Forward declare.
14631 (!__powerpc64__) ppc_regmap_adjusted: New global.
14632 (ppc_arch_setup): Adjust to the current process'es target
14634 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14635 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14636 (ppc_store_evrregset): Adjust.
14637 (target_regsets): Rename to ...
14638 (ppc_regsets): ... this, and make static.
14639 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14640 (ppc_regs_info): New function.
14641 (the_low_target): Adjust.
14642 (initialize_low_arch): New function.
14643 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14644 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14645 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14646 (tdesc_s390x_linux64v2): Declare.
14647 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14648 (s390_fill_gregset, s390_store_last_break): Adjust.
14649 (target_regsets): Rename to ...
14650 (s390_regsets): ... this, and make static.
14651 (s390_get_pc, s390_set_pc): Adjust.
14652 (s390_get_hwcap): New target_desc parameter, and use it.
14653 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14654 (s390_arch_setup): Adjust to set the current process'es target
14655 description. Don't adjust the regmap.
14656 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14657 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14658 (regs_info_3264): New globals.
14659 (s390_regs_info): New function.
14660 (the_low_target): Adjust.
14661 (initialize_low_arch): New function.
14662 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14663 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14664 [__mips64] (init_registers_mips_linux)
14665 (init_registers_mips_dsp_linux): Delete defines.
14666 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14667 (have_dsp): New global.
14668 (mips_read_description): New, based on mips_arch_setup.
14669 (mips_arch_setup): Reimplement.
14670 (get_usrregs_info): New function.
14671 (mips_cannot_fetch_register, mips_cannot_store_register)
14672 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14673 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14674 (target_regsets): Rename to ...
14675 (mips_regsets): ... this, and make static.
14676 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14677 (dsp_regs_info, regs_info): New globals.
14678 (mips_regs_info): New function.
14679 (the_low_target): Adjust.
14680 (initialize_low_arch): New function.
14681 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14682 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14684 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14685 (arm_read_description): New, with bits factored from
14687 (arm_arch_setup): Reimplement.
14688 (target_regsets): Rename to ...
14689 (arm_regsets): ... this, and make static.
14690 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14691 (arm_regs_info): New function.
14692 (the_low_target): Adjust.
14693 (initialize_low_arch): New function.
14694 * linux-m68k-low.c (tdesc_m68k): Declare.
14695 (target_regsets): Rename to ...
14696 (m68k_regsets): ... this, and make static.
14697 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14698 (m68k_regs_info): New function.
14699 (m68k_arch_setup): New function.
14700 (the_low_target): Adjust.
14701 (initialize_low_arch): New function.
14702 * linux-sh-low.c (tdesc_sharch): Declare.
14703 (target_regsets): Rename to ...
14704 (sh_regsets): ... this, and make static.
14705 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14706 (sh_regs_info, sh_arch_setup): New functions.
14707 (the_low_target): Adjust.
14708 (initialize_low_arch): New function.
14709 * linux-bfin-low.c (tdesc_bfin): Declare.
14710 (bfin_arch_setup): New function.
14711 (bfin_usrregs_info, regs_info): New globals.
14712 (bfin_regs_info): New function.
14713 (the_low_target): Adjust.
14714 (initialize_low_arch): New function.
14715 * linux-cris-low.c (tdesc_cris): Declare.
14716 (cris_arch_setup): New function.
14717 (cris_usrregs_info, regs_info): New globals.
14718 (cris_regs_info): New function.
14719 (the_low_target): Adjust.
14720 (initialize_low_arch): New function.
14721 * linux-cris-low.c (tdesc_crisv32): Declare.
14722 (cris_arch_setup): New function.
14723 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14724 (cris_regs_info): New function.
14725 (the_low_target): Adjust.
14726 (initialize_low_arch): New function.
14727 * linux-m32r-low.c (tdesc_m32r): Declare.
14728 (m32r_arch_setup): New function.
14729 (m32r_usrregs_info, regs_info): New globals.
14730 (m32r_regs_info): Adjust.
14731 (initialize_low_arch): New function.
14732 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14733 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14734 (tic6x_usrregs_info): Forward declare.
14735 (tic6x_read_description): New function, based on ...
14736 (tic6x_arch_setup): ... this. Reimplement.
14737 (target_regsets): Rename to ...
14738 (tic6x_regsets): ... this, and make static.
14739 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14740 (tic6x_regs_info): New function.
14741 (the_low_target): Adjust.
14742 (initialize_low_arch): New function.
14743 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14744 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14745 (target_regsets): Rename to ...
14746 (xtensa_regsets): ... this, and make static.
14747 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14749 (xtensa_arch_setup, xtensa_regs_info): New functions.
14750 (the_low_target): Adjust.
14751 (initialize_low_arch): New function.
14752 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14753 (nios2_arch_setup): Set the current process'es tdesc.
14754 (target_regsets): Rename to ...
14755 (nios2_regsets): ... this.
14756 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14757 (nios2_regs_info): New function.
14758 (the_low_target): Adjust.
14759 (initialize_low_arch): New function.
14760 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14761 (aarch64_arch_setup): Set the current process'es tdesc.
14762 (target_regsets): Rename to ...
14763 (aarch64_regsets): ... this.
14764 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14765 (aarch64_regs_info): New function.
14766 (the_low_target): Adjust.
14767 (initialize_low_arch): New function.
14768 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14770 (target_regsets): Rename to ...
14771 (tile_regsets): ... this.
14772 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14773 (tile_regs_info): New function.
14774 (tile_arch_setup): Set the current process'es tdesc.
14775 (the_low_target): Adjust.
14776 (initialize_low_arch): New function.
14777 * spu-low.c (tdesc_spu): Declare.
14778 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14779 * win32-arm-low.c (tdesc_arm): Declare.
14780 (arm_arch_setup): New function.
14781 (the_low_target): Install arm_arch_setup instead of
14782 init_registers_arm.
14783 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14784 (init_windows_x86): Rename to ...
14785 (i386_arch_setup): ... this. Set `win32_tdesc'.
14786 (the_low_target): Adjust.
14787 * win32-low.c (win32_tdesc): New global.
14788 (child_add_thread): Don't create the thread cache here.
14789 (do_initial_child_stuff): Set the new process'es tdesc.
14790 * win32-low.h (struct target_desc): Forward declare.
14791 (win32_tdesc): Declare.
14792 * lynx-i386-low.c (tdesc_i386): Declare global.
14793 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14794 * lynx-low.c (lynx_tdesc): New global.
14795 (lynx_add_process): Set the new process'es tdesc.
14796 * lynx-low.h (struct target_desc): Forward declare.
14797 (lynx_tdesc): Declare global.
14798 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14799 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14800 * nto-low.c (nto_tdesc): New global.
14801 (do_attach): Set the new process'es tdesc.
14802 * nto-low.h (struct target_desc): Forward declare.
14803 (nto_tdesc): Declare.
14804 * nto-x86-low.c (tdesc_i386): Declare.
14805 (nto_x86_arch_setup): Set `nto_tdesc'.
14807 2013-06-04 Gary Benson <gbenson@redhat.com>
14809 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14810 to qSupported response when appropriate.
14811 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14812 with nonzero-length annex.
14813 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14814 arguments supplied in annex.
14816 2013-05-31 Doug Evans <dje@google.com>
14819 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14820 64 bits in 64-cross-32 environment.
14822 2013-05-28 Pedro Alves <palves@redhat.com>
14824 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14825 (aarch64-without-fpu.c): Delete rule.
14826 * configure.srv (aarch64*-*-linux*): Remove references to
14827 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14828 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14831 2013-05-24 Pedro Alves <palves@redhat.com>
14833 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14834 instead of strchr/decode_address. Error if the range isn't split
14835 with a ','. Don't assume there's be a ':' in the action.
14837 2013-05-23 Yao Qi <yao@codesourcery.com>
14838 Pedro Alves <palves@redhat.com>
14840 * linux-low.c (lwp_in_step_range): New function.
14841 (linux_wait_1): If the thread was range stepping and stopped
14842 outside the stepping range, report the stop to GDB. Otherwise,
14843 continue stepping. Add range stepping debug output.
14844 (linux_set_resume_request): Copy the step range from the resume
14845 request to the lwp.
14846 (linux_supports_range_stepping): New.
14847 (linux_target_ops) <supports_range_stepping>: Set to
14848 linux_supports_range_stepping.
14849 * linux-low.h (struct linux_target_ops)
14850 <supports_range_stepping>: New field.
14851 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14852 * linux-x86-low.c (x86_supports_range_stepping): New.
14853 (the_low_target) <supports_range_stepping>: Set to
14854 x86_supports_range_stepping.
14855 * server.c (handle_v_cont): Handle 'r' action.
14856 (handle_v_requests): Append ";r" if the target supports range
14858 * target.h (struct thread_resume) <step_range_start,
14859 step_range_end>: New fields.
14860 (struct target_ops) <supports_range_stepping>:
14862 (target_supports_range_stepping): New macro.
14864 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14866 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14867 confusion in comment.
14869 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14871 * lynx-low.c (struct process_info_private): New type.
14872 (lynx_add_process): New function.
14873 (lynx_create_inferior, lynx_attach): Replace calls to
14874 add_process by calls to lynx_add_process.
14875 (lynx_resume): If PTID is null, then try using
14876 current_process()->private->last_wait_event_ptid.
14878 (lynx_clear_inferiors): Delete. The contents of that function
14879 has been inlined in lynx_mourn;
14880 (lynx_wait_1): Save the ptid in the process's private data.
14881 (lynx_mourn): Free the process' private data. Replace call
14882 to lynx_clear_inferiors by call to clear_inferiors.
14884 2013-05-17 Yao Qi <yao@codesourcery.com>
14886 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14889 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14891 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14892 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14893 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14894 PT_TEXT_END_ADDR guards. Update comments.
14895 (linux_target_op) <read_offsets>: Conditionally define to
14896 linux_read_offsets if the target is UCLIBC and if it defines
14897 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14899 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14900 Andrew Jenner <andrew@codesourcery.com>
14902 * Makefile.in (SFILES): Add linux-nios2-low.c.
14903 (clean): Add action to delete nios2-linux.c.
14904 (nios2-linux.c): New rule.
14905 * configure.srv: Add nios2*-*-linux*.
14906 * linux-nios2-low.c: New.
14908 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14910 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14912 2013-04-25 Hui Zhu <hui@codesourcery.com>
14915 * ax.c (ax_printf): Add fflush.
14917 2013-04-22 Tom Tromey <tromey@redhat.com>
14919 * Makefile.in (SFILES): Add filestuff.c.
14920 (OBS): Add filestuff.o.
14921 (filestuff.o): New target.
14922 * config.in, configure: Rebuild.
14923 * configure.ac: Check for fdwalk, pipe2.
14925 2013-04-17 Pedro Alves <palves@redhat.com>
14927 * configure.ac (USE_THREAD_DB): Delete variable.
14928 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14929 Don't AC_SUBST USE_THREAD_DB.
14930 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14931 * config.in, configure: Regenerate.
14933 2013-04-16 Pedro Alves <palves@redhat.com>
14935 * linux-low.h (struct lwp_info) <thread_known>: Move under
14936 the USE_THREAD_DB #ifdef.
14938 2013-04-16 Pedro Alves <palves@redhat.com>
14940 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14941 (linux-low.o): Delete rule.
14942 * linux-low.h: Always include "gdb_thread_db.h" instead of
14943 conditionally including thread_db.h.
14944 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14947 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14949 * Makefile.in (install-only): Fix make install regression.
14951 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14953 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14954 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14956 * gdbserver.1: Remove.
14958 2013-03-22 Pedro Alves <palves@redhat.com>
14960 * linux-low.c (handle_extended_wait): Don't call
14961 linux_enable_event_reporting.
14963 2013-03-15 Tony Theodore <tonyt@logyst.com>
14966 * Makefile.in (SHELL): Use @SHELL@.
14968 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14970 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14973 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14975 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14976 Remove extraneous NULL element.
14978 2013-03-13 Yao Qi <yao@codesourcery.com>
14980 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14981 'V' block in trace frame.
14983 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14985 * target.h (struct target_ops): Add btrace ops.
14986 (target_supports_btrace): New macro.
14987 (target_enable_btrace): New macro.
14988 (target_disable_btrace): New macro.
14989 (target_read_btrace): New macro.
14990 * gdbthread.h (struct thread_info): Add btrace field.
14991 * server.c: Include btrace-common.h.
14992 (handle_btrace_general_set): New function.
14993 (handle_btrace_enable): New function.
14994 (handle_btrace_disable): New function.
14995 (handle_general_set): Call handle_btrace_general_set.
14996 (handle_qxfer_btrace): New function.
14997 (struct qxfer qxfer_packets[]): Add btrace entry.
14998 * inferiors.c (remove_thread): Disable btrace.
14999 * linux-low: Include linux-btrace.h.
15000 (linux_low_enable_btrace): New function.
15001 (linux_low_read_btrace): New function.
15002 (linux_target_ops): Add btrace ops.
15003 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
15004 Add srv_linux_btrace=yes.
15005 (x86_64-*-linux*): Add linux-btrace.o.
15006 Add srv_linux_btrace=yes.
15007 * configure.ac: Define HAVE_LINUX_BTRACE.
15008 * config.in: Regenerated.
15009 * configure: Regenerated.
15011 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15013 * server.c (handle_qxfer): Preserve error message if -3 is
15015 (qxfer): Document the -3 return value.
15017 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15019 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
15020 (linux_btrace_h): New variable.
15021 (linux-btrace.o): New rule.
15023 2013-03-08 Stan Shebs <stan@codesourcery.com>
15024 Hafiz Abid Qadeer <abidh@codesourcery.com>
15026 * tracepoint.c (trace_buffer_size): New global.
15027 (DEFAULT_TRACE_BUFFER_SIZE): New define.
15028 (init_trace_buffer): Change to one-argument function. Allocate
15029 trace buffer memory.
15030 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
15031 handle QTBuffer:size packet.
15032 (cmd_bigqtbuffer_size): New function.
15033 (initialize_tracepoint): Call init_trace_buffer with
15034 DEFAULT_TRACE_BUFFER_SIZE.
15035 * server.c (handle_query): Add QTBuffer:size in the
15038 2013-03-07 Yao Qi <yao@codesourcery.com>
15040 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
15041 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
15043 (cmd_qtsp): Adjust condition. Do post increment.
15044 Set cur_action and cur_step_action back to 0.
15046 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
15049 * linux-low.c (linux_write_memory): Return early success if LEN is
15052 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
15054 * configure.srv: Add x86_64-*-cygwin* as target.
15056 2013-02-28 Tom Tromey <tromey@redhat.com>
15058 * configure.ac: Invoke AC_SYS_LARGEFILE.
15059 * configure, config.in: Rebuild.
15061 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
15063 * win32-low.c: Throughout, fix format strings and casts of
15064 printf-like functions to avoid type related warnings on all
15066 (get_child_debug_event): Print dwDebugEventCode as hex since
15067 that's how it's usually documented.
15069 2013-02-28 Yao Qi <yao@codesourcery.com>
15071 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
15074 2013-02-27 Jiong Wang <jiwang@tilera.com>
15076 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
15077 (reg-tilegx32.c): New rule.
15078 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
15079 * linux-tile-low.c (tile_arch_setup): New function. Invoke
15080 different register info initializer according to elf class.
15081 (init_registers_tilgx32): New function. The tilegx32 register info
15083 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
15084 (tile_store_gregset): Likewise.
15086 2013-02-27 Yao Qi <yao@codesourcery.com>
15088 * server.c (process_point_options): Print debug message when
15089 debug_threads is true.
15091 2013-02-26 Yao Qi <yao@codesourcery.com>
15093 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
15095 2013-02-19 Pedro Alves <palves@redhat.com>
15096 Kai Tietz <ktietz@redhat.com>
15100 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
15101 instead of strtoul to extract address from packet.
15102 (process_serial_event) <'z'>: Likewise.
15104 2013-02-18 Yao Qi <yao@codesourcery.com>
15106 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
15108 2013-02-14 Pedro Alves <palves@redhat.com>
15112 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
15113 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
15115 2013-02-14 Pedro Alves <palves@redhat.com>
15117 * tracepoint.c (cmd_qtdpsrc): Use savestring.
15119 2013-02-14 Pedro Alves <palves@redhat.com>
15121 * tracepoint.c (save_string): Delete.
15122 (add_tracepoint_action): Use savestring instead of save_string.
15124 2013-02-12 Pedro Alves <palves@redhat.com>
15126 * linux-xtensa-low.c: Ditto.
15127 * xtensa-xtregs.c: Ditto.
15129 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
15131 * thread-db.c (thread_db_get_tls_address): NULL pointer check
15134 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15136 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
15137 aarch64_num_wp_regs and aarch64_num_bp_regs to
15138 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
15140 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15142 * linux-aarch64-low.c (ps_get_thread_area): Replace
15143 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
15145 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
15146 Marcus Shawcroft <marcus.shawcroft@arm.com>
15147 Nigel Stephens <nigel.stephens@arm.com>
15148 Yufeng Zhang <yufeng.zhang@arm.com>
15150 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
15151 (aarch64.c, aarch64-without-fpu.c): New targets.
15152 * configure.srv (aarch64*-*-linux*): New.
15153 * linux-aarch64-low.c: New file.
15155 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
15157 * linux-low.c (handle_extended_wait, linux_create_inferior)
15158 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
15159 (dequeue_one_deferred_signal, linux_resume_one_thread)
15160 (fetch_register, linux_write_memory, linux_enable_event_reporting)
15161 (linux_tracefork_grandchild, linux_test_for_tracefork)
15162 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
15163 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
15164 where the argument is 0.
15166 2013-01-25 Yao Qi <yao@codesourcery.com>
15168 * event-loop.c: Include "queue.h".
15169 (gdb_event_p): New typedef.
15170 (struct gdb_event) <next_event>: Remove.
15171 (event_queue): Change to QUEUE(gdb_event_p).
15172 (async_queue_event): Remove.
15173 (gdb_event_xfree): New.
15174 (initialize_event_loop): New.
15175 (process_event): Use API from QUEUE.
15176 (wait_for_event): Likewise.
15177 * server.c (main): Call initialize_event_loop.
15178 * server.h (initialize_event_loop): Declare.
15180 2013-01-18 Yao Qi <yao@codesourcery.com>
15182 * ax.h (struct eval_agent_expr_context): New.
15183 (gdb_eval_agent_expr): Update declaration.
15184 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
15185 TFRAME. Add new argument CTX.
15186 * server.h (struct eval_agent_expr_context): Declare.
15187 (agent_mem_read, agent_tsv_read): Update declaration.
15188 (agent_mem_read_string): Likewise.
15189 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
15190 (add_traceframe_block): Add new argument TPOINT.
15191 Increase TPOINT->traceframe_usage.
15192 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
15193 eval_tracepoint_agent_expr.
15194 (condition_true_at_tracepoint): Likewise.
15195 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
15196 (agent_mem_read_string, agent_tsv_read): Likewise.
15198 2013-01-16 Yao Qi <yao@codesourcery.com>
15200 * linux-low.c (linux_resume_one_lwp): Don't check
15201 'lwp->bp_reinsert != 0'.
15203 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15204 Pedro Alves <palves@redhat.com>
15206 * lynx-low.c (ptrace_request_to_str): Define a temporary
15207 macro and use it to simplify this function's implementation.
15209 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15211 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
15214 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15216 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
15218 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15220 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
15222 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15224 * lynx-low.c (lynx_resume): Use the resume_info parameter
15225 to determine the ptid for the lynx_ptrace call, unless
15226 it is equal to minus_one_ptid, in which case we use the
15227 ptid of the current_inferior.
15228 (lynx_wait_1): After having received a thread create/exit
15229 event, resume the inferior's execution using the signaling
15230 thread's ptid, rather than the old ptid.
15232 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15234 * lynx-low.c (lynx_resume): Delete variable ret.
15236 2013-01-01 Joel Brobecker <brobecker@adacore.com>
15238 * gdbreplay.c (gdbreplay_version): Update copyright year.
15239 * server.c (gdbserver_version): Likewise.
15241 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15243 * lynx-low.c (lynx_wait_1): Add debug trace before adding
15246 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15248 * lynx-low.c (ptrace_request_to_str): Add handling for
15249 PTRACE_GETTRACESIG.
15251 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15253 * lynx-low.c (lynx_attach): Delete variable new_process.
15255 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15257 * lynx-low.c (lynx_create_inferior): Delete variable
15260 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15262 * lynx-low.c (ptrace_request_to_str): Do not handle
15263 PTRACE_GETTHREADLIST if this macro does not exist.
15265 2012-12-15 Yao Qi <yao@codesourcery.com>
15267 * Makefile.in (OBS): Add notif.o.
15268 * notif.c, notif.h: New.
15269 * server.c: Include "notif.h".
15270 (struct vstop_notif) <next>: Remove.
15272 (queue_stop_reply): Update.
15273 (push_event, send_next_stop_reply): Remove.
15274 (discard_queued_stop_replies): Update.
15275 (notif_stop): New variable.
15276 (handle_v_stopped): Remove.
15277 (handle_v_requests): Don't call handle_v_stopped. Call
15278 handle_ack_notif instead.
15279 (queue_stop_reply_callback): Call notif_event_enque instead
15280 of queue_stop_reply.
15281 (handle_status): Don't call send_next_stop_reply, call
15282 notif_write_event instead.
15283 (kill_inferior_callback): Likewise.
15284 (detach_or_kill_inferior_callback): Likewise.
15285 (main): Call initialize_notif.
15286 (process_serial_event): Call QUEUE_is_empty.
15287 (handle_target_event): Call notif_push instead of push event.
15288 * server.h (push_event): Remove declaration.
15290 2012-12-10 Tom Tromey <tromey@redhat.com>
15292 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
15293 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
15296 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
15297 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
15298 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
15299 (amd64-linux-ipa.o, ax.o): Rewrite.
15300 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
15301 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
15302 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
15303 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
15304 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
15305 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
15306 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
15307 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
15308 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
15309 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
15310 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
15311 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
15312 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
15313 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
15314 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
15315 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
15316 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
15317 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
15318 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
15319 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
15320 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
15321 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
15322 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
15323 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
15324 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
15325 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
15326 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
15327 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
15328 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
15329 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
15330 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
15331 (reg-tilegx.o): Remove.
15332 (all_object_files): New macro.
15333 Include .deps files.
15334 * aclocal.m4, configure: Rebuild.
15335 * acinclude.m4: Include depstand.m4, lead-dot.m4.
15336 * configure.ac: Invoke ZW_CREATE_DEPDIR,
15337 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
15339 2012-12-05 Tom Tromey <tromey@redhat.com>
15342 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
15344 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
15346 * configure.ac: Check for linux/perf_event.h.
15347 * config.in: Regenerated.
15348 * configure: Regenerated.
15350 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
15352 * hostio.c (handle_readlink): Decrease buffer size
15353 parameter passed to readlink by one byte.
15355 2012-11-26 Yao Qi <yao@codesourcery.com>
15357 * configure.ac (build_warnings): Append '-Wempty-body'.
15358 * configure: Regenerated.
15359 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
15362 2012-11-15 Pierre Muller <muller@sourceware.org>
15364 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
15365 * config.in: Regenerate.
15366 * configure: Regenerate.
15367 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
15368 Use "gdb_wait.h" header instead of <sys/wait.h> header.
15369 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15370 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
15372 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
15373 instead of <sys/wait.h> header.
15374 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15376 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
15378 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15379 (various make rules): Remove -DGDBSERVER
15381 2012-11-09 Yao Qi <yao@codesourcery.com>
15383 * spu-low.c (current_ptid): Move it to ..
15384 * gdbthread.h: ... here. New.
15385 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15386 * server.c (myresume, process_serial_event): Likewise.
15387 * thread-db.c (thread_db_find_new_threads): Likewise.
15388 * tracepoint.c (run_inferior_command): Likewise.
15390 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
15392 * server.c (handle_search_memory_1): Include access length in
15395 2012-09-05 Michael Brandt <michael.brandt@axis.com>
15397 * linux-crisv32-low.c: Fix compile errors.
15399 2012-09-04 Yao Qi <yao@codesourcery.com>
15401 * tracepoint.c (cmd_qtsv): Adjust debug message.
15402 Don't check CUR_TPOINT.
15404 2012-08-28 Yao Qi <yao@codesourcery.com>
15406 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15407 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15408 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15409 Remove declarations of xmalloc, xreallloc, xstrdup and
15411 * Makefile.in (libiberty_h): New.
15412 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15413 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15415 2012-08-23 Yao Qi <yao@codesourcery.com>
15417 * server.h: Remove declaration of 'xsnprintf'.
15419 2012-08-22 Keith Seitz <keiths@redhat.com>
15421 * server.h: Include build-gnulib-gbserver/config.h.
15422 * gdbreplay.c: Likewise.
15424 2012-08-08 Doug Evans <dje@google.com>
15426 * Makefile.in (SFILES): Add gdb_vecs.c.
15427 (OBS): Add gdb_vecs.o.
15428 (gdb_vecs_h, host_defs_h): New variables.
15429 (thread-db.o): Add $(gdb_vecs_h) dependency.
15430 (gdb_vecs.o): New rule.
15431 * thread-db.c: #include "gdb_vecs.h".
15432 (thread_db_load_search): Use a vector to iterate over path elements.
15433 Handle text appearing after "$pdir".
15435 * configure.ac: Add check for strstr.
15436 * config.in: Regenerate.
15437 * configure: Regenerate.
15439 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15441 * hostio.c (handle_pread): If pread fails, fall back to attempting
15443 (handle_pwrite): Likewise for pwrite.
15445 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15447 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15448 between unsupported TYPE and unimplementable ADDR/LEN combination.
15449 (arm_insert_point): Act on new return value.
15451 2012-07-31 Pedro Alves <palves@redhat.com>
15453 * server.c (process_point_options): Only skip tokens if we find
15454 one that is unrecognized. Don't treat 'X' specially while
15455 skipping unrecognized tokens.
15457 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15459 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15460 to 4-byte-align HW breakpoint addresses for Thumb.
15462 2012-07-27 Yao Qi <yao@codesourcery.com>
15466 * server.h: Declare gdb_agent_about_to_close.
15467 * target.c (kill_inferior): Include "agent.h".
15468 New. Send command 'kill'.
15469 * target.h (kill_inferior): Removed macro.
15470 * tracepoint.c (gdb_agent_about_to_close): New.
15471 (gdb_agent_helper_thread): Handle command 'close'.
15472 Wait endlessly until the inferior stops.
15473 Install gdb_agent_remove_socket to atexit hook.
15474 (agent_socket_name): New static variable.
15475 (gdb_agent_socket_init): Replace local variable 'name' with
15476 'agent_socket_name'.
15477 (gdb_agent_remove_socket): New.
15479 2012-07-27 Yao Qi <yao@codesourcery.com>
15481 * server.c (process_point_options): Stop at 'X' when parsing.
15483 2012-07-19 Michael Eager <eager@eagercon.com>
15485 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
15487 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15488 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15489 hardware breakpoint.
15491 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15493 * gdbserver/linux-low.c (initialize_low): Call
15494 linux_ptrace_init_warnings.
15496 2012-07-02 Doug Evans <dje@google.com>
15498 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15501 2012-07-02 Stan Shebs <stan@codesourcery.com>
15503 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15504 (ax.o): Add it to build rule.
15506 (OBS): Add format.o.
15507 (IPA_OBS): Add format.o.
15508 * server.c (handle_query): Claim support for breakpoint commands.
15509 (process_point_options): Add command case.
15510 (process_serial_event): Leave running if there are printfs in
15512 * mem-break.h (any_persistent_commands): Declare.
15513 (add_breakpoint_commands): Declare.
15514 (gdb_no_commands_at_breakpoint): Declare.
15515 (run_breakpoint_commands): Declare.
15516 * mem-break.c (struct point_command_list): New struct.
15517 (struct breakpoint): New field command_list.
15518 (any_persistent_commands): New function.
15519 (add_commands_to_breakpoint): New function.
15520 (add_breakpoint_commands): New function.
15521 (gdb_no_commands_at_breakpoint): New function.
15522 (run_breakpoint_commands): New function.
15523 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15525 * ax.c: Include format.h.
15526 (ax_printf): New function.
15527 (gdb_eval_agent_expr): Add printf opcode.
15529 2012-06-13 Yao Qi <yao@codesourcery.com>
15531 * server.c (start_inferior): Remove duplicated writes to fields
15532 'last_resume_kind' and 'last_status' of 'current_inferior'.
15534 2012-06-12 Yao Qi <yao@codesourcery.com>
15535 Pedro Alves <palves@redhat.com>
15537 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15539 * server.c (handle_v_cont): Extend comment.
15541 2012-06-11 Yao Qi <yao@codesourcery.com>
15543 * linux-low.c (linux_attach): Add 'static'.
15545 2012-06-06 Yao Qi <yao@codesourcery.com>
15547 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15549 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15551 Fix gcc -flto compilation warning.
15552 * server.c (main): Make variable multi_mode and attach volatile.
15554 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15556 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15557 if the platform doesn't know about it.
15559 2012-05-30 Jeff Kenton <jkenton@tilera.com>
15561 * Makefile.in (SFILES): Add linux-tile-low.c.
15562 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15563 * configure.srv: Handle tilegx-*-linux*.
15564 * linux-tile-low.c: New file.
15566 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15568 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15570 2012-05-24 Pedro Alves <palves@redhat.com>
15574 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
15576 2012-05-24 Pedro Alves <palves@redhat.com>
15580 Replace target_signal with gdb_signal throughout.
15582 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15584 * linux-low.c (linux_store_registers): Avoid the copying sequence
15585 when no data has been retrieved by ptrace.
15587 2012-05-22 Will Deacon <will.deacon@arm.com>
15589 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15590 Include asm/ptrace.h.
15591 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15594 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15596 * linux-low.c (linux_store_registers): Don't re-retrieve data
15597 with ptrace that has already been obtained from /proc. Always
15598 copy any data retrieved with ptrace to the buffer supplied.
15600 2012-05-11 Yao Qi <yao@codesourcery.com>
15601 Pedro Alves <palves@redhat.com>
15603 * linux-low.c (enum stopping_threads_kind): New.
15604 (stopping_threads): Change type to `enum stopping_threads_kind'.
15605 (handle_extended_wait): If stopping and suspending threads, leave
15606 the new_lwp suspended too.
15607 (linux_wait_for_event): Adjust.
15608 (stop_all_lwps): Set `stopping_threads' to
15609 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15610 whether we're suspending threads or just stopping them. Assert no
15613 2012-04-29 Yao Qi <yao@codesourcery.com>
15615 * server.h: Move some code to ...
15616 * gdbthread.h: ... here. New.
15617 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15618 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15619 (nto-low.o, win32-low.o): Likewise.
15620 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15621 * regcache.c, remote-utils.c, server.c: Likewise.
15622 * target.c, tracepoint.c, win32-low.c: Likewise.
15624 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15626 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15627 (PTRACE_ARG4_TYPE): Likewise.
15628 (PTRACE_XFER_TYPE): Likewise.
15629 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15630 ptrace to PTRACE_ARG3_TYPE.
15631 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15632 (PTRACE_ARG4_TYPE): Likewise.
15633 (PTRACE_XFER_TYPE): Likewise.
15634 (linux_detach_one_lwp): Cast fourth argument of
15635 ptrace to long then PTRACE_ARG4_TYPE.
15636 (regsets_fetch_inferior_registers): Cast third argument of
15637 ptrace to long then PTRACE_ARG3_TYPE.
15638 (regsets_store_inferior_registers): Likewise.
15640 2012-04-20 Pedro Alves <palves@redhat.com>
15642 * configure: Regenerate.
15644 2012-04-19 Pedro Alves <palves@redhat.com>
15646 * Makefile.in (GNULIB_BUILDDIR): New.
15647 (LIBGNU, INCGNU, GNULIB_H): Adjust.
15648 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15649 (all, install-only, uninstall, clean-info, all-lib, clean): No
15650 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15651 (maintainer-clean realclean distclean): Use subdir_do.
15653 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
15654 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
15655 * acinclude.m4: Include acx_configure_dir.m4.
15656 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15657 calls. Call AC_PROG_RANLIB. Configure gnulib using
15660 (GNULIB_STDINT_H): Adjust.
15661 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15662 * gdbreplay.c: Include build-gnulib/config.h.
15663 * server.h: Likewise.
15664 * aclocal.m4: Regenerate.
15665 * config.in: Regenerate.
15666 * configure: Regenerate.
15668 2012-04-19 Pedro Alves <palves@redhat.com>
15670 * Makefile.in (LIBGNU, INCGNU): Adjust.
15671 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15672 (all, install-only, uninstall, clean-info, all-lib, clean)
15673 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15674 * configure.ac: Adjust AC_OUTPUT output.
15675 * aclocal.m4: Regenerate.
15676 * configure: Regenerate.
15678 2012-04-19 Pedro Alves <palves@redhat.com>
15680 * Makefile.in (generated_files): New.
15681 (server_h): Remove the explicit dependency on config.h, and depend
15682 on $generated_files.
15684 2012-04-19 Pedro Alves <palves@redhat.com>
15686 * Makefile.in (INCGNU): Add -Ignulib.
15688 2012-04-19 Pedro Alves <palves@redhat.com>
15690 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15691 (INCGNU): ... this, and spell out -I here.
15692 (GNULIB_LIB): Rename to ...
15693 (LIBGNU): ... this.
15694 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15696 2012-04-19 Pedro Alves <palves@redhat.com>
15698 * config.in: Regenerate.
15700 2012-04-19 Pedro Alves <palves@redhat.com>
15702 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15703 * server.h (memmem): Remove declaration.
15704 * config.in: Regenerate.
15705 * configure: Regenerate.
15707 2012-04-19 Yao Qi <yao@codesourcery.com>
15709 * Makefile.in (SFILES): Add common/vec.c.
15713 2012-04-19 Yao Qi <yao@codesourcery.com>
15715 * remote-utils.c (prepare_resume_reply): Replace with macro
15716 target_core_of_thread.
15717 * server.c (handle_qxfer_threads_proper): Likewise.
15718 * target.h (traget_core_of_thread): New macro.
15720 2012-04-18 Pedro Alves <palves@redhat.com>
15722 * aclocal.m4: Regenerate.
15723 * configure: Regenerate.
15725 2012-04-16 Yao Qi <yao@codesourcery.com>
15727 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15728 duplicated on address.
15730 2012-04-16 Yao Qi <yao@codesourcery.com>
15732 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15733 (struct tracepoint_action_ops) <send>: New field.
15734 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15735 (agent_expr_send, x_tracepoint_action_send): New.
15736 (l_tracepoint_action_send): New.
15737 (cmd_qtdp): Download and install tracepoint
15738 according to `use_agent'.
15739 (run_inferior_command): Add one more parameter `len'.
15741 (tracepoint_send_agent): New.
15742 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15744 2012-04-16 Yao Qi <yao@codesourcery.com>
15746 * tracepoint.c (download_tracepoints): Moved to ...
15747 (cmd_qtstart): ... here.
15749 2012-04-14 Yao Qi <yao@codesourcery.com>
15751 * tracepoint.c: Include inttypes.h.
15752 (struct collect_memory_action): Use sized types.
15753 (struct tracepoint): Likewise.
15754 (cmd_qtdp, stop_tracing): Update print specifiers.
15755 (cmd_qtp, response_tracepoint): Likewise.
15756 (collect_data_at_tracepoint): Likewise.
15757 (collect_data_at_step): Likewise.
15759 2012-04-14 Yao Qi <yao@codesourcery.com>
15761 Import gnulib module inttypes.
15762 * aclocal.m4, config.in, configure: Regenerated.
15764 2012-04-14 Yao Qi <yao@codesourcery.com>
15766 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15767 Makefile and config.status at last.
15769 2012-04-13 Yao Qi <yao@codesourcery.com>
15771 * tracepoint.c: Include stdint.h unconditionally.
15773 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15775 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15776 on BFD_HAVE_SYS_PROCFS_TYPE.
15777 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15778 * configure: Regenerate.
15779 * config.in: Likewise.
15781 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15783 * Makefile.in (clean): Also remove x32.c x32-linux.c
15784 x32-avx.c x32-avx-linux.c.
15785 (x32.o): New target.
15787 (x32-linux.o): Likewise.
15788 (x32-linux.c): Likewise.
15789 (x32-avx.o): Likewise.
15790 (x32-avx.c): Likewise.
15791 (x32-avx-linux.o): Likewise.
15792 (x32-avx-linux.c): Likewise.
15794 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15795 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15796 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15797 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15798 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15799 i386/x32-avx-linux.xml.
15801 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15802 (init_registers_x32_avx_linux): Likwise.
15803 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15804 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15806 2012-04-13 Pedro Alves <palves@redhat.com>
15808 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15809 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15810 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15811 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15814 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15816 * linux-x86-low.c (compat_x32_clock_t): New.
15817 (compat_x32_siginfo_t): Likewise.
15818 (compat_x32_siginfo_from_siginfo): Likewise.
15819 (siginfo_from_compat_x32_siginfo): Likewise.
15820 (linux_is_elf64): Likewise.
15821 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15822 and siginfo_from_compat_x32_siginfo for x32.
15823 (x86_arch_setup): Set linux_is_elf64.
15825 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15828 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15830 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15831 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15832 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15833 compatible with process.
15835 2012-04-12 Yao Qi <yao@codesourcery.com>
15837 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15838 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15839 (install-only, install-info, clean): Handle sub dir gnulib.
15840 (all-lib, am--refresh): New targets.
15841 (memmem.o): Remove target.
15842 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15843 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15844 (AC_REPLACE_FUNCS): Remove memmem.
15845 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15846 (AC_OUTPUT): Generate Makefile in gnulib/.
15847 * aclocal.m4, config.in, configure: Regenerated.
15849 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15851 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15853 2012-04-05 Pedro Alves <palves@redhat.com>
15855 -Werror=strict-aliasing
15857 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15860 2012-04-04 Pedro Alves <palves@redhat.com>
15862 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15863 (sparc_store_gregset_from_stack, sparc_store_gregset)
15864 (sparc_breakpoint_at): Fix formatting.
15866 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15868 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15870 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15871 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15872 * config.in: Regenerate.
15873 * configure: Likewise.
15875 2012-03-29 Pedro Alves <palves@redhat.com>
15877 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15878 Correct ptrace arguments.
15880 2012-03-28 Pedro Alves <palves@redhat.com>
15882 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15883 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15884 (IA64_FR1_REGNUM): New defines.
15885 (ia64_fetch_register): New.
15886 (the_low_target): Install it.
15887 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15889 * linux-low.c (linux_fetch_registers): Try the
15890 the_low_target.fetch_register hook first.
15892 * linux-arm-low.c (the_low_target): Adjust.
15893 * linux-bfin-low.c (the_low_target): Adjust.
15894 * linux-cris-low.c (the_low_target): Adjust.
15895 * linux-crisv32-low.c (the_low_target): Adjust.
15896 * linux-m32r-low.c (the_low_target): Adjust.
15897 * linux-m68k-low.c (the_low_target): Adjust.
15898 * linux-mips-low.c (the_low_target): Adjust.
15899 * linux-ppc-low.c (the_low_target): Adjust.
15900 * linux-s390-low.c (the_low_target): Adjust.
15901 * linux-sh-low.c (the_low_target): Adjust.
15902 * linux-sparc-low.c (the_low_target): Adjust.
15903 * linux-tic6x-low.c (the_low_target): Adjust.
15904 * linux-x86-low.c (the_low_target): Adjust.
15905 * linux-xtensa-low.c (the_low_target): Adjust.
15907 2012-03-26 Pedro Alves <palves@redhat.com>
15909 * server.c (handle_qxfer_libraries): Don't bail early if
15910 the_target->qxfer_libraries_svr4 is not NULL.
15912 2012-03-26 Pedro Alves <palves@redhat.com>
15914 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15916 2012-03-23 Pedro Alves <palves@redhat.com>
15918 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15919 "library-list-svr4" element's start tag when the the DSO list is
15922 2012-03-23 Pedro Alves <palves@redhat.com>
15924 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15925 a variable whose type size is the same as the inferior's pointer
15928 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15930 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15932 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15933 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15934 * linux-low.h: Include <signal.h>.
15935 (struct siginfo): Remove forward declaration.
15936 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15939 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15941 * .gitignore: Ignore more files.
15943 2012-03-19 Pedro Alves <palves@redhat.com>
15944 Jan Kratochvil <jan.kratochvil@redhat.com>
15946 * server.c (cont_thread, general_thread): Add describing comments.
15947 (start_inferior): Clear `cont_thread'.
15948 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15951 2012-03-15 Yao Qi <yao@codesourcery.com>
15953 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15955 (cmd_qtdp): ... here.
15957 2012-03-15 Yao Qi <yao@codesourcery.com>
15959 * tracepoint.c (struct tracepoint_action_ops): New.
15960 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15961 (m_tracepoint_action_download): New.
15962 (r_tracepoint_action_download): New.
15963 (x_tracepoint_action_download): New.
15964 (l_tracepoint_action_download): New.
15965 (add_tracepoint_action): Install `action->ops' according type.
15966 (download_tracepoint_1): Move code `download' function pointer
15967 of various tracepoint_action_ops.
15969 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15971 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15972 linux_ptrace_attach_warnings.
15974 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15976 * Makefile.in (linux-ptrace.o): New.
15977 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15978 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15979 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15980 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15981 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15983 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15985 2012-03-08 Yao Qi <yao@codesourcery.com>
15986 Pedro Alves <palves@redhat.com>
15988 Fix PR server/13392.
15989 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15990 offset of JMP insn.
15991 * tracepoint.c (remove_tracepoint): New.
15992 (cmd_qtdp): Call remove_tracepoint when failed to install.
15994 2012-03-07 Pedro Alves <palves@redhat.com>
15996 * linux-low.c (get_detach_signal): New.
15997 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15998 Pass on pending signals to PTRACE_DETACH. Check the result of the
16000 * server.c (program_signals, program_signals_p): New.
16001 (handle_general_set): Handle QProgramSignals.
16002 * server.h (program_signals, program_signals_p): Declare.
16004 2012-03-05 Pedro Alves <palves@redhat.com>
16005 Jan Kratochvil <jan.kratochvil@redhat.com>
16007 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
16010 2012-03-03 Yao Qi <yao@codesourcery.com>
16012 * tracepoint.c (tracepoint_look_up_symbols): Update call to
16013 agent_look_up_symbols.
16015 2012-03-03 Yao Qi <yao@codesourcery.com>
16017 * Makefile.in (linux-low.o): Keep dependence on agent.h.
16018 (linux-x86-low.o): Likewise.
16019 * server.h: Remove in_process_agent_loaded.
16020 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
16024 2012-03-03 Yao Qi <yao@codesourcery.com>
16026 * tracepoint.c (gdb_agent_capability): New global.
16027 (in_process_agent_loaded_ust): Renamed to
16028 `in_process_agent_supports_ust'.
16030 (in_process_agent_supports_ust): Call agent_capability_check.
16031 (clear_installed_tracepoints): Assert that agent supports
16034 2012-03-03 Yao Qi <yao@codesourcery.com>
16036 * linux-low.c (linux_supports_agent): New.
16037 (linux_target_ops): Initialize field `supports_agent' with
16038 linux_supports_agent.
16039 * target.h (struct target_ops) <supports_agent>: New.
16040 (target_supports_agent): New macro.
16041 * server.c (handle_general_set): Handle packet 'QAgent'.
16042 (handle_query): Send `QAgent+'.
16043 * Makefile.in (server.o): Depends on agent.h.
16045 2012-03-03 Yao Qi <yao@codesourcery.com>
16047 * Makefile.in (OBS): Add agent.o.
16048 Add new rule for agent.o.
16049 Track dependence of tracepoint.c on agent.h.
16050 * tracepoint.c (run_inferior_command_1):
16051 (run_inferior_command): Call agent_run_command.
16052 (gdb_ust_connect_sync_socket): Deleted. Move it to
16054 (resume_thread, stop_thread): Likewise.
16055 (gdb_ust_socket_init): Renamed to ...
16056 (gdb_agent_socket_init): ... New.
16057 (gdb_ust_thread): Renamed to ...
16058 (gdb_agent_helper_thread): ... New.
16059 (gdb_ust_init): Move some code to ...
16060 (gdb_agent_init): ... here. New.
16061 [HAVE_UST]: Call gdb_ust_init.
16062 (initialize_tracepoint_ftlib): Call gdb_agent_init.
16063 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
16064 * config.in, configure: Regenerated.
16066 2012-03-02 Pedro Alves <palves@redhat.com>
16068 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
16069 * linux-low.c (struct simple_pid_list): New.
16070 (stopped_pids): New a struct simple_pid_list pointer.
16071 (add_to_pid_list, pull_pid_from_list): New.
16072 (handle_extended_wait): Don't assume the first signal new children
16073 report is SIGSTOP. Adjust call to pull_pid_from_list.
16074 (linux_wait_for_lwp): Adjust.
16076 2012-03-02 Yao Qi <yao@codesourcery.com>
16078 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
16081 2012-03-02 Yao Qi <yao@codesourcery.com>
16083 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
16084 `stop_pc' and `tpoint'. Update caller.
16086 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
16088 * linux-low.h (linux_target_ops): Add regset_bitmap member.
16089 * linux-low.c (use_linux_regsets): New macro.
16090 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
16091 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
16092 (linux_register_in_regsets): New function.
16093 (usr_fetch_inferior_registers): Skip registers covered by
16095 (usr_store_inferior_registers): Likewise.
16096 (usr_fetch_inferior_registers): New macro.
16097 (usr_store_inferior_registers): Likewise.
16098 (linux_fetch_registers): Handle mixed regset/non-regset targets.
16099 (linux_store_registers): Likewise.
16100 * linux-mips-low.c (init_registers_mips_dsp_linux): New
16102 (init_registers_mips64_dsp_linux): Likewise.
16103 (init_registers_mips_linux): New macro.
16104 (init_registers_mips_dsp_linux): Likewise.
16105 (mips_dsp_num_regs): Likewise.
16106 (DSP_BASE, DSP_CONTROL): New fallback macros.
16107 (mips_base_regs): New macro.
16108 (mips_regmap): Use it. Fix the size.
16109 (mips_dsp_regmap): New variable.
16110 (mips_dsp_regset_bitmap): Likewise.
16111 (mips_arch_setup): New function.
16112 (mips_cannot_fetch_register): Use the_low_target.regmap rather
16114 (mips_cannot_store_register): Likewise.
16115 (the_low_target): Update .arch_setup, .num_regs and .regmap
16116 initializers. Add .regset_bitmap initializer.
16117 * linux-arm-low.c (the_low_target): Add .regset_bitmap
16119 * linux-bfin-low.c (the_low_target): Likewise.
16120 * linux-cris-low.c (the_low_target): Likewise.
16121 * linux-crisv32-low.c (the_low_target): Likewise.
16122 * linux-ia64-low.c (the_low_target): Likewise.
16123 * linux-m32r-low.c (the_low_target): Likewise.
16124 * linux-m68k-low.c (the_low_target): Likewise.
16125 * linux-ppc-low.c (the_low_target): Likewise.
16126 * linux-s390-low.c (the_low_target): Likewise.
16127 * linux-sh-low.c (the_low_target): Likewise.
16128 * linux-sparc-low.c (the_low_target): Likewise.
16129 * linux-tic6x-low.c (the_low_target): Likewise.
16130 * linux-x86-low.c (the_low_target): Likewise.
16131 * linux-xtensa-low.c (the_low_target): Likewise.
16132 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
16133 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
16134 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
16136 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
16137 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
16139 2012-02-29 Yao Qi <yao@codesourcery.com>
16140 Pedro Alves <palves@redhat.com>
16142 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
16143 `step_over_finished' is true.
16145 2012-02-27 Pedro Alves <palves@redhat.com>
16147 * linux-low.c (pid_is_stopped): Delete, moved to common/.
16148 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
16150 2012-02-27 Pedro Alves <palves@redhat.com>
16153 * linux-low.c (pid_is_stopped): New.
16154 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
16156 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
16158 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
16161 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
16163 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
16165 2012-02-24 Luis Machado <lgustavo@codesourcery>
16167 * server.c (handle_query): Advertise support for target-side
16168 breakpoint condition evaluation.
16169 (process_point_options): New function.
16170 (process_serial_event): When inserting a breakpoint, check for
16171 a target-side condition that should be evaluated.
16173 * mem-break.c: Include regcache.h and ax.h.
16174 (point_cond_list_t): New data structure.
16175 (breakpoint) <cond_list>: New field.
16176 (find_gdb_breakpoint_at): Make non-static.
16177 (delete_gdb_breakpoint_at): Clear any target-side
16179 (clear_gdb_breakpoint_conditions): New function.
16180 (add_condition_to_breakpoint): Likewise.
16181 (add_breakpoint_condition): Likewise.
16182 (gdb_condition_true_at_breakpoint): Likewise.
16183 (gdb_breakpoint_here): Return result directly instead
16184 of going through a local variable.
16186 * mem-break.h (find_gdb_breakpoint_at): New prototype.
16187 (clear_gdb_breakpoint_conditions): Likewise.
16188 (add_breakpoint_condition): Likewise.
16189 (gdb_condition_true_at_breakpoint): Likewise.
16191 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
16192 (need_step_over_p): Take target-side breakpoint condition into
16195 2012-02-24 Luis Machado <lgustavo@codesourcery>
16197 * server.h: Include tracepoint.h.
16198 (agent_mem_read, agent_get_trace_state_variable_value,
16199 agent_set_trace_state_variable_value,
16200 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
16201 get_set_tsv_func_addr): New prototypes.
16203 * ax.h: New include file.
16204 * ax.c: New source file.
16206 * tracepoint.c: Include ax.h.
16207 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
16208 agent_expr, eval_result_type): Move to ax.h.
16209 (parse_agent_expr): Rename to ...
16210 (gdb_parse_agent_expr): ... this, make it non-static and move
16212 (unparse_agent_expr) Rename to ...
16213 (gdb_unparse_agent_expr): ... this, make it non-static and move
16215 (eval_agent_expr): Rename to ...
16216 (eval_tracepoint_agent_expr): ... this.
16217 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
16218 forward declarations.
16219 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
16220 (agent_get_trace_state_variable_value): New function.
16221 (agent_set_trace_state_variable_value): New function.
16222 (cmd_qtdp): Call gdb_parse_agent_expr (...).
16223 (response_tracepoint): Call gdb_unparse_agent_expr (...).
16224 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
16225 (condition_true_at_tracepoint): Likewise.
16226 (parse_agent_expr): Rename to ...
16227 (gdb_parse_agent_expr): ... this and move to ax.c.
16228 (unparse_agent_expr): Rename to ...
16229 (gdb_unparse_agent_expr): ... this and move to ax.c.
16230 (gdb_agent_op_name): Move to ax.c.
16231 (eval_agent_expr): Rename to ...
16232 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
16234 (eval_tracepoint_agent_expr): New function.
16235 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
16237 (current_insn_ptr, emit_error, struct bytecode_address): Move to
16239 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
16240 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
16241 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
16242 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
16243 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
16244 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
16245 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
16246 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
16247 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
16248 (compile_bytecodes): Remove forward declaration.
16249 (is_goto_target): Move to ax.c.
16250 (compile_bytecodes): Move to ax.c and call
16251 agent_get_trace_state_variable_value (...) and
16252 agent_set_trace_state_variable_value (...).
16254 * Makefile.in: Update ax.c and IPA dependencies.
16256 2012-02-24 Pedro Alves <palves@redhat.com>
16258 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
16259 (cmd_bigqtbuffer_circular): ... this. Only handle
16260 'QTBuffer:circular:'.
16261 (handle_tracepoint_general_set): Adjust.
16263 2012-02-16 Yao Qi <yao@codesourcery.com>
16265 * inferiors.c: Move code to ...
16266 * dll.c: .... here. New.
16267 * server.h: Declare clear_dlls.
16268 * Makefile.in (SFILES): Add dll.c.
16272 2012-02-11 Yao Qi <yao@codesourcery.com>
16274 * server.c: (handle_monitor_command): Add a new parameter
16276 (handle_query): Update caller.
16278 2012-02-09 Joel Brobecker <brobecker@adacore.com>
16280 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
16281 * configure, config.in: Regenerate.
16282 * hostio.c: Provide an alternate implementation if HAVE_READLINK
16285 2012-02-02 Pedro Alves <palves@redhat.com>
16287 Try SIGKILL first, then PTRACE_KILL.
16288 * linux-low.c (linux_kill_one_lwp): New.
16289 (linux_kill_one_lwp): Rename to ...
16290 (kill_one_lwp_callback): ... this. Use the new
16291 linux_kill_one_lwp.
16293 2012-02-02 Pedro Alves <palves@redhat.com>
16295 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
16298 2012-01-27 Pedro Alves <palves@redhat.com>
16300 * linux-low.c (linux_child_pid_to_exec_file): Delete.
16301 (elf_64_file_p): Make static.
16302 (linux_pid_exe_is_elf_64_file): New.
16303 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
16304 Delete declarations.
16305 (linux_pid_exe_is_elf_64_file): Declare.
16306 * linux-x86-low.c (x86_arch_setup): Use
16307 linux_pid_exe_is_elf_64_file.
16309 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16311 * linux-low.c (linux_wait_for_event_1): Rename to ...
16312 (linux_wait_for_event): ... here and merge it with former
16313 linux_wait_for_event - new variable wait_ptid, use it.
16314 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
16316 2012-01-23 Pedro Alves <palves@redhat.com>
16318 * server.c (main): Avoid yet another case of infinite loop while
16319 detaching/killing after a longjmp.
16321 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16324 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
16326 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
16328 * hostio.c (handle_readlink): New function.
16329 (handle_vFile): Call it to handle "vFile:readlink" packets.
16331 2012-01-20 Pedro Alves <palves@redhat.com>
16332 Ulrich Weigand <ulrich.weigand@linaro.org>
16334 * server.c (handle_v_requests): Only support vAttach and vRun to
16335 start multiple processes when in extended protocol mode.
16337 2012-01-17 Pedro Alves <palves@redhat.com>
16339 * tracepoint.c (initialize_tracepoint): Use mmap instead of
16340 memalign plus mprotect to allocate the scratch buffer.
16342 2012-01-13 Pedro Alves <palves@redhat.com>
16344 * server.c (attach_inferior): Clear `cont_thread'.
16346 2012-01-13 Pedro Alves <palves@redhat.com>
16348 * server.c (main): Avoid infinite loop while detaching/killing
16351 2012-01-09 Doug Evans <dje@google.com>
16353 * server.c (start_inferior): Set last_ptid in --wrapper case.
16355 2012-01-06 Yao Qi <yao@codesourcery.com>
16357 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
16359 [IN_PROCESS_AGENT] (debug_agent): New global variable.
16361 2012-01-04 Yao Qi <yao@codesourcery.com>
16363 * tracepoint.c (cmd_qtdp): Print debug message
16364 for static tracepoint.
16366 2012-01-04 Yao Qi <yao@codesourcery.com>
16368 * tracepoint.c (trace_vdebug): Differentiate debug message
16369 between gdbserver and IPA.
16371 2012-01-03 Yao Qi <yao@codesourcery.com>
16373 * tracepoint.c (tracepoint_was_hit): Don't collect for
16376 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16378 * terminal.h: Reformat copyright header.
16380 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16382 * server.c (gdbserver_version): Update copyright year.
16383 * gdbreplay.c (gdbreplay_version): Likewise.
16385 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16387 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16390 2011-12-18 Hui Zhu <teawater@gmail.com>
16391 * linux-low.c (linux_create_inferior): Save return value to ret.
16393 2011-12-18 Hui Zhu <teawater@gmail.com>
16395 * linux-low.c (linux_create_inferior): Save return value to ret.
16397 2011-12-16 Doug Evans <dje@google.com>
16399 * linux-low.c (linux_create_inferior): If stdio connection,
16400 redirect stdin from /dev/null, stdout to stderr.
16401 * remote-utils.c (remote_is_stdio): New static global.
16402 (remote_connection_is_stdio): New function.
16403 (remote_prepare): Handle stdio connection.
16404 (remote_open): Ditto.
16405 (remote_close): Don't close stdin for stdio connections.
16406 (read_prim,write_prim): New functions. Replace all calls to
16407 read/write to these.
16408 * server.c (main): Watch for "-" argument. Move call to
16409 remote_prepare before start_inferior.
16410 * server.h (STDIO_CONNECTION_NAME): New macro.
16411 (remote_connection_is_stdio): Declare.
16413 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16414 in debugging output.
16416 2011-12-15 Yao Qi <yao@codesourcery.com>
16418 * tracepoint.c: Include sys/syscall.h.
16419 (gdb_ust_thread): Remove preprocessor conditional.
16421 2011-12-14 Pedro Alves <pedro@codesourcery.com>
16423 * linux-low.c (linux_detach_one_lwp): Call
16424 the_low_target.prepare_to_resume before detaching.
16426 2011-12-14 Yao Qi <yao@codesourcery.com>
16428 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16431 2011-12-14 Yao Qi <yao@codesourcery.com>
16433 * i386-low.c (i386_low_stopped_data_address): Initialize local
16434 variable `control'.
16436 2011-12-13 Pedro Alves <pedro@codesourcery.com>
16440 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16441 DR_CONTROL unless necessary. Extend comments.
16442 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16443 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16445 2011-12-13 Yao Qi <yao@codesourcery.com>
16447 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16449 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16451 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16453 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16454 Print new debug message for such case.
16456 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16458 Fix overlapping memcpy.
16459 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16460 the read_inferior_memory transfer.
16461 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16462 write_inferior_memory transfer.
16463 (set_fast_tracepoint_jump): New variable buf. Use it for the
16464 read_inferior_memory and write_inferior_memory transfers.
16465 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16466 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16467 Use it for the write_inferior_memory transfer.
16468 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16471 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16473 * linux-low.c (fetch_register, store_register): Make code
16474 consistent, fix formatting.
16476 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16478 * linux-low.c (usr_store_inferior_registers): Factor out code
16479 to handle individual registers into...
16480 (store_register): ... this new function.
16482 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16484 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16485 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16486 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16487 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16488 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16489 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16490 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16491 (srv_xmlfiles): Add new XML files.
16493 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16495 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16496 (init_registers_s390_linux32v1): Add prototype.
16497 (init_registers_s390_linux32v2): Likewise.
16498 (init_registers_s390_linux64v1): Likewise.
16499 (init_registers_s390_linux64v2): Likewise.
16500 (init_registers_s390x_linux64v1): Likewise.
16501 (init_registers_s390x_linux64v2): Likewise.
16502 (s390_num_regs): Increment to 52.
16503 (s390_regmap): Add orig_r2 register.
16504 (s390_num_regs_3264): Increment to 68.
16505 (s390_regmap_3264): Add orig_r2 register.
16506 (s390_collect_ptrace_register): Handle orig_r2 register.
16507 (s390_supply_ptrace_register): Likewise.
16508 (s390_fill_last_break): New function.
16509 (s390_store_last_break): Likewise.
16510 (s390_fill_system_call): New function.
16511 (s390_store_system_call): Likewise.
16512 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16514 (s390_check_regset): New function.
16515 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16516 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16517 Update target_regsets for available register sets.
16519 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16520 Jan Kratochvil <jan.kratochvil@redhat.com>
16522 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16523 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16525 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16526 * linux-low.h (struct process_info_private): New member r_debug.
16527 * server.c (handle_qxfer_libraries): Call
16528 the_target->qxfer_libraries_svr4.
16529 (handle_qxfer_libraries_svr4): New function.
16530 (qxfer_packets): New entry "libraries-svr4".
16531 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16532 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16533 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16534 PACKET_qXfer_libraries_svr4.
16536 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16538 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16539 PSW address/mask between 8-byte and 16-byte formats.
16540 (s390_supply_ptrace_register): Likewise.
16541 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16542 basic addressing mode bit.
16544 2011-11-24 Stan Shebs <stan@codesourcery.com>
16546 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16548 2011-11-17 Stan Shebs <stan@codesourcery.com>
16550 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16551 (tracing_start_time): New global.
16552 (tracing_stop_time): New global.
16553 (tracing_user_name): New global.
16554 (tracing_notes): New global.
16555 (tracing_stop_note): New global.
16556 (cmd_qtstart): Set traceframe_usage, start_time.
16557 (stop_tracing): Set stop_time.
16558 (cmd_qtstatus): Report additional status.
16559 (cmd_qtp): New function.
16560 (handle_tracepoint_query): Call it.
16561 (cmd_qtnotes): New function.
16562 (handle_tracepoint_general_set): Call it.
16563 (get_timestamp): Rename from tsv_get_timestamp.
16565 2011-11-14 Stan Shebs <stan@codesourcery.com>
16566 Kwok Cheung Yeung <kcy@codesourcery.com>
16568 * linux-x86-low.c (small_jump_insn): New.
16569 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16570 trampoline and error message, build a trampoline and issue a small
16571 jump instruction to it.
16572 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16573 trampoline and error message.
16574 (x86_get_min_fast_tracepoint_insn_len): New.
16575 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16576 * linux-low.h (struct linux_target_ops): Add arguments to
16577 install_fast_tracepoint_jump_pad operation, add new operation.
16578 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16580 (linux_get_min_fast_tracepoint_insn_len): New function.
16581 (linux_target_op): Add new operation.
16582 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16583 (gdb_trampoline_buffer_end): Ditto.
16584 (gdb_trampoline_buffer_error): Ditto.
16585 (struct ipa_sym_addresses): Add fields for new IPA variables.
16586 (symbol_list): Add entries for new IPA variables.
16587 (struct tracepoint): Add fields to hold the address range of the
16588 trampoline used by the tracepoint.
16589 (trampoline_buffer_head): New static variable.
16590 (trampoline_buffer_tail): Ditto.
16591 (claim_trampoline_space): New function.
16592 (have_fast_tracepoint_trampoline_buffer): New function.
16593 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16595 (install_fast_tracepoint): Ditto, also add error buffer argument.
16596 (cmd_qtminftpilen): New function.
16597 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16598 (fast_tracepoint_from_trampoline_address): New function.
16599 (fast_tracepoint_collecting): Handle trampoline as part of jump
16601 (set_trampoline_buffer_space): New function.
16602 (initialize_tracepoint): Initialize new IPA variables.
16603 * target.h (struct target_ops): Add arguments to
16604 install_fast_tracepoint_jump_pad operation, add new
16605 get_min_fast_tracepoint_insn_len operation.
16606 (target_get_min_fast_tracepoint_insn_len): New.
16607 (install_fast_tracepoint_jump_pad): Add arguments.
16608 * server.h (IPA_BUFSIZ): Define.
16609 * linux-i386-ipa.c: Include extra header files.
16610 (initialize_fast_tracepoint_trampoline_buffer): New function.
16611 (initialize_low_tracepoint): Call it.
16612 * server.h (set_trampoline_buffer_space): Declare.
16613 (claim_trampoline_space): Ditto.
16614 (have_fast_tracepoint_trampoline_buffer): Ditto.
16616 2011-11-14 Yao Qi <yao@codesourcery.com>
16618 * server.c (handle_query): Handle InstallInTrace for qSupported.
16619 * tracepoint.c (add_tracepoint): Sort list.
16620 (install_tracepoint, download_tracepoint): New.
16621 (cmd_qtdp): Call them to install and download tracepoints.
16622 (sort_tracepoints): Removed.
16623 (cmd_qtstart): Update.
16625 2011-11-14 Yao Qi <yao@codesourcery.com>
16627 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16628 * mem-break.h: Declare.
16629 * tracepoint.c (cmd_qtstart): Move some code to ...
16630 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16632 (download_tracepoints): Move some code to ...
16633 (download_tracepoint_1): ... here. New.
16635 2011-11-08 Yao Qi <yao@codesourcery.com>
16637 * remote-utils.c (relocate_instruction): A comment fix.
16639 2011-11-07 Joel Brobecker <brobecker@adacore.com>
16641 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16642 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16643 dr_status_mirror and dr_control_mirror from debug_reg_state.
16644 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16645 (i386_initial_stuff): Remove use of deleted globals.
16646 (i386_get_thread_context, i386_set_thread_context,
16647 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16648 from debug_reg_state.
16650 2011-11-05 Yao Qi <yao@codesourcery.com>
16652 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16653 address as TPOINT's.
16655 2011-11-02 Stan Shebs <stan@codesourcery.com>
16657 * tracepoint.c (agent_mem_read_string): New function.
16658 (eval_agent_expr): Call it for tracenz.
16659 * server.c (handle_query): Report support for tracenz.
16661 2011-11-02 Yao Qi <yao@codesourcery.com>
16663 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16665 2011-11-02 Yao Qi <yao@codesourcery.com>
16667 * target.h: Fix a typo in comment.
16669 2011-10-31 Pedro Alves <pedro@codesourcery.com>
16671 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16672 clobber the breakpoints' shadows with fast tracepoint jumps.
16673 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16674 * target.c (write_inferior_memory): Also pass MYADDR down to
16677 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16679 * configure.ac: Check support for personality routine.
16680 * configure: Regenerate.
16681 * config.in: Likewise.
16682 * linux-low.c: Include <sys/personality.h>.
16683 Define ADDR_NO_RANDOMIZE if necessary.
16684 (linux_create_inferior): Disable address space randomization when
16685 forking inferior, if requested.
16686 (linux_supports_disable_randomization): New function.
16687 (linux_target_ops): Install it.
16688 * server.h (disable_randomization): Declare.
16689 * server.c (disable_randomization): New global variable.
16690 (handle_general_set): Handle QDisableRandomization.
16691 (handle_query): Likewise for qSupported.
16692 (main): Support --disable-randomization and --no-disable-randomization
16693 command line arguments.
16694 * target.h (struct target_ops): Add supports_disable_randomization.
16695 (target_supports_disable_randomization): New macro.
16697 2011-09-29 Mike Frysinger <vapier@gentoo.org>
16699 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16701 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16702 [!PT_GETDSBT] (target_loadmap): New definition.
16703 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16704 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16705 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16706 and PT_GETDSBT to LINUX_LOADMAP.
16707 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16708 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16710 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16712 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16713 (arm_linux_hwbp_cap): New static variable.
16714 (arm_linux_get_hwbp_cap): Replace by ...
16715 (arm_linux_init_hwbp_cap): ... this new function.
16716 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16717 (arm_linux_get_hw_watchpoint_count): Likewise.
16718 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16719 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16720 (arm_prepare_to_resume): Use perror_with_name instead of error.
16722 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16724 * linux-arm-low.c: Include <signal.h>.
16725 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16726 (struct arm_linux_hwbp_cap): New data type.
16727 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16728 (struct arm_linux_hw_breakpoint): New data type.
16729 (MAX_BPTS, MAX_WPTS): Define.
16730 (struct arch_process_info, struct arch_lwp_info): New data types.
16731 (arm_linux_get_hwbp_cap): New function.
16732 (arm_linux_get_hw_breakpoint_count): Likewise.
16733 (arm_linux_get_hw_watchpoint_count): Likewise.
16734 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16735 (arm_hwbp_control_initialize): Likewise.
16736 (arm_hwbp_control_is_enabled): Likewise.
16737 (arm_hwbp_control_is_initialized): Likewise.
16738 (arm_hwbp_control_disable): Likewise.
16739 (arm_linux_hw_breakpoint_equal): Likewise.
16740 (arm_linux_hw_point_initialize): Likewise.
16741 (struct update_registers_data): New data structure.
16742 (update_registers_callback: New function.
16743 (arm_insert_point): Likewise.
16744 (arm_remove_point): Likewise.
16745 (arm_stopped_by_watchpoint): Likewise.
16746 (arm_stopped_data_address): Likewise.
16747 (arm_new_process): Likewise.
16748 (arm_new_thread): Likewise.
16749 (arm_prepare_to_resume): Likewise.
16750 (the_low_target): Register arm_insert_point, arm_remove_point,
16751 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16752 arm_new_thread, and arm_prepare_to_resume.
16754 2011-09-15 Stan Shebs <stan@codesourcery.com>
16756 * server.h (struct emit_ops): Add compare-goto fields.
16757 * tracepoint.c (gdb_agent_op_sizes): New table.
16758 (emit_eq_goto): New function.
16759 (emit_ne_goto): New function.
16760 (emit_lt_goto): New function.
16761 (emit_le_goto): New function.
16762 (emit_gt_goto): New function.
16763 (emit_ge_goto): New function.
16764 (is_goto_target): New function.
16765 (compile_bytecodes): Recognize special cases of compare-goto
16766 combinations and call specialized emitters for them.
16767 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16768 (amd64_emit_ne_goto): New function.
16769 (amd64_emit_lt_goto): New function.
16770 (amd64_emit_le_goto): New function.
16771 (amd64_emit_gt_goto): New function.
16772 (amd64_emit_ge_goto): New function.
16773 (amd64_emit_ops): Add the new functions.
16774 (i386_emit_eq_goto): New function.
16775 (i386_emit_ne_goto): New function.
16776 (i386_emit_lt_goto): New function.
16777 (i386_emit_le_goto): New function.
16778 (i386_emit_gt_goto): New function.
16779 (i386_emit_ge_goto): New function.
16780 (i386_emit_ops): Add the new functions.
16782 2011-09-08 Stan Shebs <stan@codesourcery.com>
16784 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16785 (i386_emit_epilogue): Restore %ebx.
16787 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16789 * server.c (step_thread): Remove definition.
16790 (process_serial_event): Don't handle Hs.
16791 * server.h (step_thread): Remove declaration.
16792 * target.c (set_desired_inferior): Remove use of step_thread.
16794 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16796 * linux-low.c: Include linux-procfs.h.
16797 (linux_attach_lwp_1): Update comments.
16798 (linux_attach): Scan for existing threads when attaching to a
16799 process that is the tgid.
16800 * Makefile.in: Update dependencies.
16802 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16804 * configure.srv: Add linux-procfs.o dependencies.
16806 2011-08-14 Yao Qi <yao@codesourcery.com>
16808 * target.h (struct target_ops): Fix indent.
16809 * win32-low.c (win32_target_ops): Fix comment.
16811 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16812 Yao Qi <yao@codesourcery.com>
16814 * Makefile.in (clean): Remove tic6x-*.c files.
16815 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16816 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16817 (tic6x-c64xp-linux.c): Likewise.
16818 * configure.srv: Add support for tic6x-*-uclinux.
16819 * linux-tic6x-low.c: New.
16820 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16822 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16823 Yao Qi <yao@codesourcery.com>
16825 * target.h (struct target_ops): Add read_loadmap.
16826 * linux-low.c (struct target_loadseg): New type.
16827 (struct target_loadmap): New type.
16828 (linux_read_loadmap): New function.
16829 (linux_target_ops): Add linux_read_loadmap.
16830 * server.c (handle_query): Support qXfer:fdpic:read packet.
16831 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16834 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16836 * win32-low.c: Include <stdint.h>.
16838 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16840 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16841 to the inferior here.
16842 (i386_remove_aligned_watchpoint): Ditto.
16843 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16844 fit part of the watchpoint in the debug registers.
16845 (i386_update_inferior_debug_regs): New.
16846 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16847 registers, and only update the inferior on success.
16848 (i386_low_remove_watchpoint): Ditto.
16850 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16852 * linux-low.c (compare_ints, unique, list_threads, show_process,
16853 linux_core_of_thread): Delete.
16854 (linux_target_ops): Change linux_core_of_thread to
16855 linux_common_core_of_thread.
16856 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16857 * utils.c (malloc_failure): Change type of argument.
16858 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16859 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16860 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16861 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16862 (IPA_OBJS): Add common-utils-ipa.o.
16863 (ptid_h, linux_osdata_h): New macros.
16864 (server_h): Add common/common-utils.h, common/xml-utils.h,
16865 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16867 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16868 ptid.o, buffer.o): New rules.
16869 (linux-low.o): Add common/linux-osdata.h as a dependency.
16870 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16871 * configure.ac: Add AC_HEADER_DIRENT check.
16872 * config.in: Regenerate.
16873 * configure: Regenerate.
16874 * remote-utils.c (xml_escape_text): Delete.
16875 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16876 buffer_xml_printf): Move to common/buffer.c.
16877 * server.c (main): Remove call to initialize_inferiors.
16878 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16879 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16880 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16881 internal_error, gdb_assert, gdb_assert_fail): Delete.
16882 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16883 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16885 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16886 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16887 initialize_inferiors): Delete.
16889 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16891 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16894 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16896 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16898 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16900 2011-05-26 Yao Qi <yao@codesourcery.com>
16902 * Makefile.in (thread-db.o): Track dependence to
16903 common/gdb_thread_db.h.
16904 * thread-db.c: include gdb_thread_db.h from right place.
16906 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16908 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16909 __FILE__ and __LINE__ to internal_error.
16911 2011-05-13 Doug Evans <dje@google.com>
16913 * thread-db.c (try_thread_db_load_from_sdir): New function.
16914 (try_thread_db_load_from_dir): New function.
16915 (thread_db_load_search): Handle $sdir, ignore $pdir.
16916 Remove trying of system directories if search of
16917 libthread-db-search-path fails, that is now done via $sdir.
16919 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16921 * server.c (handle_query): Add EnableDisableTracepoints to the list
16922 of supported features.
16923 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16925 (cmd_qtenable_disable): New.
16926 (cmd_qtstart): Install tracepoints even if disabled.
16927 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16928 receiving a QTEnable or QTDisable packet.
16929 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16930 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16932 (gdb_probe): Skip data collection if static tracepoint is disabled.
16934 2011-05-10 Doug Evans <dje@google.com>
16936 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16938 2011-05-04 Doug Evans <dje@google.com>
16940 * linux-low.c (linux_join): Skip process lookup.
16941 * spu-low.c (spu_join): Ditto.
16942 * server.c (join_inferiors_callback): Delete.
16943 (process_serial_event): For 'D' packet (detach) call join_inferior
16946 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16948 * README: Don't mention xscale*-*-linux*.
16949 * configure.srv (xscale*-*-linux*): Don't handle target.
16951 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16953 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16955 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16956 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16957 (i386_emit_void_call_2): Likewise.
16959 2011-04-26 Yao Qi <yao@codesourcery.com>
16961 * linux-low.c: Move common macros to linux-ptrace.h.
16962 Include linux-ptrace.h.
16963 * Makefile.in (linux_ptrace_h): New.
16964 (linux-low.o): Depends on linux-ptrace.h.
16966 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16968 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16969 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16970 (remote_prepare): New function with most of the TCP code from ...
16971 (remote_open): ... here. Detect PORT here unconditionally. Move also
16972 setting transport_is_reliable.
16973 * server.c (run_once): New variable.
16974 (gdbserver_usage): Document it.
16975 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16976 the first run if RUN_ONCE.
16977 * server.h (run_once, remote_prepare): New declarations.
16979 2011-04-19 Tom Tromey <tromey@redhat.com>
16981 * win32-low.c (handle_load_dll): Remove duplicate "the".
16983 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16985 Remove support for old Cygwin 1.5 versions.
16986 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16987 function to avoid warning.
16988 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16991 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16993 * gdbserver/server.h (Macro _): Define it if not available.
16995 2011-03-14 Michael Snyder <msnyder@vmware.com>
16997 * hostio.c (handle_close): Remove unnecessary null test.
16999 2011-03-10 Joel Brobecker <brobecker@adacore.com>
17001 * Makefile.in (maintainer-clean realclean distclean): Remove
17002 "make ... subdir_do" command.
17004 2011-03-10 Michael Snyder <msnyder@vmware.com>
17006 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
17008 * server.c (handle_v_run): Free alloced buffer on early return.
17010 2011-03-09 Yao Qi <yao@codesourcery.com>
17013 2011-03-04 Yao Qi <yao@codesourcery.com>
17015 * Makefile.in: Remove GNU make feature --directory.
17017 2011-03-05 Yao Qi <yao@codesourcery.com>
17019 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
17020 (subdir_do): New make target. Copied from gdb/Makefile.
17021 (maintainer-clean, realclean, distclean, clean): Call corresponding
17022 make targets in common/Makefile.
17024 2011-02-11 Yao Qi <yao@codesourcery.com>
17026 * configure.ac: Call AC_PROG_RANLIB.
17027 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17028 * configure: Regenerate.
17030 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
17032 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
17034 2011-03-06 Yao Qi <yao@codesourcery.com>
17036 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
17038 2011-03-05 Yao Qi <yao@codesourcery.com>
17040 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
17041 (subdir_do): New make target. Copied from gdb/Makefile.
17042 (maintainer-clean, realclean, distclean, clean): Call corresponding
17043 make targets in common/Makefile.
17045 2011-03-04 Yao Qi <yao@codesourcery.com>
17047 * Makefile.in: Remove GNU make feature --directory.
17049 2011-03-04 Michael Snyder <msnyder@vmware.com>
17051 * server.c (queue_stop_reply): Call xmalloc not malloc.
17053 2011-03-02 Michael Snyder <msnyder@vmware.com>
17055 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
17057 2011-02-28 Michael Snyder <msnyder@vmware.com>
17059 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
17060 (cmd_qtframe): Ditto.
17061 (cmd_qtbuffer): Ditto.
17062 (cmd_bigqtbuffer): Ditto.
17064 * utils.c (decimal2str): Initialize 'width' to nine, then
17065 don't mess with it.
17067 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17069 * hostio.c (require_data): Free *data, not data.
17071 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17073 * hostio.c (require_data): Use free, not xfree.
17075 2011-02-27 Michael Snyder <msnyder@vmware.com>
17077 * server.c (handle_query): Discard unused value.
17079 * hostio.c (require_data): Free malloc memory before returning
17082 2011-02-26 Michael Snyder <msnyder@vmware.com>
17084 * linux-low.c (list_threads): Call closedir for dirent.
17086 2011-02-27 Michael Snyder <msnyder@vmware.com>
17088 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
17089 a case statement falls through.
17091 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
17093 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
17096 2011-02-26 Michael Snyder <msnyder@vmware.com>
17098 * utils.c (decimal2str): Eliminate dead code and dead param.
17099 (pulongest): Drop dead param from call to decimal2str.
17102 2011-02-24 Joel Brobecker <brobecker@adacore.com>
17104 Revert the following patch (not approved yet):
17105 2011-02-21 Hui Zhu <teawater@gmail.com>
17106 * tracepoint.c (tp_printf): New function.
17107 (eval_agent_expr): Handle gdb_agent_op_printf.
17109 2011-02-21 Hui Zhu <teawater@gmail.com>
17111 * tracepoint.c (tp_printf): New function.
17112 (eval_agent_expr): Handle gdb_agent_op_printf.
17114 2011-02-18 Tom Tromey <tromey@redhat.com>
17116 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
17117 (tracepoint.o): Likewise.
17118 * tracepoint.c (enum gdb_agent_op): Use ax.def.
17119 (gdb_agent_op_names): Likewise.
17121 2011-02-18 Tom Tromey <tromey@redhat.com>
17123 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
17124 gdb_agent_op_rot>: New constants.
17125 (gdb_agent_op_names): Add pick and roll.
17126 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
17129 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
17131 * aclocal.m4: Regenerated with aclocal-1.11.1.
17133 2011-02-14 Pedro Alves <pedro@codesourcery.com>
17135 * server.c (handle_qxfer_traceframe_info): New.
17136 (qxfer_packets): Register "traceframe-info".
17137 (handle_query): Report support for qXfer:traceframe-info:read+.
17138 * tracepoint.c (match_blocktype): New.
17139 (traceframe_find_block_type): Rename to ...
17140 (traceframe_walk_blocks): ... this. Add callback filter argument,
17142 (traceframe_find_block_type): New, reimplemented on top of
17143 traceframe_walk_blocks.
17144 (build_traceframe_info_xml): New.
17145 (traceframe_read_info): New.
17146 * server.h (traceframe_read_info): Declare.
17148 2011-02-11 Yao Qi <yao@codesourcery.com>
17150 * configure.ac: Call AC_PROG_RANLIB.
17151 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17152 * configure: Regenerate.
17154 2011-02-07 Pedro Alves <pedro@codesourcery.com>
17156 * server.c (gdb_read_memory): Change return semantics to allow
17158 (handle_search_memory_1): Adjust.
17159 (process_serial_event) <'m' packet>: Handle partial transfers.
17160 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
17162 2011-01-28 Pedro Alves <pedro@codesourcery.com>
17164 * regcache.c (init_register_cache): Initialize
17165 regcache->register_status.
17166 (free_register_cache): Release regcache->register_status.
17167 (regcache_cpy): Copy register_status.
17168 (registers_to_string): Print 'x's for unavailable registers.
17169 (supply_register): Mark the register's status valid or
17170 unavailable, depending on whether a buffer was passed in or not.
17171 (supply_register_zeroed): New.
17172 (supply_regblock): Mark the registers' status valid or
17173 unavailable, depending on whether a buffer was passed in or not.
17174 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
17175 (struct regcache): New `register_status' field.
17176 (supply_register_zeroed): Declare.
17177 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
17178 supply_register_zeroed, rather than passing a NULL buffer to
17180 * tracepoint.c (fetch_traceframe_registers): Update comment.
17182 2011-01-28 Pedro Alves <pedro@codesourcery.com>
17184 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
17187 2011-01-25 Pedro Alves <pedro@codesourcery.com>
17189 * server.h (decode_xfer_write): Change prototype.
17190 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
17191 and don't extract the annex here.
17192 * server.c (decode_xfer_read): Remove `annex' parameter,
17193 and don't extract the annex here.
17194 (decode_xfer): New.
17195 (struct qxfer): New.
17196 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
17197 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
17198 (handle_qxfer_statictrace): New functions, abstracted out from
17199 handle_query, and made to use the struct qxfer interface.
17200 (handle_threads_qxfer_proper): Rename to ...
17201 (handle_qxfer_threads_proper): ... this.
17202 (handle_threads_qxfer): Rename to ...
17203 (handle_qxfer_threads): ... this. Adjust.
17204 (qxfer_packets): New array.
17205 (handle_qxfer): New function.
17206 (handle_query): Use handle_qxfer.
17208 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
17210 * gdbreplay.c: Shorten lines of >= 80 columns.
17211 * linux-low.c: Ditto.
17212 * linux-ppc-low.c: Ditto.
17213 * linux-s390-low.c: Ditto.
17214 * linux-sparc-low.c: Ditto.
17215 * linux-x86-low.c: Ditto.
17216 * linux-xtensa-low.c: Ditto.
17217 * mem-break.c: Ditto.
17218 * nto-low.c: Ditto.
17219 * regcache.h: Ditto.
17220 * remote-utils.c: Ditto.
17223 * thread-db.c: Ditto.
17224 * tracepoint.c: Ditto.
17226 * win32-low.h: Ditto.
17228 2011-01-05 Joel Brobecker <brobecker@adacore.com>
17230 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
17233 2011-01-01 Joel Brobecker <brobecker@adacore.com>
17235 * server.c (gdbserver_version): Update copyright year in version
17237 * gdbreplay.c (gdbreplay_version): Ditto.
17239 2010-12-29 Jie Zhang <jie.zhang@analog.com>
17241 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
17242 * linux-bfin-low.c: New file.
17243 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
17244 PT_DATA_ADDR for BFIN targets.
17245 * Makefile.in (SFILES): Add linux-bfin-low.c.
17246 (clean): Remove reg-bfin.c.
17247 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
17248 * README: Mention supported Blackfin targets.
17250 2010-12-23 Mike Frysinger <vapier@gentoo.org>
17252 * .gitignore: New file.
17254 2010-11-16 Mike Frysinger <vapier@gentoo.org>
17256 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
17258 2010-10-22 Jie Zhang <jie@codesourcery.com>
17260 * Makefile.in: Add FLAGS_TO_PASS variable.
17261 (install): Remove dependency of install-only and recursively
17262 invoke make for install-only.
17264 2010-10-04 Doug Evans <dje@google.com>
17266 * Makefile.in (uninstall): Use $(DESTDIR).
17268 2010-09-24 Pedro Alves <pedro@codesourcery.com>
17272 * linux-x86-low.c (compat_siginfo_from_siginfo)
17273 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
17274 si_code is < 0. Check for si_code == SI_TIMER before checking for
17277 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17279 * lynx-i386-low.c: New file.
17280 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
17282 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17284 * lynx-low.c (ptrace_request_to_str): Remove handling for
17285 request values that have been removed in LynxOS 5.x.
17287 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17289 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
17292 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
17294 * configure.ac: Add --enable-inprocess-agent option.
17295 * configure: Rebuilt.
17297 2010-09-06 Yao Qi <yao@codesourcery.com>
17299 * linux-low.c (linux_kill): Remove unused variable.
17300 (linux_stabilize_threads): Likewise.
17301 * server.c (start_inferior): Likewise.
17302 (queue_stop_reply_callback): Likewise.
17303 * tracepoint.c (do_action_at_tracepoint): Likewise.
17305 2010-09-06 Yao Qi <yao@codesourcery.com>
17307 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
17310 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
17312 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
17314 2010-09-06 Pedro Alves <pedro@codesourcery.com>
17316 * Makefile.in (install-only): Replace $IPA_DEPFILES with
17319 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17321 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
17322 gdbserver/lynx-ppc-low.c: New files.
17323 * Makefile.in (lynx_low_h): New variable.
17324 (lynx-low.o, lynx-ppc-low.o): New rules.
17325 * configure.ac: On LynxOS, link with -lnetinet.
17326 * configure.srv: Add handling of powerpc-*-lynxos* targets.
17327 * configure: regenerate.
17329 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17331 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
17332 * configure.ac: Add check for vasprintf and vsnprintf.
17333 * configure, config.in: Regenerate.
17334 * server.h (vasprintf, vsnprintf): Add conditional declarations.
17336 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17338 * gdbreplay.c: Move include of alloca.h up, next to include of
17340 * server.h: Add include of malloc.h.
17341 * mem-break.c: Remove include of malloc.h.
17342 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
17344 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17346 * Makefile.in (memmem.o): Build with -Wno-error.
17348 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17350 * utils.c (xsnprintf): Make non-static.
17351 * server.h: Add xsnprintf declaration.
17352 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
17353 replace calls to snprintf by calls to xsnprintf throughout.
17355 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17357 * configure.ac: Add configure check for alloca.
17358 * configure, config.in: Regenerate.
17359 * server.h: Include alloca.h if it exists.
17360 * gdbreplay.c: Include alloca.h if it exists.
17362 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17364 * linux-low.c (__SIGRTMIN): Define if not already defined.
17365 (linux_create_inferior): Check for __ANDROID__ rather than
17367 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
17368 are already deferred.
17369 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
17370 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
17371 stopped and already has a pending signal to report.
17372 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
17373 a pending signal to report or is moving out of a jump pad.
17374 (linux_init_signals): Check for __ANDROID__ rather than
17377 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17379 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17380 debug_threads check. Avoid a linear search when not doing debug
17383 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17385 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17386 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17387 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17388 (process_event): Change local fd's type to gdb_fildes_t.
17389 (create_file_handler): Adjust prototype.
17390 (delete_file_handler): Adjust prototype.
17391 (handle_file_event): Adjust prototype. Use pfildes.
17392 (create_file_event): Adjsut prototype.
17393 * remote-utils.c (remote_desc, listen_desc): Change type to
17395 * server.h: New gdb_fildes_t typedef.
17396 [USE_WIN32API]: Include winsock2.h.
17397 (delete_file_handler, add_file_handler): Adjust prototypes.
17398 (pfildes): Declare.
17399 * utils.c (pfildes): New.
17401 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17403 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17404 * configure: Regenerate.
17406 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17408 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17409 (linux_done_accessing_memory): ... this.
17410 (linux_target_ops): Adjust.
17411 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17412 * nto-low.c (nto_target_ops): Adjust comment.
17413 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17414 * spu-low.c (spu_target_ops): Adjust comment.
17415 * target.h (target_ops): Rename unprepare_to_access_memory field
17416 to done_accessing_memory.
17417 (unprepare_to_access_memory): Rename to ...
17418 (done_accessing_memory): ... this.
17420 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17422 * linux-low.c (linux_prepare_to_access_memory): New.
17423 (linux_unprepare_to_access_memory): New.
17424 (linux_target_ops): Install them.
17425 * server.c (read_memory): Rename to ...
17426 (gdb_read_memory): ... this. Use
17427 prepare_to_access_memory/prepare_to_access_memory.
17428 (write_memory): Rename to ...
17429 (gdb_write_memory): ... this. Use
17430 prepare_to_access_memory/prepare_to_access_memory.
17431 (handle_search_memory_1): Adjust.
17432 (process_serial_event): Adjust.
17433 * target.h (struct target_ops): New fields
17434 prepare_to_access_memory and unprepare_to_access_memory.
17435 (prepare_to_access_memory, unprepare_to_access_memory): New.
17436 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17437 prepare_to_access_memory/prepare_to_access_memory.
17438 * nto-low.c (nto_target_ops): Adjust.
17439 * spu-low.c (spu_target_ops): Adjust.
17440 * win32-low.c (win32_target_ops): Adjust.
17442 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17444 * Makefile.in (WARN_CFLAGS): Get it from configure.
17445 (WERROR_CFLAGS): New.
17446 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17447 * configure.ac: Introduce --enable-werror, which adds -Werror to
17448 the compiler command line. Enabled by default. Disable with
17449 --disable-werror. Add -Wdeclaration-after-statement
17450 Wpointer-arith and -Wformat-nonliteral to warning flags.
17451 * configure: Regenerate.
17453 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17455 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17457 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17459 * gdbreplay.c (remote_error): New.
17461 (expect): Use gdbchar. Check for error reading from GDB.
17462 Clarify sync error output.
17463 (play): Check for errors writing to GDB.
17464 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17465 * remote-utils.c (getpkt): Check for errors writing to the remote
17468 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17470 * linux-low.c (linux_wait_1): Move non-debugging code out of
17471 `debug_threads' control.
17473 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17475 * linux-low.c (linux_wait_1): Don't set last_status here.
17476 * server.c (push_event, queue_stop_reply_callback): Assert we're
17477 not pushing a TARGET_WAITKIND_IGNORE event.
17478 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17479 (myresume, handle_target_event): Set the thread's last_resume_kind
17480 and last_status from the target returned status.
17482 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17486 * linux-x86-low.c (update_debug_registers_callback): New.
17487 (i386_dr_low_set_addr): Use it.
17488 (i386_dr_low_get_addr): New.
17489 (i386_dr_low_set_control): Use update_debug_registers_callback.
17490 (i386_dr_low_get_control): New.
17491 (i386_dr_low_get_status): Adjust.
17492 * linux-low.c (linux_stop_lwp): New.
17493 * linux-low.h (linux_stop_lwp): Declare.
17495 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17496 argument instead of a i386_debug_reg_state.
17497 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17498 a i386_debug_reg_state.
17499 (i386_insert_aligned_watchpoint): Adjust.
17500 (i386_remove_aligned_watchpoint): Adjust.
17501 (i386_low_stopped_data_address): Read the debug registers from the
17502 inferior instead of from the mirrors.
17503 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17504 (i386_dr_low_get_addr): Declare.
17505 (i386_dr_low_get_control): Declare.
17506 (i386_dr_low_get_status): Change prototype.
17508 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17509 (i386_dr_low_get_addr): New.
17510 (i386_dr_low_get_control): New.
17511 (i386_dr_low_get_status): Adjust prototype. Return
17513 (i386_initial_stuff): Clear dr_status_mirror and
17515 (i386_get_thread_context): Adjust.
17516 (i386_set_thread_context): Adjust.
17517 (i386_thread_added): Adjust.
17519 2010-08-24 Pedro Alves <pedro@codesourcery.com>
17521 * linux-low.h (linux_thread_area): Delete declaration.
17523 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17525 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17526 after its termination.
17528 2010-08-09 Pedro Alves <pedro@codesourcery.com>
17530 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17531 (gdb_wants_all_stopped): Delete.
17532 (linux_wait_1): Don't call them.
17533 * server.c (handle_v_cont): Tag all threads as want-stopped.
17534 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17535 stopped as "client-wants-stopped".
17537 2010-07-31 Pedro Alves <pedro@codesourcery.com>
17539 * Makefile.in (signals_h): New.
17540 (server_h): Depend on it.
17541 (server.o): Don't depend on $(signals_def).
17542 (signals.o): Depend on $(signals_def).
17544 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17546 * Makefile.in (signals_def): New.
17547 (server_h): Append include/gdb/signals.h and signals_def.
17548 (server.o): Append signals_def.
17550 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17552 * server.c (handle_target_event): Use target_signal_to_host for
17553 resume_info.sig initialization.
17554 * target.h (struct thread_resume) <sig>: New comment.
17556 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17558 * server.c (handle_query): strcpy() the returned string from paddress()
17559 instead of sprintf().
17560 * utils.c (paddress): Return phex_nz().
17562 2010-07-07 Joel Brobecker <brobecker@adacore.com>
17564 * server.c (handle_v_cont): Call mourn_inferior if process
17566 (myresume): Likewise.
17568 2010-07-01 Pedro Alves <pedro@codesourcery.com>
17570 Static tracepoints, and integration with UST.
17572 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17573 * mem-break.c (uninsert_all_breakpoints)
17574 (reinsert_all_breakpoints): New.
17575 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17576 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17577 (gdb_agent_ust_loaded, helper_thread_id)
17578 (gdb_agent_helper_thread_id): New macros.
17579 (struct ipa_sym_addresses): Add addr_ust_loaded,
17580 addr_helper_thread_id, addr_cmd_buf.
17581 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17582 (in_process_agent_loaded_ust): New.
17583 (write_e_ust_not_loaded): New.
17584 (maybe_write_ipa_ust_not_loaded): New.
17585 (struct collect_static_trace_data_action): New.
17586 (enum tracepoint_type) <static_tracepoint>: New.
17587 (struct tracepoint) <handle>: Mention static tracepoints.
17588 (struct static_tracepoint_ctx): New.
17589 (CMD_BUF_SIZE): New.
17590 (add_tracepoint_action): Handle static tracepoint actions.
17591 (unprobe_marker_at): New.
17592 (clear_installed_tracepoints): Handle static tracepoints.
17593 (cmd_qtdp): Handle static tracepoints.
17594 (probe_marker_at): New.
17595 (cmd_qtstart): Handle static tracepoints.
17596 (response_tracepoint): Handle static tracepoints.
17597 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17598 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17599 (get_context_regcache): Handle static tracepoints.
17600 (do_action_at_tracepoint): Handle static tracepoint actions.
17601 (traceframe_find_block_type): Handle static trace data blocks.
17602 (traceframe_read_sdata): New.
17603 (download_tracepoints): Download static tracepoint actions.
17604 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17605 (GDB_PROBE_NAME): New.
17607 (GET_UST_SYM): New.
17610 (ust_marker_to_static_tracepoint): New.
17612 (collect_ust_data_at_tracepoint): New.
17613 (gdb_ust_probe): New.
17614 (UNIX_PATH_MAX, SOCK_DIR): New.
17615 (gdb_ust_connect_sync_socket): New.
17616 (resume_thread, stop_thread): New.
17617 (run_inferior_command): New.
17618 (init_named_socket): New.
17619 (gdb_ust_socket_init): New.
17620 (cstr_to_hexstr): New.
17622 (first_marker, next_marker): New.
17623 (response_ust_marker): New.
17624 (cmd_qtfstm, cmd_qtsstm): New.
17625 (unprobe_marker_at, probe_marker_at): New.
17626 (cmd_qtstmat, gdb_ust_thread): New.
17627 (gdb_ust_init): New.
17628 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17629 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17630 (ST_REGENTRY): New.
17631 (x86_64_st_collect_regmap): New.
17632 (X86_64_NUM_ST_COLLECT_GREGS): New.
17633 (AMD64_RIP_REGNUM): New.
17634 (supply_static_tracepoint_registers): New.
17635 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17636 (ST_REGENTRY): New.
17637 (i386_st_collect_regmap): New.
17638 (i386_NUM_ST_COLLECT_GREGS): New.
17639 (supply_static_tracepoint_registers): New.
17640 * server.c (handle_query): Handle qXfer:statictrace:read.
17641 <qSupported>: Report support for StaticTracepoints, and
17642 qXfer:statictrace:read features.
17643 * server.h (traceframe_read_sdata)
17644 (supply_static_tracepoint_registers): Declare.
17645 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17646 (unpack_varlen_hex): Include in IPA build.
17647 * Makefile.in (ustlibs, ustinc): New.
17648 (IPA_OBJS): Add remote-utils-ipa.o.
17649 ($(IPA_LIB)): Link -ldl and -lpthread.
17651 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17652 * config.in, configure: Regenerate.
17654 2010-06-20 Ian Lance Taylor <iant@google.com>
17655 Pedro Alves <pedro@codesourcery.com>
17657 * linux-x86-low.c (always_true): Delete.
17658 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17659 trying to fool the compiler with always_true.
17661 2010-06-20 Pedro Alves <pedro@codesourcery.com>
17663 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17664 conditions in gdbserver.
17666 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17668 * spu-low.c (spu_read_memory): Wrap around local store limit.
17669 (spu_write_memory): Likewise.
17671 2010-06-15 Pedro Alves <pedro@codesourcery.com>
17673 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17674 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17676 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17678 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17679 uses with LONGEST uses.
17681 2010-06-14 Stan Shebs <stan@codesourcery.com>
17682 Pedro Alves <pedro@codesourcery.com>
17686 * linux-x86-low.c: Include limits.h.
17688 (always_true): New.
17691 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17692 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17693 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17694 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17695 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17696 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17697 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17698 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17699 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17700 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17701 (amd64_emit_void_call_2): New.
17702 (amd64_emit_ops): New.
17703 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17704 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17705 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17706 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17707 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17708 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17709 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17710 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17711 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17712 (i386_emit_stack_adjust, i386_emit_int_call_1)
17713 (i386_emit_void_call_2): New.
17714 (i386_emit_ops): New.
17715 (x86_emit_ops): New.
17716 (the_low_target): Install x86_emit_ops.
17717 * server.h (struct emit_ops): New.
17718 (get_raw_reg_func_addr): Declare.
17719 (current_insn_ptr, emit_error): Declare.
17720 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17721 (set_trace_state_variable_value): New defines.
17722 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17723 addr_get_trace_state_variable_value and
17724 addr_set_trace_state_variable_value.
17725 (symbol_list): New fields for get_raw_reg,
17726 get_trace_state_variable_value and set_trace_state_variable_value.
17727 (condfn): New typedef.
17728 (struct tracepoint): New field `compiled_cond'.
17729 (do_action_at_tracepoint): Clear compiled_cond.
17730 (get_trace_state_variable_value, set_trace_state_variable_value):
17732 (condition_true_at_tracepoint): If there's a compiled condition,
17734 (current_insn_ptr, emit_error): New globals.
17735 (struct bytecode_address): New.
17736 (get_raw_reg_func_addr): New.
17737 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17738 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17739 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17740 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17741 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17742 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17743 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17744 (compile_tracepoint_condition, compile_bytecodes): New.
17745 * target.h (emit_ops): Forward declare.
17746 (struct target_ops): New field emit_ops.
17747 (target_emit_ops): New.
17748 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17749 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17750 * linux-low.c (linux_emit_ops): New.
17751 (linux_target_ops): Install it.
17752 * linux-low.h (struct linux_target_ops): New field emit_ops.
17754 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17756 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17757 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17759 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17760 Stan Shebs <stan@codesourcery.com>
17762 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17763 (all): Depend on $(extra_libraries).
17764 (install-only): Install the IPA.
17765 (IPA_OBJS, IPA_LIB): New.
17766 (clean): Remove the IPA lib.
17767 (IPAGENT_CFLAGS): New.
17768 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17769 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17770 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17771 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17772 * configure.ac: Check for atomic builtins support in the compiler.
17773 (IPA_DEPFILES, extra_libraries): Define.
17774 * configure.srv (ipa_obj): Add description.
17775 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17776 (i[34567]86-*-linux*): Set ipa_obj.
17777 (x86_64-*-linux*): Set ipa_obj.
17778 * linux-low.c (stabilizing_threads): New.
17779 (supports_fast_tracepoints): New.
17780 (linux_detach): Stabilize threads before detaching.
17781 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17782 the lwp is either not stabilizing, or is moving out of a jump pad.
17783 (linux_fast_tracepoint_collecting): New.
17784 (maybe_move_out_of_jump_pad): New.
17785 (enqueue_one_deferred_signal): New.
17786 (dequeue_one_deferred_signal): New.
17787 (linux_wait_for_event_1): If moving out of a jump pad, defer
17788 pending signals to later.
17789 (linux_stabilize_threads): New.
17790 (linux_wait_1): Check if threads need moving out of jump pads, and
17792 (stuck_in_jump_pad_callback): New.
17793 (move_out_of_jump_pad_callback): New.
17794 (lwp_running): New.
17795 (linux_resume_one_lwp): Handle moving out of jump pads.
17796 (linux_set_resume_request): Dequeue deferred signals.
17797 (need_step_over_p): Also step over fast tracepoint jumps.
17798 (start_step_over): Also uninsert fast tracepoint jumps.
17799 (finish_step_over): Also reinsert fast tracepoint jumps.
17800 (linux_install_fast_tracepoint_jump): New.
17801 (linux_target_ops): Install linux_stabilize_threads and
17802 linux_install_fast_tracepoint_jump_pad.
17803 * linux-low.h (linux_target_ops) <get_thread_area,
17804 install_fast_tracepoint_jump_pad>: New fields.
17805 (struct lwp_info) <collecting_fast_tracepoint,
17806 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17807 (linux_get_thread_area): Declare.
17808 * linux-x86-low.c (jump_insn): New.
17809 (x86_get_thread_area): New.
17810 (append_insns): New.
17811 (push_opcode): New.
17812 (amd64_install_fast_tracepoint_jump_pad): New.
17813 (i386_install_fast_tracepoint_jump_pad): New.
17814 (x86_install_fast_tracepoint_jump_pad): New.
17815 (the_low_target): Install x86_get_thread_area and
17816 x86_install_fast_tracepoint_jump_pad.
17817 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17818 (struct fast_tracepoint_jump): New.
17819 (fast_tracepoint_jump_insn): New.
17820 (fast_tracepoint_jump_shadow): New.
17821 (find_fast_tracepoint_jump_at): New.
17822 (fast_tracepoint_jump_here): New.
17823 (delete_fast_tracepoint_jump): New.
17824 (set_fast_tracepoint_jump): New.
17825 (uninsert_fast_tracepoint_jumps_at): New.
17826 (reinsert_fast_tracepoint_jumps_at): New.
17827 (set_breakpoint_at): Use write_inferior_memory.
17828 (uninsert_raw_breakpoint): Use write_inferior_memory.
17829 (check_mem_read): Mask out fast tracepoint jumps.
17830 (check_mem_write): Mask out fast tracepoint jumps.
17831 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17832 (set_fast_tracepoint_jump): Declare.
17833 (delete_fast_tracepoint_jump)
17834 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17835 (reinsert_fast_tracepoint_jumps_at): Declare.
17836 * regcache.c: Don't compile many functions when building the
17837 in-process agent library.
17838 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17839 the register buffer in the heap.
17840 (free_register_cache): If the register buffer isn't owned by the
17841 regcache, don't free it.
17842 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17843 pre-existing register caches.
17844 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17846 (convert_ascii_to_int): : Constify `from' parameter type.
17847 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17848 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17849 the needed buffer in-place.
17850 (relocate_instruction): New.
17851 * server.c (handle_query) <qSymbols>: If the target supports
17852 tracepoints, give it a chance of looking up symbols. Report
17853 support for fast tracepoints.
17854 (handle_status): Stabilize threads.
17855 (process_serial_event): Adjust.
17856 * server.h (struct fast_tracepoint_jump): Forward declare.
17857 (struct process_info) <fast_tracepoint_jumps>: New field.
17858 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17859 (decode_X_packet, decode_M_packet): Adjust.
17860 (relocate_instruction): Declare.
17861 (in_process_agent_loaded): Declare.
17862 (tracepoint_look_up_symbols): Declare.
17863 (struct fast_tpoint_collect_status): Declare.
17864 (fast_tracepoint_collecting): Declare.
17865 (force_unlock_trace_buffer): Declare.
17866 (handle_tracepoint_bkpts): Declare.
17867 (initialize_low_tracepoint)
17868 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17869 * target.h (struct target_ops) <stabilize_threads,
17870 install_fast_tracepoint_jump_pad>: New fields.
17871 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17872 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17873 [HAVE_STDINT_H]: Include stdint.h.
17874 (trace_debug_1): Rename to ...
17875 (trace_vdebug): ... this.
17876 (trace_debug): Rename to ...
17877 (trace_debug_1): ... this. Add `level' parameter.
17878 (trace_debug): New.
17879 (ATTR_USED, ATTR_NOINLINE): New.
17880 (IP_AGENT_EXPORT): New.
17881 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17882 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17883 (about_to_request_buffer_space, trace_buffer_is_full)
17884 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17885 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17886 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17887 (traceframe_write_count, traceframes_created)
17888 (trace_state_variables)
17889 New renaming defines.
17890 (struct ipa_sym_addresses): New.
17891 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17892 (symbol_list): New.
17893 (ipa_sym_addrs): New.
17894 (all_tracepoint_symbols_looked_up): New.
17895 (in_process_agent_loaded): New.
17896 (write_e_ipa_not_loaded): New.
17897 (maybe_write_ipa_not_loaded): New.
17898 (tracepoint_look_up_symbols): New.
17899 (debug_threads) [IN_PROCESS_AGENT]: New.
17900 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17901 (UNKNOWN_SIDE_EFFECTS): New.
17902 (stop_tracing): New.
17903 (flush_trace_buffer): New.
17904 (stop_tracing_bkpt): New.
17905 (flush_trace_buffer_bkpt): New.
17906 (read_inferior_integer): New.
17907 (read_inferior_uinteger): New.
17908 (read_inferior_data_pointer): New.
17909 (write_inferior_data_pointer): New.
17910 (write_inferior_integer): New.
17911 (write_inferior_uinteger): New.
17912 (struct collect_static_trace_data_action): Delete.
17913 (enum tracepoint_type): New.
17914 (struct tracepoint) <type>: New field `type'.
17915 <actions_str, step_actions, step_actions_str>: Only include in
17917 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17918 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17919 (tracepoints): Use IP_AGENT_EXPORT.
17920 (last_tracepoint): Don't include in the IPA.
17921 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17922 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17923 (alloced_trace_state_variables): New.
17924 (trace_state_variables): Use IP_AGENT_EXPORT.
17925 (traceframe_t): Delete unused variable.
17926 (circular_trace_buffer): Don't include in the IPA.
17927 (trace_buffer_start): Delete.
17928 (struct trace_buffer_control): New.
17929 (trace_buffer_free): Delete.
17930 (struct ipa_trace_buffer_control): New.
17931 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17932 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17934 (trace_buffer_ctrl): New.
17935 (TRACE_BUFFER_CTRL_CURR): New.
17936 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17937 Reimplement as macros.
17938 (trace_buffer_wrap): Delete.
17939 (traceframe_write_count, traceframe_read_count)
17940 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17941 (struct tracepoint_hit_ctx) <type>: New field.
17942 (struct fast_tracepoint_ctx): New.
17943 (memory_barrier): New.
17945 (record_tracepoint_error): Update atomically in the IPA.
17946 (clear_inferior_trace_buffer): New.
17947 (about_to_request_buffer_space): New.
17948 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17949 updating the same buffer.
17950 (add_tracepoint): Default the tracepoint's type to trap
17951 tracepoint, and orig_size to -1.
17952 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17953 internal variables.
17954 (create_trace_state_variable): New parameter `gdb'. Handle it.
17955 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17956 (cmd_qtdp): Handle fast tracepoints.
17957 (cmd_qtdv): Adjust.
17958 (max_jump_pad_size): New.
17959 (gdb_jump_pad_head): New.
17960 (get_jump_space_head): New.
17961 (claim_jump_space): New.
17962 (sort_tracepoints): New.
17963 (MAX_JUMP_SIZE): New.
17964 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17966 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17967 support. Upload fast traceframes, and delete internal IPA
17969 (stop_tracing_handler): New.
17970 (flush_trace_buffer_handler): New.
17971 (cmd_qtstop): Upload fast tracepoints.
17972 (response_tracepoint): Handle fast tracepoints.
17973 (tracepoint_finished_step): Upload fast traceframes. Set the
17974 tracepoint hit context's tracepoint type.
17975 (handle_tracepoint_bkpts): New.
17976 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17977 type. Add comment about fast tracepoints.
17978 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17979 non-existing action_str field.
17980 (get_context_regcache): Handle fast tracepoints.
17981 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17983 (fast_tracepoint_from_jump_pad_address): New.
17984 (fast_tracepoint_from_ipa_tpoint_address): New.
17985 (collecting_t): New.
17986 (force_unlock_trace_buffer): New.
17987 (fast_tracepoint_collecting): New.
17989 (gdb_collect): New.
17990 (write_inferior_data_ptr): New.
17991 (target_tp_heap): New.
17992 (target_malloc): New.
17993 (download_agent_expr): New.
17995 (download_tracepoints): New.
17996 (download_trace_state_variables): New.
17997 (upload_fast_traceframes): New.
17998 (IPA_FIRST_TRACEFRAME): New.
17999 (IPA_NEXT_TRACEFRAME_1): New.
18000 (IPA_NEXT_TRACEFRAME): New.
18001 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
18002 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
18003 (gdb_jump_pad_buffer_end): New.
18004 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
18005 (initialize_tracepoint): Adjust.
18006 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
18007 buffer. Initialize the low module.
18008 * utils.c (PREFIX, TOOLNAME): New.
18009 (malloc_failure): Use PREFIX.
18010 (error): In the IPA, an error causes an exit.
18011 (fatal, warning): Use PREFIX.
18012 (internal_error): Use TOOLNAME.
18013 (NUMCELLS): Increase to 10.
18014 * configure, config.in: Regenerate.
18016 2010-06-01 Pedro Alves <pedro@codesourcery.com>
18018 * server.c (handle_query) <qSupported>: Do two passes over the
18019 qSupported string to avoid nesting strtok.
18021 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
18023 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
18025 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
18026 -Wl,--dynamic-list.
18027 * configure: Regenerate.
18028 * proc-service.list: New.
18030 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
18032 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
18035 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
18037 * gdbreplay.c (remote_open): Check error return from socket() call by
18038 its equality to -1 not by it being negative.
18039 * remote-utils.c (remote_open): Likewise.
18041 2010-05-23 Pedro Alves <pedro@codesourcery.com>
18043 * config.h: Regenerate.
18045 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18047 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
18048 doesn't provide PTRACE_GET_THREAD_AREA.
18050 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18052 * linux-m68k-low.c: Include <asm/ptrace.h>
18053 (ps_get_thread_area): Implement.
18055 2010-05-03 Doug Evans <dje@google.com>
18057 * event-loop.c (struct callback_event): New struct.
18058 (callback_list): New global.
18059 (append_callback_event, delete_callback_event): New functions.
18060 (process_callback): New function.
18061 (start_event_loop): Call it.
18062 * remote-utils.c (NOT_SCHEDULED): Define.
18063 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
18064 moved out of readchar.
18065 (readchar): Rewrite. Call reschedule before returning.
18066 (reset_readchar): New function.
18067 (remote_close): Call it.
18068 (process_remaining, reschedule): New functions.
18069 * server.h (callback_handler_func): New typedef.
18070 (append_callback_event, delete_callback_event): Declare.
18072 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18074 * proc-service.c (ps_pglobal_lookup): Use
18075 thread_db_look_up_one_symbol.
18076 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
18077 parameter. Use it instead of all_symbols_looked_up.
18078 * server.h (struct process_info) <all_symbols_looked_up>: Delete
18080 (all_symbols_looked_up): Don't declare.
18081 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
18082 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
18084 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
18085 Set all_symbols_looked_up here.
18086 (thread_db_look_up_one_symbol): New.
18087 (thread_db_get_tls_address): Adjust.
18088 (thread_db_load_search, try_thread_db_load_1): Always allocate the
18089 thread_db object on the heap, and tentatively set it in the
18091 (thread_db_init): Don't set all_symbols_looked_up here.
18092 * linux-low.h (thread_db_look_up_one_symbol): Declare.
18094 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18096 * linux-low.c (linux_kill, linux_detach): Adjust.
18097 (status_pending_p_callback): Remove redundant statement. Check
18098 for !TARGET_WAITIKIND_IGNORE, instead of
18099 TARGET_WAITKIND_STOPPED.
18100 (handle_tracepoints): Make sure LWP is locked. Adjust.
18101 (linux_wait_for_event_1): Adjust.
18102 (linux_cancel_breakpoints): New.
18103 (unsuspend_one_lwp): New.
18104 (unsuspend_all_lwps): New.
18105 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
18106 (send_sigstop_callback): Change return type to int, add new
18107 `except' parameter and handle it.
18108 (suspend_and_send_sigstop_callback): New.
18109 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
18110 pass them down. If SUSPEND, also increment the lwp's suspend
18112 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
18113 (need_step_over_p): Don't consider suspended LWPs.
18114 (start_step_over): Adjust.
18115 (proceed_one_lwp): Change return type to int, add new `except'
18116 parameter and handle it.
18117 (unsuspend_and_proceed_one_lwp): New.
18118 (proceed_all_lwps): Use find_inferior instead of
18120 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
18121 also decrement the suspend count of LWPs. Pass `except' down,
18122 instead of hacking its suspend count.
18123 (linux_pause_all): Add `freeze' parameter. Adjust.
18124 (linux_unpause_all): New.
18125 (linux_target_ops): Install linux_unpause_all.
18126 * server.c (handle_status): Adjust.
18127 * target.h (struct target_ops): New fields `unpause_all' and
18128 `cancel_breakpoints'. Add new parameter to `pause_all'.
18129 (pause_all): Add new `freeze' parameter.
18130 (unpause_all): New.
18131 (cancel_breakpoints): New.
18132 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
18133 cancel breakpoints.
18134 (cmd_qtstart): Pause threads.
18135 (stop_tracing): Pause threads, and cancel breakpoints.
18136 * win32-low.c (win32_target_ops): Adjust.
18138 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18140 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
18141 the inferior right away from here...
18142 (linux_wait_1): ... to here, and adjust to check the thread's
18143 last_resume_kind instead of the lwp's step or stop_expected flags.
18145 2010-05-02 Pedro Alves <pedro@codesourcery.com>
18147 * README: Use consistent `GDB' and `GDBserver' spellings.
18149 2010-05-02 Pedro Alves <pedro@codesourcery.com>
18151 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
18152 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
18153 (linux_detach_one_lwp): Assume the lwp is stopped.
18154 (any_thread_of): Delete.
18155 (linux_detach): Stop all lwps here. Don't blindly delete all
18157 (delete_lwp_callback): New.
18158 (linux_mourn): Delete all lwps of the process that is gone.
18159 (linux_wait_1): Don't delete the last lwp of the process here.
18160 * mem-break.h (mark_breakpoints_out): Declare.
18161 * mem-break.c (mark_breakpoints_out): New.
18162 (free_all_breakpoints): Use it.
18163 * server.c (handle_target_event): If the process is gone, mark
18165 * thread-db.c (struct thread_db) <create_bp>: New field.
18166 (thread_db_enable_reporting): Fix prototype. Store a thread event
18167 breakpoint reference in the thread_db struct.
18168 (thread_db_load_search): Clear the thread_db object.
18169 (try_thread_db_load_1): Ditto.
18170 (switch_to_process): New.
18171 (disable_thread_event_reporting): Use it.
18172 (remove_thread_event_breakpoints): New.
18173 (thread_db_detach, thread_db_mourn): Use it.
18175 2010-05-01 Pedro Alves <pedro@codesourcery.com>
18177 * linux-low.c (linux_enable_event_reporting): New.
18178 (linux_wait_for_event_1, handle_extended_wait): Use it.
18180 2010-04-30 Pedro Alves <pedro@codesourcery.com>
18182 * linux-low.c (linux_kill_one_lwp, linux_kill)
18183 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
18184 (send_sigstop): Take an lwp_info as parameter instead. Queue a
18185 SIGSTOP even if the LWP is stopped.
18186 (send_sigstop_callback): New.
18187 (stop_all_lwps): Use send_sigstop_callback instead.
18188 (linux_resume_one_thread): Adjust.
18189 (proceed_one_lwp): Still proceed an LWP that the client has
18190 requested to stop, if we haven't reported it as stopped yet. Make
18191 sure that LWPs the client want stopped, have a pending SIGSTOP.
18193 2010-04-26 Doug Evans <dje@google.com>
18195 * server.c (handle_general_set): Make static.
18197 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
18198 Print received char after testing for error/eof instead of before.
18199 (input_interrupt): Tweak comment.
18201 2010-04-23 Doug Evans <dje@google.com>
18203 * server.c (start_inferior): Print inferior argv if --debug.
18205 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
18207 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
18208 * nto-x86-low.c: Include server.h
18210 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
18212 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
18213 be consistent with other sources of this directory.
18214 (init_registers_amd64): Correct name of source file of this function
18217 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18219 * configure.srv (x86_64-*-mingw*): New configuration for Windows
18220 64-bit executables.
18222 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18224 * win32-i386-low.c: Add 64-bit support.
18225 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
18226 (init_registers_amd64): Declare.
18227 (mappings): Add 64-bit version of array.
18228 (init_windows_x86): New function.
18229 (the_low_target): Change init_arch field to init_windows_x86.
18231 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18233 * win32-low.c: Adapt to support also 64-bit architecture.
18234 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
18235 (get_image_name): Use SIZE_T type for local variable `done'.
18236 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
18237 (toolhelp_get_dll_name): Idem.
18238 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
18239 Use uintptr_t typecast to avoid warning.
18240 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
18241 (handle_exception): Use phex_nz to avoid warning.
18242 (win32_wait): Remove unused local variable `process'.
18244 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18246 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
18249 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
18251 * configure.ac: Use `ws2_32' library for srv_mingw.
18252 * configure: Regenerate.
18253 * gdbreplay.c: Include winsock2.h instead of winsock.h.
18254 * remote-utils.c: Likewise.
18256 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
18258 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
18259 if __x86_64__ is defined.
18261 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18263 * configure: Regenerate.
18265 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18267 * server.c (handle_query): Handle 'qGetTIBAddr' query.
18268 * target.h (target_ops): New get_tib_address field.
18269 * win32-low.h (win32_thread_info): Add thread_local_base field.
18270 * win32-low.c (child_add_thread): Add tlb argument.
18271 Set thread_local_base field to TLB.
18272 (get_child_debug_event): Adapt to child_add_thread change.
18273 (win32_get_tib_address): New function.
18274 (win32_target_ops): Set get_tib_address field to
18275 win32_get_tib_address.
18276 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
18278 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18280 * linux-low.c (linux_mourn): Also remove the process.
18281 * server.c (handle_target_event): Don't remove the process here.
18282 * nto-low.c (nto_mourn): New.
18283 (nto_target_ops): Install it.
18284 * spu-low.c (spu_mourn): New.
18285 (spu_target_ops): Install it.
18286 * win32-low.c (win32_mourn): New.
18287 (win32_target_ops): Install it.
18289 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18291 * server.h (buffer_xml_printf): Remove redundant `;'.
18293 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18295 * regcache.c (set_register_cache): Invalidate regcaches before
18296 changing the register cache layout.
18297 (regcache_invalidate_one): Allow a NULL regcache.
18298 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
18299 regcaches before changing the register cache layout or the target
18302 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
18304 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
18305 variable warning on Linux/x86-64.
18307 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18309 GDBserver disconnected tracing support.
18311 * linux-low.c (linux_remove_process): Delete.
18312 (add_lwp): Don't set last_resume_kind here.
18313 (linux_kill): Use `mourn'.
18314 (linux_detach): Use `thread_db_detach', and `mourn'.
18315 (linux_mourn): New.
18316 (linux_attach_lwp_1): Adjust comment.
18317 (linux_attach): last_resume_kind moved the thread_info; adjust.
18318 (status_pending_p_callback): Adjust.
18319 (linux_wait_for_event_1): Adjust.
18320 (count_events_callback, select_singlestep_lwp_callback)
18321 (select_event_lwp_callback, cancel_breakpoints_callback)
18322 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
18323 (proceed_one_lwp): Adjust.
18324 (linux_async): Add debug output.
18325 (linux_thread_stopped): New.
18326 (linux_pause_all): New.
18327 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
18329 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
18330 (thread_db_free): Delete declaration.
18331 (thread_db_detach, thread_db_mourn): Declare.
18332 * thread-db.c (thread_db_init): Use thread_db_mourn.
18333 (thread_db_free): Delete, split in two.
18334 (disable_thread_event_reporting): New.
18335 (thread_db_detach): New.
18336 (thread_db_mourn): New.
18338 * server.h (struct thread_info) <last_resume_kind>: New field.
18339 <attached>: Add comment.
18340 <gdb_detached>: New field.
18341 (handler_func): Change return type to int.
18342 (handle_serial_event, handle_target_event): Ditto.
18343 (gdb_connected): Declare.
18345 (disconnected_tracing): Declare.
18346 (stop_tracing): Declare.
18348 * server.c (handle_query) <qSupported>: Report support for
18349 disconnected tracing.
18350 (queue_stop_reply_callback): Account for running threads.
18351 (gdb_wants_thread_stopped): New.
18352 (gdb_wants_all_threads_stopped): New.
18353 (gdb_reattached_process): New.
18354 (handle_status): Clear the `gdb_detached' flag of all processes.
18355 In all-stop, stop all threads.
18356 (main): Be sure to leave tfind mode. Handle disconnected tracing.
18357 (process_serial_event): If the remote connection breaks, or if an
18358 exit was forced with "monitor exit", force an event loop exit.
18359 Handle disconnected tracing on detach.
18360 (handle_serial_event): Adjust.
18361 (handle_target_event): If GDB isn't connected, forward events back
18362 to the inferior, unless the last process exited, in which case,
18363 exit gdbserver. Adjust interface.
18365 * remote-utils.c (remote_open): Don't block in accept. Instead
18366 register an event loop source on the listen socket file
18367 descriptor. Refactor bits into ...
18368 (listen_desc): ... this new global.
18369 (gdb_connected): ... this new function.
18370 (enable_async_notification): ... this new function.
18371 (handle_accept_event): ... this new function.
18372 (remote_close): Clear remote_desc.
18374 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
18376 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
18378 (mourn_inferior): Define.
18379 (target_process_qsupported): Avoid the dangling else problem.
18380 (thread_stopped): Define.
18381 (pause_all): Define.
18382 (target_waitstatus_to_string): Declare.
18383 * target.c (target_waitstatus_to_string): New.
18385 * tracepoint.c (tracing): Make extern.
18386 (disconnected_tracing): New.
18387 (stop_tracing): Make extern. Handle tracing stops due to GDB
18389 (cmd_qtdisconnected): New.
18390 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18391 (handle_tracepoint_general_set): Handle QTDisconnected.
18393 * event-loop.c (event_handler_func): Change return type to int.
18394 (process_event): Bail out if the event handler wants the event
18396 (handle_file_event): Ditto.
18397 (start_event_loop): Bail out if the event handler wants the event
18400 * nto-low.c (nto_target_ops): Adjust.
18401 * spu-low.c (spu_wait): Don't remove the process here.
18402 (spu_target_ops): Adjust.
18403 * win32-low.c (win32_wait): Don't remove the process here.
18404 (win32_target_ops): Adjust.
18406 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18408 * regcache.c (realloc_register_cache): Invalidate inferior's
18409 regcache before recreating it.
18411 2010-04-09 Pedro Alves <pedro@codesourcery.com>
18413 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18415 2010-04-09 Stan Shebs <stan@codesourcery.com>
18416 Pedro Alves <pedro@codesourcery.com>
18418 * server.h (LONGEST): New.
18419 (struct thread_info) <while_stepping>: New field.
18420 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18422 (initialize_tracepoint, handle_tracepoint_general_set)
18423 (handle_tracepoint_query, tracepoint_finished_step)
18424 (tracepoint_was_hit, release_while_stepping_state_list):
18425 (current_traceframe): Declare.
18426 * server.c (handle_general_set): Handle tracepoint packets.
18427 (read_memory): New.
18428 (write_memory): New.
18429 (handle_search_memory_1): Use read_memory.
18430 (handle_query): Report support for conditional tracepoints, trace
18431 state variables, and tracepoint sources. Handle tracepoint
18433 (main): Initialize the tracepoints module.
18434 (process_serial_event): Handle traceframe reads/writes.
18436 * linux-low.c (handle_tracepoints): New.
18437 (linux_wait_1): Call it.
18438 (linux_resume_one_lwp): Handle while-stepping.
18439 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18440 (linux_target_ops): Install them.
18441 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18443 * linux-x86-low.c (x86_supports_tracepoints): New.
18444 (the_low_target). Install it.
18446 * mem-break.h (delete_breakpoint): Declare.
18447 * mem-break.c (delete_breakpoint): Make external.
18449 * target.h (struct target_ops): Add `supports_tracepoints',
18450 `read_pc', and `write_pc' fields.
18451 (target_supports_tracepoints): Define.
18452 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18455 * regcache.h (struct regcache) <registers_owned>: New field.
18456 (init_register_cache, regcache_cpy): Declare.
18457 (regcache_read_pc, regcache_write_pc): Declare.
18458 (register_cache_size): Declare.
18459 (supply_regblock): Declare.
18460 * regcache.c (init_register_cache): New.
18461 (new_register_cache): Use it.
18462 (regcache_cpy): New.
18463 (register_cache_size): New.
18464 (supply_regblock): New.
18465 (regcache_read_pc, regcache_write_pc): New.
18467 * tracepoint.c: New.
18469 * Makefile.in (OBS): Add tracepoint.o.
18470 (tracepoint.o): New rule.
18472 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18474 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18476 (i386-mmx.c): Likewise.
18477 (i386-mmx-linux.o): Likewise.
18478 (i386-mmx-linux.c): Likewise.
18480 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18481 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18482 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18483 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18485 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18486 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18487 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18489 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18491 * Makefile.in (clean): Updated.
18493 (i386-avx.c): Likewise.
18494 (i386-avx-linux.o): Likewise.
18495 (i386-avx-linux.c): Likewise.
18496 (amd64-avx.o): Likewise.
18497 (amd64-avx.c): Likewise.
18498 (amd64-avx-linux.o): Likewise.
18499 (amd64-avx-linux.c): Likewise.
18501 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18502 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18503 (srv_amd64_regobj): Add amd64-avx.o.
18504 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18505 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18506 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18507 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18508 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18509 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18510 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18512 * i387-fp.c: Include "i386-xstate.h".
18514 (i387_cache_to_xsave): Likewise.
18515 (i387_xsave_to_cache): Likewise.
18516 (x86_xcr0): Likewise.
18518 * i387-fp.h (i387_cache_to_xsave): Likewise.
18519 (i387_xsave_to_cache): Likewise.
18520 (x86_xcr0): Likewise.
18522 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18523 * linux-crisv32-low.c (target_regsets): Likewise.
18524 * linux-m68k-low.c (target_regsets): Likewise.
18525 * linux-mips-low.c (target_regsets): Likewise.
18526 * linux-ppc-low.c (target_regsets): Likewise.
18527 * linux-s390-low.c (target_regsets): Likewise.
18528 * linux-sh-low.c (target_regsets): Likewise.
18529 * linux-sparc-low.c (target_regsets): Likewise.
18530 * linux-xtensa-low.c (target_regsets): Likewise.
18532 * linux-low.c: Include <sys/uio.h>.
18533 (regsets_fetch_inferior_registers): Support nt_type.
18534 (regsets_store_inferior_registers): Likewise.
18535 (linux_process_qsupported): New.
18536 (linux_target_ops): Add linux_process_qsupported.
18538 * linux-low.h (regset_info): Add nt_type.
18539 (linux_target_ops): Add process_qsupported.
18541 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18543 (init_registers_i386_avx_linux): New.
18544 (init_registers_amd64_avx_linux): Likewise.
18545 (xmltarget_i386_linux_no_xml): Likewise.
18546 (xmltarget_amd64_linux_no_xml): Likewise.
18547 (PTRACE_GETREGSET): Likewise.
18548 (PTRACE_SETREGSET): Likewise.
18549 (x86_fill_xstateregset): Likewise.
18550 (x86_store_xstateregset): Likewise.
18551 (use_xml): Likewise.
18552 (x86_linux_update_xmltarget): Likewise.
18553 (x86_linux_process_qsupported): Likewise.
18554 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18555 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18556 init_registers_i386_linux here. Call
18557 x86_linux_update_xmltarget.
18558 (the_low_target): Add x86_linux_process_qsupported.
18560 * server.c (handle_query): Call target_process_qsupported.
18562 * target.h (target_ops): Add process_qsupported.
18563 (target_process_qsupported): New.
18565 2010-04-03 Pedro Alves <pedro@codesourcery.com>
18567 * inferiors.c (add_thread): Set last_status kind to
18568 TARGET_WAITKIND_IGNORE.
18569 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18570 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18571 (linux_wait_1): Move `thread' local definition to block that uses
18572 it. Don't NULL initialize `event_child'.
18573 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18574 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18575 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18577 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18579 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18580 an extended waitstatus, or by a watchpoint.
18581 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18582 thread was stepping or has been stopped by a watchpoint.
18584 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18586 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18587 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18588 of another, then delete the previous, and validate all
18590 (validate_inserted_breakpoint): New.
18591 (delete_disabled_breakpoints): New.
18592 (validate_breakpoints): New.
18593 (check_mem_read): Validate breakpoints before trusting their
18594 shadow. Delete disabled breakpoints.
18595 (check_mem_write): Validate breakpoints before trusting they
18596 should be inserted. Delete disabled breakpoints.
18597 * mem-break.h (validate_breakpoints):
18598 * server.c (handle_query): Validate breakpoints when we see a
18601 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18603 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18604 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18605 if we could tell there's a GDB breakpoint at stop_pc.
18606 (need_step_over_p): Don't do a step over if we find a GDB
18607 breakpoint at the resume PC.
18609 * mem-break.c (struct raw_breakpoint): New.
18610 (enum bkpt_type): New type `gdb_breakpoint'.
18611 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18612 fields. New field `raw'.
18613 (find_raw_breakpoint_at): New.
18614 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18615 breakpoint instead.
18616 (set_breakpoint_at): Adjust.
18617 (delete_raw_breakpoint): New.
18618 (release_breakpoint): New.
18619 (delete_breakpoint): Rename to...
18620 (delete_breakpoint_1): ... this. Add proc parameter. Use
18621 release_breakpoint. Return ENOENT.
18622 (delete_breakpoint): Reimplement.
18623 (find_breakpoint_at): Delete.
18624 (find_gdb_breakpoint_at): New.
18625 (delete_breakpoint_at): Delete.
18626 (set_gdb_breakpoint_at): New.
18627 (delete_gdb_breakpoint_at): New.
18628 (gdb_breakpoint_here): New.
18629 (set_reinsert_breakpoint): Use release_breakpoint.
18630 (uninsert_breakpoint): Rename to ...
18631 (uninsert_raw_breakpoint): ... this.
18632 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18633 (reinsert_raw_breakpoint): Change parameter type to
18635 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18637 (check_breakpoints): Adjust. Use release_breakpoint.
18638 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18639 (breakpoint_inserted_here): Ditto.
18640 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18641 Don't trust the breakpoint's shadow if it is not inserted.
18642 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18643 (delete_all_breakpoints): Adjust.
18644 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18645 use delete_breakpoint_1.
18647 * mem-break.h (breakpoints_supported): Delete declaration.
18648 (set_gdb_breakpoint_at): Declare.
18649 (gdb_breakpoint_here): Declare.
18650 (delete_breakpoint_at): Delete.
18651 (delete_gdb_breakpoint_at): Declare.
18653 * server.h (struct raw_breakpoint): Forward declare.
18654 (struct process_info): New field `raw_breakpoints'.
18656 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18659 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18661 * linux-low.c (status_pending_p_callback): Fix comment.
18662 (linux_wait_for_event_1): Move most of the internal breakpoint
18663 handling from here...
18664 (linux_wait_1): ... to here.
18665 (count_events_callback): New.
18666 (select_singlestep_lwp_callback): New.
18667 (select_event_lwp_callback): New.
18668 (cancel_breakpoints_callback): New.
18669 (select_event_lwp): New.
18670 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18671 priority to all LWPs that have had events that should be reported
18672 to the client. Cancel breakpoints when about to reporting the
18673 event to the client, not while stopping lwps. No longer cancel
18674 finished single-steps here.
18675 (cancel_finished_single_step): Delete.
18676 (cancel_finished_single_steps): Delete.
18678 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18680 * mem-break.c (enum bkpt_type): New.
18681 (struct breakpoint): New field `type'.
18682 (set_breakpoint_at): Change return type to struct breakpoint
18683 pointer. Set type to `other_breakpoint' by default.
18684 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18685 in the breakpoint list.
18686 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18687 (reinsert_breakpoint): Rename to ...
18688 (reinsert_raw_breakpoint): ... this.
18689 (reinsert_breakpoints_at): Adjust.
18690 * mem-break.h (struct breakpoint): Declare.
18691 (set_breakpoint_at): Change return type to struct breakpoint
18694 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18696 * server.c (handle_query): Assign, not compare.
18698 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18700 Teach linux gdbserver to step-over-breakpoints.
18702 * linux-low.c (can_hardware_single_step): New.
18703 (supports_breakpoints): New.
18704 (handle_extended_wait): If stopping threads, read the stop pc of
18705 the new cloned LWP.
18707 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18708 low target doesn't support retrieving the PC.
18709 (add_lwp): Set last_resume_kind to resume_continue.
18710 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18711 (linux_attach): Don't clear stop_expected. Set the lwp's
18712 last_resume_kind to resume_stop.
18713 (linux_detach_one_lwp): Don't check for removed breakpoints.
18714 (check_removed_breakpoint): Delete.
18715 (status_pending_p): Rename to ...
18716 (status_pending_p_callback): ... this. Don't check for removed
18717 breakpoints. Don't consider threads that are stopped from GDB's
18719 (linux_wait_for_lwp): Always read the stop_pc here.
18720 (cancel_breakpoint): New.
18721 (step_over_bkpt): New global.
18722 (linux_wait_for_event_1): Implement stepping over breakpoints.
18723 (gdb_wants_lwp_stopped): New.
18724 (gdb_wants_all_stopped): New.
18725 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18726 single-step traps here. Store the thread's last reported target
18728 (send_sigstop): Don't clear stop_expected. Always set it,
18730 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18731 (cancel_finished_single_step): New.
18732 (cancel_finished_single_steps): New.
18733 (wait_for_sigstop): Don't cancel finished single-step traps here.
18734 (linux_resume_one_lwp): Don't check for removed breakpoints.
18735 Don't set `step' on non-hardware step archs.
18736 (linux_set_resume_request): Ignore resume_stop requests if already
18737 stopping or stopped. Set the lwp's last_resume_kind.
18738 (resume_status_pending_p): Don't check for removed breakpoints.
18739 (need_step_over_p): New.
18740 (start_step_over): New.
18741 (finish_step_over): New.
18742 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18743 requests. Clear the thread's last reported target waitstatus.
18744 Don't use the `suspended' flag. Don't consider pending breakpoints.
18745 (linux_resume): Start a step-over if necessary.
18746 (proceed_one_lwp): New.
18747 (proceed_all_lwps): New.
18748 (unstop_all_lwps): New.
18749 * linux-low.h (struct lwp_info): Rewrite comment for the
18750 `suspended' flag. Add the `stop_pc' field. Delete the
18751 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18752 Add `'last_resume_kind' and `need_step_over' fields.
18753 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18754 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18755 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18756 (set_raw_breakpoint_at): New.
18757 (set_breakpoint_at): Rewrite to use it.
18758 (reinsert_breakpoint_handler): Delete.
18759 (set_reinsert_breakpoint): New.
18760 (reinsert_breakpoint_by_bp): Delete.
18761 (delete_reinsert_breakpoints): New.
18762 (uninsert_breakpoint): Rewrite.
18763 (uninsert_breakpoints_at): New.
18764 (reinsert_breakpoint): Rewrite.
18765 (reinsert_breakpoints_at): New.
18766 (check_breakpoints): Rewrite.
18767 (breakpoint_here): New.
18768 (breakpoint_inserted_here): New.
18769 (check_mem_read): Adjust.
18770 * mem-break.h (breakpoints_supported, breakpoint_here)
18771 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18772 (reinsert_breakpoint_by_bp): Delete declaration.
18773 (delete_reinsert_breakpoints): Declare.
18774 (reinsert_breakpoint): Delete declaration.
18775 (reinsert_breakpoints_at): Declare.
18776 (uninsert_breakpoint): Delete declaration.
18777 (uninsert_breakpoints_at): Declare.
18778 (check_breakpoints): Adjust prototype.
18779 * server.h: Adjust include order.
18780 (struct thread_info): Declare here. Add a `last_status' field.
18782 2010-03-23 Michael Snyder <msnyder@vmware.com>
18784 * server.c (crc32): New function.
18785 (handle_query): Add handling for 'qCRC:' request.
18787 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18789 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18790 lwp had been stopped by a watchpoint.
18792 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18794 * server.h (internal_error): Declare.
18795 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18796 * utils.c (internal_error): New function.
18798 2010-03-15 Andreas Schwab <schwab@redhat.com>
18800 * configure.srv: Fix typo setting srv_regobj.
18802 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18804 * linux-low.c (fetch_register): Avoid passing a non string literal
18806 (usr_store_inferior_registers): Ditto.
18808 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18810 * linux-low.c (linux_write_memory): Bail out early if peeking
18813 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18815 * linux-low.h (struct lwp_info): New fields
18816 `stopped_by_watchpoint' and `stopped_data_address'.
18817 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18818 here, and cache them in the lwp object.
18819 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18821 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18823 (linux_stopped_by_watchpoint): Rewrite.
18824 (linux_stopped_data_address): Rewrite.
18826 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18828 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18829 switching the current inferior, not before.
18831 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18833 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18834 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18835 i386-linux.c and amd64-linux.c.
18836 (reg-i386.o): Removed.
18837 (reg-i386.c): Likewise.
18838 (reg-i386-linux.o): Likewise.
18839 (reg-i386-linux.c): Likewise.
18840 (reg-x86-64.o): Likewise.
18841 (reg-x86-64.c): Likewise.
18842 (reg-x86-64-linux.o): Likewise.
18843 (reg-x86-64-linux.c): Likewise.
18845 (i386.c): Likewise.
18846 (i386-linux.o): Likewise.
18847 (i386-linux.c): Likewise.
18848 (amd64.o): Likewise.
18849 (amd64.c): Likewise.
18850 (amd64-linux.o): Likewise.
18851 (amd64-linux.c): Likewise.
18853 * configure.srv (srv_i386_regobj): New.
18854 (srv_i386_linux_regobj): Likewise.
18855 (srv_amd64_regobj): Likewise.
18856 (srv_amd64_linux_regobj): Likewise.
18857 (srv_i386_32bit_xmlfiles): Likewise.
18858 (srv_i386_64bit_xmlfiles): Likewise.
18859 (srv_i386_xmlfiles): Likewise.
18860 (srv_amd64_xmlfiles): Likewise.
18861 (srv_i386_linux_xmlfiles): Likewise.
18862 (srv_amd64_linux_xmlfiles): Likewise.
18863 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18864 srv_xmlfiles to $srv_i386_xmlfiles.
18865 (i[34567]86-*-mingw32ce*): Likewise.
18866 (i[34567]86-*-mingw*): Likewise.
18867 (i[34567]86-*-nto*): Likewise.
18868 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18869 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18870 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18871 (x86_64-*-linux*): Likewise.
18873 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18874 (init_registers_amd64_linux): New.
18875 (x86_arch_setup): Replace init_registers_x86_64_linux with
18876 init_registers_amd64_linux.
18878 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18880 * configure.ac: Check for libdl. If it is not available link against
18881 static libthread_db.
18882 * configure: Regenerate.
18884 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18888 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18889 handing a read watchpoint.
18890 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18892 2010-02-12 Doug Evans <dje@google.com>
18894 * linux-low.c (linux_supports_tracefork_flag): Document.
18895 (linux_look_up_symbols): Add comment.
18897 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18899 * regcache.c (supply_register): Clear regcache if buf is NULL.
18901 2010-02-02 Nicolas Roche <roche@sourceware.org>
18902 Joel Brobecker <brobecker@adacore.com>
18904 * inferiors.c (find_inferior): Add function documentation.
18905 (unloaded_dll): Handle the case where the unloaded dll has not
18906 been previously registered in the dll list.
18908 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18910 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18911 (thumb2_breakpoint): New.
18912 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18914 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18916 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18917 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18920 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18922 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18924 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18926 * linux-s390-low.c (s390_collect_ptrace_register)
18927 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18929 2010-01-21 Doug Evans <dje@google.com>
18931 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18932 (PTRACE_ARG4_TYPE): New macro.
18933 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18934 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18935 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18936 (usr_store_inferior_registers): Ditto.
18937 (linux_read_memory, linux_write_memory): Ditto.
18938 (linux_test_for_tracefork): Ditto.
18940 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18941 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18943 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18945 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18948 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18950 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18951 prototype to take a regcache. Adjust.
18953 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18955 * regcache.h (struct thread_info): Forward declare.
18956 (struct regcache): New.
18957 (new_register_cache): Adjust prototype.
18958 (get_thread_regcache): Declare.
18959 (free_register_cache): Adjust prototype.
18960 (registers_to_string, registers_from_string): Ditto.
18961 (supply_register, supply_register_by_name, collect_register)
18962 (collect_register_as_string, collect_register_by_name): Ditto.
18963 * regcache.c (struct inferior_regcache_data): Delete.
18964 (get_regcache): Rename to ...
18965 (get_thread_regcache): ... this. Adjust. Switch inferior before
18966 fetching registers.
18967 (regcache_invalidate_one): Adjust.
18968 (regcache_invalidate): Fix prototype.
18969 (new_register_cache): Return the new register cache.
18970 (free_register_cache): Change prototype.
18971 (realloc_register_cache): Adjust.
18972 (registers_to_string): Change prototype to take a regcache. Adjust.
18973 (registers_from_string): Ditto.
18974 (register_data): Ditto.
18975 (supply_register): Ditto.
18976 (supply_register_by_name): Ditto.
18977 (collect_register): Ditto.
18978 (collect_register_as_string): Ditto.
18979 (collect_register_by_name): Ditto.
18980 * server.c (process_serial_event): Adjust.
18981 * linux-low.h (regset_fill_func, regset_store_func): Change
18983 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18985 * linux-low.c (get_stop_pc): Adjust.
18986 (check_removed_breakpoint): Adjust.
18987 (linux_wait_for_event): Adjust.
18988 (linux_resume_one_lwp): Adjust.
18989 (fetch_register): Add regcache parameter. Adjust.
18990 (usr_store_inferior_registers): Ditto.
18991 (regsets_fetch_inferior_registers): Ditto.
18992 (regsets_store_inferior_registers): Ditto.
18993 (linux_fetch_registers, linux_store_registers): Ditto.
18994 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18996 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18998 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18999 prototype to take a regcache.
19000 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
19001 * remote-utils.c (convert_ascii_to_int, outreg)
19002 (prepare_resume_reply): Change prototype to take a regcache.
19004 * target.h (struct target_ops) <fetch_registers, store_registers>:
19005 Change prototype to take a regcache.
19006 (fetch_inferior_registers, store_inferior_registers): Change
19007 prototype to take a regcache. Adjust.
19008 * proc-service.c (ps_lgetregs): Adjust.
19009 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
19010 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
19011 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
19012 take a regcache. Adjust.
19013 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
19014 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
19015 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
19016 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
19017 * linux-cris-low.c (cris_get_pc, cris_set_pc)
19018 (cris_cannot_fetch_register):
19019 (cris_breakpoint_at): Change prototype to take a regcache.
19021 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
19022 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
19023 to take a regcache. Adjust.
19024 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
19026 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
19027 take a regcache. Adjust.
19028 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
19029 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
19030 (m68k_set_pc): Change prototype to take a regcache. Adjust.
19031 * linux-mips-low.c (mips_get_pc):
19032 (mips_set_pc): Change prototype to take a regcache. Adjust.
19033 (mips_reinsert_addr): Adjust.
19034 (mips_collect_register): Change prototype to take a regcache.
19036 (mips_supply_register):
19037 (mips_collect_register_32bit, mips_supply_register_32bit)
19038 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
19039 (mips_store_fpregset): Ditto.
19040 * linux-ppc-low.c (ppc_supply_ptrace_register)
19041 (ppc_supply_ptrace_register): Ditto.
19042 (parse_spufs_run): Adjust.
19043 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
19044 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
19045 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
19046 take a regcache. Adjust.
19047 * linux-s390-low.c (s390_collect_ptrace_register)
19048 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
19049 (s390_set_pc): Change prototype to take a regcache. Adjust.
19050 (s390_arch_setup): Adjust.
19051 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
19052 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
19053 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
19054 (sparc_fill_gregset, sparc_store_gregset_from_stack)
19055 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
19057 (sparc_breakpoint_at): Adjust.
19058 * linux-xtensa-low.c (xtensa_fill_gregset):
19059 (xtensa_store_gregset):
19060 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
19061 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
19062 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
19063 prototype to take a regcache. Adjust.
19064 * win32-arm-low.c (arm_fetch_inferior_register)
19065 (arm_store_inferior_register): Change prototype to take a
19067 * win32-i386-low.c (i386_fetch_inferior_register)
19068 (i386_store_inferior_register): Change prototype to take a
19070 * win32-low.c (child_fetch_inferior_registers)
19071 (child_store_inferior_registers): Change prototype to take a
19073 (win32_wait): Adjust.
19074 (win32_fetch_inferior_registers): Change prototype to take a
19076 (win32_store_inferior_registers): Adjust.
19077 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
19078 store_inferior_register>: Change prototype to take a regcache.
19080 2010-01-20 Doug Evans <dje@google.com>
19082 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
19084 (linux_wait_for_event1, linux_init_signals): Ditto.
19085 (W_STOPCODE): Provide definition if missing.
19087 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
19089 * linux-low.c (linux_core_of_thread): New.
19090 (compare_ints, show_process, list_threads): New.
19091 (linux_qxfer_osdata): Report threads and cores.
19092 (linux_target_op): Register linux_core_of_thread.
19093 * remote-utils.c (prepare_resume_reply): Report the core.
19094 (buffer_xml_printf): Support %d specifier.
19095 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
19097 (handle_query): Handle qXfer:threads. Announce availability
19099 * target.h (struct target_ops): New field core_of_thread.
19101 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
19103 * Makefile.in (clean): Remove new generated files.
19104 (reg-s390.o, reg-s390.c): Remove rules.
19105 (reg-s390x.o, reg-s390x.c): Likewise.
19106 (s390-linux32.o, s390-linux32.c): Add rules.
19107 (s390-linux64.o, s390-linux64.c): Likewise.
19108 (s390x-linux64.o, s390x-linux64.c): Likewise.
19109 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
19110 * linux-s390-low.c: Include <elf.h>.
19111 (HWCAP_S390_HIGH_GPRS): Define if undefined.
19112 (init_registers_s390): Remove prototype.
19113 (init_registers_s390x): Likewise.
19114 (init_registers_s390_linux32): Add prototype.
19115 (init_registers_s390_linux64): Likewise.
19116 (init_registers_s390x_linux64): Likewise.
19117 (s390_num_regs_3264): New define.
19118 (s390_regmap_3264): New global variable.
19119 (s390_cannot_fetch_register): Remove obsolete check.
19120 (s390_cannot_store_register): Likewise.
19121 (s390_collect_ptrace_register): Handle upper/lower register halves.
19122 (s390_supply_ptrace_register): Likewise.
19123 (s390_fill_gregset): Update to register number changes.
19124 (s390_get_hwcap): New routine.
19125 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
19126 Install appropriate regmap and register set.
19128 2010-01-01 Joel Brobecker <brobecker@adacore.com>
19130 * server.c (gdbserver_version): Update copyright year to 2010.
19131 * gdbreplay.c (gdbreplay_version): Likewise.
19133 2009-12-28 Doug Evans <dje@google.com>
19135 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
19136 elf/external.h. Include <elf.h> instead but only if necessary.
19138 2009-12-28 Pedro Alves <pedro@codesourcery.com>
19140 * linux-low.c (linux_remove_process): Remove `detaching'
19141 parameter. Don't release/detach from thread_db here.
19142 (linux_kill): Release/detach from thread_db here, ...
19143 (linux_detach): ... and here, before actually detaching.
19144 (linux_wait_1): ... and here, when a process exits.
19145 * thread-db.c (any_thread_of): New.
19146 (thread_db_free): Switch the current inferior to a thread of the
19149 2009-12-21 Doug Evans <dje@google.com>
19151 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
19153 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
19154 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
19155 warning ifndef __NR_tkill. Move setting of errno there too.
19156 Delete unnecessary resetting of errno after syscall.
19157 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
19159 * configure.ac: Check for dladdr.
19160 * config.in: Regenerate.
19161 * configure: Regenerate.
19162 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
19163 (try_thread_db_load): Update.
19165 * linux-low.c (my_waitpid): Delete unnecessary prototype.
19167 2009-12-18 Doug Evans <dje@google.com>
19169 * event-loop.c: Include unistd.h if it exists.
19171 * linux-low.c (my_waitpid): Move definition away from being in
19172 between linux_tracefork_child/linux_test_for_tracefork.
19174 * gdb_proc_service.h (psaddr_t): Fix type.
19175 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
19176 signature to match glibc.
19178 2009-12-16 Doug Evans <dje@google.com>
19180 * linux-low.c (linux_read_memory): Fix argument to read.
19182 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19184 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
19185 events, don't leave current_inferior pointing at null.
19187 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19189 * win32-low.c (LOG): Delete.
19190 (OUTMSG): Output to stderr.
19191 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
19192 on compile time LOG macro.
19193 (win32_wait): Fix debug output.
19195 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19197 * win32-low.c (win32_add_one_solib): If the dll name is
19198 "ntdll.dll", prepend the system directory to the dll path.
19200 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
19202 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
19204 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
19205 Vladimir Prus <vladimir@codesourcery.com>
19207 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
19208 * configure.ac: Check for __mcoldfire__ and set
19209 gdb_cv_m68k_is_coldfire.
19210 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
19211 reg-cf.o and reg-m68k.o.
19212 * configure: Regenerated.
19214 2009-11-16 Pedro Alves <pedro@codesourcery.com>
19216 * linux-low.c (linux_remove_process): Add `detaching' parameter.
19217 Pass it to thread_db_free.
19218 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
19219 proper `detaching' argument to linux_remove_process.
19220 * linux-low.h (thread_db_free): Add `detaching' parameter.
19221 * thread-db.c (thread_db_init): Pass false as `detaching' argument
19223 (thread_db_free): Add `detaching' parameter. Only
19224 call td_ta_clear_event if detaching from process.
19226 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
19228 * thread-db.c (thread_db_free): Fix typo.
19230 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
19233 * thread-db.c (thread_db_free): Call td_ta_clear_event.
19235 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
19237 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
19238 with an i686 compiler.
19239 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
19241 * configure: Rebuilt.
19243 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
19247 * server.c (handle_search_memory_1): Correct read_addr initialization
19248 in loop for searching subsequent chunks.
19250 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
19252 * configure.ac: New --with-libthread-db option.
19253 * thread-db.c: Allow direct dependence on libthread_db.
19254 (thread_db_free): Adjust.
19255 * config.in: Regenerate.
19256 * configure: Likewise.
19258 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
19261 * thread-db.c (attach_thread): New function.
19262 (maybe_attach_thread): Return success/failure.
19263 (find_new_threads_callback): Adjust.
19264 (thread_db_find_new_threads): Loop until no new threads.
19266 2009-10-13 Pedro Alves <pedro@codesourcery.com>
19268 * proc-service.c (ps_lgetregs): Formatting.
19270 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
19272 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
19273 * configure.ac: Adjust.
19274 * linux-low.h (struct process_info_private): Move members to struct
19276 (thread_db_free, thread_db_handle_monitor_command): New prototype.
19277 * linux-low.c (linux_remove_process): Adjust.
19278 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
19279 * server.c (handle_query): Move code ...
19280 (handle_monitor_command): ... here. New function.
19281 * target.h (struct target_ops): New member.
19282 * thread-db.c (struct thread_db): New.
19283 (libthread_db_search_path): New variable.
19284 (thread_db_create_event, thread_db_enable_reporting)
19285 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
19286 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
19287 (try_thread_db_load_1, dladdr_to_soname): New functions.
19288 (try_thread_db_load, thread_db_load_search): New functions.
19289 (thread_db_init): Search for libthread_db.
19290 (thread_db_free): New function.
19291 (thread_db_handle_monitor_command): Likewise.
19292 * config.in: Regenerate.
19293 * configure: Regenerate.
19295 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
19297 * spu-low.c (spu_kill): Wait for inferior to terminate.
19298 Call clear_inferiors.
19299 (spu_detach): Call clear_inferiors.
19301 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19303 * aclocal.m4: Regenerate.
19304 * config.in: Likewise.
19305 * configure: Likewise.
19307 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19309 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
19310 (parse_spufs_run): New function.
19311 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
19312 (ppc_breakpoint_at): Handle SPU breakpoints.
19314 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19316 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
19317 (SPUFS_MAGIC): Define.
19318 (spu_enumerate_spu_ids): New function.
19319 (linux_qxfer_spu): New function.
19320 (linux_target_ops): Install linux_qxfer_spu.
19322 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19324 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
19325 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
19326 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
19327 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
19328 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
19329 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
19330 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
19331 (init_registers_powerpc_cell32l): Add prototype.
19332 (init_registers_powerpc_cell64l): Likewise.
19333 (ppc_arch_setup): Detect Cell/B.E. architecture.
19335 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19337 * Makefile.in (datarootdir): New variable.
19339 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19341 * linux-low.c (linux_write_memory): Update debugging output.
19342 * Makefile.in (clean): Add new descriptions.
19343 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
19344 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
19345 * configure.srv: Add new files for arm*-*-linux*.
19346 * linux-arm-low.c: Add new declarations.
19347 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
19348 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
19349 (HWCAP_VFPv3D16): New.
19350 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
19351 instead of __IWMMXT__.
19352 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
19353 (arm_arch_setup): New.
19354 (target_regsets): Remove #ifdef. Add VFP regset.
19355 (the_low_target): Use arm_arch_setup.
19357 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19359 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
19360 the main thread again.
19362 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
19364 Adding Neutrino gdbserver.
19365 * configure: Regenerated.
19366 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
19367 * configure.srv (i[34567]86-*-nto*): New target.
19368 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
19369 * remote-utils.c [__QNX__]: Include sys/iomgr.h
19370 (nto_comctrl) [__QNX__]: New function.
19371 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
19373 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
19375 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
19378 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19379 Pedro Alves <pedro@codesourcery.com>
19381 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19382 don't support CONTEXT_EXTENDED_REGISTERS.
19383 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19384 (the_low_target): Install them.
19385 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19386 failing with ERROR_PIPE_NOT_CONNECTED.
19388 2009-06-30 Doug Evans <dje@google.com>
19389 Pierre Muller <muller@ics.u-strasbg.fr>
19391 Add h/w watchpoint support to x86-linux, win32-i386.
19392 * Makefile.in (SFILES): Add i386-low.c
19393 (i386_low_h): Define.
19394 (i386-low.o): Add dependencies.
19395 (linux-x86-low.o): Add i386-low.h dependency.
19396 (win32-i386-low.o): Ditto.
19397 * i386-low.c: New file.
19398 * i386-low.h: New file.
19399 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19400 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19401 * linux-low.c (linux_add_process): Initialize arch_private.
19402 (linux_remove_process): Free arch_private.
19403 (add_lwp): Initialize arch_private.
19404 (delete_lwp): Free arch_private.
19405 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19407 * linux-low.h (process_info_private): New member arch_private.
19408 (lwp_info): New member arch_private.
19409 (linux_target_ops): New members new_process, new_thread,
19411 (ptid_of): New macro.
19412 * linux-x86-low.c: Include stddef.h, i386-low.h.
19413 (arch_process_info): New struct.
19414 (arch_lwp_info): New struct.
19415 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19416 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19417 (i386_dr_low_get_status): New function.
19418 (x86_insert_point, x86_remove_point): New functions.
19419 (x86_stopped_by_watchpoint): New function.
19420 (x86_stopped_data_address): New function.
19421 (x86_linux_new_process, x86_linux_new_thread): New functions.
19422 (x86_linux_prepare_to_resume): New function.
19423 (the_low_target): Add entries for insert_point, remove_point,
19424 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19426 * server.c (debug_hw_points): New global.
19427 (monitor_show_help): Document set debug-hw-points.
19428 (handle_query): Process "set debug-hw-points".
19429 * server.h (debug_hw_points): Declare.
19430 (paddress): Declare.
19431 * utils.c (NUMCELLS, CELLSIZE): New macros.
19432 (get_sell, xsnprintf, paddress): New functions.
19433 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19434 remove_point, stopped_by_watchpoint, stopped_data_address.
19435 * win32-i386-low.c: Include i386-low.h.
19436 (debug_reg_state): Replaces dr.
19437 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19438 (i386_dr_low_get_status): New function.
19439 (i386_insert_point, i386_remove_point): New functions.
19440 (i386_stopped_by_watchpoint): New function.
19441 (i386_stopped_data_address): New function.
19442 (i386_initial_stuff): Update.
19443 (get_thread_context,set_thread_context,i386_thread_added): Update.
19444 (the_low_target): Add entries for insert_point,
19445 remove_point, stopped_by_watchpoint, stopped_data_address.
19446 * win32-low.c (win32_insert_watchpoint): New function.
19447 (win32_remove_watchpoint): New function.
19448 (win32_stopped_by_watchpoint): New function.
19449 (win32_stopped_data_address): New function.
19450 (win32_target_ops): Add entries for insert_watchpoint,
19451 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19452 * win32-low.h (win32_target_ops): New members insert_point,
19453 remove_point, stopped_by_watchpoint, stopped_data_address.
19455 2009-06-25 Pedro Alves <pedro@codesourcery.com>
19457 * server.c (process_serial_event): Re-return unsupported, not
19458 error, if the type isn't recognized. Re-allow supporting only
19459 insert or remove packets. Also call require_running for
19460 breakpoints. Add missing break statement to default case. Tidy.
19461 * target.h (struct target_ops): Rename insert_watchpoint to
19462 insert_point, and remove_watchpoint to remove_point.
19464 * linux-low.h (struct linux_target_ops): Likewise.
19465 * linux-low.c (linux_insert_watchpoint): Rename to ...
19466 (linux_insert_point): ... this. Adjust.
19467 (linux_remove_watchpoint): Rename to ...
19468 (linux_remove_point): ... this. Adjust.
19469 (linux_target_ops): Adjust.
19470 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19471 (cris_insert_point): ... this.
19472 (cris_remove_watchpoint): Rename to ...
19473 (cris_remove_point): ... this.
19474 (the_low_target): Adjust.
19476 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19478 * server.c (handle_v_kill): Pass signal_pid to
19479 kill_inferior if multi_process is zero.
19481 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19483 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19484 * target.h (target_ops): Comment for *_watchpoint to make it clear
19485 the functions can get types '0' and '1'.
19487 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19489 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19490 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19491 * regcache.c (get_regcache): Likewise.
19492 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19493 * win32-low.c (child_fetch_inferior_registers): Remove check for
19496 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19497 Pedro Alves <pedro@codesourcery.com>
19499 * target.h (struct target_ops) <supports_multi_process>: New
19501 (target_supports_multi_process): New.
19502 * server.c (handle_query): Even if GDB reports support, only
19503 enable multi-process if the target also supports it. Report
19504 multi-process support only if the target backend supports it.
19505 * linux-low.c (linux_supports_multi_process): New function.
19506 (linux_target_ops): Install it as target_supports_multi_process
19509 2009-05-24 Doug Evans <dje@google.com>
19511 Global renaming of find_thread_pid to find_thread_ptid.
19512 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19513 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19514 All callers updated.
19516 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19517 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19520 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19521 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19522 (linux_resume_one_lwp): Ditto.
19524 2009-05-23 Doug Evans <dje@google.com>
19526 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19527 from struct inferior_list_entry * to struct lwp_info *.
19528 All callers updated.
19530 2009-05-13 Doug Evans <dje@google.com>
19532 * linux-x86-low.c: Don't include assert.h.
19533 (x86_siginfo_fixup): Use fatal, not assert.
19534 (x86_arch_setup): Fix comment.
19536 2009-05-12 Doug Evans <dje@google.com>
19538 Biarch support for i386/amd64 gdbserver.
19539 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19540 Add linux-x86-low.c.
19541 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19542 (linux-x86-low.o): Add.
19543 * linux-x86-64-low.c: Delete.
19544 * linux-i386-low.c: Delete.
19545 * linux-x86-low.c: New file.
19546 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19548 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19550 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19551 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19552 (linux_child_pid_to_exec_file): New function.
19553 (elf_64_header_p, elf_64_file_p): New functions.
19554 (siginfo_fixup): New function.
19555 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19556 give target a chance to convert layout.
19557 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19558 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19560 2009-05-07 Doug Evans <dje@google.com>
19562 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19563 (regsets_store_inferior_registers): Ditto.
19565 2009-05-06 Pedro Alves <pedro@codesourcery.com>
19569 * linux-low.c (must_set_ptrace_flags): Delete.
19570 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19572 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19573 `lwp->must_set_ptrace_flags' instead.
19574 (linux_wait_for_event_1): Set ptrace options here.
19575 (linux_wait_1): ... not here.
19577 2009-04-30 Doug Evans <dje@google.com>
19579 * inferiors.c (started_inferior_callback): New function.
19580 (attached_inferior_callback): New function.
19581 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19582 * server.c (print_started_pid, print_attached_pid): New functions.
19583 (detach_or_kill_for_exit): New function.
19584 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19585 * server.h (have_started_inferiors_p): Declare.
19586 (have_attached_inferiors_p): Declare.
19588 * inferiors.c (remove_process): Fix memory leak, free process.
19589 * linux-low.c (linux_remove_process): New function.
19590 (linux_kill): Call it instead of remove_process.
19591 (linux_detach, linux_wait_1): Ditto.
19593 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19595 * configure.srv: Add x86 Windows CE target.
19597 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19599 * inferiors.c (get_thread_process): Make global.
19600 * server.h (get_thread_process): Add prototype.
19601 * thread-db.c (find_one_thread): Use get_thread_process
19602 instead of current_process.
19603 (thread_db_get_tls_address): Do not crash if called when
19604 thread layer is not yet initialized.
19606 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19608 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19609 * spu-low.c (current_tid): Rename to ...
19610 (current_ptid): ... this.
19611 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19612 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19613 ptid_get_lwp (current_ptid) instead of current_tid.
19614 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19615 instead of current_tid. Use find_process_pid to verify pid
19616 argument is valid. Pass proper argument to remove_process.
19617 (spu_thread_alive): Compare current_ptid instead of current_tid.
19618 (spu_resume): Likewise.
19620 2009-04-02 Pedro Alves <pedro@codesourcery.com>
19622 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19625 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19627 Implement the multiprocess extensions, and add linux multiprocess
19630 * server.h (ULONGEST): Declare.
19631 (struct ptid, ptid_t): New.
19632 (minus_one_ptid, null_ptid): Declare.
19633 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19634 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19635 (struct inferior_list_entry): Change `id' type from unsigned from
19637 (struct sym_cache, struct breakpoint, struct
19638 process_info_private): Forward declare.
19639 (struct process_info): Declare.
19640 (current_process): Declare.
19641 (all_processes): Declare.
19642 (initialize_inferiors): Declare.
19643 (add_thread): Adjust to use ptid_t.
19644 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19645 (add_process, remove_process, find_thread_pid): Declare.
19646 (find_inferior_id): Adjust to use ptid_t.
19647 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19648 (multi_process): Declare.
19649 (push_event): Adjust to use ptid_t.
19650 (read_ptid, write_ptid): Declare.
19651 (prepare_resume_reply): Adjust to use ptid_t.
19652 (clear_symbol_cache): Declare.
19653 * inferiors.c (all_processes): New.
19654 (null_ptid, minus_one_ptid): New.
19655 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19656 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19657 (add_thread): Change unsigned long to ptid. Remove gdb_id
19659 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19660 (gdb_id_to_thread): Rename to ...
19661 (find_thread_pid): ... this. Change unsigned long to ptid.
19662 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19663 (loaded_dll, pull_pid_from_list): Adjust.
19664 (add_process, remove_process, find_process_pid)
19665 (get_thread_process, current_process, initialize_inferiors): New.
19666 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19667 (struct target_waitstatus) <related_pid>: Ditto.
19668 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19669 return type to int.
19670 (struct target_ops) <join>: Add `pid' argument.
19671 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19672 (struct target_ops) <wait>: Add `ptid' field. Change return type
19674 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19675 (mywait): Add `ptid' argument. Change return type to ptid_t.
19676 (target_pid_to_str): Declare.
19677 * target.c (set_desired_inferior): Adjust to use ptids.
19678 (mywait): Add new `ptid' argument. Adjust.
19679 (target_pid_to_str): New.
19680 * mem-break.h (free_all_breakpoints): Declare.
19681 * mem-break.c (breakpoints): Delelete.
19682 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19683 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19684 to use per-process breakpoint list.
19685 (free_all_breakpoints): New.
19686 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19687 (symbol_cache, all_symbols_looked_up): Delete.
19689 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19691 (prepare_resume_reply): Change ptid argument's type from unsigned
19692 long to ptid_t. Adjust. Implement W;process and X;process.
19693 (free_sym_cache, clear_symbol_cache): New.
19694 (look_up_one_symbol): Adjust to per-process symbol cache. *
19695 * server.c (cont_thread, general_thread, step_thread): Change type
19697 (attached): Delete.
19698 (multi_process): New.
19699 (last_ptid): Change type to ptid_t.
19700 (struct vstop_notif) <ptid>: Change type to ptid_t.
19701 (queue_stop_reply, push_event): Change `ptid' argument's type to
19703 (discard_queued_stop_replies): Add `pid' argument.
19704 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19705 changes. Don't reference the `attached' global.
19706 (attach_inferior): Adjust to mywait interface changes.
19707 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19708 features. Handle and report "multiprocess+". Handle
19710 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19712 (handle_v_kill): New.
19713 (handle_v_stopped): Adjust to use target_pid_to_str.
19714 (handle_v_requests): Allow multiple attaches and runs when
19715 multiprocess extensions are in effect. Handle "vKill".
19716 (myresume): Adjust to use ptids.
19717 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19718 (handle_status): Adjust to discard_queued_stop_replies interface
19720 (first_thread_of, kill_inferior_callback)
19721 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19722 (main): Call initialize_inferiors. Adjust to use ptids, killing
19723 and detaching from all inferiors. Handle multiprocess packet
19725 * linux-low.h: Include gdb_proc_service.h.
19726 (struct process_info_private): New.
19727 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19728 <lwpid_of>: Use ptid_get_lwp.
19729 (get_lwp_thread): Adjust.
19730 (struct lwp_info): Add `dead' member.
19731 (find_lwp_pid): Declare.
19732 * linux-low.c (thread_db_active): Delete.
19733 (new_inferior): Adjust comment.
19734 (inferior_pid): Delete.
19735 (linux_add_process): New.
19736 (handle_extended_wait): Adjust.
19737 (add_lwp): Change unsigned long to ptid.
19738 (linux_create_inferior): Add process to processes table. Adjust
19739 to use ptids. Don't set new_inferior here.
19740 (linux_attach_lwp): Rename to ...
19741 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19742 it. Adjust to use ptids.
19743 (linux_attach_lwp): New.
19744 (linux_attach): Add process to processes table. Don't set
19746 (struct counter): New.
19747 (second_thread_of_pid_p, last_thread_of_process_p): New.
19748 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19749 multiple processes.
19750 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19751 processes. Remove process from process table.
19752 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19753 to multiple processes.
19754 (any_thread_of): New.
19755 (linux_detach): Add `pid' argument, and handle it. Remove process
19756 from processes table.
19757 (linux_join): Add `pid' argument. Handle it.
19758 (linux_thread_alive): Change unsighed long argument to ptid_t.
19759 Consider dead lwps as not being alive.
19760 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19761 threads we're not interested in.
19762 (same_lwp, find_lwp_pid): New.
19763 (linux_wait_for_lwp): Change `pid' argument's type from int to
19765 (linux_wait_for_event): Rename to ...
19766 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19767 from int to ptid_t. Adjust.
19768 (linux_wait_for_event): New.
19769 (linux_wait_1): Add `ptid' argument. Change return type to
19770 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19771 that exit from the process table.
19772 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19774 (mark_lwp_dead): New.
19775 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19776 stopping all threads, mark its main lwp as dead.
19777 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19779 (fetch_register, usr_store_inferior_registers)
19780 (regsets_fetch_inferior_registers)
19781 (regsets_store_inferior_registers, linux_read_memory)
19782 (linux_write_memory): Inline `inferior_pid'.
19783 (linux_look_up_symbols): Adjust to use per-process
19784 `thread_db_active'.
19785 (linux_request_interrupt): Adjust to use ptids.
19786 (linux_read_auxv): Inline `inferior_pid'.
19787 (initialize_low): Don't reference thread_db_active.
19788 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19789 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19790 (ps_getpid): Return the pid of the current inferior.
19791 * thread-db.c (proc_handle, thread_agent): Delete.
19792 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19794 (find_one_thread): Change argument type to ptid_t. Adjust to
19796 (maybe_attach_thread): Adjust to per-process data and ptids.
19797 (thread_db_find_new_threads): Ditto.
19798 (thread_db_init): Ditto.
19799 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19800 processes table. Adjust to use ptids.
19801 (spu_kill, spu_detach): Adjust interface. Remove process from
19803 (spu_join, spu_thread_alive): Adjust interface.
19804 (spu_wait): Adjust interface. Remove process from processes
19805 table. Adjust to use ptids.
19806 * win32-low.c (current_inferior_tid): Delete.
19807 (current_inferior_ptid): New.
19808 (debug_event_ptid): New.
19809 (thread_rec): Take a ptid. Adjust.
19810 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19811 (child_delete_thread): Ditto.
19812 (do_initial_child_stuff): Add `attached' argument. Add process to
19814 (child_fetch_inferior_registers, child_store_inferior_registers):
19816 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19817 (win32_attach): Pass 1 to do_initial_child_stuff.
19818 (win32_kill): Adjust interface. Remove process from processes
19820 (win32_detach): Ditto.
19821 (win32_join): Adjust interface.
19822 (win32_thread_alive): Take a ptid.
19823 (win32_resume): Adjust to use ptids.
19824 (get_child_debug_event): Ditto.
19825 (win32_wait): Adjust interface. Remove exiting process from
19828 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19830 Non-stop mode support.
19832 * server.h (non_stop): Declare.
19833 (gdb_client_data, handler_func): Declare.
19834 (delete_file_handler, add_file_handler, start_event_loop):
19836 (handle_serial_event, handle_target_event, push_event)
19837 (putpkt_notif): Declare.
19838 * target.h (enum resume_kind): New.
19839 (struct thread_resume): Replace `step' field by `kind' field.
19840 (TARGET_WNOHANG): Define.
19841 (struct target_ops) <wait>: Add `options' argument.
19842 <supports_non_stop, async, start_non_stop>: New fields.
19843 (target_supports_non_stop, target_async): New.
19844 (start_non_stop): Declare.
19845 (mywait): Add `options' argument.
19846 * target.c (mywait): Add `options' argument. Print child exit
19847 notifications here.
19848 (start_non_stop): New.
19849 * server.c (non_stop, own_buf, mem_buf): New globals.
19850 (struct vstop_notif): New.
19851 (notif_queue): New global.
19852 (queue_stop_reply, push_event, discard_queued_stop_replies)
19853 (send_next_stop_reply): New.
19854 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19856 (attach_inferior): In non-stop mode, don't wait for the target
19858 (handle_general_set): Handle QNonStop.
19859 (handle_query): When handling qC, return the current general
19860 thread, instead of the first thread of the list.
19861 (handle_query): If the backend supports non-stop mode, include
19862 QNonStop+ in the qSupported query response.
19863 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19865 (handle_v_attach, handle_v_run): Handle non-stop mode.
19866 (handle_v_stopped): New.
19867 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19868 (myresume): Adjust to use resume_kind. Handle non-stop.
19869 (queue_stop_reply_callback): New.
19870 (handle_status): Handle non-stop mode.
19871 (main): Clear non_stop flag on reconnection. Use the event-loop.
19872 Refactor serial protocol handling from here ...
19873 (process_serial_event): ... to this new function. When GDB
19874 selects any thread, select one here. In non-stop mode, wait until
19875 GDB acks all pending events before exiting.
19876 (handle_serial_event, handle_target_event): New.
19877 * remote-utils.c (remote_open): Install remote_desc in the event
19879 (remote_close): Remove remote_desc from the event loop.
19880 (putpkt_binary): Rename to...
19881 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19882 (putpkt_binary): New as wrapper around putpkt_binary_1.
19883 (putpkt_notif): New.
19884 (prepare_resume_reply): In non-stop mode, don't change the
19886 * event-loop.c: New.
19887 * Makefile.in (OBJ): Add event-loop.o.
19888 (event-loop.o): New rule.
19890 * linux-low.h (pid_of): Moved here.
19892 (get_lwp_thread): Use lwpid_of.
19893 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19894 * linux-low.c (pid_of): Delete.
19895 (inferior_pid): Use lwpid_of.
19896 (linux_event_pipe): New.
19897 (target_is_async_p): New.
19899 (handle_extended_wait): Use lwpid_of.
19900 (add_lwp): Don't set lwpid field.
19901 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19902 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19903 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19904 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19905 first. Adjust to linux_wait_for_event interface changes. Use
19907 (linux_detach): Don't delete the main lwp here.
19908 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19909 (status_pending_p): Don't consider explicitly suspended lwps.
19910 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19911 pointer. Add OPTIONS argument. Change return type to int. Use
19912 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19913 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19914 pointer. Add status pointer argument. Return a pid instead of a
19915 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19916 changes. In non-stop mode, don't switch to a random thread.
19917 (linux_wait): Rename to...
19918 (linux_wait_1): ... this. Add target_options argument, and handle
19919 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19920 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19921 clean exit and signal exit code. Don't stop all threads in
19922 non-stop mode. In all-stop mode, only stop all threads when
19923 reporting a stop to GDB. Handle explicit thread stop requests.
19924 (async_file_flush, async_file_mark): New.
19926 (send_sigstop): Use lwpid_of.
19927 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19928 interface changes. In non-stop mode, don't switch to a random
19930 (linux_resume_one_lwp): Use lwpid_of.
19931 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19932 (linux_resume_one_thread): ... this. Handle resume_stop. In
19933 non-stop mode, don't look for pending flag in all threads.
19934 (resume_status_pending_p): Don't consider explicitly suspended
19936 (my_waitpid): Reimplement. Emulate __WALL.
19937 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19939 (sigchld_handler, linux_supports_non_stop, linux_async)
19940 (linux_start_non_stop): New.
19941 (linux_target_ops): Register linux_supports_non_stop, linux_async
19942 and linux_start_non_stop.
19943 (initialize_low): Install SIGCHLD handler.
19944 * thread-db.c (thread_db_create_event, find_one_thread)
19945 (thread_db_get_tls_address): Use lwpid_of.
19946 * win32-low.c (win32_detach): Adjust to use resume_kind.
19947 (win32_wait): Add `options' argument.
19948 * spu-low.c (spu_resume): Adjust to use resume_kind.
19949 (spu_wait): Add `options' argument.
19951 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19953 Decouple target code from remote protocol.
19955 * target.h (enum target_waitkind): New.
19956 (struct target_waitstatus): New.
19957 (struct target_ops) <wait>: Return an unsigned long. Take a
19958 target_waitstatus pointer instead of a char pointer.
19959 (mywait): Likewise.
19960 * target.c (mywait): Change prototype to return an unsigned long.
19961 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19962 * server.h (thread_from_wait, old_thread_from_wait): Delete
19964 (prepare_resume_reply): Change prototype to take a
19966 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19967 (last_status, last_ptid): New.
19968 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19969 pid instead of a signal.
19970 (attach_inferior): Remove "status" and "signal" parameters.
19972 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19974 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19975 (handle_v_requests, myresume): Remove "status" and "signal"
19976 parameters. Adjust.
19977 (handle_status): New.
19978 (main): Delete local `status'. Adjust.
19979 * remote-utils.c: Include target.h.
19980 (prepare_resume_reply): Change prototype to take a
19981 target_waitstatus. Adjust.
19983 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19985 * spu-low.c (spu_wait): Adjust.
19986 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19988 (win32_wait): Adjust.
19990 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19992 * target.h (struct thread_resume): Delete leave_stopped member.
19993 (struct target_ops): Add a `n' argument to the `resume' callback.
19994 * server.c (start_inferior): Adjust.
19995 (handle_v_cont, myresume): Adjust.
19996 * linux-low.c (check_removed_breakpoint): Adjust to resume
19997 interface change, and to removed leave_stopped field.
19998 (resume_ptr): Delete.
19999 (struct thread_resume_array): New.
20000 (linux_set_resume_request): Add new `arg' parameter. Adjust to
20001 resume interface change.
20002 (linux_continue_one_thread, linux_queue_one_thread)
20003 (resume_status_pending_p): Check if the resume field is NULL
20004 instead of checking the leave_stopped member.
20005 (linux_resume): Adjust to the target resume interface change.
20006 * spu-low.c (spu_resume): Adjust to the target resume interface
20008 * win32-low.c (win32_detach, win32_resume): Ditto.
20010 2009-04-01 Pedro Alves <pedro@codesourcery.com>
20012 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
20014 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
20016 (linux_continue_one_thread): Only preserve the stepping flag if
20017 there's a pending breakpoint.
20019 2009-03-31 Pedro Alves <pedro@codesourcery.com>
20021 * server.c (main): After the inferior having exited, call
20022 remote_close before exiting gdbserver.
20024 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
20026 Fix size of FPSCR in Power 7 processors.
20027 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
20028 (PPC_FEATURE_HAS_DFP): New #define.
20029 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
20032 2009-03-23 Pedro Alves <pedro@codesourcery.com>
20034 * server.c (handle_query) Whitespace and formatting.
20036 2009-03-22 Pedro Alves <pedro@codesourcery.com>
20038 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
20039 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
20040 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
20041 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
20042 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
20043 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
20044 Makefile.in, configure.ac: Fix whitespace throughout.
20045 * configure: Regenerate.
20047 2009-03-22 Pedro Alves <pedro@codesourcery.com>
20049 * inferiors.c (find_inferior): Make it safe for the callback
20050 function to delete the currently iterated inferior.
20052 2009-03-22 Pedro Alves <pedro@codesourcery.com>
20054 * Makefile.in (linuw_low_h): Move higher.
20055 (thread-db.o): Depend on $(linux_low_h).
20057 2009-03-17 Pedro Alves <pedro@codesourcery.com>
20059 Rename "process" to "lwp" throughout.
20061 * linux-low.c (all_processes): Rename to...
20062 (all_lwps): ... this.
20063 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
20064 (add_process): Rename to ...
20065 (add_lwp): ... this. Adjust.
20066 (linux_create_inferior): Adjust.
20067 (linux_attach_lwp): Adjust.
20068 (linux_attach): Adjust.
20069 (linux_kill_one_process): Rename to ...
20070 (linux_kill_one_lwp): ... this. Adjust.
20071 (linux_kill): Adjust.
20072 (linux_detach_one_process): Rename to ...
20073 (linux_detach_one_lwp): ... this. Adjust.
20074 (linux_detach): Adjust.
20075 (check_removed_breakpoint): Adjust.
20076 (status_pending_p): Adjust.
20077 (linux_wait_for_process): Rename to ...
20078 (linux_wait_for_lwp): ... this. Adjust.
20079 (linux_wait_for_event): Adjust.
20080 (send_sigstop): Adjust.
20081 (wait_for_sigstop): Adjust.
20082 (stop_all_processes): Rename to ...
20083 (stop_all_lwps): ... this.
20084 (linux_resume_one_process): Rename to ...
20085 (linux_resume_one_lwp): ... this. Adjust.
20086 (linux_set_resume_request, linux_continue_one_thread)
20087 (linux_queue_one_thread, resume_status_pending_p)
20088 (usr_store_inferior_registers, regsets_store_inferior_registers)
20089 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
20091 * linux-low.h (get_process): Rename to ...
20092 (get_lwp): ... this. Adjust.
20093 (get_thread_process): Rename to ...
20094 (get_thread_lwp): ... this. Adjust.
20095 (get_process_thread): Rename to ...
20096 (get_lwp_thread): ... this. Adjust.
20097 (struct process_info): Rename to ...
20098 (struct lwp_info): ... this.
20099 (all_processes): Rename to ...
20100 (all_lwps): ... this.
20101 * proc-service.c (ps_lgetregs): Adjust.
20102 * thread-db.c (thread_db_create_event, find_one_thread)
20103 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
20105 2009-03-14 Pedro Alves <pedro@codesourcery.com>
20107 * server.c (handle_query): Handle "qAttached".
20109 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
20111 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
20112 GPLv3, update license URL.
20114 2009-03-01 Doug Evans <dje@google.com>
20116 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
20117 (server_h): Add gdb_signals.h.
20118 (signals.o): Update.
20119 * server.h (target_signal_from_host,target_signal_to_host_p)
20120 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
20122 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
20124 * remote-utils.c (getpkt): Also generate remote-debug
20125 information if noack_mode is set.
20127 2009-02-06 Pedro Alves <pedro@codesourcery.com>
20129 * server.c (handle_query): Report qXfer:siginfo:read and
20130 qXfer:siginfo:write as supported and handle them.
20131 * target.h (struct target_ops) <qxfer_siginfo>: New field.
20132 * linux-low.c (linux_xfer_siginfo): New.
20133 (linux_target_ops): Set it.
20135 2009-01-26 Pedro Alves <pedro@codesourcery.com>
20137 * server.c (gdbserver_usage): Mention --remote-debug.
20138 (main): Accept '--remote-debug' switch.
20140 2009-01-18 Doug Evans <dje@google.com>
20142 * regcache.c (new_register_cache): No need to check result of xcalloc.
20143 * server.c (handle_search_memory): Back out calls to xmalloc,
20144 result is checked and error is returned to user upon failure.
20145 (handle_query): Ditto. Add more checks for result of malloc.
20146 (handle_v_cont): Check result of malloc, report error back to
20148 (handle_v_run): Ditto. Call freeargv.
20149 * server.h (freeargv): Declare.
20150 * utils.c (freeargv): New fn.
20152 2009-01-15 Doug Evans <dje@google.com>
20154 * gdbreplay.c (perror_with_name): Make arg const char *.
20155 * server.h (target_signal_to_name): Make return type const char *.
20156 * thread-db.c (thread_db_err_str): Make return type const char *.
20157 * utils.c (perror_with_name): Make arg const char *.
20159 2009-01-14 Pedro Alves <pedro@codesourcery.com>
20161 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
20162 when handling a EXIT_PROCESS_DEBUG_EVENT.
20164 2009-01-06 Joel Brobecker <brobecker@adacore.com>
20166 * gdbreplay.c (gdbreplay_version): Update copyright year.
20167 * server.c (gdbserver_version): Likewise.
20169 2009-01-05 Doug Evans <dje@google.com>
20171 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
20172 (handle_extended_wait): Improve comment.
20174 2008-12-13 Doug Evans <dje@google.com>
20176 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
20177 * server.h (ATTR_MALLOC): New macro.
20178 (xmalloc,xcalloc,xstrdup): Declare.
20179 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
20180 * inferiors.c: Ditto.
20181 * linux-low.c: Ditto.
20182 * mem-break.c: Ditto.
20183 * regcache.c: Ditto.
20184 * remote-utils.c: Ditto.
20187 * win32-low.c: Ditto.
20189 2008-12-12 Doug Evans <dje@google.com>
20191 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
20192 in debugging printf.
20194 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
20196 2008-12-09 Doug Evans <dje@google.com>
20198 * linux-low.h (struct process_info): Delete member tid, unused.
20199 * thread-db.c (find_one_thread): Update.
20200 (maybe_attach_thread): Update.
20202 2008-12-02 Pedro Alves <pedro@codesourcery.com>
20204 * target.h (struct target_ops): Add qxfer_osdata member.
20205 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
20207 (linux_qxfer_osdata): New functions.
20208 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
20210 * server.c (handle_query): Handle "qXfer:osdata:read:".
20211 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
20212 (buffer_xml_printf): New functions.
20213 * server.h (struct buffer): New.
20214 (buffer_grow_str, buffer_grow_str0): New macros.
20215 (buffer_grow, buffer_free, buffer_init, buffer_finish)
20216 (buffer_xml_printf): Declare.
20218 2008-11-24 Doug Evans <dje@google.com>
20220 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
20222 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
20224 * server.c (handle_v_run): Always use the supplied argument list.
20226 2008-11-19 Bob Wilson <bob.wilson@acm.org>
20228 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
20229 (xtensa_regmap_table): Add entry for scompare1.
20231 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
20233 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
20234 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
20235 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
20236 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
20237 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
20238 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
20239 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
20240 XML target descriptions.
20241 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
20242 when inferior is running on an ISA 2.05 or later processor. Add
20243 special case to return offset for full 64-bit slot of FPSCR when
20246 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
20248 * Makefile.in (SFILES, clean): Added sparc64 files.
20249 (reg-sparc64.o, reg-sparc64.c): New.
20250 * configure.srv (sparc*-*-linux*): New configuration.
20251 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
20252 syscall arguments for SPARC.
20253 (regsets_store_inferior_registers): Likewise.
20254 * linux-sparc-low.c: New file.
20256 2008-10-21 Doug Evans <dje@google.com>
20258 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
20259 (READLINE_DIR,READLINE_DEP): Delete.
20260 (INTERNAL_CFLAGS): Update.
20261 (LINTFLAGS): Update.
20263 2008-10-10 Pedro Alves <pedro@codesourcery.com>
20265 * server.c (handle_v_run): If GDB didn't specify an argv, use the
20266 whole argv from the last run, not just argv[0].
20268 2008-09-08 Pedro Alves <pedro@codesourcery.com>
20270 * regcache.c (new_register_cache): Return NULL if the register
20271 cache size isn't known yet.
20272 (free_register_cache): Avoid dereferencing a NULL regcache.
20274 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20276 * configure.srv: Merge MIPS and MIPS64.
20278 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
20280 * Makefile.in (uninstall): Apply $(EXEEXT) too.
20282 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
20284 * Makefile.in: Add required vsx dependencies.
20286 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
20287 Declare init_registers_powerpc_vsx32l.
20288 Declare init_registers_powerpc_vsx64l.
20289 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
20290 (ppc_arch_setup): Check for VSX in hwcap.
20291 (ppc_fill_vsxregset): New function.
20292 (ppc_store_vsxregset): New function.
20293 Add new VSX entry in regset_info target_regsets.
20295 * configure.srv: Add new VSX dependencies.
20297 2008-08-12 Pedro Alves <pedro@codesourcery.com>
20299 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
20300 (remote_open): Set or clear transport_is_reliable.
20301 (putpkt_binary): Don't expect acks in noack mode.
20302 (getpkt): Don't send ack/nac in noack mode.
20303 * server.c (handle_general_set): Handle QStartNoAckMode.
20304 (handle_query): If connected by tcp pass QStartNoAckMode+ in
20306 (main): Reset noack_mode on every connection.
20307 * server.h (noack_mode): Declare.
20309 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20311 * Makefile.in (GDBREPLAY_OBS): New variable.
20312 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
20314 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
20315 Daniel Jacobowitz <dan@codesourcery.com>
20317 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
20318 (usr_store_inferior_registers): Likewise.
20319 (regsets_store_inferior_registers): Likewise.
20321 2008-07-31 Rolf Jansen <rj@surtec.com>
20322 Pedro Alves <pedro@codesourcery.com>
20324 * configure.ac: Check for memmem declaration.
20325 * server.c [HAVE_MALLOC_H]: Include malloc.h.
20326 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
20327 (disable_packet_qfThreadInfo): Unconditionally compile.
20328 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
20329 * configure, config.in: Regenerate.
20331 2008-07-28 Doug Kwan <dougkwan@google.com>
20333 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
20334 (linux_write_memory): Remove declaration of errno.
20336 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
20338 * linux-low.c (handle_extended_wait): Do not use "status"
20339 variable uninitialized.
20341 2008-07-07 Pedro Alves <pedro@codesourcery.com>
20343 * server.c (handle_v_attach): Inhibit reporting dll changes.
20345 2008-06-27 Pedro Alves <pedro@codesourcery.com>
20347 * remote-utils.c (prepare_resume_reply): If requested, don't
20348 output "thread:TID" in the T stop reply.
20350 * server.c (disable_packet_vCont, disable_packet_Tthread)
20351 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
20352 (handle_query): If requested, disable support for qC, qfThreadInfo
20354 (handle_v_requests): If requested, disable support for vCont.
20355 (gdbserver_show_disableable): New.
20356 (main): Handle --disable-packet and --disable-packet=LIST.
20358 * server.h (disable_packet_vCont, disable_packet_Tthread)
20359 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
20361 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
20363 * server.c (gdbserver_usage): Mention --version.
20365 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
20367 * Makefile.in (gdbreplay.o): New rule.
20369 2008-06-06 Joseph Myers <joseph@codesourcery.com>
20371 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
20372 message, not gdbserver.
20374 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
20375 Nathan Sidwell <nathan@codesourcery.com>
20376 Joseph Myers <joseph@codesourcery.com>
20378 * acinclude.m4: Include ../../config/acx.m4.
20379 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20380 * configure, config.in: Regenerate.
20381 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20382 * server.c (gdbserver_version): Print PKGVERSION.
20383 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20384 (main): Adjust gdbserver_usage calls.
20385 * gdbreplay.c (version, host_name): Add declarations.
20386 (gdbreplay_version, gdbreplay_usage): New.
20387 (main): Accept --version and --help options.
20389 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20391 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20392 (arm_breakpoint_at): Handle Thumb.
20393 (the_low_target): Add comment.
20395 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20397 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20399 2008-05-09 Doug Evans <dje@google.com>
20401 * server.h (decode_search_memory_packet): Declare.
20402 * remote-utils.c (decode_search_memory_packet): New fn.
20403 * server.c (handle_search_memory_1): New fn.
20404 (handle_search_memory): New fn.
20405 (handle_query): Process qSearch:memory packets.
20407 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20409 * regcache.c (registers_length): Remove.
20410 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20411 full register packet.
20412 * regcache.h (registers_length): Remove prototype.
20413 * server.h (PBUFSIZ): Define to 16384.
20415 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20417 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20418 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20419 powerpc-64l.o, and powerpc-altivec64l.o.
20420 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20421 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20422 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20423 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20424 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20427 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20428 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20429 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20430 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20431 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20432 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20433 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20434 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20435 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20436 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20439 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20440 (init_registers_powerpc_32l): ... this new prototype.
20441 (init_registers_powerpc_32): Remove, replace by ...
20442 (init_registers_powerpc_altivec32l): ... this new prototype.
20443 (init_registers_powerpc_e500): Remove, replace by ...
20444 (init_registers_powerpc_e500l): ... this new prototype.
20445 (init_registers_ppc64): Remove, replace by ...
20446 (init_registers_powerpc_64l): ... this new prototype.
20447 (init_registers_powerpc_64): Remove, replace by ...
20448 (init_registers_powerpc_altivec64l): ... this new prototype.
20449 (ppc_num_regs): Set to 73.
20450 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20451 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20452 (ppc_cannot_store_register): Handle orig_r3 and trap.
20453 (ppc_arch_setup): Update init_registers_... calls.
20454 (ppc_fill_gregset): Handle orig_r3 and trap.
20456 * inferiors.c (clear_inferiors): Reset current_inferior.
20458 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
20460 * acinclude.m4: Add override.m4.
20461 * configure: Regenerate.
20463 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20465 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20466 initial call to init_register_ppc64.
20468 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20470 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20471 single powerpc*-*-linux* case.
20472 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20474 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20476 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
20477 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
20479 * linux-ppc-low.c: Include <elf.h>.
20480 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20481 (ppc_hwcap): New global variable.
20482 (ppc_regmap): Remove __SPE__ #ifdef sections.
20483 (ppc_regmap_e500): New global variable.
20484 (ppc_cannot_store_register): Update __SPE__ special case.
20485 (ppc_get_hwcap): New function.
20486 (ppc_arch_setup): Use it to determine whether inferior supports
20487 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20488 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20489 Do not access registers if target does not support AltiVec.
20490 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20491 Do not access registers if target does not support SPE.
20492 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20494 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20496 * linux-low.c (disabled_regsets, num_regsets): New.
20497 (use_regsets_p): Delete.
20498 (linux_wait_for_process): Clear disabled_regsets.
20499 (regsets_fetch_inferior_registers): Check and set it.
20500 (regsets_store_inferior_registers): Likewise.
20501 (linux_fetch_registers, linux_store_registers): Do not use
20503 (initialize_low): Allocate disabled_regsets.
20505 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20507 * Makefile.in (LIBOBJS): New.
20508 (OBS): Use LIBOBJS.
20509 (memmem.o): New rule.
20510 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20511 * configure: Regenerated.
20513 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20515 * server.c (handle_query): Never return "unsupported" for
20516 qXfer:features:read queries.
20518 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20520 * server.c (get_features_xml): Fix inverted condition.
20521 (handle_query): Always support qXfer:feature:read.
20523 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20525 * server.c (wrapper_argv): New.
20526 (start_inferior): Handle wrapper_argv. If set, expect an extra
20528 (gdbserver_usage): Document --wrapper.
20529 (main): Parse --wrapper.
20531 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20533 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20534 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20535 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20536 (ppc_set_pc): Likewise.
20537 (ppc_arch_setup): New function.
20538 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20539 of collect_register.
20540 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
20542 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20544 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20545 instead of linux-ppc64-low.o.
20546 * linux-ppc64-low.c: Remove file.
20547 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20548 (linux-ppc64-low.o): Remove rule.
20550 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20551 (init_registers_powerpc_64): Likewise.
20552 (ppc_regmap): Conditionally define depending on __powerpc64__.
20553 (ppc_cannot_store_register): Do not special-case "fpscr" when
20554 compiled on __powerpc64__.
20555 (ppc_collect_ptrace_register): New function.
20556 (ppc_supply_ptrace_register): New function.
20557 (ppc_breakpoint): Change type to "unsigned int".
20558 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20559 (the_low_target): Conditionally provide initializers for the
20560 arch_setup member depending on __powerpc64__. Install
20561 collect_ptrace_register and supply_ptrace_register members.
20563 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20565 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20566 * server.c (gdbserver_xmltarget): Define.
20567 (get_features_xml): Use it to replace "target.xml" and arch_string.
20569 * configure.srv: Remove srv_xmltarget. Add XML files that were
20570 mentioned there to srv_xmlfiles instead. Remove conditional tests
20571 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20572 srv_xmlfiles and srv_regobj to include all possible choices.
20573 * configure.ac (srv_xmltarget): Remove.
20574 (srv_xmlfiles): Do not add "target.xml".
20575 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20576 checks for supplementary target information.
20577 * configure: Regenerate.
20578 * Makefile.in (XML_TARGET): Remove.
20579 (target.xml): Remove rule.
20580 (clean): Do not clean up target.xml.
20581 (.PRECIOUS): Do not mention target.xml.
20583 * target.h (struct target_ops): Remove arch_string member.
20584 * linux-low.c (linux_arch_string): Remove.
20585 (linux_target_ops): Remove arch_string initializer.
20586 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20587 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20588 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20589 * spu-low.c (spu_arch_string): Remove.
20590 (spu_target_ops): Remove arch_string initializer.
20591 * win32-low.c (win32_arch_string): Remove.
20592 (win32_target_ops): Remove arch_string initializer.
20593 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20594 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20595 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20597 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20599 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20600 by collect_ptrace_register and supply_ptrace_register hooks.
20601 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20602 instead of checking for the_low_target.left_pad_xfer.
20603 (usr_store_inferior_registers): Use collect_ptrace_register callback
20604 instead of checking for the_low_target.left_pad_xfer.
20606 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20607 (s390_supply_ptrace_register): Likewise.
20608 (s390_fill_gregset): Call s390_collect_ptrace_register.
20609 (the_low_target): Update.
20611 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20612 (ppc_supply_ptrace_register): Likewise.
20613 (the_low_target): Update.
20615 * linux-i386-low.c (the_low_target): Update.
20616 * linux-x86-64-low.c (the_low_target): Update.
20618 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20620 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20621 reg-s390.o and reg-s390x.o.
20623 * linux-low.c (new_inferior): New global variable.
20624 (linux_create_inferior, linux_attach): Set it.
20625 (linux_wait_for_process): Call the_low_target.arch_setup after the
20626 target has stopped for the first time.
20627 (initialize_low): Do not call the_low_target.arch_setup.
20629 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20630 (s390_set_pc): Likewise.
20631 (s390_arch_setup): New function.
20632 (the_low_target): Use s390_arch_setup as arch_setup routine.
20634 * regcache.c (realloc_register_cache): New function.
20635 (set_register_cache): Call it for each existing regcache.
20637 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20639 * server.h (init_registers): Remove prototype.
20641 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20642 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20643 instead of init_registers ().
20644 * linux-arm-low.c (init_registers_arm): Add prototype.
20645 (init_registers_arm_with_iwmmxt): Likewise.
20646 (the_low_target): Add initializer for arch_setup field.
20647 * linux-cris-low.c (init_registers_cris): Add prototype.
20648 (the_low_target): Add initializer for arch_setup field.
20649 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20650 (the_low_target): Add initializer for arch_setup field.
20651 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20652 (the_low_target): Add initializer for arch_setup field.
20653 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20654 (the_low_target): Add initializer for arch_setup field.
20655 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20656 (the_low_target): Add initializer for arch_setup field.
20657 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20658 (the_low_target): Add initializer for arch_setup field.
20659 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20660 (init_registers_mips64_linux): Likewise.
20661 (the_low_target): Add initializer for arch_setup field.
20662 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20663 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20664 (the_low_target): Add initializer for arch_setup field.
20665 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20666 (init_registers_powerpc_64): Likewise.
20667 (the_low_target): Add initializer for arch_setup field.
20668 * linux-s390-low.c (init_registers_s390): Add prototype.
20669 (init_registers_s390x): Likewise.
20670 (the_low_target): Add initializer for arch_setup field.
20671 * linux-sh-low.c (init_registers_sh): Add prototype.
20672 (the_low_target): Add initializer for arch_setup field.
20673 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20674 (the_low_target): Add initializer for arch_setup field.
20675 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20676 (the_low_target): Add initializer for arch_setup field.
20678 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20679 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20680 instead of init_registers ().
20681 * win32-arm-low.c (init_registers_arm): Add prototype.
20682 (the_low_target): Add initializer for arch_setup field.
20683 * win32-i386-low.c (init_registers_i386): Add prototype.
20684 (the_low_target): Add initializer for arch_setup field.
20686 * spu-low.c (init_registers_spu): Add prototype.
20687 (initialize_low): Call initialie_registers_spu () instead of
20688 initialize_registers ().
20690 2008-02-19 Pedro Alves <pedro@codesourcery.com>
20692 * server.c (handle_v_requests): When handling the vRun and vAttach
20693 packets, if already debugging a process, don't kill it. Return an
20696 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20698 * server.c (handle_query): Correct length check.
20700 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20702 * win32-low.c (do_initial_child_stuff): Add process handle
20703 parameter. Set current_process_handle and current_process_id from the
20704 parameters. Clear globals.
20705 (win32_create_inferior): Don't set current_process_handle and
20706 current_process_id here. Instead pass them on the call to
20707 do_initial_child_stuff.
20708 (win32_attach): Likewise.
20709 (win32_clear_inferiors): New.
20710 (win32_kill): Don't close the current process handle or the
20711 current thread handle here. Instead call win32_clear_inferiors.
20712 (win32_detach): Don't open a new handle to the process. Call
20713 win32_clear_inferiors.
20714 (win32_join): Don't rely on current_process_handle; open a new
20715 handle using the process id.
20716 (win32_wait): Call win32_clear_inferiors when the inferior process
20719 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20721 * server.c (monitor_show_help): Add "exit".
20723 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20725 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20726 (clean): Add reg-xtensa.c.
20727 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20728 * configure.srv (xtensa*-*-linux*) New target.
20729 * linux-xtensa-low.c: New.
20730 * xtensa-xtregs.c: New.
20732 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20734 * hostio.c: Don't include errno.h.
20735 (errno_to_fileio_errno): Move to hostio-errno.
20736 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20737 error number outputting to the target->hostio_last_error callback.
20738 (hostio_packet_error): Use FILEIO_EINVAL directly.
20739 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20740 calls to hostio_error.
20741 * hostio-errno.c: New.
20742 * server.h (hostio_last_error_from_errno): Declare.
20743 * target.h (target_ops): Add hostio_last_error member.
20744 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20745 as hostio_last_error handler.
20746 * spu-low.c (spu_target_ops): Likewise.
20747 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20748 (wince_hostio_last_error): New functions.
20749 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20750 as hostio_last_error handler.
20751 (win32_target_ops) [!_WIN32_WCE]: Register
20752 hostio_last_error_from_errno as hostio_last_error handler.
20753 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20754 (hostio-errno.o): New rule.
20755 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20756 * configure.srv (srv_hostio_err_objs): New variable. Default to
20758 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20759 * configure: Regenerate.
20761 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20763 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20764 (linux_kill, linux_detach): Clean up the process list.
20765 * remote-utils.c (remote_open): Improve port number parsing.
20766 (putpkt_binary, input_interrupt): Only send interrupts if the target
20768 * server.c (extended_protocol): Make static.
20769 (attached): Define earlier.
20770 (exit_requested, response_needed, program_argv): New variables.
20771 (target_running): New.
20772 (start_inferior): Clear attached here.
20773 (attach_inferior): Set attached here.
20774 (require_running): Define.
20775 (handle_query): Use require_running and target_running. Implement
20777 (handle_v_attach, handle_v_run): New.
20778 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20779 (gdbserver_usage): Update.
20780 (main): Redo argument parsing. Handle --debug and --multi. Handle
20781 --attach along with other options or after the port. Save
20782 program_argv. Support no initial program. Resynchronize
20783 communication with GDB after an error. Handle "monitor exit".
20784 Use require_running and target_running. Always allow the extended
20785 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20786 restart in extended mode.
20787 * README: Refer to the GDB manual. Update --attach usage.
20789 2007-12-20 Andreas Schwab <schwab@suse.de>
20791 * linux-low.c (STACK_SIZE): Define.
20792 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20793 (linux_test_for_tracefork): Likewise.
20795 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20797 * linux-low.c (linux_wait_for_event): Update messages. Do not
20798 reinsert auto-delete breakpoints.
20799 * mem-break.c (struct breakpoint): Change return type of handler to
20801 (set_breakpoint_at): Update handler type.
20802 (reinsert_breakpoint_handler): Return 1 instead of calling
20804 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20806 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20807 * mem-break.h (set_breakpoint_at): Update handler type.
20808 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20809 * win32-low.c (auto_delete_breakpoint): New.
20810 (get_child_debug_event): Use it.
20812 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20814 * configure.ac: Check for pread and pwrite.
20815 * hostio.c (handle_pread): Fall back to lseek and read.
20816 (handle_pwrite): Fall back to lseek and write.
20817 * config.in, configure: Regenerated.
20819 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20821 * server.c (myresume): Add own_buf argument.
20822 (main): Update calls.
20824 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20826 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20827 * remote-utils.c (remote_open): Do not call disable_async_io.
20828 (block_async_io): Delete.
20829 (unblock_async_io): Make static.
20830 (initialize_async_io): New.
20831 * server.c (handle_v_cont): Handle async I/O here.
20832 (myresume): Likewise. Move other common resume tasks here...
20833 (main): ... from here. Call initialize_async_io. Disable async
20834 I/O before the main loop.
20835 * server.h (initialize_async_io): Declare.
20836 (block_async_io, unblock_async_io): Delete prototypes.
20837 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20839 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20841 * remote-utils.c (readchar): Allow binary data in received messages.
20843 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20845 * win32-low.c (attaching): New global.
20846 (win32_create_inferior): Clear the `attaching' global.
20847 (win32_attach): Set the `attaching' global.
20848 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20849 attaching. Only set a breakpoint at the entry point if not
20852 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20854 * server.c (main): Don't report dll events on the initial
20855 connection on attaches.
20857 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20859 * server.c (main): Relax numerical bases supported for the pid of
20860 the --attach command line argument.
20862 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20864 * win32-low.c (win32_attach): Call OpenProcess before
20865 DebugActiveProcess, not after. Add last error output to error
20868 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20870 * win32-low.c (win32_get_thread_context)
20871 (win32_set_thread_context): New functions.
20872 (thread_rec): Use win32_get_thread_context.
20873 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20874 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20877 2007-12-03 Leo Zayas
20878 Pedro Alves <pedro_alves@portugalmail.pt>
20880 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20882 (child_add_thread): Minor cleanup.
20883 (child_continue): Resume artificially suspended threads before
20884 calling ContinueDebugEvent.
20885 (suspend_one_thread): New.
20886 (fake_breakpoint_event): New.
20887 (get_child_debug_event): Change return type to int. Check here if
20888 gdb sent an interrupt request. If a soft interrupt was requested,
20889 fake a breakpoint event. Return 0 if there is no event to handle,
20891 (win32_wait): Don't check here if gdb sent an interrupt request.
20892 Ensure there is a valid event to handle.
20893 (win32_request_interrupt): Add soft interruption method as last
20896 2007-12-03 Leo Zayas
20897 Pedro Alves <pedro_alves@portugalmail.pt>
20899 * win32-low.h (win32_thread_info): Add descriptions to the
20900 structure members. Replace `suspend_count' counter by a
20902 * win32-low.c (thread_rec): Update condition of when to get the
20903 context from the inferior. Rely on ContextFlags being set if it
20904 has already been retrieved. Only suspend the inferior thread if
20905 we haven't already. Warn if that fails.
20906 (continue_one_thread): s/suspend_count/suspended/. Only call
20907 ResumeThread once. Warn if that fails.
20909 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20911 * win32-low.c (win32_wait): Don't read from the inferior when it
20912 has already exited.
20914 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20916 * Makefile.in (win32_low_h): New variable.
20917 (win32-low.o): Add dependency on $(win32_low_h).
20918 (win32-arm-low.o, win32-i386-low.o): New rules.
20920 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20922 * hostio.c: Correct copyright year.
20924 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20926 * Makefile.in (OBS): Add hostio.o.
20927 (hostio.o): New rule.
20928 * server.h (handle_vFile): Declare.
20929 * hostio.c: New file.
20930 * server.c (handle_v_requests): Take packet_len and new_packet_len
20931 for binary packets. Call handle_vFile.
20932 (main): Update call to handle_v_requests.
20934 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20936 * linux-low.c: Include <sched.h>.
20938 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20940 * linux-low.c (linux_tracefork_grandchild): New.
20941 (linux_tracefork_child): Use clone.
20942 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20944 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20946 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20948 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20950 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20952 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20954 * inferiors.c (change_inferior_id): Delete.
20955 (add_pid_to_list, pull_pid_from_list): New.
20956 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20957 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20958 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20959 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20960 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20961 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20962 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20963 (using_threads): Always set to 1.
20964 (handle_extended_wait): New.
20965 (add_process): Do not set TID.
20966 (linux_create_inferior): Set must_set_ptrace_flags.
20967 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20968 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20969 (linux_thread_alive): Rename TID argument to LWPID.
20970 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20971 (linux_wait_for_event): Do not use TID or check using_threads. Update
20972 call to dead_thread_notify. Call handle_extended_wait.
20973 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20974 (send_sigstop): Delete sigstop_sent.
20975 (wait_for_sigstop): Avoid TID.
20976 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20977 (linux_test_for_tracefork): New.
20978 (linux_lookup_signals): Use thread_db_active and
20979 linux_supports_tracefork_flag.
20980 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20981 * linux-low.h (get_process_thread): Avoid TID.
20982 (struct process_ifo): Move thread_known and tid to the end. Remove
20984 (linux_attach_lwp, thread_db_init): Update prototypes.
20985 * server.h (change_inferior_id): Delete prototype.
20986 (add_pid_to_list, pull_pid_from_list): New prototypes.
20987 * thread-db.c (thread_db_use_events): New.
20988 (find_first_thread): Rename to...
20989 (find_one_thread): ...this. Update callers and messages. Do not
20990 call fatal. Check thread_db_use_events. Do not call
20991 change_inferior_id or new_thread_notify.
20992 (maybe_attach_thread): Update. Do not call new_thread_notify.
20993 (thread_db_init): Set thread_db_use_events. Check use_events.
20994 * utils.c (fatal, warning): Correct message prefix.
20996 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20998 * Makefile.in (clean): Remove new files.
20999 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
21000 (powerpc-64.o, powerpc-64.c): New rules.
21001 * configure.srv: Use alternate register sets for powerpc64-*-linux*
21002 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
21004 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
21006 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
21007 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
21008 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
21009 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
21010 (target_regsets): Add AltiVec and SPE register sets.
21011 * configure.ac: Check for AltiVec and SPE.
21012 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
21013 (ppc_fill_vrregset, ppc_store_vrregset): New.
21014 (target_regsets): Add AltiVec register set.
21015 * configure: Regenerated.
21017 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
21019 * linux-low.c (O_LARGEFILE): Define.
21020 (linux_read_memory): Use /proc/PID/mem.
21021 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
21022 * configure, config.in: Regenerated.
21024 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
21026 * linux-low.c (linux_wait_for_event): Do not pass signals while
21029 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
21031 * win32-low.c (create_process): New.
21032 (win32_create_inferior): Use create_process instead of
21033 CreateProcess. If create_process failed retry appending an ".exe"
21034 suffix. Store the GetLastError result immediatelly after
21035 create_process calls and use it on the call to error.
21037 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
21039 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
21041 2007-08-23 Joel Brobecker <brobecker@adacore.com>
21043 * configure.ac: Switch license to GPLv3.
21045 2007-08-01 Michael Snyder <msnyder@access-company.com>
21047 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
21049 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
21051 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
21053 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
21054 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
21055 CloseToolhelp32Snapshot.
21056 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
21057 CloseToolhelp32Snapshot.
21059 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
21061 * server.c (main): Check for inferior exit before main loop.
21063 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
21065 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
21066 instead of on tmp_desc.
21068 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
21069 Daniel Jacobowitz <dan@codesourcery.com>
21071 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
21072 (add_thread): Minor cleanups.
21073 (clear_inferiors): Move lower in the file. Clear the DLL
21075 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
21076 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
21077 (xml_escape_text): New.
21078 * server.c (handle_query): Handle qXfer:libraries:read. Report it
21080 (handle_v_cont): Report errors.
21081 (gdbserver_version): Update.
21082 (main): Correct size of own_buf. Do not report initial DLL events.
21083 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
21084 (unloaded_dll, xml_escape_text): New.
21085 * win32-low.c (enum target_waitkind): Update comments.
21086 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
21087 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
21088 (win32_EnumProcessModules, win32_GetModuleInformation)
21089 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
21090 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
21091 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
21092 (win32_Module32First, win32_Module32Next, load_toolhelp)
21093 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
21094 (get_child_debug_event): Handle DLL events.
21095 (win32_wait): Likewise.
21097 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21099 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
21100 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
21102 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21104 * win32-low.c (handle_output_debug_string): Ignore event if not
21107 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21109 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
21111 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
21113 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
21115 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
21117 * inferiors.c (change_inferior_id): Add comment.
21118 * linux-low.c (check_removed_breakpoint): Add an early
21119 prototype. Improve debug output.
21120 (linux_attach): Doc update.
21121 (linux_detach_one_process, linux_detach): Clean up before releasing
21123 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
21124 * linux-low.h (struct process_info): Doc improvement.
21125 * mem-break.c (delete_all_breakpoints): New.
21126 * mem-break.h (delete_all_breakpoints): New prototype.
21127 * thread-db.c (find_first_thread): New.
21128 (thread_db_create_event): Call it instead of
21129 thread_db_find_new_threads. Clean up unused variables.
21130 (maybe_attach_thread): Remove first thread handling.
21131 (thread_db_find_new_threads): Use find_first_thread.
21132 (thread_db_get_tls_address): Likewise.
21134 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
21136 * thread-db.c (thread_db_find_new_threads): Add prototype.
21137 (thread_db_create_event): Check for the main thread before adding
21139 (maybe_attach_thread): Only enable event reporting if TID == 0.
21140 (thread_db_get_tls_address): Check for new threads.
21142 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
21144 * linux-low.c (linux_create_inferior): Try execv before execvp.
21145 * spu-low.c (spu_create_inferior): Likewise.
21147 2007-06-13 Mike Frysinger <vapier@gentoo.org>
21149 * linux-low.c (linux_create_inferior): Change execv to execvp.
21150 * spu-low.c (spu_create_inferior): Likewies.
21152 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
21154 * Makefile.in (clean): Clean new files instead of deleted ones.
21155 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
21156 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
21158 * configure.srv: Specify XML files and new regformats for MIPS and
21160 * linux-mips-low.c (mips_num_regs): Set to only used registers.
21161 (mips_regmap): Do not fetch $0. Remove unused registers. Add
21162 an entry for the restart register.
21163 (mips_cannot_fetch_register, mips_cannot_store_register)
21164 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
21165 register names to match the XML descriptions.
21166 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
21167 restart register instead of $0.
21169 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21170 Markus Deuling <deuling@de.ibm.com>
21172 * remote-utils.c (decode_xfer_write): New function.
21173 * server.h (decode_xfer_write): Add prototype.
21174 * server.c (handle_query): Add PACKET_LEN argument. Support
21175 qXfer:spu:read and qXfer:spu:write packets.
21176 (main): Pass packet_len to handle_query.
21177 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
21178 * target.h (target_ops): Add qxfer_spu.
21180 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21182 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
21183 accessing non-seekable spufs files.
21185 2007-05-16 Markus Deuling <deuling@de.ibm.com>
21187 * server.c (handle_query): Add reply for qC packet.
21189 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21190 Leo Zayas <lerele@champenstudios@com>
21192 * server.h (check_remote_input_interrupt_request): New function.
21193 * remote_utils.c (INVALID_DESCRIPTOR): New define.
21194 (remote_desc): Initialize with INVALID_DESCRIPTOR.
21195 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
21196 (check_remote_input_interrupt_request): New function.
21197 * server.h (check_remote_input_interrupt_request): Declare.
21198 * win32-low.c (winapi_DebugBreakProcess,
21199 winapi_GenerateConsoleCtrlEvent): New typedefs.
21200 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
21202 (win32_wait): Check for remote interrupt request
21203 with check_remote_input_interrupt_request.
21204 (win32_request_interrupt): New function.
21205 (win32_target_op): Set request_interrupt to win32_request_interrupt.
21207 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21209 * win32-low.c (debug_registers_changed,
21210 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
21211 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
21212 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
21213 (thread_rec): Get context using the low target.
21214 (child_add_thread): Call thread_added on the low target,
21215 which does the same thing.
21217 (do_initial_child_stuff): Remove debug registers references.
21218 Set context using the low target. Resume threads after
21219 setting the contexts.
21220 (child_continue): Remove dead variable. Remove debug
21221 registers references.
21222 (child_fetch_inferior_registers): Go through the low target.
21223 (do_child_store_inferior_registers): Remove.
21224 (child_store_inferior_registers): Go through the low target.
21225 (win32_resume): Remove debug registers references.
21226 Set context using the low target.
21227 (handle_exception): Change return type to void. Don't record
21228 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
21229 first chance exception.
21230 (get_child_debug_event): Change return type to void. Remove
21231 goto loop. Always return after waiting for debug event.
21232 (win32_wait): Convert to switch statement. Handle spurious
21235 * win32-i386-low.c (debug_registers_changed,
21236 debug_registers_used): New.
21237 (initial_stuff): Rename to ...
21238 (i386_initial_stuff): ... this. Clear debug registers
21240 (store_debug_registers): Delete.
21241 (i386_get_thread_context): New.
21242 (load_debug_registers): Delete.
21243 (i386_set_thread_context): New.
21244 (i386_thread_added): New.
21245 (single_step): Rename to ...
21246 (i386_single_step): ... this.
21247 (do_fetch_inferior_registers): Rename to ...
21248 (i386_fetch_inferior_register): ... this.
21249 (i386_store_inferior_register): New.
21250 (the_low_target): Adapt to new interface.
21252 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
21253 (arm_get_thread_context): New.
21254 (arm_set_thread_context): New.
21256 (do_fetch_inferior_registers): Rename to ...
21257 (arm_fetch_inferior_register): ... this.
21258 (arm_store_inferior_register): New.
21259 (arm_wince_breakpoint): Reimplement as unsigned long.
21260 (arm_wince_breakpoint_len): Define.
21261 (the_low_target): Adapt to new interface.
21263 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
21264 load_debug_registers. Add get_thread_context, set_thread_context,
21265 thread_added and store_inferior_register. Rename
21266 fetch_inferior_registers to fetch_inferior_register.
21267 (regptr): Remove declaration.
21269 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21271 * linux-low.c (linux_detach): Change return type to int. Return 0.
21272 * spu-low.c (spu_detach): Likewise.
21274 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21276 * target.h (target_ops): Change return type of detach to int.
21278 (join_inferior): New.
21279 * server.c (main): Don't skip detach support on mingw32.
21280 If the inferior doesn't support detaching return error.
21281 Call join_inferior instead of using waitpid.
21282 * linux-low.c (linux_join): New.
21283 (linux_target_op): Add linux_join.
21284 * spu-low.c (spu_join): New.
21285 (spu_target_ops): Add spu_join.
21286 * win32-low.c (win32_detach): Adapt to new interface.
21287 Reopen current_process_handle before detaching. Issue a child
21288 resume before detaching.
21290 (win32_target_op): Add win32_join.
21292 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21294 * win32-low.c (win32-attach): Fix return value.
21295 * target.h (target_ops): Describe ATTACH return values.
21297 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21299 * win32-low.c (GETPROCADDRESS): Define.
21300 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
21301 (winapi_DebugSetProcessKillOnExit): Likewise.
21302 (win32_create_inferior): Force usage of ansi CreateProcessA.
21303 (win32_attach): Use GETPROCADDRESS.
21304 (win32_detach): Likewise.
21306 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21308 * win32-low.c (win32_wait): Don't use WSTOPSIG.
21310 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
21312 * win32-low.c: Commit leftover changes from 2007-03-29.
21314 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21316 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
21317 fields short instead of int. Add explicit padding.
21318 (i387_cache_to_fsave): Remove unnecessary casts.
21319 (i387_fsave_to_cache): Doc fix.
21320 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
21322 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21324 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
21325 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
21327 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21329 * configure.srv (arm*-*-mingw32ce*): Move near the other
21332 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21334 * configure.ac: Add errno checking.
21335 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
21336 sys/file.h and malloc.h.
21337 (AC_CHECK_DECLS): Add perror.
21338 (srv_mingwce): Handle.
21339 * configure.srv (i[34567]86-*-cygwin*): Add
21340 win32-i386-low.o to srv_tgtobj.
21341 (i[34567]86-*-mingw*): Likewise.
21342 (arm*-*-mingw32ce*): Add case.
21343 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21344 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
21345 [__MINGW32CE__] (strerror): New function.
21346 [__MINGW32CE__] (errno): Define to GetLastError.
21347 [__MINGW32CE__] (COUNTOF): New macro.
21348 (remote_open): Remove extra close call.
21349 * mem-break.c (delete_breakpoint_at): New function.
21350 * mem-break.h (delete_breakpoint_at): Declare.
21351 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21352 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
21353 [USE_WIN32API] (read, write): Add char* casts.
21354 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
21355 * server.h: Include wincecompat.h on Windows CE.
21356 [HAVE_ERRNO_H]: Check.
21357 (perror): Declare if not declared.
21358 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
21359 (perror_with_name): Remove errno declaration.
21360 * wincecompat.h: New.
21361 * wincecompat.c: New.
21362 * win32-low.h: New.
21363 * win32-arm-low.c: New.
21364 * win32-i386-low.c: New.
21365 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
21366 (OUTMSG2): Make it safe.
21368 (COUNTOF): New macro.
21369 (NUM_REGS): Get it from the low target.
21370 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
21371 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
21372 (thread_rec): Let low target handle debug registers.
21373 (child_add_thread): Likewise.
21374 (child_init_thread_list): Likewise.
21375 (continue_one_thread): Likewise.
21377 (do_child_fetch_inferior_registers): Move to ...
21378 * win32-i386-low.c: ... here, and rename to ...
21379 (do_fetch_inferior_registers): ... this.
21380 * win32-low.c (child_fetch_inferior_registers):
21381 Go through the low target.
21382 (do_child_store_inferior_registers): Use regptr.
21383 (strwinerror): New function.
21384 (win32_create_inferior): Handle Windows CE.
21385 Use strwinerror instead of strerror on Windows error
21386 codes. Add program to the error output.
21387 Don't close the main thread handle on Windows CE.
21388 (win32_attach): Use coredll.dll on Windows CE.
21389 (win32_kill): Close current process and current
21391 (win32_detach): Use coredll.dll on Windows CE.
21392 (win32_resume): Let low target handle debug registers, and
21394 (handle_exception): Add/Remove initial breakpoint. Avoid
21395 non-existant WSTOPSIG on Windows CE.
21396 (win32_read_inferior_memory): Cast to remove warning.
21397 (win32_arch_string): Go through the low target.
21398 (initialize_low): Call set_breakpoint_data with the low
21399 target's breakpoint.
21400 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21401 FOP_REGNUM, mappings): Move to ...
21402 * win32-i386-low.c: ... here.
21403 * win32-low.c (win32_thread_info): Move to ...
21404 * win32-low.h: ... here.
21405 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21406 win32-arm-low.c and wincecompat.c.
21407 (all:): Add $EXEEXT.
21408 (install-only:): Likewise.
21409 (gdbserver:): Likewise.
21410 (gdbreplay:): Likewise.
21411 * config.in: Regenerate.
21412 * configure: Regenerate.
21414 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21416 * win32-low.c: Rename typedef thread_info to
21417 win32_thread_info throughout.
21419 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21421 * win32-i386-low.c: Rename to ...
21422 * win32-low.c: ... this.
21423 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21424 * Makefile.in: Likewise.
21426 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21428 * remote-utils.c (monitor_output): Constify msg parameter.
21429 * server.h (monitor_output): Likewise.
21430 * win32-i386-low.c (handle_output_debug_string): New.
21431 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21432 handle_output_debug_string.
21433 (get_child_debug_event): Likewise.
21435 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21437 * server.c (main): Correct strtoul check.
21439 2007-03-27 Jon Ringle <jon@ringle.org>
21441 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21443 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21445 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21447 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21449 * terminal.h: Check HAVE_SGTTY_H.
21451 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
21453 * remote-utils.c (remote_open): Print out the assigned port number.
21455 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21457 * remote-utils.c (monitor_output): New function.
21458 * server.c (debug_threads): Define here.
21459 (monitor_show_help): New function.
21460 (handle_query): Handle qRcmd.
21461 (main): Do not handle 'd' packet.
21462 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21463 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21466 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21468 * Makefile.in (EXEEXT): New.
21469 (clean): Use $(EXEEXT).
21471 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21473 * target.h (target_ops): Rename send_signal to request_interrupt,
21474 and remove enum target_signal parameter.
21475 * linux-low.c (linux_request_interrupt): Rename from
21476 linux_send_signal, and always send SIGINT.
21477 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21478 and always send SIGINT.
21479 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21481 (input_interrupt): Likewise.
21483 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21485 * server.c (get_features_xml): Check if target implemented
21487 * win32-i386-low.c (win32_arch_string): New.
21488 (win32_target_ops): Add win32_arch_string as arch_string member.
21490 2007-02-22 Markus Deuling <deuling@de.ibm.com>
21492 * spu-low.c (spu_arch_string): New.
21493 (spu_target_ops): Add spu_arch_string.
21495 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21497 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21498 * configure.ac: Do not check for terminal.h.
21499 * configure, config.in: Regenerated.
21501 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21503 * Makefile.in (OBS): Add $(XML_BUILTIN).
21504 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21506 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21507 (arm-with-iwmmxt.c): New.
21508 * config.in, configure: Regenerate.
21509 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21510 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21511 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21512 (arm*-*-linux*): Add iWMMXt and regset support.
21513 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21514 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21515 (arm_store_wmmxregset, target_regsets): New.
21516 * server.c (get_features_xml): Take annex argument. Check builtin
21518 (handle_query): Handle multiple annexes.
21520 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21522 * remote-utils.c [USE_WIN32API] (read, write): Define.
21523 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21526 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21528 * linux-i386-low.c (the_low_target): Set arch_string.
21529 * linux-x86-64-low.c (the_low_target): Likewise.
21530 * linux-low.c (linux_arch_string): New.
21531 (linux_target_ops): Add it.
21532 * linux-low.h (struct linux_target_ops): Add arch_string.
21533 * server.c (write_qxfer_response): Use const void * for DATA.
21534 (get_features_xml): New.
21535 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21536 * target.h (struct target_ops): Add arch_string method.
21538 2007-01-03 Denis Pilat <denis.pilat@st.com>
21539 Daniel Jacobowitz <dan@codesourcery.com>
21541 * linux-low.c (linux_kill): Handle being called with no threads.
21542 * win32-i386-low.c (win32_kill): Likewise.
21543 (get_child_debug_event): Clear current_process_handle.
21545 2006-12-30 Denis PILAT <denis.pilat@st.com>
21546 Daniel Jacobowitz <dan@codesourcery.com>
21548 * remote-utils.c (remote_open): Check the type of specified
21549 serial port devices before opening them.
21550 * server.c (main): Kill the inferior if an error occurs during
21551 the first remote_open.
21553 2006-12-05 Markus Deuling <deuling@de.ibm.com>
21555 * README: Update supported targets.
21557 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21559 * Makefile.in (clean): Remove reg-mips64.c.
21560 (reg-mips64.c, reg-mips64.o): New rules.
21561 * configure.srv: Handle mips64. Include regset support for mips.
21562 * linux-mips-low.c (union mips_register): New.
21563 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21564 (mips_breakpoint, mips_breakpoint_at): Use int.
21565 (mips_collect_register, mips_supply_register)
21566 (mips_collect_register_32bit, mips_supply_register_32bit)
21567 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21568 (mips_store_fpregset, target_regsets): New.
21569 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21571 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21573 * configure.srv: Add target "spu*-*-*".
21574 * Makefile.in (clean): Remove reg-spu.c.
21575 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21576 * spu-low.c: New file.
21578 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21580 * configure.ac: Correct td_thr_tls_get_addr test.
21581 * configure: Regenerated.
21583 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21585 * linux-low.c (linux_wait_for_event): Reformat. Use the
21586 pass_signals array.
21587 * remote-utils.c (decode_address_to_semicolon): New.
21588 * server.c (pass_signals, handle_general_set): New.
21589 (handle_query): Mention QPassSignals for qSupported.
21590 (main): Call handle_general_set.
21591 * server.h (pass_signals, decode_address_to_semicolon): New.
21593 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21595 * server.c (handle_query): Correct error handling for read_auxv.
21597 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21599 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21600 and srv_linux_thread_db to yes.
21601 * linux-s390-low.c (s390_fill_gregset): New function.
21602 (target_regsets): Define data structure.
21604 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21606 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21607 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21608 * config.in, configure: Regenerated.
21609 * inferiors.c (gdb_id_to_thread): New function.
21610 (gdb_id_to_thread_id): Use it.
21611 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21612 * linux-low.h (struct process_info): Add th member.
21613 (thread_db_get_tls_address): New prototype.
21614 * remote-utils.c (decode_address): Make non-static.
21615 * server.c (handle_query): Handle qGetTLSAddr.
21616 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21617 * target.h (struct target_ops): Add get_tls_address.
21618 * thread-db.c (maybe_attach_thread): Save the thread handle.
21619 (thread_db_get_tls_address): New.
21621 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21623 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21624 (linux_resume_one_process): Take a siginfo_t *. Update all
21625 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21626 (struct pending_signals): Add a siginfo_t.
21627 (linux_wait_for_process): Always set last_status.
21628 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21629 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21630 * linux-low.h (struct process_info): Add last_status.
21632 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21634 * remote-utils.c (try_rle): New function.
21635 (putpkt_binary): Use it.
21637 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21639 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21640 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21641 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21642 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21643 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21646 2006-08-08 Richard Sandiford <richard@codesourcery.com>
21648 * server.c (terminal_fd): New variable.
21649 (old_foreground_pgrp): Likewise.
21650 (restore_old_foreground_pgrp): New function.
21651 (start_inferior): Record the terminal file descriptor in terminal_fd
21652 and its original foreground group in old_foreground_pgrp. Register
21653 restore_old_foreground_pgrp with atexit().
21655 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21657 * server.c (handle_query): Correct qPart to qXfer.
21659 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21661 * configure.ac: Check for more headers which are missing on
21662 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21663 * configure.srv: Add Cygwin and mingw32.
21664 * remote-utils.c: Don't include headers unconditionally which
21665 are missing on mingw32. Include <winsock.h> for mingw32.
21666 (remote_open): Adjust for mingw32 support. Flush
21667 standard error after writing to it.
21668 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21669 (unblock_async_io, enable_async_io, disable_async_io)
21670 (readchar, getpkt): Update for Winsock support.
21671 (prepare_resume_reply): Expect a protocol signal number.
21672 * server.c: Disable <sys/wait.h> on mingw32.
21673 (start_inferior): Adjust for mingw32 support. Flush
21674 standard error after writing to it.
21675 (attach_inferior): Likewise. Use protocol signal
21677 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21679 * win32-i386-low.c: New file.
21680 * Makefile.in (XM_CLIBS): Set.
21681 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21682 (win32-i386-low.o): New dependency rule.
21683 * linux-low.c (linux_wait): Use target signal numbers.
21684 * target.h (struct target_ops): Doc fix.
21685 * server.h (target_signal_to_name): New prototype.
21686 * gdbreplay.c: Don't include headers unconditionally which
21687 are missing on mingw32. Include <winsock.h> for mingw32.
21688 (remote_close, remote_open): Adjust for Winsock support.
21689 * configure, config.in: Regenerated.
21691 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21693 * server.c (decode_xfer_read, write_qxfer_response): New.
21694 (handle_query): Take a packet length argument. Handle
21695 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21696 the qSupported response.
21697 (main): Update call to handle_query.
21699 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21701 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21702 (putpkt_binary): Renamed from putpkt and adjusted for binary
21704 (putpkt): New wrapper for putpkt_binary.
21705 (readchar): Don't mask off the high bit.
21706 (decode_X_packet): New function.
21707 * server.c (main): Call putpkt_binary if a handler sets the packet
21708 length. Save the length of the incoming packet. Handle 'X'.
21709 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21711 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21713 * server.c (handle_query): Handle qSupported.
21715 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21717 * remote-utils.c (all_symbols_looked_up): New variable.
21718 (look_up_one_symbol): Check it.
21719 * server.h (look_up_one_symbol): New declaration.
21720 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21722 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21724 * Makefile.in (linux-arm-low.o): Update dependencies.
21725 * linux-arm-low.c: Include "gdb_proc_service.h".
21726 (PTRACE_GET_THREAD_AREA): Define.
21727 (ps_get_thread_area): New function.
21729 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21731 * configure.srv (m68k*-*-uclinux*): New target.
21732 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21733 (linux_resume_one_process): Remove extraneous cast.
21734 (linux_read_offsets): New.
21735 (linux_target_op): Add linux_read_offsets on mmuless systems.
21736 * server.c (handle_query): Add qOffsets logic.
21737 * target.h (struct target_ops): Add read_offsets.
21739 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21741 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21742 (PTRACE_GET_THREAD_AREA): Define.
21743 (ps_get_thread_area): New function.
21744 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21745 (linux-x86-64-low.o): Update.
21747 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21749 * configure.ac: Remove checks for prfpregset_t.
21750 * gdb_proc_service.h: New file.
21751 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21752 new "gdb_proc_service.h".
21753 * proc-service.c: Likewise.
21754 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21755 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21756 * Makefile.in (gdb_proc_service_h): Updated.
21757 * configure, config.in: Regenerated.
21759 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21761 * remote-utils.c (prepare_resume_reply): Move declaration
21762 of gdb_id_from_wait to the top of the block.
21764 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21766 * linux-low.c (regsets_store_inferior_registers): Read the regset
21767 from the target before filling it.
21769 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21771 * server.c (attach_inferior): Return SIGTRAP for a successful
21774 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21776 * Makefile.in (OBS): Add version.o.
21777 (STAGESTUFF): Delete.
21778 (version.o): Add dependencies.
21779 (version.c): Replace rule.
21780 (clean): Remove version.c.
21781 * server.c (gdbserver_version): New.
21782 (gdbserver_usage): Use printf.
21783 (main): Handle --version and --help.
21784 * server.h (version, host_name): Add declarations.
21786 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21798 * linux-x86-64-low.c:
21800 * linux-s390-low.c:
21801 * linux-ppc64-low.c:
21803 * linux-mips-low.c:
21804 * linux-m68k-low.c:
21805 * linux-m32r-low.c:
21808 * linux-ia64-low.c:
21809 * linux-i386-low.c:
21810 * linux-crisv32-low.c:
21822 * gdbserver.1: Add (C) after Copyright. Update the FSF
21825 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21827 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21828 (arm_breakpoint_at): Recognize both breakpoints.
21829 (the_low_target): Use the correct breakpoint instruction.
21831 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21833 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21834 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21835 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21836 (the_low_target): Update.
21838 2005-10-25 Andreas Schwab <schwab@suse.de>
21840 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21842 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21843 (ia64_num_regs): Reduce to 462.
21845 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21847 * acinclude.m4: Correct quoting.
21848 * aclocal.m4: Regenerated.
21850 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21851 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21852 (thread_db_init): Call thread_db_err_str.
21853 * configure.ac: Check for TD_VERSION.
21854 * config.in, configure: Regenerated.
21856 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21858 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21860 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21862 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21863 is not available. Define HAVE_PTRACE_GETREGS if it is.
21864 * config.in, configure: Regenerated.
21865 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21866 * linux-i386-low.c, linux-m68k-low.c: Update to use
21867 HAVE_PTRACE_GETREGS.
21868 * linux-low.c (regsets_fetch_inferior_registers)
21869 (regsets_store_inferior_registers): Only return 0 if we processed
21871 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21872 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21874 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21876 * inferiors.c (struct thread_info): Add gdb_id.
21877 (add_thread): Add gdb_id argument.
21878 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21879 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21880 calls to add_thread.
21881 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21882 * server.c (handle_query): Use thread_to_gdb_id.
21883 (handle_v_cont, main): Use gdb_id_to_thread_id.
21884 * server.h (add_thread): Update prototype.
21885 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21888 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21890 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21891 left-padded registers.
21892 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21893 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21895 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21897 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21898 * configure: Regenerate.
21899 * config.in: Regenerate.
21900 * server.h (NEED_DECLARATION_STRERROR):
21901 Replace with !HAVE_DECL_STRERROR.
21903 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21905 * linux-low.c (linux_wait, linux_send_signal): Don't test
21906 an unsigned long variable for > 0 if it could be MAX_ULONG.
21907 * server.c (myresume): Likewise.
21908 * target.c (set_desired_inferior): Likewise.
21910 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21912 * configure.ac: Simplify and improve check for socklen_t.
21913 * configure, config.in: Regenerate.
21915 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21917 * acconfig.h: Remove.
21918 * configure.ac: Add a test for socklen_t. Use three-argument
21919 AC_DEFINE throughout.
21920 * config.in: Regenerated using autoheader 2.59.
21921 * configure: Regenerated.
21923 * gdbreplay.c (socklen_t): Provide a default.
21924 (remote_open): Use socklen_t.
21925 * remote-utils.c (socklen_t): Provide a default.
21926 (remote_open): Use socklen_t.
21927 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21930 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21932 * linux-low.c (linux_read_memory, linux_write_memory)
21933 (linux_read_auxv): Likewise.
21934 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21935 (check_mem_write): Likewise.
21936 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21938 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21939 (registers_from_string, register_data): Likewise.
21940 * server.c (handle_query, main): Likewise.
21941 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21942 (decode_M_packet): Likewise.
21943 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21944 * target.h (struct target_ops): Update read_memory, write_memory,
21946 (read_inferior_memory, write_inferior_memory): Update.
21947 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21948 to unsigned char *.
21949 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21950 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21951 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21952 linux-s390-low.c, linux-sh-low.c: Update for changes in
21953 read_inferior_memory and the_low_target->breakpoint.
21955 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21957 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21958 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21959 * configure.srv: Add powerpc64-*-linux*.
21960 * linux-ppc64-low.c: New file.
21962 2005-05-23 Orjan Friberg <orjanf@axis.com>
21964 * linux-cris-low.c: New file with support for CRIS.
21965 * linux-crisv32-low.c: Ditto for CRISv32.
21966 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21967 (clean): Add reg-cris.c and reg-crisv32.c.
21968 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21969 reg-crisv32.o, and reg-crisv32.c to make rules.
21970 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21971 recognized targets.
21973 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21975 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21976 of sizeof (PTRACE_XFER_TYPE).
21977 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21979 2005-05-12 Orjan Friberg <orjanf@axis.com>
21981 * target.h (struct target_ops): Add insert_watchpoint,
21982 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21983 pointers for hardware watchpoint support.
21984 * linux-low.h (struct linux_target_ops): Ditto.
21985 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21986 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21987 to linux_target_ops.
21988 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21990 * server.c (main): Recognize 'Z' and 'z' packets.
21992 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21994 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21995 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21996 (the_low_target): Add new members.
21998 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
22000 * proc-service.c (ps_lgetregs): Search all_processes instead of
22003 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
22005 * server.c (start_inferior): Change return type to int.
22006 (attach_inferior): Change sigptr to int *.
22007 (handle_v_cont, handle_v_requests): Change signal to int *.
22008 (main): Change signal to int.
22010 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
22012 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
22013 * configure.srv: Add m32r*-*-linux*.
22014 * linux-m32r-low.c: New file.
22016 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
22018 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
22020 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
22022 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
22023 Take unsigned long arguments for PIDs.
22024 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
22025 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
22026 (wait_for_sigstop, linux_resume_one_process)
22027 (regsets_fetch_inferior_registers, linux_send_signal)
22028 (linux_read_auxv): Likewise. Update the types of variables holding
22029 PIDs. Update format string specifiers.
22030 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
22031 * remote-utils.c (prepare_resume_reply): Likewise.
22032 * server.c (cont_thread, general_thread, step_thread)
22033 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
22035 (handle_query): Update format specifiers.
22036 (handle_v_cont, main): Use strtoul for thread IDs.
22037 * server.h (struct inferior_list_entry): Use unsigned long for ID.
22038 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
22039 (general_thread, step_thread, thread_from_wait)
22040 (old_thread_from_wait): Update.
22041 * target.h (struct thread_resume): Use unsigned long for THREAD.
22042 (struct target_ops): Use unsigned long for arguments to attach and
22045 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
22047 * acinclude.m4: Include bfd/bfd.m4 directly.
22048 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
22049 <agriffis@toolchain.org>.
22050 * aclocal.m4, configure: Regenerated.
22052 2005-01-07 Andrew Cagney <cagney@gnu.org>
22054 * configure.ac: Rename configure.in, require autoconf 2.59.
22055 * configure: Re-generate.
22057 2004-12-08 Daniel Jacobowitz <dan@debian.org>
22059 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
22060 LIBS when finished.
22061 * aclocal.m4: Regenerated.
22062 * configure: Regenerated.
22064 2004-11-21 Andreas Schwab <schwab@suse.de>
22066 * linux-m68k-low.c (m68k_num_gregs): Define.
22067 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
22068 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
22069 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
22070 (m68k_breakpoint_at): New. Add to the_low_target.
22072 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
22073 srv_linux_thread_db to yes.
22075 2004-10-20 Joel Brobecker <brobecker@gnat.com>
22077 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
22078 (ARCH_SET_FS): Likewise.
22079 (ARCH_GET_FS): Likewise.
22080 (ARCH_GET_GS): Likewise.
22082 2004-10-16 Daniel Jacobowitz <dan@debian.org>
22084 * linux-i386-low.c (ps_get_thread_area): New.
22085 * linux-x86-64-low.c (ps_get_thread_area): New.
22086 * linux-low.c: Include <sys/syscall.h>.
22087 (linux_kill_one_process): Don't kill the first thread here.
22088 (linux_kill): Kill the first thread here.
22089 (kill_lwp): New function.
22090 (send_sigstop, linux_send_signal): Use it.
22091 * proc-service.c: Clean up #ifdefs.
22092 (fpregset_info): Delete.
22093 (ps_lgetregs): Update and enable implementation.
22094 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
22096 * remote-utils.c (struct sym_cache, symbol_cache): New.
22097 (input_interrupt): Print a clearer message.
22098 (async_io_enabled): New variable.
22099 (enable_async_io, disable_async_io): Use it. Update comments.
22100 (look_up_one_symbol): Use the symbol cache.
22101 * thread-db.c (thread_db_look_up_symbols): New function.
22102 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
22104 2004-10-16 Daniel Jacobowitz <dan@debian.org>
22106 * configure.in: Test for -rdynamic.
22107 * configure: Regenerated.
22108 * Makefile (INTERNAL_LDFLAGS): New.
22109 (gdbserver, gdbreplay): Use it.
22111 2004-09-02 Andrew Cagney <cagney@gnu.org>
22113 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
22115 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
22117 * linux-low.c (linux_wait): Clear all_processes list also.
22119 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
22121 * linux-low.c: Include <errno.h>. Remove extern declaration of
22124 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
22126 * gdbreplay.c, server.h, utils.c: Update copyright years.
22128 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22130 * server.c (main): Print child status or termination signal from
22131 variable 'signal', not 'sig'.
22133 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22135 * linux-low.c (linux_read_memory): Change return type to
22136 int. Check for and return error from ptrace().
22137 * target.c (read_inferior_memory): Change return type to int. Pass
22138 back return status from the_target->read_memory().
22139 * target.h (struct target_ops): Adapt *read_memory() prototype.
22141 (read_inferior_memory): Adapt prototype.
22142 * server.c (main): Return an error packet if
22143 read_inferior_memory() returns an error.
22145 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
22147 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
22148 Unify with other clean targets.
22150 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22152 * server.c (handle_v_cont): Call set_desired_inferior.
22154 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22156 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
22158 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22160 * linux-low.c (linux_wait): Unblock async I/O.
22161 (linux_resume): Block and enable async I/O.
22162 * remote-utils.c (block_async_io, unblock_async_io): New functions.
22163 * server.h (block_async_io, unblock_async_io): Add prototypes.
22165 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22167 * remote-utils.c (remote_open): Print a status notice after
22168 opening a TCP port.
22169 * server.c (attach_inferior): Print a status notice after
22172 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22174 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
22176 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
22178 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
22180 * server.c, target.h: Update copyright years.
22182 2004-02-25 Roland McGrath <roland@redhat.com>
22184 * target.h (struct target_ops): New member `read_auxv'.
22185 * server.c (handle_query): Handle qPart:auxv:read: query using that.
22186 * linux-low.c (linux_read_auxv): New function.
22187 (linux_target_ops): Initialize `read_auxv' member to that.
22189 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22191 Committed by Jim Blandy <jimb@redhat.com>.
22193 * linux-s390-low.c (s390_num_regs): Update.
22194 (s390_regmap): Remove control registers. Use __s390x__ predefine
22195 instead of GPR_SIZE to distiguish s390 and s390x targets.
22197 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
22199 * linux-low.c: Update copyright year.
22200 (check_removed_breakpoint): Clear pending_is_breakpoint.
22201 (linux_set_resume_request, linux_queue_one_thread)
22202 (resume_status_pending_p): New functions.
22203 (linux_continue_one_thread): Use process->resume.
22204 (linux_resume): Only resume threads if there are no pending events.
22205 * linux-low.h (struct process_info): Add resume request
22208 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
22210 * regcache.c (new_register_cache): Clear the allocated register
22211 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
22213 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
22215 * linux-low.c (linux_resume): Take a struct thread_resume *
22217 (linux_wait): Update call.
22218 (resume_ptr): New static variable.
22219 (linux_continue_one_thread): Renamed from
22220 linux_continue_one_process. Use resume_ptr.
22221 (linux_resume): Use linux_continue_one_thread.
22222 * server.c (handle_v_cont, handle_v_requests): New functions.
22223 (myresume): New function.
22224 (main): Handle 'v' case.
22225 * target.h (struct thread_resume): New type.
22226 (struct target_ops): Change argument of "resume" to struct
22228 (myresume): Delete macro.
22230 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
22232 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
22233 (uninstall): Support DESTDIR.
22235 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
22237 * configure.srv: Add xscale*linux copy of arm*linux entry.
22239 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
22241 * linux-arm-low.c (arm_reinsert_addr): New function.
22242 (the_low_target): Add arm_reinsert_addr.
22244 2003-07-08 Mark Kettenis <kettenis@gnu.org>
22246 * mem-break.c: Remove whitespace at end of file.
22248 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
22250 * configure.in: Check whether we need to prototype strerror.
22251 * server.h: Optionally prototype strerror.
22252 * gdbreplay.c (perror_with_name): Use strerror.
22253 * linux-low.c (linux_attach_lwp): Use strerror.
22254 * utils.c (perror_with_name): Use strerror.
22255 * config.in, configure: Regenerated.
22257 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
22259 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
22260 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
22262 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
22264 * Makefile.in (SFILES): Update.
22265 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
22266 low-sun3.c: Remove files.
22268 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
22270 * linux-low.c: Move comment to linux_thread_alive where it belonged.
22271 (linux_detach_one_process, linux_detach): New functions.
22272 (linux_target_ops): Add linux_detach.
22273 * server.c (main): Handle 'D' packet.
22274 * target.h (struct target_ops): Add "detach" member.
22275 (detach_inferior): Define.
22277 2003-06-13 Mark Kettenis <kettenis@gnu.org>
22279 From Kelley Cook <kelleycook@wideopenwest.com>:
22280 * configure.srv: Accept i[34567]86 variants.
22282 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
22284 * linux-low.c (linux_wait_for_event): Correct comment typos.
22285 (linux_resume_one_process): Call check_removed_breakpoint.
22286 (linux_send_signal): New function.
22287 (linux_target_ops): Add linux_send_signal.
22288 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
22290 * target.h (struct target_ops): Add send_signal.
22292 2003-05-29 Jim Blandy <jimb@redhat.com>
22294 * linux-low.c (usr_store_inferior_registers): Transfer buf in
22295 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
22296 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
22297 away part of the register's value.
22299 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
22301 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
22302 (linux_wait_for_event, linux_init_signals): Likewise.
22304 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
22306 * configure.in: Check for stdlib.h.
22307 * configure: Regenerated.
22308 * config.in: Regenerated.
22310 2003-01-04 Andreas Schwab <schwab@suse.de>
22312 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
22314 2003-01-02 Andrew Cagney <ac131313@redhat.com>
22316 * Makefile.in: Remove obsolete code.
22318 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
22320 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
22321 defined(PT_FPR0_HI).
22323 2002-11-17 Stuart Hughes <seh@zee2.com>
22325 * linux-arm-low.c (arm_num_regs): Increase.
22326 (arm_regmap): Include status register.
22328 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
22330 * linux-low.c (register_addr): Remove incorrect -1 check.
22332 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
22334 * linux-low.c (linux_create_inferior): Call setpgid. Return
22336 (unstopped_p, linux_signal_pid): Remove.
22337 (linux_target_ops): Remove linux_signal_pid.
22338 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
22339 global instead of target method.
22340 * target.h (struct target_ops): Remove signal_pid. Update comment
22341 for create_inferior.
22342 * server.c (signal_pid): New variable.
22343 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
22344 gdbserver. Set the child to be the foreground process group.
22345 (attach_inferior): Set signal_pid.
22347 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
22349 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
22351 2002-08-20 Jim Blandy <jimb@redhat.com>
22353 * Makefile.in (LDFLAGS): Allow the configure script to establish a
22356 2002-08-01 Andrew Cagney <cagney@redhat.com>
22358 * Makefile.in: Make chill references obsolete.
22360 2002-07-24 Kevin Buettner <kevinb@redhat.com>
22362 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
22363 * configure: Regenerate.
22364 * config.in: Regenerate.
22366 2002-07-09 David O'Brien <obrien@FreeBSD.org>
22368 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
22369 (perror_with_name, remote_close, remote_open, expect, play): Static.
22371 2002-07-04 Michal Ludvig <mludvig@suse.cz>
22373 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
22374 byte offsets instead of an array of indexes.
22375 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
22377 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
22379 * regcache.c: Add comment.
22381 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
22383 * thread-db.c: New file.
22384 * proc-service.c: New file.
22385 * acinclude.m4: New file.
22386 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22387 proc-service.o, and thread-db.o.
22388 (linux-low.o): Add USE_THREAD_DB.
22389 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22390 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22391 * aclocal.m4: Regenerated.
22392 * config.in: Regenerated.
22393 * configure: Regenerated.
22394 * configure.in: Check for proc_service.h, sys/procfs.h,
22395 thread_db.h, and linux/elf.h headrs.
22396 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22397 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22398 Check for -lthread_db and thread support.
22399 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22400 PowerPC, and SuperH.
22401 * i387-fp.c: Constify arguments.
22402 * i387-fp.h: Likewise.
22403 * inferiors.c: (struct thread_info): Renamed from
22404 `struct inferior_info'. Remove PID member. Use generic inferior
22405 list header. All uses updated.
22406 (inferiors, signal_pid): Removed.
22407 (all_threads): New variable.
22408 (get_thread): Define.
22409 (add_inferior_to_list): New function.
22410 (for_each_inferior): New function.
22411 (change_inferior_id): New function.
22412 (add_inferior): Removed.
22413 (remove_inferior): New function.
22414 (add_thread): New function.
22415 (free_one_thread): New function.
22416 (remove_thread): New function.
22417 (clear_inferiors): Use for_each_inferior and free_one_thread.
22418 (find_inferior): New function.
22419 (find_inferior_id): New function.
22420 (inferior_target_data): Update argument type.
22421 (set_inferior_target_data): Likewise.
22422 (inferior_regcache_data): Likewise.
22423 (set_inferior_regcache_data): Likewise.
22424 * linux-low.c (linux_bp_reinsert): Remove.
22425 (all_processes, stopping_threads, using_thrads)
22426 (struct pending_signals, debug_threads, pid_of): New.
22427 (inferior_pid): Replace with macro.
22428 (struct inferior_linux_data): Remove.
22429 (get_stop_pc, add_process): New functions.
22430 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22431 Use add_process and add_thread.
22432 (linux_attach_lwp): New function, based on old linux_attach. Use
22433 add_process and add_thread. Set stop_expected for new threads.
22434 (linux_attach): New function.
22435 (linux_kill_one_process): New function.
22436 (linux_kill): Kill all LWPs.
22437 (linux_thread_alive): Use find_inferior_id.
22438 (check_removed_breakpoints, status_pending_p): New functions.
22439 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22440 Update. Use WNOHANG. Wait for cloned processes also. Update process
22441 struct for the found process.
22442 (linux_wait_for_event): New function.
22443 (linux_wait): Use it. Support LWPs.
22444 (send_sigstop, wait_for_sigstop, stop_all_processes)
22445 (linux_resume_one_process, linux_continue_one_process): New functions.
22446 (linux_resume): Support LWPs.
22447 (REGISTER_RAW_SIZE): Remove.
22448 (fetch_register): Use register_size instead. Call supply_register.
22449 (usr_store_inferior_registers): Likewise. Call collect_register.
22450 Fix recursive case.
22451 (regsets_fetch_inferior_registers): Improve error message.
22452 (regsets_store_inferior_registers): Add debugging.
22453 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22454 (unstopped_p, linux_signal_pid): New functions.
22455 (linux_target_ops): Add linux_signal_pid.
22456 (linux_init_signals): New function.
22457 (initialize_low): Call it. Initialize using_threads.
22458 * regcache.c (inferior_regcache_data): Add valid
22460 (get_regcache): Fetch registers lazily. Add fetch argument
22461 and update all callers.
22462 (regcache_invalidate_one, regcache_invalidate): New
22464 (new_register_cache): Renamed from create_register_cache.
22465 Return the new regcache.
22466 (free_register_cache): Change argument to a void *.
22467 (registers_to_string, registers_from_string): Call get_regcache
22468 with fetch flag set.
22469 (register_data): Make static. Pass fetch flag to get_regcache.
22470 (supply_register): Call get_regcache with fetch flag clear.
22471 (collect_register): Call get_regcache with fetch flag set.
22472 (collect_register_as_string): New function.
22473 * regcache.h: Update.
22474 * remote-utils.c (putpkt): Flush after debug output and use
22476 Handle input interrupts while waiting for an ACK.
22477 (input_interrupt): Use signal_pid method.
22478 (getpkt): Flush after debug output and use stderr.
22479 (outreg): Use collect_register_as_string.
22480 (new_thread_notify, dead_thread_notify): New functions.
22481 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22482 and general_thread.
22483 (look_up_one_symbol): Flush after debug output.
22484 * server.c (step_thread, server_waiting): New variables.
22485 (start_inferior): Don't use signal_pid. Update call to mywait.
22486 (attach_inferior): Update call to mywait.
22487 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22488 (main): Don't fetch/store registers explicitly. Use
22489 set_desired_inferior. Support proposed ``Hs'' packet. Update
22491 * server.h: Update.
22492 (struct inferior_list, struct_inferior_list_entry): New.
22493 * target.c (set_desired_inferior): New.
22494 (write_inferior_memory): Constify.
22495 (mywait): New function.
22496 * target.h: Update.
22497 (struct target_ops): New signal_pid method.
22498 (mywait): Removed macro, added prototype.
22500 * linux-low.h (regset_func): Removed.
22501 (regset_fill_func, regset_store_func): New.
22502 (enum regset_type): New.
22503 (struct regset_info): Add type field. Use new operation types.
22504 (struct linux_target_ops): stop_pc renamed to get_pc.
22505 Add decr_pc_after_break and breakpoint_at.
22506 (get_process, get_thread_proess, get_process_thread)
22507 (strut process_info, all_processes, linux_attach_lwp)
22508 (thread_db_init): New.
22510 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22511 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22512 (the_low_target): Add new members.
22513 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22514 (i386_store_fpxregset): Constify.
22515 (target_regsets): Add new kind identifier.
22516 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22517 (i386_set_pc): Add debugging.
22518 (i386_breakpoint_at): New function.
22519 (the_low_target): Add new members.
22520 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22521 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22522 (mips_breakpoint_at): New.
22523 (the_low_target): Add new members.
22524 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22525 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22526 (the_low_target): Add new members.
22527 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22528 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22529 (the_low_target): Add new members.
22530 * linux-x86-64-low.c (target_regsets): Add new kind
22533 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
22535 From Martin Pool <mbp@samba.org>:
22536 * server.c (gdbserver_usage): New function.
22539 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
22541 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22542 stop_at -> stop_pc.
22544 2002-05-04 Andrew Cagney <ac131313@redhat.com>
22546 * Makefile.in: Remove obsolete code.
22548 2002-04-24 Michal Ludvig <mludvig@suse.cz>
22550 * linux-low.c (regsets_fetch_inferior_registers),
22551 (regsets_store_inferior_registers): Removed cast to int from
22553 * regcache.h: Added declaration of struct inferior_info.
22555 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22557 * inferiors.c (struct inferior_info): Add regcache_data.
22558 (add_inferior): Call create_register_cache.
22559 (clear_inferiors): Call free_register_cache.
22560 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22561 * regcache.c (struct inferior_regcache_data): New.
22562 (registers): Remove.
22563 (get_regcache): New function.
22564 (create_register_cache, free_register_cache): New functions.
22565 (set_register_cache): Don't initialize the register cache here.
22566 (registers_to_string, registers_from_string, register_data): Call
22568 * regcache.h: Add prototypes.
22569 * server.h: Likewise.
22571 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22573 * mem-break.c: New file.
22574 * mem-break.h: New file.
22575 * Makefile.in: Add mem-break.o rule; update server.h
22577 * inferiors.c (struct inferior_info): Add target_data
22579 (clear_inferiors): Free target_data member if set.
22580 (inferior_target_data, set_inferior_target_data): New functions.
22581 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22582 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22583 * linux-low.c (linux_bp_reinsert): New variable.
22584 (struct inferior_linux_data): New.
22585 (linux_create_inferior): Use set_inferior_target_data.
22586 (linux_attach): Likewise. Call add_inferior.
22587 (linux_wait_for_one_inferior): New function.
22588 (linux_wait): Call it.
22589 (linux_write_memory): Add const.
22590 (initialize_low): Call set_breakpoint_data.
22591 * linux-low.h (struct linux_target_ops): Add breakpoint
22593 * server.c (attach_inferior): Remove extra add_inferior
22595 * server.h: Include mem-break.h. Update inferior.c
22597 * target.c (read_inferior_memory)
22598 (write_inferior_memory): New functions.
22599 * target.h (read_inferior_memory)
22600 (write_inferior_memory): Change macros to prototypes.
22601 (struct target_ops): Update comments. Add const to write_memory
22604 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
22606 * linux-low.c (usr_store_inferior_registers): Support
22607 registers which are allowed to fail to store.
22608 * linux-low.h (linux_target_ops): Likewise.
22609 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22610 (ppc_cannot_store_register): FPSCR may not be storable.
22612 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22614 * server.h: Include <string.h> if HAVE_STRING_H.
22615 * ChangeLog: Correct paths in last ChangeLog entry.
22617 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22619 * linux-low.h: Remove obsolete prototypes.
22620 (struct linux_target_ops): New.
22621 (extern the_low_target): New.
22622 * linux-low.c (num_regs, regmap): Remove declarations.
22623 (register_addr): Use the_low_target explicitly.
22624 (fetch_register): Likewise.
22625 (usr_fetch_inferior_registers): Likewise.
22626 (usr_store_inferior_registers): Likewise.
22627 * linux-arm-low.c (num_regs): Remove.
22628 (arm_num_regs): Define.
22629 (arm_regmap): Renamed from regmap, made static.
22630 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22632 (arm_cannot_store_register): Renamed from cannot_store_register,
22634 (the_low_target): New.
22635 * linux-i386-low.c (num_regs): Remove.
22636 (i386_num_regs): Define.
22637 (i386_regmap): Renamed from regmap, made static.
22638 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22640 (i386_cannot_store_register): Renamed from cannot_store_register,
22642 (the_low_target): New.
22643 * linux-ia64-low.c (num_regs): Remove.
22644 (ia64_num_regs): Define.
22645 (ia64_regmap): Renamed from regmap, made static.
22646 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22648 (ia64_cannot_store_register): Renamed from cannot_store_register,
22650 (the_low_target): New.
22651 * linux-m68k-low.c (num_regs): Remove.
22652 (m68k_num_regs): Define.
22653 (m68k_regmap): Renamed from regmap, made static.
22654 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22656 (m68k_cannot_store_register): Renamed from cannot_store_register,
22658 (the_low_target): New.
22659 * linux-mips-low.c (num_regs): Remove.
22660 (mips_num_regs): Define.
22661 (mips_regmap): Renamed from regmap, made static.
22662 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22664 (mips_cannot_store_register): Renamed from cannot_store_register,
22666 (the_low_target): New.
22667 * linux-ppc-low.c (num_regs): Remove.
22668 (ppc_num_regs): Define.
22669 (ppc_regmap): Renamed from regmap, made static.
22670 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22672 (ppc_cannot_store_register): Renamed from cannot_store_register,
22674 (the_low_target): New.
22675 * linux-s390-low.c (num_regs): Remove.
22676 (s390_num_regs): Define.
22677 (s390_regmap): Renamed from regmap, made static.
22678 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22680 (s390_cannot_store_register): Renamed from cannot_store_register,
22682 (the_low_target): New.
22683 * linux-sh-low.c (num_regs): Remove.
22684 (sh_num_regs): Define.
22685 (sh_regmap): Renamed from regmap, made static.
22686 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22688 (sh_cannot_store_register): Renamed from cannot_store_register,
22690 (the_low_target): New.
22691 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22692 (the_low_target): New.
22694 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22696 * Makefile.in: Add stamp-h target.
22697 * configure.in: Create stamp-h.
22698 * configure: Regenerated.
22700 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22702 * inferiors.c: New file.
22703 * target.c: New file.
22704 * target.h: New file.
22705 * Makefile.in: Add target.o and inferiors.o. Update
22707 * linux-low.c (inferior_pid): New static variable,
22708 moved from server.c.
22709 (linux_create_inferior): Renamed from create_inferior.
22710 Call add_inferior. Return 0 on success instead of a PID.
22711 (linux_attach): Renamed from myattach.
22712 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22713 (linux_thread_alive): Renamed from mythread_alive.
22714 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22716 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22717 (regsets_store_inferior_registers): Correct error message.
22718 Add missing ``return 0''.
22719 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22720 (linux_store_registers): Renamed from store_inferior_registers.
22721 (linux_read_memory): Renamed from read_inferior_memory.
22722 (linux_write_memory): Renamed from write_inferior_memory.
22723 (linux_target_ops): New structure.
22724 (initialize_low): Call set_target_ops ().
22725 * remote-utils.c (unhexify): New function.
22726 (hexify): New function.
22727 (input_interrupt): Send signals to ``signal_pid''.
22728 * server.c (inferior_pid): Remove.
22729 (start_inferior): Update create_inferior call.
22730 (attach_inferior): Call add_inferior.
22731 (handle_query): New function.
22732 (main): Call handle_query for `q' packets.
22733 * server.h: Include "target.h". Remove obsolete prototypes.
22734 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22736 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22738 * Makefile.in: Add WARN_CFLAGS. Update configury
22740 * configure.in: Check for <string.h>
22741 * configure: Regenerate.
22742 * config.in: Regenerate.
22743 * gdbreplay.c: Include needed system headers.
22744 (remote_open): Remove strchr prototype.
22745 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22746 * regcache.c (supply_register): Change buf argument to const void *.
22747 (supply_register_by_name): Likewise.
22748 (collect_register): Change buf argument to void *.
22749 (collect_register_by_name): Likewise.
22750 * regcache.h: Add missing prototypes.
22751 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22752 * server.c (handle_query): New function.
22753 (attached): New static variable, moved out of main.
22754 (main): Quiet longjmp clobber warnings.
22755 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22756 * utils.c (error): Remove NORETURN.