1 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
3 * configure: Re-generate.
5 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
7 * configure: Re-generate.
9 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
11 * configure: Re-generate.
13 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
15 * configure.ac: Modernize.
16 * configure: Re-generate.
18 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
20 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
22 * configure: Re-generate.
24 2020-10-26 Pedro Alves <pedro@palves.net>
26 * netbsd-low.cc (netbsd_waitpid, netbsd_process_target::kill)
27 (netbsd_qxfer_libraries_svr4): Use gdb::handle_eintr without
30 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
32 * acinclude.m4: Update ptrace.m4 path.
34 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
36 * config.in: Re-generate.
37 * configure: Re-generate.
39 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
41 * server.cc (handle_general_set): Don't use sprintf with
42 argument overlapping buffer.
44 2020-10-20 Tom Tromey <tromey@adacore.com>
47 * inferiors.cc (remove_thread): Clear current_thread before
50 2020-10-13 Kamil Rytarowski <n54@gmx.com>x
52 * netbsd-low.cc (netbsd_tdesc): Remove.
53 (netbsd_add_process): Likewise.
54 (netbsd_process_target::create_inferior): Update.
56 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
58 * linux-arc-low.cc (arc_linux_read_description): Release the
59 unique_ptr returned from arc_create_target_description.
61 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
63 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
64 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
66 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
68 * linux-low.cc (linux_process_target::handle_extended_wait):
69 Release the unique_ptr returned from allocate_target_description.
70 * linux-riscv-low.cc (riscv_target::low_arch_setup): Likewise.
71 * linux-x86-low.cc (tdesc_amd64_linux_no_xml): Change type.
72 (tdesc_i386_linux_no_xml): Change type.
73 (x86_linux_read_description): Borrow pointer from unique_ptr
75 (x86_target::get_ipa_tdesc_idx): Likewise.
76 (initialize_low_arch): Likewise.
77 * tdesc.cc (allocate_target_description): Update return type.
79 2020-10-07 Tom Tromey <tromey@adacore.com>
81 * server.cc (handle_search_memory): Remove dead code.
83 2020-10-07 Tom Tromey <tromey@adacore.com>
85 * server.cc (handle_search_memory_1): Remove.
86 (handle_search_memory): Use simple_search_memory.
88 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
90 * Makefile.in (COMPILE): Add CXXFLAGS.
91 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
92 (gdbserver$(EXEEXT)): Add CXXFLAGS.
93 (gdbreplay$(EXEEXT)): Add CXXFLAGS.
94 ($(IPA_LIB)): Add CXXFLAGS.
95 (IPAGENT_COMPILE): Add CXXFLAGS.
97 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
99 * configure.srv: Support ARC architecture.
100 * Makefile.in: Add linux-arc-low.cc and arch/arc.o.
101 * linux-arc-low.cc: New file.
103 2020-10-07 Kamil Rytarowski <n54@gmx.com>
105 * netbsd-low.cc (get_dynamic, get_r_debug, read_one_ptr)
106 (netbsd_qxfer_libraries_svr4): Remove "target" argument and update.
107 (netbsd_process_target::qxfer_libraries_svr4): Update.
109 2020-10-07 Kamil Rytarowski <n54@gmx.com>
111 * netbsd-low.cc: Fix whitespace formatting.
112 * netbsd-amd64-low.cc: Likewise.
114 2020-10-07 Kamil Rytarowski <n54@gmx.com>
116 * netbsd-low.cc (netbsd_process_target::read_memory)
117 (netbsd_process_target::write_memory): Update.
119 2020-10-07 Kamil Rytarowski <n54@gmx.com>
121 * netbsd-aarch64-low.cc: Add.
122 * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
123 * configure.srv: Add aarch64*-*-netbsd*.
125 2020-10-06 Shahab Vahedi <shahab@synopsys.com>
127 * regcache.cc (register_data): Remove unused "fetch" argument.
129 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
131 * server.cc (handle_monitor_command): Handle "set
133 (captured_main): Handle "--debug-event-loop".
134 (monitor_show_help): Mention new setting.
135 (gdbserver_usage): Mention new flag.
137 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
139 * linux-low.cc (linux_process_target::async): Pass name to
141 * remote-utils.cc (handle_accept_event): Likewise.
142 (remote_open): Likewise.
144 2020-10-01 Kamil Rytarowski <n54@gmx.com>
146 * netbsd-i386-low.cc: Add.
147 * Makefile.in (SFILES): Register "netbsd-i386-low.c".
148 * configure.srv: Add i[34567]86-*-netbsd*.
150 2020-10-01 Kamil Rytarowski <n54@gmx.com>
152 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
153 (netbsd_target_regsets): Now const.
154 (the_low_target): Remove.
155 (class netbsd_amd64_target, the_netbsd_amd64_target)
156 (the_netbsd_target): Add.
157 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
159 (netbsd_process_target::fetch_registers)
160 (netbsd_process_target::store_registers, initialize_low): Update.
161 (the_netbsd_target): Remove.
162 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
163 (the_low_target, netbsd_tdesc): Remove.
164 (netbsd_process_target::get_regs_info)
165 (netbsd_process_target::low_arch_setup): Add.
167 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
169 * win32-low.cc: Remove local wow64_process variable.
170 * win32-low.h: Remove local wow64_process variable.
172 2020-09-18 Tom Tromey <tromey@adacore.com>
174 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
175 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
176 (netbsd_process_target::wait): Change type of target_options.
177 * win32-low.h (class win32_process_target) <wait>: Update.
178 * win32-low.cc (win32_process_target::wait): Update.
179 * target.h (class process_stratum_target) <wait>: Update.
181 * target.cc (mywait, target_wait): Change type of "options".
182 * linux-low.h (class linux_process_target) <wait, wait_1>:
184 * linux-low.cc (linux_process_target::wait)
185 (linux_process_target::wait_1): Update.
187 2020-09-15 Tom Tromey <tromey@adacore.com>
189 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
190 (xmltarget_amd64_linux_no_xml): Now arrays.
192 2020-09-14 Tom Tromey <tromey@adacore.com>
194 * tracepoint.cc (eval_result_names): Now const.
195 * ax.cc (gdb_agent_op_names): Now const.
197 2020-09-10 Kamil Rytarowski <n54@gmx.com>
199 * netbsd-low.cc: Add.
200 * netbsd-low.h: Likewise.
201 * netbsd-amd64-low.cc: Likewise.
202 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
203 "netbsd-amd64-low.cc".
204 * configure.srv: Add x86_64-*-netbsd*.
206 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
208 * server.cc (captured_main): Accept multiple `--selftest=`
209 options. Pass all `--selftest=` arguments to run_tests.
211 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
213 * configure, config.in: Regenerate.
215 2020-07-26 Eli Zaretskii <eliz@gnu.org>
217 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
218 When checking whether socklen_t type is defined, use ws2tcpip.h if
219 it is available and sys/socket.h isn't.
220 * configure: Regenerate.
221 * config.in: Regenerate.
223 2020-07-22 Pedro Alves <pedro@palves.net>
225 * inferiors.cc (switch_to_process): New, moved here from
226 thread-db.cc, and made extern.
227 * inferiors.h (switch_to_process): Declare.
228 * server.cc: Include "gdbsupport/scoped_restore.h".
229 (handle_qxfer_threads_proper): Now returns bool. Prepare to
230 access memory around target calls.
231 (handle_qxfer_threads): Handle errors.
232 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
234 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
236 * linux-low.cc (stopped_pids): Make static.
238 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
240 * tdesc.cc (allocate_target_description): Add header comment.
241 (target_desc_deleter::operator()): New function.
242 * tdesc.h (struct target_desc): Declare as final.
244 2020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
246 * server.cc (handle_query): Use std::vector of
247 std::string for `qsupported` vector. Use separate
249 * target.h (class process_stratum_target) <process_qsupported>:
250 Change parameters to array_view of const char *.
251 (target_process_qsupported): Remove `count` parameter.
252 * target.cc (process_stratum_target::process_qsupported): Change
253 parameters to array_view of const char *.
254 * linux-x86-low.cc (class x86_target) <process_qsupported>:
257 2020-06-29 Tom de Vries <tdevries@suse.de>
259 * ax.h: Include gdbsupport/debug_agent.h.
261 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
263 * tdesc.cc (struct tdesc_compatible_info): New struct.
264 (tdesc_compatible_info_list): New function.
265 (tdesc_compatible_info_arch_name): New function.
267 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
269 Use std::list to stop pending signal instead of manually-created
271 * linux-low.h: Include <list>.
272 (struct pending_signal): Move here from linux-low.cc.
273 (struct lwp_info) <pending_signals>
274 <pending_signals_to_report>: Update the type.
275 * linux-low.cc (struct pending_signals): Remove.
276 (linux_process_target::delete_lwp)
277 (linux_process_target::add_lwp)
278 (enqueue_one_deferred_signal)
279 (dequeue_one_deferred_signal)
280 (enqueue_pending_signal)
281 (linux_process_target::resume_one_lwp_throw)
282 (linux_process_target::thread_needs_step_over)
283 (linux_process_target::resume_one_thread)
284 (linux_process_target::proceed_one_lwp): Update the use of pending
287 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
289 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
292 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
294 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
295 * configure.srv: Remove mingw32ce cases.
296 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
297 * win32-low.h (to_back_slashes): Remove.
298 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
300 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
302 * Makefile.in (SFILES): linux-tile-low.cc.
303 * configure.srv: Remove tilegx case.
304 * linux-tile-low.cc: Remove.
306 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
308 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
309 * configure.srv: Remove m32r case.
310 * linux-m32r-low.cc: Remove.
312 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
314 * Makefile.in (SFILES): Remove linux-cris-low.c.
315 * configure.srv: Remove cris cases.
316 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
318 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
320 * Makefile.in (SFILES): Remove linux-bfin-low.c.
321 * configure.srv: Remove bfin case.
322 * linux-bfin-low.cc: Remove.
323 * linux-low.cc: Remove BFIN-conditional code.
325 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
327 * configure: Re-generate.
328 * configure.ac: Remove srv_qnx test.
329 * configure.srv: Remove nto case.
330 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
331 * remote-utils.c: Remove __QNX__-guarded code.
333 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
335 * configure: Re-generate.
336 * configure.ac: Remove srv_lynxos test.
337 * configure.srv: Remove lynxos cases.
338 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
341 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
343 * README: Fix a few outdated or incoherent things.
345 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
347 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
348 (win32_clear_inferiors): Use open_process_used.
349 (get_child_debug_event): Likewise.
351 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
354 * linux-low.cc (linux_process_target::create_inferior),
355 lynx-low.cc (lynx_process_target::create_inferior),
356 win32-low.cc (win32_process_target::create_inferior): Use
357 construct_inferior_arguments instead of stringify_argv
358 to get string representation which properly escapes
360 * server.cc (handle_v_run): Just pass empty program arg
361 as such, since any further processing is now handled via
362 construct_inferior_arguments.
364 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
366 * nto-low.cc (nto_process_target::create_inferior): Pass
367 argv to spawnp function as char **.
369 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
371 * server.cc (captured_main), (handle_v_run): No longer
372 insert extra NULL element to args vector.
374 2020-05-23 Pedro Alves <palves@redhat.com>
376 * gdb-safe-ctype.h: New.
378 2020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
380 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
381 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
382 (ia64_target::low_breakpoint_at): Ditto.
384 2020-05-15 Hannes Domani <ssbssa@yahoo.de>
386 * win32-i386-low.cc (i386_supports_z_point_type): Handle
387 Z_PACKET_HW_BP z_type.
388 (i386_insert_point): Handle raw_bkpt_type type.
389 (i386_remove_point): Likewise.
391 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
393 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
395 * win32-arm-low.cc (arm_num_regs): New function.
396 (struct win32_target_ops): Use arm_num_regs.
397 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
399 (i386_get_thread_context): Likewise.
400 (i386_prepare_to_resume): Likewise.
401 (i386_thread_added): Likewise.
402 (i386_single_step): Likewise.
403 (i386_fetch_inferior_register): Likewise.
404 (i386_store_inferior_register): Likewise.
405 (i386_arch_setup): Likewise.
406 (i386_win32_num_regs): New function.
407 (struct win32_target_ops): Use i386_win32_num_regs.
408 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
410 (win32_require_context): Likewise.
411 (child_add_thread): Likewise.
412 (do_initial_child_stuff): Likewise.
413 (continue_one_thread): Likewise.
414 (win32_process_target::resume): Likewise.
415 (load_psapi): Likewise.
416 (win32_add_all_dlls): Likewise.
417 (maybe_adjust_pc): Likewise.
418 (win32_process_target::qxfer_siginfo): Likewise.
419 (initialize_low): Likewise.
420 * win32-low.h (struct win32_target_ops): Change num_regs to
423 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
425 * configure.ac: Remove check for fs_base/gs_base in
427 * configure: Re-generate.
428 * config.in: Re-generate.
429 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
430 x86_store_gregset): Adjust.
432 2020-04-22 Hannes Domani <ssbssa@yahoo.de>
434 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
437 2020-04-16 Tom Tromey <tromey@adacore.com>
439 * win32-low.cc (windows_nat::handle_access_violation): New
442 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
444 * win32-low.cc (get_child_debug_event): Fix format string warning.
446 2020-04-13 Tom Tromey <tom@tromey.com>
448 * server.h (gdb_fildes_t): Remove typedef.
449 * remote-utils.c (remote_desc, list_desc): Now int.
450 (INVALID_DESCRIPTOR): Remove.
451 (gdb_connected, remote_close)
452 (check_remote_input_interrupt_request): Update.
453 * utils.h (pfildes): Don't declare.
454 * utils.c (pfildes): Remove.
456 2020-04-13 Tom Tromey <tom@tromey.com>
458 * server.h (handle_serial_event, handle_target_event): Update.
459 * server.c: Don't call initialize_event_loop.
460 (keep_processing_events): New global.
461 (handle_serial_event): Return void. Set keep_processing_events.
462 (handle_target_event): Return void.
463 (start_event_loop): Move from event-loop.c. Rewrite.
464 * remote-utils.c (handle_accept_event): Return void.
465 (reset_readchar): Use delete_timer.
466 (process_remaining): Return void.
467 (reschedule): Use create_timer.
468 * event-loop.h: Remove.
469 * event-loop.cc: Remove.
470 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
472 2020-04-13 Tom Tromey <tom@tromey.com>
474 * server.c (invoke_async_signal_handlers)
475 (check_async_event_handlers, flush_streams, gdb_select): New
478 2020-04-13 Tom Tromey <tom@tromey.com>
480 * configure: Rebuild.
481 * config.in: Rebuild.
483 2020-04-08 Tom Tromey <tromey@adacore.com>
486 * win32-low.c (child_continue): Call matching_pending_stop.
487 (get_child_debug_event): Call fetch_pending_stop. Push pending
490 2020-04-08 Tom Tromey <tromey@adacore.com>
492 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
493 (win32_process_target::supports_stopped_by_sw_breakpoint):
495 * win32-low.c (win32_supports_z_point_type): Always handle
497 (win32_insert_point): Call insert_memory_breakpoint when needed.
498 (win32_remove_point): Call remove_memory_breakpoint when needed.
499 (win32_process_target::stopped_by_sw_breakpoint)
500 (win32_process_target::supports_stopped_by_sw_breakpoint): New
502 (win32_target_ops): Update.
503 (maybe_adjust_pc): New function.
504 (win32_wait): Call maybe_adjust_pc.
506 2020-04-08 Tom Tromey <tromey@adacore.com>
508 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
510 * win32-i386-low.c (the_low_target): Update.
511 * win32-arm-low.c (the_low_target): Update.
513 2020-04-08 Tom Tromey <tromey@adacore.com>
515 * win32-low.h (win32_process_target::read_pc)
516 (win32_process_target::write_pc): Declare.
517 * win32-low.c (win32_process_target::read_pc)
518 (win32_process_target::write_pc): New methods.
519 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
521 (the_low_target): Update.
522 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
524 (the_low_target): Update.
526 2020-04-08 Tom Tromey <tromey@adacore.com>
528 * win32-low.c (win32_kill, get_child_debug_event): Use
529 wait_for_debug_event.
531 2020-04-08 Tom Tromey <tromey@adacore.com>
533 * win32-low.c (child_continue): Call continue_last_debug_event.
535 2020-04-08 Tom Tromey <tromey@adacore.com>
537 * win32-low.c (handle_exception): Remove.
538 (windows_nat::handle_ms_vc_exception): New function.
539 (get_child_debug_event): Add "continue_status" parameter.
541 (win32_wait): Update.
543 2020-04-08 Tom Tromey <tromey@adacore.com>
545 * win32-low.c (windows_nat::handle_load_dll): Rename from
546 handle_load_dll. No longer static.
547 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
550 2020-04-08 Tom Tromey <tromey@adacore.com>
552 * win32-low.c (handle_output_debug_string): Add parameter. Change
554 (win32_kill, get_child_debug_event): Update.
556 2020-04-08 Tom Tromey <tromey@adacore.com>
558 * win32-low.c (current_process_handle, current_process_id)
559 (main_thread_id, last_sig, current_event, siginfo_er): Move to
562 2020-04-08 Tom Tromey <tromey@adacore.com>
564 * win32-low.c (get_image_name): Remove.
565 (handle_load_dll): Update.
567 2020-04-08 Tom Tromey <tromey@adacore.com>
569 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
570 No longer static. Change parameters.
571 (child_add_thread, child_fetch_inferior_registers)
572 (child_store_inferior_registers, win32_resume)
573 (win32_get_tib_address): Update.
575 2020-04-08 Tom Tromey <tromey@adacore.com>
577 * win32-low.h (struct win32_target_ops): Use qualified names where
579 * win32-i386-low.c: Add "using namespace".
580 * win32-low.c: Add "using namespace".
581 * win32-arm-low.c: Add "using namespace".
583 2020-04-08 Tom Tromey <tromey@adacore.com>
585 * win32-low.c (delete_thread_info): Don't call CloseHandle.
587 2020-04-08 Tom Tromey <tromey@adacore.com>
589 * win32-low.c (win32_require_context, suspend_one_thread): Use
590 windows_thread_info::suspend.
591 (continue_one_thread): Use windows_thread_info::resume.
592 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
594 2020-04-08 Tom Tromey <tromey@adacore.com>
596 * win32-i386-low.c (update_debug_registers)
597 (i386_prepare_to_resume, i386_thread_added): Update.
599 2020-04-08 Tom Tromey <tromey@adacore.com>
601 * win32-low.c (child_add_thread): Use new.
602 (delete_thread_info): Use delete.
604 2020-04-08 Tom Tromey <tromey@adacore.com>
606 * win32-low.h (struct windows_thread_info): Remove.
608 2020-04-08 Tom Tromey <tromey@adacore.com>
610 * win32-low.h (struct windows_thread_info): Rename from
611 win32_thread_info. Remove typedef.
612 (struct win32_target_ops, win32_require_context): Update.
613 * win32-low.c (win32_get_thread_context)
614 (win32_set_thread_context, win32_prepare_to_resume)
615 (win32_require_context, thread_rec, child_add_thread)
616 (delete_thread_info, continue_one_thread)
617 (child_fetch_inferior_registers, child_store_inferior_registers)
618 (win32_resume, suspend_one_thread, win32_get_tib_address):
620 * win32-i386-low.c (update_debug_registers)
621 (win32_get_current_dr, i386_get_thread_context)
622 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
623 (i386_fetch_inferior_register, i386_store_inferior_register):
625 * win32-arm-low.c (arm_get_thread_context)
626 (arm_fetch_inferior_register, arm_store_inferior_register):
629 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
631 * linux-low.h (struct linux_target_ops): Remove.
632 (the_low_target): Remove.
633 * linux-x86-low.cc (the_low_target): Remove.
634 * linux-aarch64-low.cc (the_low_target): Ditto.
635 * linux-arm-low.cc (the_low_target): Ditto.
636 * linux-bfin-low.cc (the_low_target): Ditto.
637 * linux-cris-low.cc (the_low_target): Ditto.
638 * linux-crisv32-low.cc (the_low_target): Ditto.
639 * linux-ia64-low.cc (the_low_target): Ditto.
640 * linux-m32r-low.cc (the_low_target): Ditto.
641 * linux-m68k-low.cc (the_low_target): Ditto.
642 * linux-mips-low.cc (the_low_target): Ditto.
643 * linux-nios2-low.cc (the_low_target): Ditto.
644 * linux-ppc-low.cc (the_low_target): Ditto.
645 * linux-riscv-low.cc (the_low_target): Ditto.
646 * linux-s390-low.cc (the_low_target): Ditto.
647 * linux-sh-low.cc (the_low_target): Ditto.
648 * linux-sparc-low.cc (the_low_target): Ditto.
649 * linux-tic6x-low.cc (the_low_target): Ditto.
650 * linux-tile-low.cc (the_low_target): Ditto.
651 * linux-xtensa-low.cc (the_low_target): Ditto.
653 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
655 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
656 linux target define the op by overriding the declaration in
657 process_stratum_target.
659 * linux-low.h (struct linux_target_ops): Remove the op.
660 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
661 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
662 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
663 (x86_get_ipa_tdesc_idx): Turn into...
664 (x86_target::get_ipa_tdesc_idx): ...this.
665 (the_low_target): Remove the op field.
666 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
667 (ppc_get_ipa_tdesc_idx): Turn into...
668 (ppc_target::get_ipa_tdesc_idx): ...this.
669 (the_low_target): Remove the op field.
670 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
671 (s390_get_ipa_tdesc_idx): Turn into...
672 (s390_target::get_ipa_tdesc_idx): ...this.
673 (the_low_target): Remove the op field.
675 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
677 Turn the 'get_syscall_trapinfo' linux target op into a method
678 of process_stratum_target.
680 * linux-low.h (struct linux_target_ops): Remove the op.
681 (class linux_process_target) <get_syscall_trapinfo>
682 <gdb_catch_this_syscall>
683 <low_supports_catch_syscall>
684 <low_get_syscall_trapinfo>: Declare.
685 * linux-low.cc (get_syscall_trapinfo): Turn into...
686 (linux_process_target::get_syscall_trapinfo): ...this.
687 (linux_process_target::low_get_syscall_trapinfo): Define.
688 (gdb_catch_this_syscall_p): Turn into...
689 (linux_process_target::gdb_catch_this_syscall): ...this.
690 (linux_process_target::low_supports_catch_syscall): Define.
692 Update the callers below.
694 (linux_process_target::wait_1)
695 (linux_process_target::supports_catch_syscall)
697 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
698 <low_get_syscall_trapinfo>: Declare.
699 (x86_target::low_supports_catch_syscall): Define.
700 (x86_get_syscall_trapinfo): Turn into...
701 (x86_target::low_get_syscall_trapinfo): ...this.
702 (the_low_target): Remove the op field.
703 * linux-aarch64-low.cc (class aarch64_target)
704 <low_supports_catch_syscall>
705 <low_get_syscall_trapinfo>: Declare.
706 (aarch64_target::low_supports_catch_syscall): Define.
707 (aarch64_get_syscall_trapinfo): Turn into...
708 (aarch64_target::low_get_syscall_trapinfo): ...this.
709 (the_low_target): Remove the op field.
710 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
711 <low_get_syscall_trapinfo>: Declare.
712 (arm_target::low_supports_catch_syscall): Define.
713 (arm_get_syscall_trapinfo): Turn into...
714 (arm_target::low_get_syscall_trapinfo): ...this.
715 (the_low_target): Remove the op field.
716 * linux-ppc-low.cc (the_low_target): Remove the op field.
717 * linux-s390-low.cc (the_low_target): Remove the op field.
719 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
721 Remove the 'supports_hardware_single_step' linux target op and
722 override the process_stratum_target's op definition in
723 linux_process_target to return true.
725 * linux-low.h (struct linux_target_ops): Remove the op.
726 (class linux_process_target) <finish_step_over>
727 <maybe_hw_step>: Declare.
728 * linux-low.cc (can_hardware_single_step): Remove.
729 (maybe_hw_step): Turn into...
730 (linux_process_target::maybe_hw_step): ...this.
731 (finish_step_over): Turn into...
732 (linux_process_target::finish_step_over): ...this.
733 (linux_process_target::supports_hardware_single_step): Update
736 Update the callers below.
738 (linux_process_target::single_step)
739 (linux_process_target::resume_one_lwp_throw)
741 * linux-arm-low.cc (class arm_target)
742 <supports_hardware_single_step>: Declare.
743 (arm_supports_hardware_single_step): Turn into...
744 (arm_target::supports_hardware_single_step): ...this.
745 (the_low_target): Remove the op field.
746 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
747 (the_low_target): Remove the op field.
748 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
750 (the_low_target): Remove the op field.
751 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
752 (the_low_target): Remove the op field.
753 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
754 (the_low_target): Remove the op field.
755 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
756 (the_low_target): Remove the op field.
757 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
758 (the_low_target): Remove the op field.
759 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
760 (the_low_target): Remove the op field.
761 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
762 (the_low_target): Remove the op field.
763 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
764 (the_low_target): Remove the op field.
765 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
766 (the_low_target): Remove the op field.
767 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
768 (the_low_target): Remove the op field.
769 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
771 (the_low_target): Remove the op field.
773 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
775 Turn the 'supports_range_stepping' linux target op into a method
776 of linux_process_target.
778 * linux-low.h (struct linux_target_ops): Remove the op.
779 (class linux_process_target) <low_supports_range_stepping>: Declare.
780 * linux-low.cc (linux_process_target::low_supports_range_stepping):
782 (linux_process_target::supports_range_stepping): Update the call
784 * linux-x86-low.cc (class x86_target)
785 <low_supports_range_stepping>: Declare.
786 (x86_supports_range_stepping): Turn into...
787 (x86_target::low_supports_range_stepping): ...this.
788 (the_low_target): Remove the op field.
789 * linux-aarch64-low.cc (class aarch64_target)
790 <low_supports_range_stepping>: Declare.
791 (aarch64_supports_range_stepping): Turn into...
792 (aarch64_target::low_supports_range_stepping): ...this.
793 (the_low_target): Remove the op field.
794 * linux-arm-low.cc (the_low_target): Remove the op field.
795 * linux-bfin-low.cc (the_low_target): Ditto.
796 * linux-crisv32-low.cc (the_low_target): Ditto.
797 * linux-m32r-low.cc (the_low_target): Ditto.
798 * linux-m68k-low.cc (the_low_target): Ditto.
799 * linux-ppc-low.cc (the_low_target): Ditto.
800 * linux-s390-low.cc (the_low_target): Ditto.
801 * linux-sh-low.cc (the_low_target): Ditto.
802 * linux-tic6x-low.cc (the_low_target): Ditto.
803 * linux-tile-low.cc (the_low_target): Ditto.
804 * linux-xtensa-low.cc (the_low_target): Ditto.
806 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
808 Remove the 'emit_ops' linux target ops and let the concrete
809 linux target define the op by overriding the declaration of
810 process_stratum_target.
812 * linux-low.h (struct linux_target_ops): Remove the op.
813 (class linux_process_target) <emit_ops>: Remove.
814 * linux-low.cc (linux_process_target::emit_ops): Remove.
815 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
816 (x86_emit_ops): Turn into...
817 (x86_target::emit_ops): ...this.
818 (the_low_target): Remove the op field.
819 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
820 (aarch64_emit_ops): Turn into...
821 (aarch64_target::emit_ops): ...this.
822 (the_low_target): Remove the op field.
823 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
824 (ppc_emit_ops): Turn into...
825 (ppc_target::emit_ops): ...this.
826 (the_low_target): Remove the op field.
827 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
828 (s390_emit_ops): Turn into...
829 (s390_target::emit_ops): ...this.
830 (the_low_target): Remove the op field.
831 * linux-arm-low.cc (the_low_target): Remove the op field.
832 * linux-bfin-low.cc (the_low_target): Ditto.
833 * linux-crisv32-low.cc (the_low_target): Ditto.
834 * linux-m32r-low.cc (the_low_target): Ditto.
835 * linux-m68k-low.cc (the_low_target): Ditto.
836 * linux-sh-low.cc (the_low_target): Ditto.
837 * linux-tic6x-low.cc (the_low_target): Ditto.
838 * linux-tile-low.cc (the_low_target): Ditto.
839 * linux-xtensa-low.cc (the_low_target): Ditto.
841 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
843 Remove the 'install_fast_tracepoint_jump_pad' and
844 'get_min_fast_tracepoint_insn_len' linux target ops to let the
845 concrete linux target define the ops by overriding the declarations
846 of process_stratum_target.
848 * linux-low.h (struct linux_target_ops): Remove the ops.
849 (class linux_process_target) <supports_fast_tracepoints>
850 <install_fast_tracepoint_jump_pad>
851 <get_min_fast_tracepoint_insn_len>: Remove.
852 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
853 (linux_process_target::install_fast_tracepoint_jump_pad)
854 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
855 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
856 <install_fast_tracepoint_jump_pad>
857 <get_min_fast_tracepoint_insn_len>: Declare.
858 (x86_target::supports_fast_tracepoints): Define.
859 (x86_install_fast_tracepoint_jump_pad): Turn into...
860 (x86_target::install_fast_tracepoint_jump_pad): ...this.
861 (x86_get_min_fast_tracepoint_insn_len): Turn into...
862 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
863 (the_low_target): Remove the op fields.
864 * linux-aarch64-low.cc (class aarch64_target)
865 <supports_fast_tracepoints>
866 <install_fast_tracepoint_jump_pad>
867 <get_min_fast_tracepoint_insn_len>: Declare.
868 (aarch64_target::supports_fast_tracepoints): Define.
869 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
870 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
871 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
872 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
873 (the_low_target): Remove the op fields.
874 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
875 <install_fast_tracepoint_jump_pad>
876 <get_min_fast_tracepoint_insn_len>: Declare.
877 (ppc_target::supports_fast_tracepoints): Define.
878 (ppc_install_fast_tracepoint_jump_pad): Turn into...
879 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
880 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
881 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
882 (the_low_target): Remove the op fields.
883 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
884 <install_fast_tracepoint_jump_pad>
885 <get_min_fast_tracepoint_insn_len>: Declare.
886 (s390_target::supports_fast_tracepoints): Define.
887 (s390_install_fast_tracepoint_jump_pad): Turn into...
888 (s390_target::install_fast_tracepoint_jump_pad): ...this.
889 (s390_get_min_fast_tracepoint_insn_len): Turn into...
890 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
891 (the_low_target): Remove the op fields.
892 * linux-arm-low.cc (the_low_target): Remove the op fields.
893 * linux-bfin-low.cc (the_low_target): Ditto.
894 * linux-crisv32-low.cc (the_low_target): Ditto.
895 * linux-m32r-low.cc (the_low_target): Ditto.
896 * linux-m68k-low.cc (the_low_target): Ditto.
897 * linux-sh-low.cc (the_low_target): Ditto.
898 * linux-tic6x-low.cc (the_low_target): Ditto.
899 * linux-tile-low.cc (the_low_target): Ditto.
900 * linux-xtensa-low.cc (the_low_target): Ditto.
902 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
904 Turn the 'get_thread_area' linux target op into a method of
905 process_stratum_target.
907 * linux-low.h (struct linux_target_ops): Remove the op.
908 (class linux_process_target) <stuck_in_jump_pad>
909 <linux_fast_tracepoint_collecting>
910 <low_get_thread_area>: Declare.
911 * linux-low.cc (supports_fast_tracepoints): Remove.
912 (linux_fast_tracepoint_collecting): Turn into...
913 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
914 (linux_process_target::low_get_thread_area): Define.
915 (stuck_in_jump_pad_callback): Turn into...
916 (linux_process_target::stuck_in_jump_pad): ...this.
918 Update the caller below.
920 (linux_process_target::stabilize_threads)
922 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
924 (x86_get_thread_area): Turn into...
925 (x86_target::low_get_thread_area): ...this.
926 (the_low_target): Remove the op field.
927 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
929 (aarch64_get_thread_area): Turn into...
930 (aarch64_target::low_get_thread_area): ...this.
931 (the_low_target): Remove the op field.
932 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
934 (ppc_get_thread_area): Turn into...
935 (ppc_target::low_get_thread_area): ...this.
936 (the_low_target): Remove the op field.
937 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
939 (s390_get_thread_area): Turn into...
940 (s390_target::low_get_thread_area): ...this.
941 (the_low_target): Remove the op field.
942 * linux-arm-low.cc (the_low_target): Remove the op field.
943 * linux-bfin-low.cc (the_low_target): Ditto.
944 * linux-crisv32-low.cc (the_low_target): Ditto.
945 * linux-m32r-low.cc (the_low_target): Ditto.
946 * linux-m68k-low.cc (the_low_target): Ditto.
947 * linux-sh-low.cc (the_low_target): Ditto.
948 * linux-tic6x-low.cc (the_low_target): Ditto.
949 * linux-tile-low.cc (the_low_target): Ditto.
950 * linux-xtensa-low.cc (the_low_target): Ditto.
952 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
954 Remote the 'supports_tracepoints' linux target op and let the
955 concrete linux target define it by overriding the op declared in
956 process_stratum_target.
958 * linux-low.h (struct linux_target_ops): Remove the op.
959 (class linux_process_target) <supports_tracepoints>: Remove.
960 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
961 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
963 (x86_supports_tracepoints): Turn into...
964 (x86_target::supports_tracepoints): ...this.
965 (the_low_target): Remove the op field.
966 * linux-aarch64-low.cc (class aarch64_target)
967 <supports_tracepoints>: Declare.
968 (aarch64_supports_tracepoints): Turn into...
969 (aarch64_target::supports_tracepoints): ...this.
970 (the_low_target): Remove the op field.
971 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
973 (ppc_supports_tracepoints): Turn into...
974 (ppc_target::supports_tracepoints): ...this.
975 (the_low_target): Remove the op field.
976 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
978 (s390_supports_tracepoints): Turn into...
979 (s390_target::supports_tracepoints): ...this.
980 (the_low_target): Remove the op field.
981 * linux-arm-low.cc (the_low_target): Remove the op field.
982 * linux-bfin-low.cc (the_low_target): Ditto.
983 * linux-crisv32-low.cc (the_low_target): Ditto.
984 * linux-m32r-low.cc (the_low_target): Ditto.
985 * linux-m68k-low.cc (the_low_target): Ditto.
986 * linux-sh-low.cc (the_low_target): Ditto.
987 * linux-tic6x-low.cc (the_low_target): Ditto.
988 * linux-tile-low.cc (the_low_target): Ditto.
989 * linux-xtensa-low.cc (the_low_target): Ditto.
991 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
993 Remove the 'process_qsupported' linux target op and let a concrete
994 linux target define the op by overriding the op declaration in
995 process_stratum_target.
997 * linux-low.h (struct linux_target_ops): Remove the op.
998 (class linux_process_target) <process_qsupported>: Remove.
999 * linux-low.cc (linux_process_target::process_qsupported): Remove.
1000 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
1001 (x86_linux_process_qsupported): Turn into...
1002 (x86_target::process_qsupported): ...this.
1003 (the_low_target): Remove the op field.
1004 * linux-aarch64-low.cc (the_low_target): Remove the op
1006 * linux-arm-low.cc (the_low_target): Ditto.
1007 * linux-bfin-low.cc (the_low_target): Ditto.
1008 * linux-crisv32-low.cc (the_low_target): Ditto.
1009 * linux-m32r-low.cc (the_low_target): Ditto.
1010 * linux-m68k-low.cc (the_low_target): Ditto.
1011 * linux-ppc-low.cc (the_low_target): Ditto.
1012 * linux-s390-low.cc (the_low_target): Ditto.
1013 * linux-sh-low.cc (the_low_target): Ditto.
1014 * linux-tic6x-low.cc (the_low_target): Ditto.
1015 * linux-tile-low.cc (the_low_target): Ditto.
1016 * linux-xtensa-low.cc (the_low_target): Ditto.
1018 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1020 Turn the 'prepare_to_resume' linux target op into a method of
1021 linux_process_target.
1023 * linux-low.h (struct linux_target_ops): Remove the op.
1024 (class linux_process_target) <low_prepare_to_resume>: Declare.
1025 * linux-low.cc (linux_process_target::low_prepare_to_resume):
1028 Update the callers below:
1030 (linux_process_target::resume_one_lwp_throw)
1031 (linux_process_target::low_prepare_to_resume)
1033 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
1035 (x86_target::low_prepare_to_resume): Define.
1036 (the_low_target): Remove the op field.
1037 * linux-aarch64-low.cc (class aarch64_target)
1038 <low_prepare_to_resume>: Declare.
1039 (aarch64_target::low_prepare_to_resume): Define.
1040 (the_low_target): Remove the op field.
1041 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
1043 (arm_prepare_to_resume): Turn into...
1044 (arm_target::low_prepare_to_resume): ...this.
1045 (the_low_target): Remove the op field.
1046 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
1048 (mips_linux_prepare_to_resume): Turn into...
1049 (mips_target::low_prepare_to_resume): ...this.
1050 (the_low_target): Remove the op field.
1051 * linux-bfin-low.cc (the_low_target): Remove the op field.
1052 * linux-crisv32-low.cc (the_low_target): Ditto.
1053 * linux-m32r-low.cc (the_low_target): Ditto.
1054 * linux-m68k-low.cc (the_low_target): Ditto.
1055 * linux-ppc-low.cc (the_low_target): Ditto.
1056 * linux-s390-low.cc (the_low_target): Ditto.
1057 * linux-sh-low.cc (the_low_target): Ditto.
1058 * linux-tic6x-low.cc (the_low_target): Ditto.
1059 * linux-tile-low.cc (the_low_target): Ditto.
1060 * linux-xtensa-low.cc (the_low_target): Ditto.
1062 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1064 Turn the 'new_process', 'delete_process', 'new_thread',
1065 'delete_thread', and 'new_fork' linux target ops into methods
1066 of linux_process_target.
1068 * linux-low.h (struct linux_target_ops): Remove the ops.
1069 (class linux_process_target) <add_linux_process>
1074 <check_zombie_leaders>
1077 <low_delete_process>
1080 <low_new_fork>: Declare.
1081 * linux-low.cc (delete_lwp): Turn into...
1082 (linux_process_target::delete_lwp): ...this.
1083 (linux_process_target::low_delete_thread): Define.
1084 (linux_add_process): Turn into...
1085 (linux_process_target::add_linux_process): ...this.
1086 (linux_process_target::low_new_process): Define.
1087 (linux_process_target::low_delete_process): Define.
1088 (linux_process_target::low_new_fork): Define.
1089 (add_lwp): Turn into...
1090 (linux_process_target::add_lwp): ...this.
1091 (linux_process_target::low_new_thread): Define.
1092 (linux_attach_lwp): Turn into...
1093 (linux_process_target::attach_lwp): ...this.
1094 (linux_detach_one_lwp): Turn into...
1095 (linux_process_target::detach_one_lwp): ...this.
1096 (linux_detach_lwp_callback): Remove and inline...
1097 (linux_process_target::detach): ...here.
1098 (check_zombie_leaders): Turn into...
1099 (linux_process_target::check_zombie_leaders): ...this.
1100 (filter_exit_event): Turn into...
1101 (linux_process_target::filter_exit_event): ...this.
1103 Update the callers below.
1105 (linux_process_target::handle_extended_wait)
1106 (linux_process_target::create_inferior)
1107 (attach_proc_task_lwp_callback)
1108 (linux_process_target::attach)
1109 (linux_process_target::detach)
1110 (linux_process_target::mourn)
1111 * thread-db.cc (attach_thread)
1113 * linux-x86-low.cc (class x86_target) <low_new_process>
1114 <low_delete_process>
1117 <low_new_fork>: Declare.
1118 (x86_linux_new_process): Turn into...
1119 (x86_target::low_new_process): ...this.
1120 (x86_linux_delete_process): Turn into...
1121 (x86_target::low_delete_process): ...this.
1122 (x86_target::low_new_thread): Define.
1123 (x86_target::low_delete_thread): Define.
1124 (x86_linux_new_fork): Turn into...
1125 (x86_target::low_new_fork): ...this.
1126 (the_low_target): Remove the op fields.
1127 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
1128 <low_delete_process>
1131 <low_new_fork>: Declare.
1132 (aarch64_linux_new_process): Turn into...
1133 (aarch64_target::low_new_process): ...this.
1134 (aarch64_linux_delete_process): Turn into...
1135 (aarch64_target::low_delete_process): ...this.
1136 (aarch64_target::low_new_thread): Define.
1137 (aarch64_target::low_delete_thread): Define.
1138 (aarch64_linux_new_fork): Turn into...
1139 (aarch64_target::low_new_fork): ...this.
1140 (the_low_target): Remove the op fields.
1141 * linux-arm-low.cc (class arm_target) <low_new_process>
1142 <low_delete_process>
1145 <low_new_fork>: Declare.
1146 (arm_new_process): Turn into...
1147 (arm_target::low_new_process): ...this.
1148 (arm_delete_process): Turn into...
1149 (arm_target::low_delete_process): ...this.
1150 (arm_new_thread): Turn into...
1151 (arm_target::low_new_thread): ...this.
1152 (arm_delete_thread): Turn into...
1153 (arm_target::low_delete_thread): ...this.
1154 (arm_new_fork): Turn into...
1155 (arm_target::low_new_fork): ...this.
1156 (the_low_target): Remove the op fields.
1157 * linux-mips-low.cc (class mips_target) <low_new_process>
1158 <low_delete_process>
1161 <low_new_fork>: Declare.
1162 (mips_linux_new_process): Turn into...
1163 (mips_target::low_new_process): ...this.
1164 (mips_linux_delete_process): Turn into...
1165 (mips_target::low_delete_process): ...this.
1166 (mips_linux_new_thread): Turn into...
1167 (mips_target::low_new_thread): ...this.
1168 (mips_linux_delete_thread): Turn into...
1169 (mips_target::low_delete_thread): ...this.
1170 (mips_linux_new_fork): Turn into...
1171 (mips_target::low_new_fork): ...this.
1172 (the_low_target): Remove the op fields.
1173 * linux-bfin-low.cc (the_low_target): Remove the op fields.
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-ppc-low.cc (the_low_target): Ditto.
1178 * linux-s390-low.cc (the_low_target): Ditto.
1179 * linux-sh-low.cc (the_low_target): Ditto.
1180 * linux-tic6x-low.cc (the_low_target): Ditto.
1181 * linux-tile-low.cc (the_low_target): Ditto.
1182 * linux-xtensa-low.cc (the_low_target): Ditto.
1184 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1186 Turn the 'siginfo_fixup' linux target op into a method of
1187 linux_process_target.
1189 * linux-low.h (struct linux_target_ops): Remove the op.
1190 (class linux_process_target) <siginfo_fixup>
1191 <low_siginfo_fixup>: Declare.
1192 * linux-low.cc (siginfo_fixup): Turn into...
1193 (linux_process_target::siginfo_fixup): ...this.
1194 (linux_process_target::low_siginfo_fixup): Define.
1195 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1196 (x86_siginfo_fixup): Turn into...
1197 (x86_target::low_siginfo_fixup): ...this.
1198 (the_low_target): Remove the op field.
1199 * linux-aarch64-low.cc (class aarch64_target):
1200 <low_siginfo_fixup>: Declare.
1201 (aarch64_linux_siginfo_fixup): Turn into...
1202 (aarch64_target::low_siginfo_fixup): ...this.
1203 (the_low_target): Remove the op field.
1204 * linux-arm-low.cc (the_low_target): Remove the op field.
1205 * linux-bfin-low.cc (the_low_target): Ditto.
1206 * linux-crisv32-low.cc (the_low_target): Ditto.
1207 * linux-m32r-low.cc (the_low_target): Ditto.
1208 * linux-m68k-low.cc (the_low_target): Ditto.
1209 * linux-mips-low.cc (the_low_target): Ditto.
1210 * linux-ppc-low.cc (the_low_target): Ditto.
1211 * linux-s390-low.cc (the_low_target): Ditto.
1212 * linux-sh-low.cc (the_low_target): Ditto.
1213 * linux-tic6x-low.cc (the_low_target): Ditto.
1214 * linux-tile-low.cc (the_low_target): Ditto.
1215 * linux-xtensa-low.cc (the_low_target): Ditto.
1217 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1219 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1220 linux target ops into methods of linux_process_target.
1222 * linux-low.h (struct linux_target_ops): Remove the ops.
1223 (class linux_process_target) <low_collect_ptrace_register>
1224 <low_store_ptrace_register>: Declare.
1225 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1226 (linux_process_target::low_supply_ptrace_register): Define.
1228 Update the callers below.
1230 (linux_process_target::fetch_register)
1231 (linux_process_target::store_register)
1233 * linux-x86-low.cc (the_low_target): Remove the op fields.
1234 * linux-aarch64-low.cc (the_low_target): Ditto.
1235 * linux-arm-low.cc (the_low_target): Ditto.
1236 * linux-bfin-low.cc (the_low_target): Ditto.
1237 * linux-crisv32-low.cc (the_low_target): Ditto.
1238 * linux-m32r-low.cc (the_low_target): Ditto.
1239 * linux-m68k-low.cc (the_low_target): Ditto.
1240 * linux-sh-low.cc (the_low_target): Ditto.
1241 * linux-sparc-low.cc (the_low_target): Ditto.
1242 * linux-tic6x-low.cc (the_low_target): Ditto.
1243 * linux-tile-low.cc (the_low_target): Ditto.
1244 * linux-xtensa-low.cc (the_low_target): Ditto.
1245 * linux-mips-low.cc (class mips_target)
1246 <low_collect_ptrace_register>
1247 <low_supply_ptrace_register>: Declare.
1248 (mips_collect_ptrace_register): Turn into ...
1249 (mips_target::low_collect_ptrace_register): ...this.
1250 (mips_supply_ptrace_register): Turn into...
1251 (mips_target::low_supply_ptrace_register): ...this.
1252 (the_low_target): Remove the op fields.
1253 * linux-ppc-low.cc (class ppc_target)
1254 <low_collect_ptrace_register>
1255 <low_supply_ptrace_register>: Declare.
1256 (ppc_collect_ptrace_register): Turn into ...
1257 (ppc_target::low_collect_ptrace_register): ...this.
1258 (ppc_supply_ptrace_register): Turn into ...
1259 (ppc_target::low_supply_ptrace_register): ...this.
1260 (ppc_fill_gregset): Update for the calls to
1261 low_collect_ptrace_register.
1262 (the_low_target): Remove the op fields.
1263 * linux-s390-low.cc (class s390_target)
1264 <low_collect_ptrace_register>
1265 <low_supply_ptrace_register>: Declare.
1266 (s390_collect_ptrace_register): Turn into ...
1267 (s390_target::low_collect_ptrace_register): ...this.
1268 (s390_supply_ptrace_register): Turn into ...
1269 (s390_target::low_supply_ptrace_register): ...this.
1270 (s390_fill_gregset): Update for the calls to
1271 low_collect_ptrace_register.
1272 (the_low_target): Remove the op fields.
1274 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1276 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1277 target ops into methods of linux_process_target.
1279 * linux-low.h (struct linux_target_ops): Remove the ops.
1280 (class linux_process_target) <check_stopped_by_watchpoint>
1281 <low_stopped_by_watchpoint>
1282 <low_stopped_data_address>: Declare.
1283 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1284 (linux_process_target::check_stopped_by_watchpoint): ...this.
1285 (linux_process_target::low_stopped_by_watchpoint): Define.
1286 (linux_process_target::low_stopped_data_address): Define.
1287 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1288 <low_stopped_data_address>: Declare.
1289 (x86_stopped_by_watchpoint): Turn into...
1290 (x86_target::low_stopped_by_watchpoint): ...this.
1291 (x86_stopped_data_address): Turn into...
1292 (x86_target::low_stopped_data_address): ...this.
1293 (the_low_target): Remove the op fields.
1294 * linux-aarch64-low.cc (class aarch64_target)
1295 <low_stopped_by_watchpoint>
1296 <low_stopped_data_address>: Declare.
1297 (aarch64_stopped_by_watchpoint): Turn into...
1298 (aarch64_target::low_stopped_by_watchpoint): ...this.
1299 (aarch64_stopped_data_address): Turn into...
1300 (aarch64_target::low_stopped_data_address): ...this.
1301 (the_low_target): Remove the op fields.
1302 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1303 <low_stopped_data_address>: Declare.
1304 (arm_stopped_by_watchpoint): Turn into...
1305 (arm_target::low_stopped_by_watchpoint): ...this.
1306 (arm_stopped_data_address): Turn into...
1307 (arm_target::low_stopped_data_address): ...this.
1308 (the_low_target): Remove the op fields.
1309 * linux-crisv32-low.cc (class crisv32_target)
1310 <low_stopped_by_watchpoint>
1311 <low_stopped_data_address>: Declare.
1312 (cris_stopped_by_watchpoint): Turn into...
1313 (crisv32_target::low_stopped_by_watchpoint): ...this.
1314 (cris_stopped_data_address): Turn into...
1315 (crisv32_target::low_stopped_data_address): ...this.
1316 (the_low_target): Remove the op fields.
1317 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1318 <low_stopped_data_address>: Declare.
1319 (mips_stopped_by_watchpoint): Turn into...
1320 (mips_target::low_stopped_by_watchpoint): ...this.
1321 (mips_stopped_data_address): Turn into...
1322 (mips_target::low_stopped_data_address): ...this.
1323 (the_low_target): Remove the op fields.
1324 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1325 * linux-m32r-low.cc (the_low_target): Ditto.
1326 * linux-m68k-low.cc (the_low_target): Ditto.
1327 * linux-ppc-low.cc (the_low_target): Ditto.
1328 * linux-s390-low.cc (the_low_target): Ditto.
1329 * linux-sh-low.cc (the_low_target): Ditto.
1330 * linux-sparc-low.cc (the_low_target): Ditto.
1331 * linux-tic6x-low.cc (the_low_target): Ditto.
1332 * linux-tile-low.cc (the_low_target): Ditto.
1333 * linux-xtensa-low.cc (the_low_target): Ditto.
1335 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1337 Turn the 'insert_point' and 'remove_point' linux target ops into
1338 methods of linux_process_target.
1340 * linux-low.h (struct linux_target_ops): Remove the ops.
1341 (class linux_process_target) <low_insert_point>
1342 <low_remove_point>: Declare.
1343 * linux-low.cc (linux_process_target::low_insert_point)
1344 (linux_process_target::low_remove_point): Define.
1345 (linux_process_target::insert_point)
1346 (linux_process_target::remove_point): Update for calls to
1347 low_insert_point and low_remove_point.
1348 * linux-x86-low.cc (class x86_target) <low_insert_point>
1349 <low_remove_point>: Declare.
1350 (x86_insert_point): Turn into...
1351 (x86_target::low_insert_point): ...this.
1352 (x86_remove_point): Turn into...
1353 (x86_target::low_remove_point): ...this.
1354 (the_low_target): Remove the op fields.
1355 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1356 <low_remove_point>: Declare.
1357 (aarch64_insert_point): Turn into...
1358 (aarch64_target::low_insert_point): ...this.
1359 (aarch64_remove_point): Turn into...
1360 (aarch64_target::low_remove_point): ...this.
1361 (the_low_target): Remove the op fields.
1362 * linux-arm-low.cc (class arm_target) <low_insert_point>
1363 <low_remove_point>: Declare.
1364 (arm_insert_point): Turn into...
1365 (arm_target::low_insert_point): ...this.
1366 (arm_remove_point): Turn into...
1367 (arm_target::low_remove_point): ...this.
1368 (the_low_target): Remove the op fields.
1369 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1370 <low_remove_point>: Declare.
1371 (crisv32_insert_point): Turn into...
1372 (crisv32_target::low_insert_point): ...this.
1373 (crisv32_remove_point): Turn into...
1374 (crisv32_target::low_remove_point): ...this.
1375 (the_low_target): Remove the op fields.
1376 * linux-mips-low.cc (class mips_target) <low_insert_point>
1377 <low_remove_point>: Declare.
1378 (mips_insert_point): Turn into...
1379 (mips_target::low_insert_point): ...this.
1380 (mips_remove_point): Turn into...
1381 (mips_target::low_remove_point): ...this.
1382 (the_low_target): Remove the op fields.
1383 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1384 <low_remove_point>: Declare.
1385 (ppc_insert_point): Turn into...
1386 (ppc_target::low_insert_point): ...this.
1387 (ppc_remove_point): Turn into...
1388 (ppc_target::low_remove_point): ...this.
1389 (the_low_target): Remove the op fields.
1390 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1391 * linux-m32r-low.cc (the_low_target): Ditto.
1392 * linux-m68k-low.cc (the_low_target): Ditto.
1393 * linux-s390-low.cc (the_low_target): Ditto.
1394 * linux-sh-low.cc (the_low_target): Ditto.
1395 * linux-sparc-low.cc (the_low_target): Ditto.
1396 * linux-tic6x-low.cc (the_low_target): Ditto.
1397 * linux-tile-low.cc (the_low_target): Ditto.
1398 * linux-xtensa-low.cc (the_low_target): Ditto.
1400 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1402 Remove the 'supports_z_point_type' linux target op and let the
1403 concrete linux target define it by overriding the op declared in
1404 process_stratum_target.
1406 * linux-low.cc (linux_process_target::supports_z_point_type):
1408 * linux-low.h (struct linux_target_ops): Remove the op.
1409 (class linux_process_target) <supports_z_point_type>: Remove.
1410 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1412 (x86_supports_z_point_type): Turn into...
1413 (x86_target::supports_z_point_type): ...this.
1414 (the_low_target): Remove the op field.
1415 * linux-aarch64-low.cc (class aarch64_target)
1416 <supports_z_point_type>: Declare.
1417 (aarch64_supports_z_point_type): Turn into...
1418 (aarch64_target::supports_z_point_type): ...this.
1419 (the_low_target): Remove the op field.
1420 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1422 (arm_supports_z_point_type): Turn into...
1423 (arm_target::supports_z_point_type): ...this.
1424 (the_low_target): Remove the op field.
1425 * linux-crisv32-low.cc (class crisv32_target)
1426 <supports_z_point_type>: Declare.
1427 (cris_supports_z_point_type): Turn into...
1428 (crisv32_target::supports_z_point_type): ...this.
1429 (the_low_target): Remove the op field.
1430 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1432 (mips_supports_z_point_type): Turn into...
1433 (mips_target::supports_z_point_type): ...this.
1434 (the_low_target): Remove the op field.
1435 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1437 (ppc_supports_z_point_type): Turn into...
1438 (ppc_target::supports_z_point_type): ...this.
1439 (the_low_target): Remove the op field.
1440 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1442 (s390_supports_z_point_type): Turn into...
1443 (s390_target::supports_z_point_type): ...this.
1444 (the_low_target): Remove the op field.
1445 * linux-bfin-low.cc (the_low_target): Remove the op field.
1446 * linux-m32r-low.cc (the_low_target): Ditto.
1447 * linux-m68k-low.cc (the_low_target): Ditto.
1448 * linux-sh-low.cc (the_low_target): Ditto.
1449 * linux-sparc-low.cc (the_low_target): Ditto.
1450 * linux-tic6x-low.cc (the_low_target): Ditto.
1451 * linux-tile-low.cc (the_low_target): Ditto.
1452 * linux-xtensa-low.cc (the_low_target): Ditto.
1454 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1456 Turn the 'breakpoint_at' linux target op into a method of
1457 linux_process_target.
1459 * linux-low.h (struct linux_target_ops): Remove the op.
1460 (class linux_process_target) <low_breakpoint_at>: Declare.
1462 Update the callers below:
1464 * linux-low.cc (linux_process_target::save_stop_reason)
1465 (linux_process_target::thread_still_has_status_pending)
1466 (linux_process_target::wait_1)
1468 * linux-x86-low.cc (class x86_target)
1469 <low_breakpoint_at>: Declare.
1470 (x86_breakpoint_at): Turn into...
1471 (x86_target::low_breakpoint_at): ...this.
1472 (the_low_target): Remove the op field.
1473 * linux-aarch64-low.cc (class aarch64_target)
1474 <low_breakpoint_at>: Declare.
1475 (aarch64_breakpoint_at): Turn into...
1476 (aarch64_target::low_breakpoint_at): ...this.
1477 (the_low_target): Remove the op field.
1478 * linux-arm-low.cc (class arm_target)
1479 <low_breakpoint_at>: Declare.
1480 (arm_target::low_breakpoint_at): Define.
1481 (the_low_target): Remove the op field.
1482 * linux-bfin-low.cc (class bfin_target)
1483 <low_breakpoint_at>: Declare.
1484 (bfin_breakpoint_at): Turn into...
1485 (bfin_target::low_breakpoint_at): ...this.
1486 (the_low_target): Remove the op field.
1487 * linux-cris-low.cc (class cris_target)
1488 <low_breakpoint_at>: Declare.
1489 (cris_breakpoint_at): Turn into...
1490 (cris_target::low_breakpoint_at): ...this.
1491 (the_low_target): Remove the op field.
1492 * linux-crisv32-low.cc (class crisv32_target)
1493 <low_breakpoint_at>: Declare.
1494 (crisv32_breakpoint_at): Turn into...
1495 (crisv32_target::low_breakpoint_at): ...this.
1496 (the_low_target): Remove the op field.
1497 * linux-ia64-low.cc (class ia64_target)
1498 <low_breakpoint_at>: Declare.
1499 (ia64_target::low_breakpoint_at): Define.
1500 * linux-m32r-low.cc (class m32r_target)
1501 <low_breakpoint_at>: Declare.
1502 (m32r_breakpoint_at): Turn into...
1503 (m32r_target::low_breakpoint_at): ...this.
1504 (the_low_target): Remove the op field.
1505 * linux-m68k-low.cc (class m68k_target)
1506 <low_breakpoint_at>: Declare.
1507 (m68k_breakpoint_at): Turn into...
1508 (m68k_target::low_breakpoint_at): ...this.
1509 (the_low_target): Remove the op field.
1510 * linux-mips-low.cc (class mips_target)
1511 <low_breakpoint_at>: Declare.
1512 (mips_breakpoint_at): Turn into...
1513 (mips_target::low_breakpoint_at): ...this.
1514 (the_low_target): Remove the op field.
1515 * linux-nios2-low.cc (class nios2_target)
1516 <low_breakpoint_at>: Declare.
1517 (nios2_breakpoint_at): Turn into...
1518 (nios2_target::low_breakpoint_at): ...this.
1519 (the_low_target): Remove the op field.
1520 * linux-ppc-low.cc (class ppc_target)
1521 <low_breakpoint_at>: Declare.
1522 (ppc_breakpoint_at): Turn into...
1523 (ppc_target::low_breakpoint_at): ...this.
1524 (the_low_target): Remove the op field.
1525 * linux-riscv-low.cc (class riscv_target)
1526 <low_breakpoint_at>: Declare.
1527 (riscv_breakpoint_at): Turn into...
1528 (riscv_target::low_breakpoint_at): ...this.
1529 (the_low_target): Remove the op field.
1530 * linux-s390-low.cc (class s390_target)
1531 <low_breakpoint_at>: Declare.
1532 (s390_breakpoint_at): Turn into...
1533 (s390_target::low_breakpoint_at): ...this.
1534 (the_low_target): Remove the op field.
1535 * linux-sh-low.cc (class sh_target)
1536 <low_breakpoint_at>: Declare.
1537 (sh_breakpoint_at): Turn into...
1538 (sh_target::low_breakpoint_at): ...this.
1539 (the_low_target): Remove the op field.
1540 * linux-sparc-low.cc (class sparc_target)
1541 <low_breakpoint_at>: Declare.
1542 (sparc_breakpoint_at): Turn into...
1543 (sparc_target::low_breakpoint_at): ...this.
1544 (the_low_target): Remove the op field.
1545 * linux-tic6x-low.cc (class tic6x_target)
1546 <low_breakpoint_at>: Declare.
1547 (tic6x_breakpoint_at): Turn into...
1548 (tic6x_target::low_breakpoint_at): ...this.
1549 (the_low_target): Remove the op field.
1550 * linux-tile-low.cc (class tile_target)
1551 <low_breakpoint_at>: Declare.
1552 (tile_breakpoint_at): Turn into...
1553 (tile_target::low_breakpoint_at): ...this.
1554 (the_low_target): Remove the op field.
1555 * linux-xtensa-low.cc (class xtensa_target)
1556 <low_breakpoint_at>: Declare.
1557 (xtensa_breakpoint_at): Turn into...
1558 (xtensa_target::low_breakpoint_at): ...this.
1559 (the_low_target): Remove the op field.
1561 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1563 Turn the 'decr_pc_after_break' linux_target_ops field into
1564 a method of linux_process_target.
1566 * linux-low.h (struct linux_target_ops)
1567 <decr_pc_after_break>: Remove.
1568 (class linux_process_target) <low_decr_pc_after_break>: New method
1570 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1571 New method implementation.
1573 Update the users below.
1575 (linux_process_target::save_stop_reason)
1576 (linux_process_target::wait_1)
1577 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1579 (x86_target::low_decr_pc_after_break): New method implementation.
1580 (the_low_target): Remove the field.
1581 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1583 (bfin_target::low_decr_pc_after_break): New method implementation.
1584 (the_low_target): Remove the field.
1585 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1587 (m68k_target::low_decr_pc_after_break): New method implementation.
1588 (the_low_target): Remove the field.
1589 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1591 (s390_target::low_decr_pc_after_break): New method implementation.
1592 (the_low_target): Remove the field.
1593 * linux-aarch64-low.cc (the_low_target): Remove the field.
1594 * linux-arm-low.cc (the_low_target): Remove the field.
1595 * linux-cris-low.cc (the_low_target): Remove the field.
1596 * linux-crisv32-low.cc (the_low_target): Remove the field.
1597 * linux-m32r-low.cc (the_low_target): Remove the field.
1598 * linux-mips-low.cc (the_low_target): Remove the field.
1599 * linux-nios2-low.cc (the_low_target): Remove the field.
1600 * linux-ppc-low.cc (the_low_target): Remove the field.
1601 * linux-riscv-low.cc (the_low_target): Remove the field.
1602 * linux-sh-low.cc (the_low_target): Remove the field.
1603 * linux-sparc-low.cc (the_low_target): Remove the field.
1604 * linux-tic6x-low.cc (the_low_target): Remove the field.
1605 * linux-tile-low.cc (the_low_target): Remove the field.
1606 * linux-xtensa-low.cc (the_low_target): Remove the field.
1608 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1610 Remove the 'supports_software_single_step' linux target op and let
1611 the concrete linux target define it by overriding the op in
1612 process_stratum_target.
1613 Turn the 'get_next_pcs' linux target op into a method of
1614 linux_process_target.
1616 * linux-low.h (struct linux_target_ops): Remove the ops.
1617 (class linux_process_target) <supports_software_single_step>:
1619 <low_get_next_pcs>: Declare.
1620 * linux-low.cc (can_software_single_step): Remove.
1621 (linux_process_target::low_get_next_pcs): Define.
1622 (linux_process_target::supports_software_single_step): Remove.
1624 Update the callers below.
1626 (linux_process_target::handle_extended_wait)
1627 (linux_process_target::wait_1)
1628 (linux_process_target::install_software_single_step_breakpoints)
1629 (linux_process_target::single_step)
1630 (linux_process_target::thread_needs_step_over)
1631 (linux_process_target::proceed_one_lwp)
1632 (linux_process_target::supports_range_stepping)
1634 * linux-x86-low.cc (the_low_target): Remove the op field.
1635 * linux-aarch64-low.cc (the_low_target): Ditto.
1636 * linux-bfin-low.cc (the_low_target): Ditto.
1637 * linux-cris-low.cc (the_low_target): Ditto.
1638 * linux-crisv32-low.cc (the_low_target): Ditto.
1639 * linux-m32r-low.cc (the_low_target): Ditto.
1640 * linux-m68k-low.cc (the_low_target): Ditto.
1641 * linux-mips-low.cc (the_low_target): Ditto.
1642 * linux-nios2-low.cc (the_low_target): Ditto.
1643 * linux-ppc-low.cc (the_low_target): Ditto.
1644 * linux-riscv-low.cc (the_low_target): Ditto.
1645 * linux-s390-low.cc (the_low_target): Ditto.
1646 * linux-sh-low.cc (the_low_target): Ditto.
1647 * linux-sparc-low.cc (the_low_target): Ditto.
1648 * linux-tic6x-low.cc (the_low_target): Ditto.
1649 * linux-tile-low.cc (the_low_target): Ditto.
1650 * linux-xtensa-low.cc (the_low_target): Ditto.
1651 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1652 <supports_software_single_step>: Declare.
1653 (arm_target::supports_software_single_step): Define.
1654 (arm_gdbserver_get_next_pcs): Turn into...
1655 (arm_target::low_get_next_pcs): ...this.
1656 (the_low_target): Remove the op field.
1658 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1660 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1661 the concrete linux target define it by overriding the op
1662 in process_stratum_target.
1664 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1666 * linux-low.h (struct linux_target_ops): Remove the op.
1667 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1668 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1670 (x86_sw_breakpoint_from_kind): Turn into...
1671 (x86_target::sw_breakpoint_from_kind): ...this.
1672 (the_low_target): Remove the op field.
1673 * linux-aarch64-low.cc (class aarch64_target)
1674 <sw_breakpoint_from_kind>: Declare.
1675 (aarch64_sw_breakpoint_from_kind): Turn into...
1676 (aarch64_target::sw_breakpoint_from_kind): ...this.
1677 (the_low_target): Remove the op field.
1678 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1680 (arm_target::sw_breakpoint_from_kind): Define.
1681 (the_low_target): Remove the op field.
1682 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1684 (bfin_sw_breakpoint_from_kind): Turn into...
1685 (bfin_target::sw_breakpoint_from_kind): ...this.
1686 (the_low_target): Remove the op field.
1687 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1689 (cris_sw_breakpoint_from_kind): Turn into...
1690 (cris_target::sw_breakpoint_from_kind): ...this.
1691 (the_low_target): Remove the op field.
1692 * linux-crisv32-low.cc (class crisv32_target)
1693 <sw_breakpoint_from_kind>: Declare.
1694 (cris_sw_breakpoint_from_kind): Turn into...
1695 (crisv32_target::sw_breakpoint_from_kind): ...this.
1696 (the_low_target): Remove the op field.
1697 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1699 (ia64_target::sw_breakpoint_from_kind): Define.
1700 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1702 (m32r_sw_breakpoint_from_kind): Turn into...
1703 (m32r_target::sw_breakpoint_from_kind): ...this.
1704 (the_low_target): Remove the op field.
1705 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1707 (m68k_sw_breakpoint_from_kind): Turn into...
1708 (m68k_target::sw_breakpoint_from_kind): ...this.
1709 (the_low_target): Remove the op field.
1710 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1712 (mips_sw_breakpoint_from_kind): Turn into...
1713 (mips_target::sw_breakpoint_from_kind): ...this.
1714 (the_low_target): Remove the op field.
1715 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1717 (nios2_sw_breakpoint_from_kind): Turn into...
1718 (nios2_target::sw_breakpoint_from_kind): ...this.
1719 (the_low_target): Remove the op field.
1720 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1722 (ppc_sw_breakpoint_from_kind): Turn into...
1723 (ppc_target::sw_breakpoint_from_kind): ...this.
1724 (the_low_target): Remove the op field.
1725 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1727 (riscv_sw_breakpoint_from_kind): Turn into...
1728 (riscv_target::sw_breakpoint_from_kind): ...this.
1729 (the_low_target): Remove the op field.
1730 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1732 (s390_sw_breakpoint_from_kind): Turn into...
1733 (s390_target::sw_breakpoint_from_kind): ...this.
1734 (the_low_target): Remove the op field.
1735 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1737 (sh_sw_breakpoint_from_kind): Turn into...
1738 (sh_target::sw_breakpoint_from_kind): ...this.
1739 (the_low_target): Remove the op field.
1740 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1742 (sparc_sw_breakpoint_from_kind): Turn into...
1743 (sparc_target::sw_breakpoint_from_kind): ...this.
1744 (the_low_target): Remove the op field.
1745 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1747 (tic6x_sw_breakpoint_from_kind): Turn into...
1748 (tic6x_target::sw_breakpoint_from_kind): ...this.
1749 (the_low_target): Remove the op field.
1750 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1752 (tile_sw_breakpoint_from_kind): Turn into...
1753 (tile_target::sw_breakpoint_from_kind): ...this.
1754 (the_low_target): Remove the op field.
1755 * linux-xtensa-low.cc (class xtensa_target)
1756 <sw_breakpoint_from_kind>: Declare.
1757 (xtensa_sw_breakpoint_from_kind): Turn into...
1758 (xtensa_target::sw_breakpoint_from_kind): ...this.
1759 (the_low_target): Remove the op field.
1761 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1763 Remove the 'breakpoint_kind_from_pc' and
1764 'breakpoint_kind_from_current_state' linux target ops, and let the
1765 concrete linux target define them by overriding the ops of
1766 process_stratum_target.
1768 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1770 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1771 * linux-low.h (struct linux_target_ops): Remove ops.
1772 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1773 <breakpoint_kind_from_current_state>: Remove.
1774 * linux-x86-low.cc (the_low_target): Remove the op fields.
1775 * linux-bfin-low.cc (the_low_target): Ditto.
1776 * linux-cris-low.cc (the_low_target): Ditto.
1777 * linux-crisv32-low.cc (the_low_target): Ditto.
1778 * linux-m32r-low.cc (the_low_target): Ditto.
1779 * linux-m68k-low.cc (the_low_target): Ditto.
1780 * linux-mips-low.cc (the_low_target): Ditto.
1781 * linux-nios2-low.cc (the_low_target): Ditto.
1782 * linux-ppc-low.cc (the_low_target): Ditto.
1783 * linux-s390-low.cc (the_low_target): Ditto.
1784 * linux-sh-low.cc (the_low_target): Ditto.
1785 * linux-sparc-low.cc (the_low_target): Ditto.
1786 * linux-tic6x-low.cc (the_low_target): Ditto.
1787 * linux-tile-low.cc (the_low_target): Ditto.
1788 * linux-xtensa-low.cc (the_low_target): Ditto.
1789 * linux-aarch64-low.cc (class aarch64_target)
1790 <breakpoint_kind_from_pc>
1791 <breakpoint_kind_from_current_state>: Declare.
1792 (aarch64_breakpoint_kind_from_pc): Turn into...
1793 (aarch64_target::breakpoint_kind_from_pc): ...this.
1794 (aarch64_breakpoint_kind_from_current_state): Turn into...
1795 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1796 (the_low_target): Remove the op fields.
1797 * linux-arm-low.cc (class arm_target):
1798 <breakpoint_kind_from_pc>
1799 <breakpoint_kind_from_current_state>: Declare.
1800 (arm_target::breakpoint_kind_from_pc): Define.
1801 (arm_target::breakpoint_kind_from_current_state): Define.
1802 (the_low_target): Remove the op fields.
1803 * linux-riscv-low.cc (class riscv_target):
1804 <breakpoint_kind_from_pc>: Declare.
1805 (riscv_breakpoint_kind_from_pc): Turn into...
1806 (riscv_target::breakpoint_kind_from_pc): ...this.
1807 (the_low_target): Remove the op fields.
1809 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1811 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1812 of linux_process_target.
1814 * linux-low.h (struct linux_target_ops): Remove the ops.
1815 (class linux_process_target) <low_supports_breakpoints>
1817 <low_set_pc>: Declare.
1818 * linux-low.cc (supports_breakpoints): Turn into...
1819 (linux_process_target::low_supports_breakpoints): ...this.
1820 (linux_process_target::low_get_pc): Define.
1821 (linux_process_target::low_set_pc): Define.
1823 Update the callers below.
1825 (linux_process_target::get_pc)
1826 (linux_process_target::save_stop_reason)
1827 (linux_process_target::maybe_move_out_of_jump_pad)
1828 (linux_process_target::wait_1)
1829 (linux_process_target::resume_one_lwp_throw)
1830 (linux_process_target::resume)
1831 (linux_process_target::proceed_all_lwps)
1832 (linux_process_target::read_pc)
1833 (linux_process_target::write_pc)
1835 * linux-x86-low.cc (class linux_process_target)
1836 <low_supports_breakpoints>
1838 <low_set_pc>: Declare.
1839 (x86_target::low_supports_breakpoints): Define.
1840 (x86_get_pc): Turn into...
1841 (x86_target::low_get_pc): ...this.
1842 (x86_set_pc): Turn into...
1843 (x86_target::low_set_pc): ...this.
1844 (the_low_target): Remove the op fields.
1845 * linux-arm-low.cc (class arm_target)
1846 <low_supports_breakpoints>
1848 <low_set_pc>: Declare.
1849 (arm_target::low_supports_breakpoints)
1850 (arm_target::low_get_pc)
1851 (arm_target::low_set_pc): Define.
1852 (the_low_target): Remove the op fields.
1853 * linux-bfin-low.cc (class bfin_target)
1854 <low_supports_breakpoints>
1856 <low_set_pc>: Declare.
1857 (bfin_target::low_supports_breakpoints)
1858 (bfin_target::low_get_pc)
1859 (bfin_target::low_set_pc): Define.
1860 (the_low_target): Remove the op fields.
1861 * linux-cris-low.cc (class cris_target)
1862 <low_supports_breakpoints>
1864 <low_set_pc>: Declare.
1865 (cris_target::low_supports_breakpoints)
1866 (cris_target::low_get_pc)
1867 (cris_target::low_set_pc): Define.
1868 (the_low_target): Remove the op fields.
1869 * linux-crisv32-low.cc (class crisv32_target)
1870 <low_supports_breakpoints>
1872 <low_set_pc>: Declare.
1873 (crisv32_target::low_supports_breakpoints)
1874 (crisv32_target::low_get_pc)
1875 (crisv32_target::low_set_pc): Define.
1876 (the_low_target): Remove the op fields.
1877 * linux-m32r-low.cc (class m32r_target)
1878 <low_supports_breakpoints>
1880 <low_set_pc>: Declare.
1881 (m32r_target::low_supports_breakpoints)
1882 (m32r_target::low_get_pc)
1883 (m32r_target::low_set_pc): Define.
1884 (the_low_target): Remove the op fields.
1885 * linux-m68k-low.cc (class m68k_target)
1886 <low_supports_breakpoints>
1888 <low_set_pc>: Declare.
1889 (m68k_target::low_supports_breakpoints)
1890 (m68k_target::low_get_pc)
1891 (m68k_target::low_set_pc): Define.
1892 (the_low_target): Remove the op fields.
1893 * linux-nios2-low.cc (class nios2_target)
1894 <low_supports_breakpoints>
1896 <low_set_pc>: Declare.
1897 (nios2_target::low_supports_breakpoints)
1898 (nios2_target::low_get_pc)
1899 (nios2_target::low_set_pc): Define.
1900 (the_low_target): Remove the op fields.
1901 * linux-sh-low.cc (class sh_target)
1902 <low_supports_breakpoints>
1904 <low_set_pc>: Declare.
1905 (sh_target::low_supports_breakpoints)
1906 (sh_target::low_get_pc)
1907 (sh_target::low_set_pc): Define.
1908 (the_low_target): Remove the op fields.
1909 * linux-xtensa-low.cc (class xtensa_target)
1910 <low_supports_breakpoints>
1912 <low_set_pc>: Declare.
1913 (xtensa_target::low_supports_breakpoints)
1914 (xtensa_target::low_get_pc)
1915 (xtensa_target::low_set_pc): Define.
1916 (the_low_target): Remove the op fields.
1917 * linux-sparc-low.cc (class sparc_target)
1918 <low_supports_breakpoints>
1919 <low_get_pc>: Declare.
1920 (sparc_target::low_supports_breakpoints)
1921 (sparc_target::low_get_pc): Define.
1922 (the_low_target): Remove the op fields.
1923 * linux-tile-low.cc (class tile_target)
1924 <low_supports_breakpoints>
1926 <low_set_pc>: Declare.
1927 (tile_target::low_supports_breakpoints)
1928 (tile_target::low_get_pc)
1929 (tile_target::low_set_pc): Define.
1930 (the_low_target): Remove the op fields.
1931 * linux-aarch64-low.cc (class aarch64_target)
1932 <low_supports_breakpoints>
1934 <low_set_pc>: Declare.
1935 (aarch64_target::low_supports_breakpoints): Define.
1936 (aarch64_get_pc): Turn into...
1937 (aarch64_target::low_get_pc): ...this.
1938 (aarch64_set_pc): Turn into...
1939 (aarch64_target::low_set_pc): ...this.
1940 (the_low_target): Remove the op fields.
1941 * linux-mips-low.cc (class mips_target)
1942 <low_supports_breakpoints>
1944 <low_set_pc>: Declare.
1945 (mips_target::low_supports_breakpoints): Define.
1946 (mips_get_pc): Turn into...
1947 (mips_target::low_get_pc): ...this.
1948 (mips_set_pc): Turn into...
1949 (mips_target::low_set_pc): ...this.
1950 (the_low_target): Remove the op fields.
1951 * linux-ppc-low.cc (class ppc_target)
1952 <low_supports_breakpoints>
1954 <low_set_pc>: Declare.
1955 (ppc_target::low_supports_breakpoints): Define.
1956 (ppc_get_pc): Turn into...
1957 (ppc_target::low_get_pc): ...this.
1958 (ppc_set_pc): Turn into...
1959 (ppc_target::low_set_pc): ...this.
1960 (the_low_target): Remove the op fields.
1961 * linux-riscv-low.cc (class riscv_target)
1962 <low_supports_breakpoints>
1964 <low_set_pc>: Declare.
1965 (riscv_target::low_supports_breakpoints): Define.
1966 (riscv_get_pc): Turn into...
1967 (riscv_target::low_get_pc): ...this.
1968 (riscv_set_pc): Turn into...
1969 (riscv_target::low_set_pc): ...this.
1970 (the_low_target): Remove the op fields.
1971 * linux-s390-low.cc (class s390_target)
1972 <low_supports_breakpoints>
1974 <low_set_pc>: Declare.
1975 (s390_target::low_supports_breakpoints): Define.
1976 (s390_get_pc): Turn into...
1977 (s390_target::low_get_pc): ...this.
1978 (s390_set_pc): Turn into...
1979 (s390_target::low_set_pc): ...this.
1980 (the_low_target): Remove the op fields.
1981 * linux-tic6x-low.cc (class tic6x_target)
1982 <low_supports_breakpoints>
1984 <low_set_pc>: Declare.
1985 (tic6x_target::low_supports_breakpoints): Define.
1986 (tic6x_get_pc): Turn into...
1987 (tic6x_target::low_get_pc): ...this.
1988 (tic6x_set_pc): Turn into...
1989 (tic6x_target::low_set_pc): ...this.
1990 (the_low_target): Remove the op fields.
1992 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1994 Turn some more static methods in linux-low into private methods
1995 of linux_process_target.
1997 * linux-low.cc (get_pc): Turn into...
1998 (linux_process_target::get_pc): ...this.
1999 (save_stop_reason): Turn into...
2000 (linux_process_target::save_stop_reason): ...this.
2001 (thread_still_has_status_pending_p): Turn into...
2002 (linux_process_target::thread_still_has_status_pending): ...this.
2003 (status_pending_p_callback): Turn into...
2004 (linux_process_target::status_pending_p_callback): ...this.
2005 (resume_stopped_resumed_lwps): Turn into...
2006 (linux_process_target::resume_stopped_resumed_lwps): ...this.
2007 (install_software_single_step_breakpoints): Turn into...
2008 (linux_process_target::install_software_single_step_breakpoints):
2010 (single_step): Turn into...
2011 (linux_process_target::single_step): ...this.
2012 (linux_resume_one_lwp_throw): Turn into...
2013 (linux_process_target::resume_one_lwp_throw): ...this.
2014 (linux_resume_one_lwp): Turn into...
2015 (linux_process_target::resume_one_lwp): ...this.
2016 (resume_status_pending_p): Turn into...
2017 (linux_process_target::resume_status_pending): ...this.
2018 (need_step_over_p): Turn into...
2019 (linux_process_target::thread_needs_step_over): ...this.
2020 (linux_resume_one_thread): Turn into...
2021 (linux_process_target::resume_one_thread): ...this.
2022 (proceed_one_lwp): Turn into...
2023 (linux_process_target::proceed_one_lwp): ...this.
2024 (unsuspend_and_proceed_one_lwp): Turn into...
2025 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
2027 Update the calls/references to the above functions below.
2029 (linux_process_target::handle_extended_wait)
2030 (linux_process_target::filter_event)
2031 (linux_process_target::wait_for_event_filtered)
2032 (linux_process_target::wait_1)
2033 (linux_process_target::move_out_of_jump_pad)
2034 (linux_process_target::start_step_over)
2035 (linux_process_target::resume)
2036 (linux_process_target::proceed_all_lwps)
2037 (regsets_store_inferior_registers)
2038 (linux_process_target::store_register)
2040 * linux-low.h (class linux_process_target)
2043 <thread_still_has_status_pending>
2044 <status_pending_p_callback>
2045 <resume_stopped_resumed_lwps>
2046 <install_software_single_step_breakpoints>
2048 <resume_one_lwp_throw>
2050 <resume_status_pending>
2051 <thread_needs_step_over>
2054 <unsuspend_and_proceed_one_lwp>: Declare.
2056 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2058 Turn the 'fetch_register' linux target op into a method of
2059 linux_process_target.
2061 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
2062 (class linux_process_target) <low_fetch_register>: Declare.
2063 * linux-x86-low.cc (the_low_target)
2064 * linux-aarch64-low.cc (the_low_target)
2065 * linux-arm-low.cc (the_low_target)
2066 * linux-bfin-low.cc (the_low_target)
2067 * linux-cris-low.cc (the_low_target)
2068 * linux-crisv32-low.cc (the_low_target)
2069 * linux-m32r-low.cc (the_low_target)
2070 * linux-m68k-low.cc (the_low_target)
2071 * linux-nios2-low.cc (the_low_target)
2072 * linux-ppc-low.cc (the_low_target)
2073 * linux-s390-low.cc (the_low_target)
2074 * linux-sh-low.cc (the_low_target)
2075 * linux-sparc-low.cc (the_low_target)
2076 * linux-tic6x-low.cc (the_low_target)
2077 * linux-tile-low.cc (the_low_target)
2078 * linux-xtensa-low.cc (the_low_target): Remove the op field.
2079 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
2081 (ia64_fetch_register): Turn into...
2082 (ia64_target::low_fetch_register): ...this.
2083 (the_low_target): Remove the op field.
2084 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
2086 (mips_fetch_register): Turn into...
2087 (mips_target::low_fetch_register): ...this.
2088 (the_low_target): Remove the op field.
2089 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
2091 (riscv_fetch_register): Turn into...
2092 (riscv_target::low_fetch_register): ...this.
2093 (the_low_target): Remove the op field.
2095 Update the callers below.
2097 * linux-low.cc (linux_process_target::fetch_registers)
2098 (linux_process_target::low_fetch_register)
2100 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2102 Turn the 'cannot_fetch_register' and 'cannot_store_register'
2103 linux target ops into methods of linux_process_target.
2105 * linux-low.h (struct linux_target_ops): Remove the low target ops.
2106 (class linux_process_target) <fetch_register>
2108 <usr_fetch_inferior_registers>
2109 <usr_store_inferior_registers>
2110 <low_cannot_fetch_register>
2111 <low_cannot_fetch_register> Declare.
2112 * linux-low.cc (fetch_register): Turn into...
2113 (linux_process_target::fetch_register): ...this.
2114 (store_register): Turn into ...
2115 (linux_process_target::store_register): ...this.
2116 (usr_fetch_inferior_registers): Turn into...
2117 (linux_process_target::usr_fetch_inferior_registers): ...this.
2118 (usr_store_inferior_registers): Turn into...
2119 (linux_process_target::usr_store_inferior_registers): ...this.
2120 * linux-x86-low.cc (class x86_target)
2121 <low_cannot_fetch_register>
2122 <low_cannot_store_register>: Declare.
2123 (x86_cannot_store_register): Turn into...
2124 (x86_target::low_cannot_store_register): ...this.
2125 (x86_cannot_fetch_register): Turn into...
2126 (x86_target::low_cannot_fetch_register): ...this.
2127 (the_low_target): Remove the target op fields.
2128 * linux-aarch64-low.cc (class aarch64_target)
2129 <low_cannot_fetch_register>
2130 <low_cannot_store_register>: Declare.
2131 (aarch64_target::low_cannot_fetch_register)
2132 (aarch64_target::low_cannot_store_register): Define.
2133 (the_low_target): Remove the op fields.
2134 * linux-arm-low.cc (class arm_target)
2135 <low_cannot_fetch_register>
2136 <low_cannot_store_register>: Declare.
2137 (arm_cannot_fetch_register): Turn into...
2138 (arm_target::low_cannot_fetch_register): ...this.
2139 (arm_cannot_store_register): Turn into...
2140 (arm_target::low_cannot_store_register): ...this.
2141 (the_low_target): Remove the op fields.
2142 * linux-bfin-low.cc (class bfin_target)
2143 <low_cannot_fetch_register>
2144 <low_cannot_store_register>: Declare.
2145 (bfin_cannot_fetch_register): Turn into...
2146 (bfin_target::low_cannot_fetch_register): ...this.
2147 (bfin_cannot_store_register): Turn into...
2148 (bfin_target::low_cannot_store_register): ...this.
2149 (the_low_target): Remove the op fields.
2150 * linux-cris-low.cc (class cris_target)
2151 <low_cannot_fetch_register>
2152 <low_cannot_store_register>: Declare.
2153 (cris_cannot_fetch_register): Turn into...
2154 (cris_target::low_cannot_fetch_register): ...this.
2155 (cris_cannot_store_register): Turn into...
2156 (cris_target::low_cannot_store_register): ...this.
2157 (the_low_target): Remove the op fields.
2158 * linux-crisv32-low.cc (class crisv32_target)
2159 <low_cannot_fetch_register>
2160 <low_cannot_store_register>: Declare.
2161 (crisv32_target::low_cannot_fetch_register)
2162 (crisv32_target::low_cannot_store_register): Define.
2163 (the_low_target): Remove the op fields.
2164 * linux-ia64-low.cc (class ia64_target)
2165 <low_cannot_fetch_register>
2166 <low_cannot_store_register>: Declare.
2167 (ia64_cannot_fetch_register): Turn into...
2168 (ia64_target::low_cannot_fetch_register): ...this.
2169 (ia64_cannot_store_register): Turn into...
2170 (ia64_target::low_cannot_store_register): ...this.
2171 (the_low_target): Remove the op fields.
2172 * linux-m32r-low.cc (class m32r_target)
2173 <low_cannot_fetch_register>
2174 <low_cannot_store_register>: Declare.
2175 (m32r_cannot_fetch_register): Turn into...
2176 (m32r_target::low_cannot_fetch_register): ...this.
2177 (m32r_cannot_store_register): Turn into...
2178 (m32r_target::low_cannot_store_register): ...this.
2179 (the_low_target): Remove the op fields.
2180 * linux-m68k-low.cc (class m68k_target)
2181 <low_cannot_fetch_register>
2182 <low_cannot_store_register>: Declare.
2183 (m68k_cannot_fetch_register): Turn into...
2184 (m68k_target::low_cannot_fetch_register): ...this.
2185 (m68k_cannot_store_register): Turn into...
2186 (m68k_target::low_cannot_store_register): ...this.
2187 (the_low_target): Remove the op fields.
2188 * linux-mips-low.cc (class mips_target)
2189 <low_cannot_fetch_register>
2190 <low_cannot_store_register>: Declare.
2191 (mips_cannot_fetch_register): Turn into...
2192 (mips_target::low_cannot_fetch_register): ...this.
2193 (mips_cannot_store_register): Turn into...
2194 (mips_target::low_cannot_store_register): ...this.
2195 (get_usrregs_info): Inline at the call sites in
2196 low_cannot_fetch_register and low_cannot_store_register,
2198 (the_low_target): Remove the op fields.
2199 * linux-nios2-low.cc (class nios2_target)
2200 <low_cannot_fetch_register>
2201 <low_cannot_store_register>: Declare.
2202 (nios2_cannot_fetch_register): Turn into...
2203 (nios2_target::low_cannot_fetch_register): ...this.
2204 (nios2_cannot_store_register): Turn into...
2205 (nios2_target::low_cannot_store_register): ...this.
2206 (the_low_target): Remove the op fields.
2207 * linux-ppc-low.cc (class ppc_target)
2208 <low_cannot_fetch_register>
2209 <low_cannot_store_register>: Declare.
2210 (ppc_cannot_fetch_register): Turn into...
2211 (ppc_target::low_cannot_fetch_register): ...this.
2212 (ppc_cannot_store_register): Turn into...
2213 (ppc_target::low_cannot_store_register): ...this.
2214 (the_low_target): Remove the op fields.
2215 * linux-riscv-low.cc (class riscv_target)
2216 <low_cannot_fetch_register>
2217 <low_cannot_store_register>: Declare.
2218 (riscv_target::low_cannot_fetch_register)
2219 (riscv_target::low_cannot_store_register): Define.
2220 (the_low_target): Remove the op fields.
2221 * linux-s390-low.cc (class s390_target)
2222 <low_cannot_fetch_register>
2223 <low_cannot_store_register>: Declare.
2224 (s390_cannot_fetch_register): Turn into...
2225 (s390_target::low_cannot_fetch_register): ...this.
2226 (s390_cannot_store_register): Turn into...
2227 (s390_target::low_cannot_store_register): ...this.
2228 (the_low_target): Remove the op fields.
2229 * linux-sh-low.cc (class sh_target)
2230 <low_cannot_fetch_register>
2231 <low_cannot_store_register>: Declare.
2232 (sh_cannot_fetch_register): Turn into...
2233 (sh_target::low_cannot_fetch_register): ...this.
2234 (sh_cannot_store_register): Turn into...
2235 (sh_target::low_cannot_store_register): ...this.
2236 (the_low_target): Remove the op fields.
2237 * linux-sparc-low.cc (class sparc_target)
2238 <low_cannot_fetch_register>
2239 <low_cannot_store_register>: Declare.
2240 (sparc_cannot_fetch_register): Turn into...
2241 (sparc_target::low_cannot_fetch_register): ...this.
2242 (sparc_cannot_store_register): Turn into...
2243 (sparc_target::low_cannot_store_register): ...this.
2244 (the_low_target): Remove the op fields.
2245 * linux-tic6x-low.cc (class tic6x_target)
2246 <low_cannot_fetch_register>
2247 <low_cannot_store_register>: Declare.
2248 (tic6x_cannot_fetch_register): Turn into...
2249 (tic6x_target::low_cannot_fetch_register): ...this.
2250 (tic6x_cannot_store_register): Turn into...
2251 (tic6x_target::low_cannot_store_register): ...this.
2252 (the_low_target): Remove the op fields.
2253 * linux-tile-low.cc (class tile_target)
2254 <low_cannot_fetch_register>
2255 <low_cannot_store_register>: Declare.
2256 (tile_cannot_fetch_register): Turn into...
2257 (tile_target::low_cannot_fetch_register): ...this.
2258 (tile_cannot_store_register): Turn into...
2259 (tile_target::low_cannot_store_register): ...this.
2260 (the_low_target): Remove the op fields.
2261 * linux-xtensa-low.cc (class xtensa_target)
2262 <low_cannot_fetch_register>
2263 <low_cannot_store_register>: Declare.
2264 (xtensa_target::low_cannot_fetch_register)
2265 (xtensa_target::low_cannot_store_register): Define.
2266 (the_low_target): Remove the op fields.
2268 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2270 Turn the 'regs_info' linux target op into a method of
2271 linux_process_target.
2273 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2274 (class linux_process_target) <get_regs_info>: Define.
2276 Update the callers below.
2278 * linux-low.cc (linux_process_target::fetch_registers)
2279 (linux_process_target::store_registers)
2280 * proc-service.cc (gregset_info)
2282 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2283 (x86_linux_regs_info): Turn into ...
2284 (x86_target::get_regs_info): ...this.
2285 (the_low_target): Remove the op field.
2286 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2288 (aarch64_regs_info): Turn into ...
2289 (aarch64_target::get_regs_info): ...this.
2290 (the_low_target): Remove the op field.
2291 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2292 (arm_regs_info): Turn into ...
2293 (arm_target::get_regs_info): ...this.
2294 (the_low_target): Remove the op field.
2295 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2296 (bfin_regs_info): Turn into ...
2297 (bfin_target::get_regs_info): ...this.
2298 (the_low_target): Remove the op field.
2299 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2300 (cris_regs_info): Turn into ...
2301 (cris_target::get_regs_info): ...this.
2302 (the_low_target): Remove the op field.
2303 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2305 (crisv32_regs_info): Turn into ...
2306 (crisv32_target::get_regs_info): ...this.
2307 (the_low_target): Remove the op field.
2308 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2309 (ia64_regs_info): Turn into ...
2310 (ia64_target::get_regs_info): ...this.
2311 (the_low_target): Remove the op field.
2312 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2313 (m32r_regs_info): Turn into ...
2314 (m32r_target::get_regs_info): ...this.
2315 (the_low_target): Remove the op field.
2316 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2317 (m68k_regs_info): Turn into ...
2318 (m68k_target::get_regs_info): ...this.
2319 (the_low_target): Remove the op field.
2320 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2321 (mips_regs_info): Turn into ...
2322 (mips_target::get_regs_info): ...this.
2323 (the_low_target): Remove the op field.
2324 (get_usrregs_info): Update the call to the op.
2325 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2326 (nios2_regs_info): Turn into ...
2327 (nios2_target::get_regs_info): ...this.
2328 (the_low_target): Remove the op field.
2329 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2330 (ppc_regs_info): Turn into ...
2331 (ppc_target::get_regs_info): ...this.
2332 (the_low_target): Remove the op field.
2333 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2334 (riscv_regs_info): Turn into ...
2335 (riscv_target::get_regs_info): ...this.
2336 (the_low_target): Remove the op field.
2337 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2338 (s390_regs_info): Turn into ...
2339 (s390_target::get_regs_info): ...this.
2340 (the_low_target): Remove the op field.
2341 (s390_collect_ptrace_register)
2342 (s390_supply_ptrace_register)
2343 (s390_fill_gregset): Update the call to the op.
2344 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2345 (sh_regs_info): Turn into ...
2346 (sh_target::get_regs_info): ...this.
2347 (the_low_target): Remove the op field.
2348 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2349 (sparc_regs_info): Turn into ...
2350 (sparc_target::get_regs_info): ...this.
2351 (the_low_target): Remove the op field.
2352 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2353 (tic6x_regs_info): Turn into ...
2354 (tic6x_target::get_regs_info): ...this.
2355 (the_low_target): Remove the op field.
2356 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2357 (tile_regs_info): Turn into ...
2358 (tile_target::get_regs_info): ...this.
2359 (the_low_target): Remove the op field.
2360 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2362 (xtensa_regs_info): Turn into ...
2363 (xtensa_target::get_regs_info): ...this.
2364 (the_low_target): Remove the op field.
2366 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2368 Turn the 'arch_setup' linux target op into a method of
2369 linux_process_target.
2371 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2372 (class linux_process_target) <arch_setup_thread>
2373 <low_arch_setup>: New declarations.
2374 * linux-low.cc (linux_arch_setup): Delete.
2375 (linux_arch_setup_thread): Turn into...
2376 (linux_process_target::arch_setup_thread): ... this.
2378 Update the callers below.
2380 (linux_process_target::handle_extended_wait)
2381 (linux_process_target::post_create_inferior)
2382 (linux_process_target::filter_event)
2384 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2386 (x86_linux_update_xmltarget): Turn into...
2387 (x86_target::update_xmltarget): ...this.
2388 (x86_linux_process_qsupported): Update the call to
2389 x86_linux_update_xmltarget.
2390 (x86_arch_setup): Turn into ...
2391 (x86_target::low_arch_setup): ...this.
2392 (the_low_target): Remove the op field.
2393 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2395 (aarch64_arch_setup): Turn into ...
2396 (aarch64_target::low_arch_setup): ...this.
2397 (the_low_target): Remove the op field.
2398 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2400 (arm_arch_setup): Turn into ...
2401 (arm_target::low_arch_setup): ...this.
2402 (the_low_target): Remove the op field.
2403 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2405 (bfin_arch_setup): Turn into ...
2406 (bfin_target::low_arch_setup): ...this.
2407 (the_low_target): Remove the op field.
2408 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2410 (cris_arch_setup): Turn into ...
2411 (cris_target::low_arch_setup): ...this.
2412 (the_low_target): Remove the op field.
2413 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2415 (crisv32_arch_setup): Turn into ...
2416 (crisv32_target::low_arch_setup): ...this.
2417 (the_low_target): Remove the op field.
2418 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2420 (ia64_arch_setup): Turn into ...
2421 (ia64_target::low_arch_setup): ...this.
2422 (the_low_target): Remove the op field.
2423 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2425 (m32r_arch_setup): Turn into ...
2426 (m32r_target::low_arch_setup): ...this.
2427 (the_low_target): Remove the op field.
2428 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2430 (m68k_arch_setup): Turn into ...
2431 (m68k_target::low_arch_setup): ...this.
2432 (the_low_target): Remove the op field.
2433 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2435 (mips_arch_setup): Turn into ...
2436 (mips_target::low_arch_setup): ...this.
2437 (the_low_target): Remove the op field.
2438 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2440 (nios2_arch_setup): Turn into ...
2441 (nios2_target::low_arch_setup): ...this.
2442 (the_low_target): Remove the op field.
2443 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2445 (ppc_arch_setup): Turn into ...
2446 (ppc_target::low_arch_setup): ...this.
2447 (the_low_target): Remove the op field.
2448 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2450 (riscv_arch_setup): Turn into ...
2451 (riscv_target::low_arch_setup): ...this.
2452 (the_low_target): Remove the op field.
2453 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2455 (s390_arch_setup): Turn into ...
2456 (s390_target::low_arch_setup): ...this.
2457 (the_low_target): Remove the op field.
2458 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2460 (sh_arch_setup): Turn into ...
2461 (sh_target::low_arch_setup): ...this.
2462 (the_low_target): Remove the op field.
2463 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2465 (sparc_arch_setup): Turn into ...
2466 (sparc_target::low_arch_setup): ...this.
2467 (the_low_target): Remove the op field.
2468 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2470 (tic6x_arch_setup): Turn into ...
2471 (tic6x_target::low_arch_setup): ...this.
2472 (the_low_target): Remove the op field.
2473 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2475 (tile_arch_setup): Turn into ...
2476 (tile_target::low_arch_setup): ...this.
2477 (the_low_target): Remove the op field.
2478 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2480 (xtensa_arch_setup): Turn into ...
2481 (xtensa_target::low_arch_setup): ...this.
2482 (the_low_target): Remove the op field.
2484 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2486 * linux-low.h (the_linux_target): New extern declaration.
2487 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2489 (the_linux_target): Remove.
2490 * linux-x86-low.cc (class x86_target): New class.
2491 (the_x86_target): New static object.
2492 (the_linux_target): Define as pointer to the_x86_target.
2493 * linux-aarch64-low.cc (class aarch64_target): New class.
2494 (the_aarch64_target): New static object.
2495 (the_linux_target): Define as pointer to the_aarch64_target.
2496 * linux-arm-low.cc (class arm_target): New class.
2497 (the_arm_target): New static object.
2498 (the_linux_target): Define as pointer to the_arm_target.
2499 * linux-bfin-low.cc (class bfin_target): New class.
2500 (the_bfin_target): New static object.
2501 (the_linux_target): Define as pointer to the_bfin_target.
2502 * linux-cris-low.cc (class cris_target): New class.
2503 (the_cris_target): New static object.
2504 (the_linux_target): Define as pointer to the_cris_target.
2505 * linux-crisv32-low.cc (class crisv32_target): New class.
2506 (the_crisv32_target): New static object.
2507 (the_linux_target): Define as pointer to the_crisv32_target.
2508 * linux-ia64-low.cc (class ia64_target): New class.
2509 (the_ia64_target): New static object.
2510 (the_linux_target): Define as pointer to the_ia64_target.
2511 * linux-m32r-low.cc (class m32r_target): New class.
2512 (the_m32r_target): New static object.
2513 (the_linux_target): Define as pointer to the_m32r_target.
2514 * linux-m68k-low.cc (class m68k_target): New class.
2515 (the_m68k_target): New static object.
2516 (the_linux_target): Define as pointer to the_m68k_target.
2517 * linux-mips-low.cc (class mips_target): New class.
2518 (the_mips_target): New static object.
2519 (the_linux_target): Define as pointer to the_mips_target.
2520 * linux-nios2-low.cc (class nios2_target): New class.
2521 (the_nios2_target): New static object.
2522 (the_linux_target): Define as pointer to the_nios2_target.
2523 * linux-ppc-low.cc (class ppc_target): New class.
2524 (the_ppc_target): New static object.
2525 (the_linux_target): Define as pointer to the_ppc_target.
2526 * linux-riscv-low.cc (class riscv_target): New class.
2527 (the_riscv_target): New static object.
2528 (the_linux_target): Define as pointer to the_riscv_target.
2529 * linux-s390-low.cc (class s390_target): New class.
2530 (the_s390_target): New static object.
2531 (the_linux_target): Define as pointer to the_s390_target.
2532 * linux-sh-low.cc (class sh_target): New class.
2533 (the_sh_target): New static object.
2534 (the_linux_target): Define as pointer to the_sh_target.
2535 * linux-sparc-low.cc (class sparc_target): New class.
2536 (the_sparc_target): New static object.
2537 (the_linux_target): Define as pointer to the_sparc_target.
2538 * linux-tic6x-low.cc (class tic6x_target): New class.
2539 (the_tic6x_target): New static object.
2540 (the_linux_target): Define as pointer to the_tic6x_target.
2541 * linux-tile-low.cc (class tile_target): New class.
2542 (the_tile_target): New static object.
2543 (the_linux_target): Define as pointer to the_tile_target.
2544 * linux-xtensa-low.cc (class xtensa_target): New class.
2545 (the_xtensa_target): New static object.
2546 (the_linux_target): Define as pointer to the_xtensa_target.
2548 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2550 Turn some static functions in linux-low.cc into private methods of
2551 linux_process_target.
2553 * linux-low.cc (handle_extended_wait): Turn into ...
2554 (linux_process_target::handle_extended_wait): ...this. Call
2555 'mourn' on 'this' object instead of 'the_target'.
2556 (maybe_move_out_of_jump_pad): Turn into...
2557 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2558 (linux_low_filter_event): Turn into...
2559 (linux_process_target::filter_event): ...this.
2560 (linux_wait_for_event_filtered): Turn into...
2561 (linux_process_target::wait_for_event_filtered): ...this.
2562 (linux_wait_for_event): Turn into...
2563 (linux_process_target::wait_for_event): ...this.
2564 (linux_wait_1): Turn into...
2565 (linux_process_target::wait_1): ...this.
2566 (wait_for_sigstop): Turn into...
2567 (linux_process_target::wait_for_sigstop): ...this.
2568 (move_out_of_jump_pad_callback): Turn into...
2569 (linux_process_target::move_out_of_jump_pad): ...this.
2570 (stop_all_lwps): Turn into...
2571 (linux_process_target::stop_all_lwps): ...this.
2572 (start_step_over): Turn into...
2573 (linux_process_target::start_step_over): ...this.
2574 (complete_ongoing_step_over): Turn into...
2575 (linux_process_target::complete_ongoing_step_over): ...this.
2576 (proceed_all_lwps): Turn into...
2577 (linux_process_target::proceed_all_lwps): ...this.
2578 (unstop_all_lwps): Turn into...
2579 (linux_process_target::unstop_all_lwps): ...this.
2581 * linux-low.h (class linux_process_target)
2582 <handle_extended_wait>
2583 <maybe_move_out_of_jump_pad>
2585 <wait_for_event_filtered>
2589 <move_out_of_jump_pad>
2592 <complete_ongoing_step_over>
2594 <unstop_all_lwps>: Declare.
2596 Update the callers below.
2598 * linux-low.cc (linux_process_target::attach): Update.
2599 (linux_process_target::stabilize_threads): Ditto.
2600 (linux_process_target::wait): Ditto.
2602 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2604 * linux-low.h (struct linux_target_ops): Update the comment for
2605 'cannot_store_register' to return 0 or 1.
2606 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2609 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2611 * config.in: Re-generate.
2612 * configure: Re-generate.
2614 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2616 * regcache.cc (find_register_by_number): Update.
2617 * tdesc.cc (init_target_desc): Likewise.
2618 * tdesc.h (target_desc::reg_defs): Likewise.
2620 2020-03-12 Tom Tromey <tom@tromey.com>
2622 * configure: Rebuild.
2623 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2624 (WIN32APILIBS): New subst.
2625 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2627 (gdbsupport/%.o): Remove target.
2628 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2629 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2630 (WIN32APILIBS): New variable.
2631 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2632 (gdbreplay$(EXEEXT)): Likewise.
2634 2020-03-12 Tom Tromey <tom@tromey.com>
2636 * config.in, configure: Rebuild.
2637 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2638 * acinclude.m4: Include gettext-sister.m4.
2639 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2641 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2642 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2644 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2646 * acinclude.m4: Update path to selftest.m4.
2648 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2650 * configure.ac: Don't source bfd/development.sh, move
2651 GDB_AC_COMMON higher.
2652 * configure: Re-generate.
2654 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2656 * configure: Re-generate.
2658 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2660 * configure: Re-generate.
2662 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2664 * .dir-locals.el: New file.
2666 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2668 * .gitattributes: New file.
2670 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2672 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2673 reply into an S reply.
2674 * server.cc (disable_packet_T): New global.
2675 (captured_main): Set new global when appropriate.
2676 * server.h (disable_packet_T): Declare.
2678 2020-02-21 Tom Tromey <tom@tromey.com>
2680 * Makefile.in (mostlyclean): New target.
2682 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2684 * target.h (struct process_stratum_target): Remove.
2685 (class process_target): Rename to ...
2686 (class process_stratum_target): ... this.
2687 * linux-low.h (class linux_process_target): Derive from
2688 'process_stratum_target'.
2689 * linux-low.cc (linux_target_ops): Remove.
2690 (initialize_low): Set the_target to the singleton instance of
2691 linux_process_target.
2692 * lynx-low.h (class lynx_process_target): Derive from
2693 'process_stratum_target'.
2694 * lynx-low.cc (lynx_target_ops): Remove.
2695 (initialize_low): Set the_target to the singleton instance of
2696 lynx_process_target.
2697 * nto-low.h (class nto_process_target): Derive from
2698 'process_stratum_target'.
2699 * nto-low.cc (nto_target_ops): Remove.
2700 (initialize_low): Set the_target to the singleton instance of
2702 * win32-low.h (class win32_process_target): Derive from
2703 'process_stratum_target'.
2704 * win32-low.cc (win32_target_ops): Remove.
2705 (initialize_low): Set the_target to the singleton instance of
2706 win32_process_target.
2708 Replace 'the_target->pt' with 'the_target' in the uses below.
2710 * hostio.cc (hostio_error)
2715 * linux-aarch32-low.cc (arm_breakpoint_at)
2716 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2717 * linux-arm-low.cc (arm_sigreturn_next_pc)
2719 (arm_get_syscall_trapinfo)
2720 * linux-cris-low.cc (cris_breakpoint_at)
2721 * linux-crisv32-low.cc (cris_breakpoint_at)
2722 * linux-low.cc (handle_extended_wait)
2725 (linux_process_target::breakpoint_kind_from_pc)
2727 * linux-m32r-low.cc (m32r_breakpoint_at)
2728 * linux-mips-low.cc (mips_breakpoint_at)
2729 * linux-nios2-low.cc (nios2_breakpoint_at)
2730 * linux-ppc-low.cc (ppc_breakpoint_at)
2731 * linux-s390-low.cc (s390_get_hwcap)
2732 * linux-sh-low.cc (sh_breakpoint_at)
2733 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2734 (sparc_store_gregset_from_stack)
2735 (sparc_breakpoint_at)
2736 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2737 * linux-tile-low.cc (tile_breakpoint_at)
2738 * linux-x86-low.cc (x86_breakpoint_at)
2739 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2740 * mem-break.cc (bp_size)
2742 (insert_memory_breakpoint)
2743 (set_raw_breakpoint_at)
2744 (delete_raw_breakpoint)
2746 (uninsert_raw_breakpoint)
2747 (reinsert_raw_breakpoint)
2748 (validate_inserted_breakpoint)
2749 * regcache.cc (regcache_read_pc)
2751 * remote-utils.cc (putpkt_binary_1)
2754 (prepare_resume_reply)
2755 * server.cc (handle_general_set)
2758 (handle_qxfer_exec_file)
2759 (handle_qxfer_libraries_svr4)
2760 (handle_qxfer_osdata)
2761 (handle_qxfer_siginfo)
2762 (handle_qxfer_fdpic)
2766 (queue_stop_reply_callback)
2768 * target.cc (prepare_to_access_memory)
2769 (done_accessing_memory)
2770 (read_inferior_memory)
2771 (target_write_memory)
2772 (target_stop_and_wait)
2774 (target_mourn_inferior)
2775 (target_continue_no_signal)
2777 (target_supports_multi_process)
2780 (target_create_inferior)
2781 (target_post_create_inferior)
2783 (target_supports_fork_events)
2784 (target_supports_vfork_events)
2785 (target_supports_exec_events)
2786 (target_handle_new_gdb_connection)
2789 (fetch_inferior_registers)
2790 (store_inferior_registers)
2792 (target_supports_non_stop)
2794 (target_process_qsupported)
2795 (target_supports_catch_syscall)
2796 (target_get_ipa_tdesc_idx)
2797 (target_supports_tracepoints)
2798 (target_supports_fast_tracepoints)
2799 (target_get_min_fast_tracepoint_insn_len)
2800 (target_thread_stopped)
2802 (target_unpause_all)
2803 (target_stabilize_threads)
2804 (target_install_fast_tracepoint_jump_pad)
2806 (target_supports_disable_randomization)
2807 (target_supports_agent)
2808 (target_enable_btrace)
2809 (target_disable_btrace)
2810 (target_read_btrace)
2811 (target_read_btrace_conf)
2812 (target_supports_range_stepping)
2813 (target_supports_stopped_by_sw_breakpoint)
2814 (target_stopped_by_sw_breakpoint)
2815 (target_supports_stopped_by_hw_breakpoint)
2816 (target_supports_hardware_single_step)
2817 (target_stopped_by_hw_breakpoint)
2818 (target_breakpoint_kind_from_pc)
2819 (target_breakpoint_kind_from_current_state)
2820 (target_supports_software_single_step)
2821 (target_core_of_thread)
2822 (target_thread_name)
2823 (target_thread_handle)
2824 * win32-low.cc (do_initial_child_stuff)
2826 Rename target op default definitions listed below.
2828 * target.cc (process_target::post_create_inferior): Rename as ...
2829 (process_stratum_target::post_create_inferior): ... this.
2830 (process_target::prepare_to_access_memory): Rename as ...
2831 (process_stratum_target::prepare_to_access_memory): ... this.
2832 (process_target::done_accessing_memory): Rename as ...
2833 (process_stratum_target::done_accessing_memory): ... this.
2834 (process_target::look_up_symbols): Rename as ...
2835 (process_stratum_target::look_up_symbols): ... this.
2836 (process_target::supports_read_auxv): Rename as ...
2837 (process_stratum_target::supports_read_auxv): ... this.
2838 (process_target::read_auxv): Rename as ...
2839 (process_stratum_target::read_auxv): ... this.
2840 (process_target::supports_z_point_type): Rename as ...
2841 (process_stratum_target::supports_z_point_type): ... this.
2842 (process_target::insert_point): Rename as ...
2843 (process_stratum_target::insert_point): ... this.
2844 (process_target::remove_point): Rename as ...
2845 (process_stratum_target::remove_point): ... this.
2846 (process_target::stopped_by_sw_breakpoint): Rename as ...
2847 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2848 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2849 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2850 (process_target::stopped_by_hw_breakpoint): Rename as ...
2851 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2852 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2853 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2854 (process_target::supports_hardware_single_step): Rename as ...
2855 (process_stratum_target::supports_hardware_single_step): ... this.
2856 (process_target::stopped_by_watchpoint): Rename as ...
2857 (process_stratum_target::stopped_by_watchpoint): ... this.
2858 (process_target::stopped_data_address): Rename as ...
2859 (process_stratum_target::stopped_data_address): ... this.
2860 (process_target::supports_read_offsets): Rename as ...
2861 (process_stratum_target::supports_read_offsets): ... this.
2862 (process_target::read_offsets): Rename as ...
2863 (process_stratum_target::read_offsets): ... this.
2864 (process_target::supports_get_tls_address): Rename as ...
2865 (process_stratum_target::supports_get_tls_address): ... this.
2866 (process_target::get_tls_address): Rename as ...
2867 (process_stratum_target::get_tls_address): ... this.
2868 (process_target::hostio_last_error): Rename as ...
2869 (process_stratum_target::hostio_last_error): ... this.
2870 (process_target::supports_qxfer_osdata): Rename as ...
2871 (process_stratum_target::supports_qxfer_osdata): ... this.
2872 (process_target::qxfer_osdata): Rename as ...
2873 (process_stratum_target::qxfer_osdata): ... this.
2874 (process_target::supports_qxfer_siginfo): Rename as ...
2875 (process_stratum_target::supports_qxfer_siginfo): ... this.
2876 (process_target::qxfer_siginfo): Rename as ...
2877 (process_stratum_target::qxfer_siginfo): ... this.
2878 (process_target::supports_non_stop): Rename as ...
2879 (process_stratum_target::supports_non_stop): ... this.
2880 (process_target::async): Rename as ...
2881 (process_stratum_target::async): ... this.
2882 (process_target::start_non_stop): Rename as ...
2883 (process_stratum_target::start_non_stop): ... this.
2884 (process_target::supports_multi_process): Rename as ...
2885 (process_stratum_target::supports_multi_process): ... this.
2886 (process_target::supports_fork_events): Rename as ...
2887 (process_stratum_target::supports_fork_events): ... this.
2888 (process_target::supports_vfork_events): Rename as ...
2889 (process_stratum_target::supports_vfork_events): ... this.
2890 (process_target::supports_exec_events): Rename as ...
2891 (process_stratum_target::supports_exec_events): ... this.
2892 (process_target::handle_new_gdb_connection): Rename as ...
2893 (process_stratum_target::handle_new_gdb_connection): ... this.
2894 (process_target::handle_monitor_command): Rename as ...
2895 (process_stratum_target::handle_monitor_command): ... this.
2896 (process_target::core_of_thread): Rename as ...
2897 (process_stratum_target::core_of_thread): ... this.
2898 (process_target::supports_read_loadmap): Rename as ...
2899 (process_stratum_target::supports_read_loadmap): ... this.
2900 (process_target::read_loadmap): Rename as ...
2901 (process_stratum_target::read_loadmap): ... this.
2902 (process_target::process_qsupported): Rename as ...
2903 (process_stratum_target::process_qsupported): ... this.
2904 (process_target::supports_tracepoints): Rename as ...
2905 (process_stratum_target::supports_tracepoints): ... this.
2906 (process_target::read_pc): Rename as ...
2907 (process_stratum_target::read_pc): ... this.
2908 (process_target::write_pc): Rename as ...
2909 (process_stratum_target::write_pc): ... this.
2910 (process_target::supports_thread_stopped): Rename as ...
2911 (process_stratum_target::supports_thread_stopped): ... this.
2912 (process_target::thread_stopped): Rename as ...
2913 (process_stratum_target::thread_stopped): ... this.
2914 (process_target::supports_get_tib_address): Rename as ...
2915 (process_stratum_target::supports_get_tib_address): ... this.
2916 (process_target::get_tib_address): Rename as ...
2917 (process_stratum_target::get_tib_address): ... this.
2918 (process_target::pause_all): Rename as ...
2919 (process_stratum_target::pause_all): ... this.
2920 (process_target::unpause_all): Rename as ...
2921 (process_stratum_target::unpause_all): ... this.
2922 (process_target::stabilize_threads): Rename as ...
2923 (process_stratum_target::stabilize_threads): ... this.
2924 (process_target::supports_fast_tracepoints): Rename as ...
2925 (process_stratum_target::supports_fast_tracepoints): ... this.
2926 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2927 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2928 (process_target::emit_ops): Rename as ...
2929 (process_stratum_target::emit_ops): ... this.
2930 (process_target::supports_disable_randomization): Rename as ...
2931 (process_stratum_target::supports_disable_randomization): ... this.
2932 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2933 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2934 (process_target::qxfer_libraries_svr4): Rename as ...
2935 (process_stratum_target::qxfer_libraries_svr4): ... this.
2936 (process_target::supports_agent): Rename as ...
2937 (process_stratum_target::supports_agent): ... this.
2938 (process_target::enable_btrace): Rename as ...
2939 (process_stratum_target::enable_btrace): ... this.
2940 (process_target::disable_btrace): Rename as ...
2941 (process_stratum_target::disable_btrace): ... this.
2942 (process_target::read_btrace): Rename as ...
2943 (process_stratum_target::read_btrace): ... this.
2944 (process_target::read_btrace_conf): Rename as ...
2945 (process_stratum_target::read_btrace_conf): ... this.
2946 (process_target::supports_range_stepping): Rename as ...
2947 (process_stratum_target::supports_range_stepping): ... this.
2948 (process_target::supports_pid_to_exec_file): Rename as ...
2949 (process_stratum_target::supports_pid_to_exec_file): ... this.
2950 (process_target::pid_to_exec_file): Rename as ...
2951 (process_stratum_target::pid_to_exec_file): ... this.
2952 (process_target::supports_multifs): Rename as ...
2953 (process_stratum_target::supports_multifs): ... this.
2954 (process_target::multifs_open): Rename as ...
2955 (process_stratum_target::multifs_open): ... this.
2956 (process_target::multifs_unlink): Rename as ...
2957 (process_stratum_target::multifs_unlink): ... this.
2958 (process_target::multifs_readlink): Rename as ...
2959 (process_stratum_target::multifs_readlink): ... this.
2960 (process_target::breakpoint_kind_from_pc): Rename as ...
2961 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2962 (process_target::breakpoint_kind_from_current_state): Rename as ...
2963 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2964 (process_target::thread_name): Rename as ...
2965 (process_stratum_target::thread_name): ... this.
2966 (process_target::thread_handle): Rename as ...
2967 (process_stratum_target::thread_handle): ... this.
2968 (process_target::supports_software_single_step): Rename as ...
2969 (process_stratum_target::supports_software_single_step): ... this.
2970 (process_target::supports_catch_syscall): Rename as ...
2971 (process_stratum_target::supports_catch_syscall): ... this.
2972 (process_target::get_ipa_tdesc_idx): Rename as ...
2973 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2975 2020-02-20 Pedro Alves <palves@redhat.com>
2977 * target.cc (set_target_ops): Simply copy the given target pointer
2978 instead of creating a copy of the pointed object.
2980 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2982 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2985 * target.h (struct process_stratum_target): Remove the target op.
2986 (class process_target): Add the target op.
2987 (target_get_ipa_tdesc_idx): Update the macro.
2988 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2990 Update the derived classes and callers below.
2992 * linux-low.cc (linux_target_ops): Update.
2993 (linux_get_ipa_tdesc_idx): Turn into ...
2994 (linux_process_target::get_ipa_tdesc_idx): ... this.
2995 * linux-low.h (class linux_process_target): Update.
2996 * lynx-low.cc (lynx_target_ops): Update.
2997 * nto-low.cc (nto_target_ops): Update.
2998 * win32-low.cc (win32_target_ops): Update.
3000 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3002 Turn process_stratum_target's supports_catch_syscall op into a
3003 method of process_target.
3005 * target.h (struct process_stratum_target): Remove the target op.
3006 (class process_target): Add the target op.
3007 (target_supports_catch_syscall): Update the macro.
3008 * target.cc (process_target::supports_catch_syscall): Define.
3010 Update the derived classes and callers below.
3012 * linux-low.cc (linux_target_ops): Update.
3013 (linux_supports_catch_syscall): Turn into ...
3014 (linux_process_target::supports_catch_syscall): ... this.
3015 * linux-low.h (class linux_process_target): Update.
3016 * lynx-low.cc (lynx_target_ops): Update.
3017 * nto-low.cc (nto_target_ops): Update.
3018 * win32-low.cc (win32_target_ops): Update.
3020 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3022 Turn process_stratum_target's supports_software_single_step op
3023 into a method of process_target.
3025 * target.h (struct process_stratum_target): Remove the target op.
3026 (class process_target): Add the target op.
3027 (target_supports_software_single_step): Update the macro.
3028 * target.cc (process_target::supports_software_single_step): Define.
3030 Update the derived classes and callers below.
3032 * linux-low.cc (linux_target_ops): Update.
3033 (linux_supports_software_single_step): Turn into ...
3034 (linux_process_target::supports_software_single_step): ... this.
3035 * linux-low.h (class linux_process_target): Update.
3036 * lynx-low.cc (lynx_target_ops): Update.
3037 * nto-low.cc (nto_target_ops): Update.
3038 * win32-low.cc (win32_target_ops): Update.
3040 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3042 Turn process_stratum_target's thread_name and thread_handle ops
3043 into methods of process_target.
3045 * target.h (struct process_stratum_target): Remove the target ops.
3046 (class process_target): Add the target ops.
3047 (target_thread_name): Update the macro.
3048 (target_thread_handle): Update the macro.
3049 * target.cc (process_target::thread_name): Define.
3050 (process_target::thread_handle): Define.
3052 Update the derived classes and callers below.
3054 * linux-low.cc (linux_target_ops): Update.
3055 (linux_process_target::thread_name): Define.
3056 (linux_process_target::thread_handle): Define.
3057 * linux-low.h (class linux_process_target): Update.
3058 * lynx-low.cc (lynx_target_ops): Update.
3059 * nto-low.cc (nto_target_ops): Update.
3060 * win32-low.cc (win32_target_ops): Update.
3062 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3064 Turn process_stratum_target's breakpoint_kind_from_pc,
3065 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
3066 ops into methods of process_target.
3068 * target.h (struct process_stratum_target): Remove the target op.
3069 (class process_target): Add the target op.
3070 (target_breakpoint_kind_from_pc): Update the macro.
3071 (target_breakpoint_kind_from_current_state): Update the macro.
3072 (default_breakpoint_kind_from_pc): Remove declaration.
3073 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
3074 (process_target::breakpoint_kind_from_pc): ... this.
3075 (process_target::breakpoint_kind_from_current_state): Define.
3077 Update the derived classes and callers below.
3079 * mem-break.cc (bp_size): Update.
3080 (bp_opcode): Update.
3081 * linux-low.cc (linux_target_ops): Update.
3082 (linux_wait_1): Update.
3083 (linux_breakpoint_kind_from_pc): Turn into ...
3084 (linux_process_target::breakpoint_kind_from_pc): ... this.
3085 (linux_sw_breakpoint_from_kind): Turn into ...
3086 (linux_process_target::sw_breakpoint_from_kind): ... this.
3087 (linux_breakpoint_kind_from_current_state): Turn into ...
3088 (linux_process_target::breakpoint_kind_from_current_state): ... this.
3089 * linux-low.h (class linux_process_target): Update.
3090 * lynx-low.cc (lynx_target_ops): Update.
3091 (lynx_process_target::sw_breakpoint_from_kind): Define.
3092 * lynx-low.h (class lynx_process_target): Update.
3093 * nto-low.cc (nto_target_ops): Update.
3094 (nto_sw_breakpoint_from_kind): Turn into ...
3095 (nto_process_target::sw_breakpoint_from_kind): ... this.
3096 * nto-low.h (class nto_process_target): Update.
3097 * win32-low.cc (win32_target_ops): Update.
3098 (win32_sw_breakpoint_from_kind): Turn into ...
3099 (win32_process_target::sw_breakpoint_from_kind): ... this.
3100 * win32-low.h (class win32_process_target): Update.
3102 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3104 Turn process_stratum_target's multifs_open, multifs_readlink,
3105 multifs_unlink ops into methods of process_target.
3107 * target.h (struct process_stratum_target): Remove the target ops.
3108 (class process_target): Add the target ops. Also add
3110 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
3112 (process_target::supports_multifs): Define.
3113 (process_target::multifs_open): Define.
3114 (process_target::multifs_readlink): Define.
3115 (process_target::multifs_unlink): Define.
3117 Update the derived classes and callers below.
3119 * hostio.cc (handle_setfs): Update.
3120 (handle_open): Update.
3121 (handle_unlink): Update.
3122 (handle_readlink): Update.
3123 * linux-low.cc (linux_target_ops): Update.
3124 (linux_process_target::supports_multifs): Define.
3125 (linux_process_target::multifs_open): Define.
3126 (linux_process_target::multifs_readlink): Define.
3127 (linux_process_target::multifs_unlink): Define.
3128 * linux-low.h (class linux_process_target): Update.
3129 * lynx-low.cc (lynx_target_ops): Update.
3130 * nto-low.cc (nto_target_ops): Update.
3131 * win32-low.cc (win32_target_ops): Update.
3133 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3135 Turn process_stratum_target's pid_to_exec_file op into a method
3138 * target.h (struct process_stratum_target): Remove the target op.
3139 (class process_target): Add the target op. Also add
3140 'supports_pid_to_exec_file'.
3141 * target.cc (process_target::pid_to_exec_file): Define.
3142 (process_target::supports_pid_to_exec_file): Define.
3144 Update the derived classes and callers below.
3146 * server.cc (handle_qxfer_exec_file): Update.
3147 (handle_query): Update.
3148 * linux-low.cc (linux_target_ops): Update.
3149 (linux_process_target::supports_pid_to_exec_file): Define.
3150 (linux_process_target::pid_to_exec_file): Define.
3151 * linux-low.h (class linux_process_target): Update.
3152 * lynx-low.cc (lynx_target_ops): Update.
3153 * nto-low.cc (nto_target_ops): Update.
3154 * win32-low.cc (win32_target_ops): Update.
3156 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3158 Turn process_stratum_target's supports_range_stepping op into a
3159 method of process_target.
3161 * target.h (struct process_stratum_target): Remove the target op.
3162 (class process_target): Add the target op.
3163 (target_supports_range_stepping): Update the macro.
3164 * target.cc (process_target::supports_range_stepping): Define.
3166 Update the derived classes and callers below.
3168 * linux-low.cc (linux_target_ops): Update.
3169 (linux_supports_range_stepping): Turn into ...
3170 (linux_process_target::supports_range_stepping): ... this.
3171 * linux-low.h (class linux_process_target): Update.
3172 * lynx-low.cc (lynx_target_ops): Update.
3173 * nto-low.cc (nto_target_ops): Update.
3174 * win32-low.cc (win32_target_ops): Update.
3176 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3178 Turn process_stratum_target's btrace-related ops (enable_btrace,
3179 disable_btrace, read_btrace, read_btrace_conf) into methods of
3182 * target.h (struct process_stratum_target): Remove the target ops.
3183 (class process_target): Add the target ops.
3184 (target_enable_btrace): Update.
3185 (target_disable_btrace): Update.
3186 (target_read_btrace): Update.
3187 (target_read_btrace_conf): Update.
3188 * target.cc (process_target::enable_btrace): Define.
3189 (process_target::disable_btrace): Define.
3190 (process_target::read_btrace): Define.
3191 (process_target::read_btrace_conf): Define.
3193 Update the derived classes and callers below.
3195 * linux-low.cc (linux_target_ops): Update.
3196 (linux_process_target:enable_btrace): Define as a wrapper around
3197 linux_enable_btrace.
3198 (linux_low_disable_btrace): Turn into ...
3199 (linux_process_target::disable_btrace): ... this.
3200 (linux_low_read_btrace): Turn into ...
3201 (linux_process_target::read_btrace): ... this.
3202 (linux_low_btrace_conf): Turn into ...
3203 (linux_process_target::read_btrace_conf): ... this.
3204 * linux-low.h (class linux_process_target): Update.
3205 * lynx-low.cc (lynx_target_ops): Update.
3206 * nto-low.cc (nto_target_ops): Update.
3207 * win32-low.cc (win32_target_ops): Update.
3209 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3211 Turn process_stratum_target's supports_agent op into a method of
3214 * target.h (struct process_stratum_target): Remove the target op.
3215 (class process_target): Add the target op.
3216 (target_supports_agent): Update the macro.
3217 * target.cc (process_target::supports_agent): Define.
3219 Update the derived classes and callers below.
3221 * linux-low.cc (linux_target_ops): Update.
3222 (linux_supports_agent): Turn into ...
3223 (linux_process_target::supports_agent): ... this.
3224 * linux-low.h (class linux_process_target): Update.
3225 * lynx-low.cc (lynx_target_ops): Update.
3226 * nto-low.cc (nto_target_ops): Update.
3227 * win32-low.cc (win32_target_ops): Update.
3229 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3231 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3232 method of process_target.
3234 * target.h (struct process_stratum_target): Remove the target op.
3235 (class process_target): Add the target op. Also add
3236 'supports_qxfer_libraries_svr4'.
3237 * target.cc (process_target::qxfer_libraries_svr4): Define.
3238 (process_target::supports_qxfer_libraries_svr4): Define.
3240 Update the derived classes and callers below.
3242 * server.cc (handle_qxfer_libraries_svr4): Update.
3243 (handle_query): Update.
3244 * linux-low.cc (linux_target_ops): Update.
3245 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3246 (linux_qxfer_libraries_svr4): Turn into ...
3247 (linux_process_target::qxfer_libraries_svr4): ... this.
3248 * linux-low.h (class linux_process_target): Update.
3249 * lynx-low.cc (lynx_target_ops): Update.
3250 * nto-low.cc (nto_target_ops): Update.
3251 * win32-low.cc (win32_target_ops): Update.
3253 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3255 Turn process_stratum_target's supports_disable_randomization op
3256 into a method of process_target.
3258 * target.h (struct process_stratum_target): Remove the target op.
3259 (class process_target): Add the target op.
3260 (target_supports_disable_randomization): Update the macro.
3261 * target.cc (process_target::supports_disable_randomization): Define.
3263 Update the derived classes and callers below.
3265 * linux-low.cc (linux_target_ops): Update.
3266 (linux_supports_disable_randomization): Turn into ...
3267 (linux_process_target::supports_disable_randomization): ... this.
3268 * linux-low.h (class linux_process_target): Update.
3269 * lynx-low.cc (lynx_target_ops): Update.
3270 * nto-low.cc (nto_target_ops): Update.
3271 * win32-low.cc (win32_target_ops): Update.
3273 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3275 Turn process_stratum_target's emit_ops op into a method of
3278 * target.h (struct process_stratum_target): Remove the target op.
3279 (class process_target): Add the target op.
3280 (target_emit_ops): Update the macro.
3281 * target.cc (process_target::emit_ops): Define.
3283 Update the derived classes and callers below.
3285 * linux-low.cc (linux_target_ops): Update.
3286 (linux_emit_ops): Turn into ...
3287 (linux_process_target::emit_ops): ... this.
3288 * linux-low.h (class linux_process_target): Update.
3289 * lynx-low.cc (lynx_target_ops): Update.
3290 * nto-low.cc (nto_target_ops): Update.
3291 * win32-low.cc (win32_target_ops): Update.
3293 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3295 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3296 and get_min_fast_tracepoint_insn_len ops into methods of
3299 * target.h (struct process_stratum_target): Remove the target ops.
3300 (class process_target): Add the target ops. Also add
3301 'supports_fast_tracepoints'.
3302 (target_supports_fast_tracepoints): Update the macro.
3303 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3304 (install_fast_tracepoint_jump_pad): Update and rename the macro
3306 (target_install_fast_tracepoint_jump_pad): ... this.
3307 * target.cc (process_target::supports_fast_tracepoints): Define.
3308 (process_target::install_fast_tracepoint_jump_pad): Define.
3309 (process_target::get_min_fast_tracepoint_insn_len): Define.
3311 Update the derived classes and callers below.
3313 * tracepoint.cc (install_fast_tracepoint): Update.
3314 * linux-low.cc (linux_target_ops): Update.
3315 (linux_process_target::supports_fast_tracepoints): Define.
3316 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3317 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3318 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3319 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3320 * linux-low.h (class linux_process_target): Update.
3321 * lynx-low.cc (lynx_target_ops): Update.
3322 * nto-low.cc (nto_target_ops): Update.
3323 * win32-low.cc (win32_target_ops): Update.
3325 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3327 Turn process_stratum_target's stabilize_threads op into a
3328 method of process_target.
3330 * target.h (struct process_stratum_target): Remove the target op.
3331 (class process_target): Add the target op.
3332 (target_stabilize_threads): Update the macro.
3333 * target.cc (process_target::stabilize_threads): Define.
3335 Update the derived classes and callers below.
3337 * server.cc (handle_status): Update.
3338 * tracepoint.cc (cmd_qtdp): Update.
3339 (cmd_qtstart): Update.
3340 * linux-low.cc (linux_target_ops): Update.
3341 (linux_stabilize_threads): Turn into ...
3342 (linux_process_target::stabilize_threads): ... this.
3343 (linux_wait_1): Update.
3344 * linux-low.h (class linux_process_target): Update.
3345 * lynx-low.cc (lynx_target_ops): Update.
3346 * nto-low.cc (nto_target_ops): Update.
3347 * win32-low.cc (win32_target_ops): Update.
3349 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3351 Turn process_stratum_target's pause_all and unpause_all ops
3352 into methods of process_target.
3354 * target.h (struct process_stratum_target): Remove the target ops.
3355 (class process_target): Add the target ops.
3356 (pause_all): Update the macro and rename to...
3357 (target_pause_all): ... this.
3358 (unpause_all): Update the macro and rename to...
3359 (target_unpause_all): ... this.
3360 * target.cc (process_target::pause_all): Define.
3361 (process_target::unpause_all): Define.
3363 Update the derived classes and callers below.
3365 * server.cc (handle_status): Update.
3366 * tracepoint.cc (clear_installed_tracepoints): Update.
3368 (cmd_qtstart): Update.
3369 (stop_tracing): Update.
3370 (cmd_qtstatus): Update.
3371 (upload_fast_traceframes): Update.
3372 (run_inferior_command): Update.
3373 * linux-low.cc (linux_target_ops): Update.
3374 (linux_pause_all): Turn into ...
3375 (linux_process_target::pause_all): ... this.
3376 (linux_unpause_all): Turn into ...
3377 (linux_process_target::unpause_all): ... this.
3378 (linux_process_target::prepare_to_access_memory): Update.
3379 (linux_process_target::done_accessing_memory): Update.
3380 * linux-low.h (class linux_process_target): Update.
3381 * lynx-low.cc (lynx_target_ops): Update.
3382 * nto-low.cc (nto_target_ops): Update.
3383 * win32-low.cc (win32_target_ops): Update.
3385 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3387 Turn process_stratum_target's get_tib_address op into a method of
3390 * target.h (struct process_stratum_target): Remove the target op.
3391 (class process_target): Add the target op. Also add
3392 'supports_get_tib_address'.
3393 * target.cc (process_target::get_tib_address): Define.
3394 (process_target::supports_get_tib_address): Define.
3396 Update the derived classes and callers below.
3398 * server.cc (handle_query): Update.
3399 * linux-low.cc (win32_target_ops): Update.
3400 * lynx-low.cc (lynx_target_ops): Update.
3401 * nto-low.cc (nto_target_ops): Update.
3402 * win32-low.cc (win32_target_ops): Update.
3403 (win32_process_target::supports_get_tib_address): Define.
3404 (win32_get_tib_address): Turn into ...
3405 (win32_process_target::get_tib_address): ... this.
3406 * win32-low.h (class win32_process_target): Update.
3408 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3410 Turn process_stratum_target's thread_stopped op into a method of
3413 * target.h (struct process_stratum_target): Remove the target op.
3414 (class process_target): Add the target op. Also add
3415 'supports_thread_stopped'.
3416 (target_thread_stopped): Update the macro.
3417 * target.cc (process_target::thread_stopped): Define.
3418 (process_target::supports_thread_stopped): Define.
3419 (prepare_to_access_memory): Update.
3421 Update the derived classes and callers below.
3423 * server.cc (queue_stop_reply_callback): Update.
3424 * linux-low.cc (linux_target_ops): Update.
3425 (linux_process_target::supports_thread_stopped): Define.
3426 (linux_thread_stopped): Turn into ...
3427 (linux_process_target::thread_stopped): ... this.
3428 * linux-low.h (class linux_process_target): Update.
3429 * lynx-low.cc (lynx_target_ops): Update.
3430 * nto-low.cc (nto_target_ops): Update.
3431 * win32-low.cc (win32_target_ops): Update.
3433 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3435 Turn process_stratum_target's read_pc and write_pc ops into
3436 methods of process_target.
3438 * target.h (struct process_stratum_target): Remove the target ops.
3439 (class process_target): Add the target ops.
3440 * target.cc (process_target::read_pc): Define.
3441 (process_target::write_pc): Define.
3443 Update the derived classes and callers below.
3445 * regcache.cc (regcache_read_pc): Update.
3446 (regcache_write_pc): Update.
3447 * linux-low.cc (linux_target_ops): Update.
3448 (linux_read_pc): Turn into ...
3449 (linux_process_target::read_pc): ... this.
3450 (linux_write_pc): Turn into ...
3451 (linux_process_target::write_pc): ... this.
3452 * linux-low.h (class linux_process_target): Update.
3453 * lynx-low.cc (lynx_target_ops): Update.
3454 * nto-low.cc (nto_target_ops): Update.
3455 * win32-low.cc (win32_target_ops): Update.
3457 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3459 Turn process_stratum_target's supports_tracepoints op into a
3460 method of process_target.
3462 * target.h (struct process_stratum_target): Remove the target op.
3463 (class process_target): Add the target op.
3464 (target_supports_tracepoints): Update the macro.
3465 * target.cc (process_target::supports_tracepoints): Define.
3467 Update the derived classes and callers below.
3469 * linux-low.cc (linux_target_ops): Update.
3470 (linux_supports_tracepoints): Turn into ...
3471 (linux_process_target::supports_tracepoints): ... this.
3472 * linux-low.h (class linux_process_target): Update.
3473 * lynx-low.cc (lynx_target_ops): Update.
3474 * nto-low.cc (nto_target_ops): Update.
3475 * win32-low.cc (win32_target_ops): Update.
3477 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3479 Turn process_stratum_target's process_qsupported op into a method
3482 * target.h (struct process_stratum_target): Remove the target op.
3483 (class process_target): Add the target op.
3484 (target_process_qsupported): Update the macro.
3485 * target.cc (process_target::process_qsupported): Define.
3487 Update the derived classes and callers below.
3489 * linux-low.cc (linux_target_ops): Update.
3490 (linux_process_qsupported): Turn into ...
3491 (linux_process_target::process_qsupported): ... this.
3492 * linux-low.h (class linux_process_target): Update.
3493 * lynx-low.cc (lynx_target_ops): Update.
3494 * nto-low.cc (nto_target_ops): Update.
3495 * win32-low.cc (win32_target_ops): Update.
3497 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3499 Turn process_stratum_target's read_loadmap op into a method of
3502 * target.h (struct process_stratum_target): Remove the target op.
3503 (class process_target): Add the target op. Also add
3504 'supports_read_loadmap'.
3505 * target.cc (process_target::read_loadmap): Define.
3506 (process_target::supports_read_loadmap): Define.
3508 Update the derived classes and callers below.
3510 * server.cc (handle_qxfer_fdpic): Update.
3511 (handle_query): Update.
3512 * linux-low.cc (linux_target_ops): Update.
3513 (linux_process_target::supports_read_loadmap): Define.
3514 (linux_read_loadmap): Turn into ...
3515 (linux_process_target::read_loadmap): ... this.
3516 * linux-low.h (class linux_process_target): Update.
3517 * lynx-low.cc (lynx_target_ops): Update.
3518 * nto-low.cc (nto_target_ops): Update.
3519 * win32-low.cc (win32_target_ops): Update.
3521 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3523 Turn process_stratum_target's core_of_thread op into a method of
3526 * target.h (struct process_stratum_target): Remove the target op.
3527 (class process_target): Add the target op.
3528 (target_core_of_thread): Update the macro.
3529 * target.cc (process_target::core_of_thread): Define.
3531 Update the derived classes and callers below.
3533 * linux-low.cc (linux_target_ops): Update.
3534 (linux_process_target::core_of_thread): Define.
3535 * linux-low.h (class linux_process_target): Update.
3536 * lynx-low.cc (lynx_target_ops): Update.
3537 * nto-low.cc (nto_target_ops): Update.
3538 * win32-low.cc (win32_target_ops): Update.
3540 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3542 Turn process_stratum_target's handle_monitor_command op into a
3543 method of process_target.
3545 * target.h (struct process_stratum_target): Remove the target op.
3546 (class process_target): Add the target op.
3547 (target_handle_monitor_command): Update the macro.
3548 * target.cc (process_target::handle_monitor_command): Define.
3550 Update the derived classes and callers below.
3552 * server.cc (handle_query): Update.
3553 * linux-low.cc (linux_target_ops): Update.
3554 (linux_process_target::handle_monitor_command): Define.
3555 * linux-low.h (class linux_process_target): Update.
3556 * lynx-low.cc (lynx_target_ops): Update.
3557 * nto-low.cc (nto_target_ops): Update.
3558 * win32-low.cc (win32_target_ops): Update.
3560 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3562 Turn process_stratum_target's handle_new_gdb_connection op into a
3563 method of process_target.
3565 * target.h (struct process_stratum_target): Remove the target op.
3566 (class process_target): Add the target op.
3567 (target_handle_new_gdb_connection): Update the macro.
3568 * target.cc (process_target::handle_new_gdb_connection): Define.
3570 Update the derived classes and callers below.
3572 * linux-low.cc (linux_target_ops): Update.
3573 (linux_handle_new_gdb_connection): Turn into ...
3574 (linux_process_target::handle_new_gdb_connection): ... this.
3575 * linux-low.h (class linux_process_target): Update.
3576 * lynx-low.cc (lynx_target_ops): Update.
3577 * nto-low.cc (nto_target_ops): Update.
3578 * win32-low.cc (win32_target_ops): Update.
3580 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3582 Turn process_stratum_target's supports_fork_events,
3583 supports_vfork_events, and supports_exec_events ops into methods
3586 * target.h (struct process_stratum_target): Remove the target ops.
3587 (class process_target): Add the target ops.
3588 (target_supports_fork_events): Update the macro.
3589 (target_supports_vfork_events): Update the macro.
3590 (target_supports_exec_events): Update the macro.
3591 * target.cc (process_target::supports_fork_events): Define.
3592 (process_target::supports_vfork_events): Define.
3593 (process_target::supports_exec_events): Define.
3595 Update the derived classes and callers below.
3597 * linux-low.cc (linux_target_ops): Update.
3598 (linux_supports_fork_events): Turn into ...
3599 (linux_process_target::supports_fork_events): ... this.
3600 (linux_supports_vfork_events): Turn into ...
3601 (linux_process_target::supports_vfork_events): ... this.
3602 (linux_supports_exec_events): Turn into ...
3603 (linux_process_target::supports_exec_events): ... this.
3604 * linux-low.h (class linux_process_target): Update.
3605 * lynx-low.cc (lynx_target_ops): Update.
3606 * nto-low.cc (nto_target_ops): Update.
3607 * win32-low.cc (win32_target_ops): Update.
3609 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3611 Turn process_stratum_target's supports_multi_process op into a
3612 method of process_target.
3614 * target.h (struct process_stratum_target): Remove the target op.
3615 (class process_target): Add the target op.
3616 * target.cc (process_target::supports_multi_process): Define.
3617 (target_supports_multi_process): Update.
3619 Update the derived classes and callers below.
3621 * linux-low.cc (linux_target_ops): Update.
3622 (linux_supports_multi_process): Turn into ...
3623 (linux_process_target::supports_multi_process): ... this.
3624 * linux-low.h (class linux_process_target): Update.
3625 * lynx-low.cc (lynx_target_ops): Update.
3626 * nto-low.cc (nto_target_ops): Update.
3627 * win32-low.cc (win32_target_ops): Update.
3629 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3631 Turn process_stratum_target's supports_non_stop, async, and
3632 start_non_stop ops into methods of process_target.
3634 * target.h (struct process_stratum_target): Remove the target ops.
3635 (class process_target): Add the target ops.
3636 (target_supports_non_stop): Update the macro.
3637 (target_async): Update the macro.
3638 (start_non_stop): Remove declaration.
3639 * target.cc (process_target::supports_non_stop): Define.
3640 (process_target::async): Define.
3641 (process_target::start_non_stop): Define.
3642 (start_non_stop): Remove.
3644 Update the derived classes and callers below.
3646 * server.cc (handle_qxfer_siginfo): Update.
3647 (handle_query): Update.
3648 * linux-low.cc (linux_target_ops): Update.
3649 (linux_supports_non_stop): Turn into ...
3650 (linux_process_target::supports_non_stop): ... this.
3651 (linux_async): Turn into ...
3652 (linux_process_target::async): ... this.
3653 (linux_start_non_stop): Turn into ...
3654 (linux_process_target::start_non_stop): ... this.
3655 * linux-low.h (class linux_process_target): Update.
3656 * lynx-low.cc (lynx_target_ops): Update.
3657 * nto-low.cc (nto_target_ops): Update.
3658 (nto_supports_non_stop): Remove; rely on the default behavior
3660 * win32-low.cc (win32_target_ops): Update.
3662 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3664 Turn process_stratum_target's qxfer_siginfo op into a method of
3667 * target.h (struct process_stratum_target): Remove the target op.
3668 (class process_target): Add the target op. Also add
3669 'supports_qxfer_siginfo'.
3670 * target.cc (process_target::qxfer_siginfo): Define.
3671 (process_target::supports_qxfer_siginfo): Define.
3673 Update the derived classes and callers below.
3675 * server.cc (handle_qxfer_siginfo): Update.
3676 (handle_query): Update.
3677 * linux-low.cc (linux_target_ops): Update.
3678 (linux_process_target::supports_qxfer_siginfo): Define.
3679 (linux_xfer_siginfo): Turn into ...
3680 (linux_process_target::qxfer_siginfo): ... this.
3681 * linux-low.h (class linux_process_target): Update.
3682 * lynx-low.cc (lynx_target_ops): Update.
3683 * nto-low.cc (nto_target_ops): Update.
3684 * win32-low.cc (win32_target_ops): Update.
3686 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3688 Turn process_stratum_target's qxfer_osdata op into a method of
3691 * target.h (struct process_stratum_target): Remove the target op.
3692 (class process_target): Add the target op. Also add
3693 'supports_qxfer_osdata'.
3694 * target.cc (process_target::qxfer_osdata): Define.
3695 (process_target::supports_qxfer_osdata): Define.
3697 Update the derived classes and callers below.
3699 * server.cc (handle_qxfer_osdata): Update.
3700 (handle_query): Update.
3701 * linux-low.cc (linux_target_ops): Update.
3702 (linux_process_target::supports_qxfer_osdata): Define.
3703 (linux_qxfer_osdata): Turn into ...
3704 (linux_process_target::qxfer_osdata): ... this.
3705 * linux-low.h (class linux_process_target): Update.
3706 * lynx-low.cc (lynx_target_ops): Update.
3707 * nto-low.cc (nto_target_ops): Update.
3708 * win32-low.cc (win32_target_ops): Update.
3710 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3712 Turn process_stratum_target's hostio_last_error op into a
3713 method of process_target.
3715 * target.h (struct process_stratum_target): Remove the target op.
3716 (class process_target): Add the target op.
3717 * target.cc: Add "hostio.h" to includes.
3718 (process_target::hostio_last_error): Define.
3720 Update the derived classes and callers below.
3722 * hostio.cc (hostio_error): Update.
3723 * linux-low.cc: Remove "hostio.h" from includes.
3724 (linux_target_ops): Update.
3725 * lynx-low.cc (lynx_target_ops): Update.
3726 * nto-low.cc (nto_target_ops): Update.
3727 * win32-low.h (class win32_process_target): Update.
3728 * win32-low.cc (win32_target_ops): Update.
3729 (wince_hostio_last_error): Turn into ...
3730 (win32_process_target::hostio_last_error): ... this.
3732 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3734 Turn process_stratum_target's get_tls_address op into a method of
3737 * target.h (struct process_stratum_target): Remove the target op.
3738 (class process_target): Add the target op. Also add
3739 'supports_get_tls_address'.
3740 * target.cc (process_target::get_tls_address): Define.
3741 (process_target::supports_get_tls_address): Define.
3743 Update the derived classes and callers below.
3745 * server.cc (handle_query): Update.
3746 * linux-low.cc (linux_target_ops): Update.
3747 (linux_process_target::supports_get_tls_address): Define.
3748 (linux_process_target::get_tls_address): Define.
3749 * linux-low.h (class linux_process_target): Update.
3750 * lynx-low.cc (lynx_target_ops): Update.
3751 * nto-low.cc (nto_target_ops): Update.
3752 * win32-low.cc (win32_target_ops): Update.
3754 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3756 Turn process_stratum_target's read_offsets op into a method of
3759 * target.h (struct process_stratum_target): Remove the target op.
3760 (class process_target): Add the target op. Also add
3761 'supports_read_offsets'.
3762 * target.cc (process_target::read_offsets): Define.
3763 (process_target::supports_read_offsets): Define.
3765 Update the derived classes and callers below.
3767 * server.cc (handle_query): Update.
3768 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3769 (linux_target_ops): Update.
3770 (linux_process_target::supports_read_offsets): Define.
3771 (linux_read_offsets): Turn into ...
3772 (linux_process_target::read_offsets): ... this.
3773 * linux-low.h (class linux_process_target): Update.
3774 * lynx-low.cc (lynx_target_ops): Update.
3775 * nto-low.cc (nto_target_ops): Update.
3776 * win32-low.cc (win32_target_ops): Update.
3778 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3780 Turn process_stratum_target's stopped_by_watchpoint and
3781 stopped_data_address ops into methods of process_target.
3783 * target.h (struct process_stratum_target): Remove the target ops.
3784 (class process_target): Add the target ops.
3785 * target.cc (process_target::stopped_by_watchpoint): Define.
3786 (process_target::stopped_data_address): Define.
3788 Update the derived classes and callers below.
3790 * remote-utils.cc (prepare_resume_reply): Update.
3791 * linux-low.cc (linux_target_ops): Update.
3792 (linux_stopped_by_watchpoint): Turn into ...
3793 (linux_process_target::stopped_by_watchpoint): ... this.
3794 (linux_stopped_data_address): Turn into ...
3795 (linux_process_target::stopped_data_address): ... this.
3796 * linux-low.h (class linux_process_target): Update.
3797 * lynx-low.cc (lynx_target_ops): Update.
3798 * nto-low.cc (nto_target_ops): Update.
3799 (nto_stopped_by_watchpoint): Turn into ...
3800 (nto_process_target::stopped_by_watchpoint): ... this.
3801 (nto_stopped_data_address): Turn into ...
3802 (nto_process_target::stopped_data_address): ... this.
3803 * nto-low.h (class nto_process_target): Update.
3804 * win32-low.cc (win32_target_ops): Update.
3805 (win32_stopped_by_watchpoint): Turn into ...
3806 (win32_process_target::stopped_by_watchpoint): ... this.
3807 (win32_stopped_data_address): Turn into ...
3808 (win32_process_target::stopped_data_address): ... this.
3809 * win32-low.h (class win32_process_target): Update.
3811 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3813 Turn process_stratum_target's supports_hardware_single_step op into
3814 a method of process_target.
3816 * target.h (struct process_stratum_target): Remove the target op.
3817 (class process_target): Add the target op.
3818 (target_supports_hardware_single_step): Update the macro.
3819 (target_can_do_hardware_single_step): Remove declaration.
3820 * target.cc (process_target::supports_hardware_single_step): Define.
3821 (target_can_do_hardware_single_step): Remove.
3823 Update the derived classes and callers below.
3825 * linux-low.h (class linux_process_target): Update.
3826 * linux-low.cc (linux_target_ops): Update.
3827 (linux_supports_hardware_single_step): Turn into ...
3828 (linux_process_target::supports_hardware_single_step): ... this.
3829 * lynx-low.h (class lynx_process_target): Update.
3830 * lynx-low.cc (lynx_target_ops): Update.
3831 (lynx_process_target::supports_hardware_single_step): Define.
3832 * nto-low.h (class nto_process_target): Update.
3833 * nto-low.cc (nto_target_ops): Update.
3834 (nto_process_target::supports_hardware_single_step): Define.
3835 * win32-low.h (class win32_process_target): Update.
3836 * win32-low.cc (win32_target_ops): Update.
3837 (win32_process_target::supports_hardware_single_step): Define.
3839 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3841 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3842 ops into methods of process_target.
3844 * target.h (struct process_stratum_target): Remove the target ops.
3845 (class process_target): Add the target ops.
3846 (target_stopped_by_hw_breakpoint): Update the macro.
3847 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3848 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3849 (process_target::supports_stopped_by_hw_breakpoint): Define.
3851 Update the derived classes and callers below.
3853 * linux-low.cc (linux_target_ops): Update.
3854 (linux_stopped_by_hw_breakpoint): Turn into ...
3855 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3856 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3857 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3858 * linux-low.h (class linux_process_target): Update.
3859 * lynx-low.cc (lynx_target_ops): Update.
3860 * nto-low.cc (nto_target_ops): Update.
3861 * win32-low.cc (win32_target_ops): Update.
3863 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3865 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3866 ops into methods of process_target.
3868 * target.h (struct process_stratum_target): Remove the target ops.
3869 (class process_target): Add the target ops.
3870 (target_stopped_by_sw_breakpoint): Update the macro.
3871 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3872 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3873 (process_target::supports_stopped_by_sw_breakpoint): Define.
3875 Update the derived classes and callers below.
3877 * linux-low.cc (linux_target_ops): Update.
3878 (linux_stopped_by_sw_breakpoint): Turn into ...
3879 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3880 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3881 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3882 * linux-low.h (class linux_process_target): Update.
3883 * lynx-low.cc (lynx_target_ops): Update.
3884 * nto-low.cc (nto_target_ops): Update.
3885 * win32-low.cc (win32_target_ops): Update.
3887 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3889 Turn process_stratum_target's insert_point and remove_point ops
3890 into methods of process_target.
3892 * target.h (struct process_stratum_target): Remove the target ops.
3893 (class process_target): Add the target ops.
3894 * target.cc (process_target::insert_point): Define.
3895 (process_target::remove_point): Define.
3897 Update the derived classes and callers below.
3899 * mem-break.cc (set_raw_breakpoint_at): Update.
3900 (delete_raw_breakpoint): Update.
3901 (uninsert_raw_breakpoint): Update.
3902 (reinsert_raw_breakpoint): Update.
3903 * linux-low.cc (linux_target_ops): Update.
3904 (linux_insert_point): Turn into ...
3905 (linux_process_target::insert_point): ... this.
3906 (linux_remove_point): Turn into ...
3907 (linux_process_target::remove_point): ... this.
3908 * linux-low.h (class linux_process_target): Update.
3909 * lynx-low.cc (lynx_target_ops): Update.
3910 * nto-low.cc (nto_target_ops): Update.
3911 (nto_insert_point): Turn into ...
3912 (nto_process_target::insert_point): ... this.
3913 (nto_remove_point): Turn into ...
3914 (nto_process_target::remove_point): ... this.
3915 * nto-low.h (class nto_process_target): Update.
3916 * win32-low.cc (win32_target_ops): Update.
3917 (win32_insert_point): Turn into ...
3918 (win32_process_target::insert_point): ... this.
3919 (win32_remove_point): Turn into ...
3920 (win32_process_target::remove_point): ... this.
3921 * win32-low.h (class win32_process_target): Update.
3923 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3925 Turn process_stratum_target's supports_z_point_type op into a
3926 method of process_target.
3928 * target.h (struct process_stratum_target): Remove the target op.
3929 (class process_target): Add the target op.
3930 * target.cc (process_target::supports_z_point_type): Define.
3932 Update the derived classes and callers below.
3934 * mem-break.cc (z_type_supported): Update.
3935 * linux-low.cc (linux_target_ops): Update.
3936 (linux_supports_z_point_type): Turn into ...
3937 (linux_process_target::supports_z_point_type): ... this.
3938 * linux-low.h (class linux_process_target): Update.
3939 * lynx-low.cc (lynx_target_ops): Update.
3940 * nto-low.cc (nto_target_ops): Update.
3941 (nto_supports_z_point_type): Turn into ...
3942 (nto_process_target::supports_z_point_type): ... this.
3943 * nto-low.h (class nto_process_target): Update.
3944 * win32-low.cc (win32_target_ops): Update.
3945 (win32_supports_z_point_type): Turn into ...
3946 (win32_process_target::supports_z_point_type): ... this.
3947 * win32-low.h (class win32_process_target): Update.
3949 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3951 Turn process_stratum_target's read_auxv op into a method of
3954 * target.h (class process_stratum_target): Remove the target op.
3955 (struct process_target): Add the target op. Also add
3956 'supports_read_auxv'.
3957 * target.cc (process_target::read_auxv): Define.
3958 (process_target::supports_read_auxv): Define.
3960 Update the derived classes and callers below.
3962 * server.cc (handle_qxfer_auxv): Update.
3963 (handle_query): Update.
3964 * linux-low.cc (linux_target_ops): Update.
3965 (linux_process_target::supports_read_auxv): Define.
3966 (linux_read_auxv): Turn into ...
3967 (linux_process_target::read_auxv): ... this.
3968 * linux-low.h (class linux_process_target): Update.
3969 * lynx-low.cc (lynx_target_ops): Update.
3970 * nto-low.cc (nto_target_ops): Update.
3971 (nto_process_target::supports_read_auxv): Define.
3972 (nto_read_auxv): Turn into ...
3973 (nto_process_target::read_auxv): ... this.
3974 * nto-low.h (class nto_process_target): Update.
3975 * win32-low.cc (win32_target_ops): Update.
3977 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3979 Turn process_stratum_target's request_interrupt op into a method of
3982 * target.h (struct process_stratum_target): Remove the target op.
3983 (class process_target): Add the target op.
3985 Update the derived classes and callers below.
3987 * remote-utils.cc (putpkt_binary_1): Update.
3988 (input_interrupt): Update.
3990 * server.cc (handle_v_requests): Update.
3991 * linux-low.cc (linux_target_ops): Update.
3992 (linux_request_interrupt): Turn into ...
3993 (linux_process_target::request_interrupt): ... this.
3994 * linux-low.h (class linux_process_target): Update.
3995 * lynx-low.cc (lynx_target_ops): Update.
3996 (lynx_request_interrupt): Turn into ...
3997 (lynx_process_target::request_interrupt): ... this.
3998 * lynx-low.h (class lynx_process_target): Update.
3999 * nto-low.cc (nto_target_ops): Update.
4000 (nto_request_interrupt): Turn into ...
4001 (nto_process_target::request_interrupt): ... this.
4002 * nto-low.h (class nto_process_target): Update.
4003 * win32-low.cc (win32_target_ops): Update.
4004 (win32_request_interrupt): Turn into ...
4005 (win32_process_target::request_interrupt): ... this.
4006 * win32-low.h (class win32_process_target): Update.
4008 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4010 Turn process_stratum_target's look_up_symbols op into a method of
4013 * target.h (struct process_stratum_target): Remove the target op.
4014 (class process_target): Add the target op.
4015 * target.cc (process_target::look_up_symbols): Define.
4017 Update the derived classes and callers below.
4019 * server.cc (handle_query): Update.
4020 * linux-low.cc (linux_target_ops): Update.
4021 (linux_look_up_symbols): Turn into ...
4022 (linux_process_target::look_up_symbols): ... this.
4023 * linux-low.h (class linux_process_target): Update.
4024 * lynx-low.cc (lynx_target_ops): Update.
4025 * nto-low.cc (nto_target_ops): Update.
4026 * win32-low.cc (win32_target_ops): Update.
4028 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4030 Turn process_stratum_target's read_memory and write_memory
4031 ops into methods of process_target.
4033 * target.h (struct process_stratum_target): Remove the target ops.
4034 (class process_target): Add the target ops.
4036 Update the derived classes and callers below.
4038 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
4039 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
4040 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
4041 (arm_get_syscall_trapinfo): Update.
4042 * linux-cris-low.cc (cris_breakpoint_at): Update.
4043 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
4044 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
4045 * linux-mips-low.cc (mips_breakpoint_at): Update.
4046 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
4047 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
4048 * linux-sh-low.cc (sh_breakpoint_at): Update.
4049 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
4050 (sparc_store_gregset_from_stack): Update.
4051 (sparc_breakpoint_at): Update.
4052 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
4053 * linux-tile-low.cc (tile_breakpoint_at): Update.
4054 * linux-x86-low.cc (x86_breakpoint_at): Update.
4055 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
4056 * mem-brea.cc (insert_memory_breakpoint): Update.
4057 (validate_inserted_breakpoint): Update.
4058 * target.cc (read_inferior_memory): Update.
4059 (target_write_memory): Update.
4060 * linux-low.cc (linux_target_ops): Update.
4061 (linux_read_memory): Make a wrapper around the read_memory target
4063 (linux_process_target::read_memory): Rename from linux_read_memory.
4064 (linux_write_memory): Turn into ...
4065 (linux_process_target::write_memory): ... this.
4066 * linux-low.h (class linux_process_target): Update.
4067 * lynx-low.cc (lynx_target_ops): Update.
4068 (lynx_read_memory): Turn into ...
4069 (lynx_process_target::read_memory): ... this.
4070 (lynx_write_memory): Turn into ...
4071 (lynx_process_target::write_memory): ... this.
4072 * lynx-low.h (class lynx_process_target): Update.
4073 * nto-low.cc (nto_target_ops): Update.
4074 (nto_read_memory): Turn into ...
4075 (nto_process_target::read_memory): ... this.
4076 (nto_write_memory): Turn into ...
4077 (nto_process_target::write_memory): ... this.
4078 * nto-low.h (class nto_process_target): Update.
4079 * win32-low.cc (win32_target_ops): Update.
4080 (win32_read_inferior_memory): Turn into ...
4081 (win32_process_target::read_memory): ... this.
4082 (win32_write_inferior_memory): Turn into ...
4083 (win32_process_target::write_memory): ... this.
4084 * win32-low.h (class win32_process_target): Update.
4086 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4088 Turn process_stratum_target's prepare_to_access_memory and
4089 done_accessing_memory ops into methods of process_target.
4091 * target.h (struct process_stratum_target): Remove the target ops.
4092 (class process_target): Add the target ops.
4093 * target.cc (process_target::prepare_to_access_memory): Define.
4094 (process_target::done_accessing_memory): Define.
4095 (prepare_to_access_memory): Update.
4096 (done_accessing_memory): Update.
4098 Update the derived classes and callers below.
4100 * linux-low.cc (linux_target_ops): Update.
4101 (linux_prepare_to_access_memory): Turn into ...
4102 (linux_process_target::prepare_to_access_memory): ... this.
4103 (linux_done_accessing_memory): Turn into ...
4104 (linux_process_target::done_accessing_memory): ... this.
4105 * linux-low.h (class linux_process_target): Update.
4106 * lynx-low.cc (lynx_target_ops): Update.
4107 * nto-low.cc (nto_target_ops): Update.
4108 * win32-low.cc (win32_target_ops): Update.
4110 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4112 Turn process_stratum_target's fetch_registers and store_registers
4113 ops into methods of process_target.
4115 * target.h (struct process_stratum_target): Remove the target ops.
4116 (class process_target): Add the target ops.
4117 (fetch_inferior_registers): Update the macro.
4118 (store_inferior_registers): Update the macro.
4120 Update the derived classes and callers below.
4122 * linux-low.cc (linux_target_ops): Update.
4123 (linux_fetch_registers): Turn into ...
4124 (linux_process_target::fetch_registers): ... this.
4125 (linux_store_registers): Turn into ...
4126 (linux_process_target::store_registers): ... this.
4127 * linux-low.h (class linux_process_target): Update.
4128 * lynx-low.cc (lynx_target_ops): Update.
4129 (lynx_fetch_registers): Turn into ...
4130 (lynx_process_target::fetch_registers): ... this.
4131 (lynx_store_registers): Turn into ...
4132 (lynx_process_target::store_registers): ... this.
4133 * lynx-low.h (class lynx_process_target): Update.
4134 * nto-low.cc (nto_target_ops): Update.
4135 (nto_fetch_registers): Turn into ...
4136 (nto_process_target::fetch_registers): ... this.
4137 (nto_store_registers): Turn into ...
4138 (nto_process_target::store_registers): ... this.
4139 * nto-low.h (class nto_process_target): Update.
4140 * win32-low.cc (win32_target_ops): Update.
4141 (win32_fetch_inferior_registers): Turn into ...
4142 (win32_process_target::fetch_registers): ... this.
4143 (win32_store_inferior_registers): Turn into ...
4144 (win32_process_target::store_registers): ... this.
4145 * win32-low.h (class win32_process_target): Update.
4147 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4149 Turn process_stratum_target's wait op into a method of
4152 * target.h (struct process_stratum_target): Remove the target op.
4153 (class process_target): Add the target op.
4155 Update the derived classes and callers below.
4157 * target.cc (target_wait): Update.
4158 * linux-low.cc (linux_target_ops): Update.
4159 (linux_wait): Turn into ...
4160 (linux_process_target::wait): ... this.
4161 * linux-low.h (class linux_process_target): Update.
4162 * lynx-low.cc (lynx_target_ops): Update.
4163 (lynx_wait): Turn into ...
4164 (lynx_process_target::wait): ... this.
4165 * lynx-low.h (class lynx_process_target): Update.
4166 * nto-low.cc (nto_target_ops): Update.
4167 (nto_wait): Turn into ...
4168 (nto_process_target::wait): ... this.
4169 * nto-low.h (class nto_process_target): Update.
4170 * win32-low.cc (win32_target_ops): Update.
4171 (win32_wait): Turn into ...
4172 (win32_process_target::wait): ... this.
4173 (do_initial_child_stuff): Update.
4174 * win32-low.h (class win32_process_target): Update.
4176 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4178 Turn process_stratum_target's resume op into a method of
4181 * target.h (struct process_stratum_target): Remove the target op.
4182 (class process_target): Add the target op.
4184 Update the derived classes and callers below.
4186 * server.cc (resume): Update.
4187 * target.cc (target_stop_and_wait): Update.
4188 (target_continue_no_signal): Update.
4189 (target_continue): Update.
4190 * linux-low.cc (linux_target_ops): Update.
4191 (linux_resume): Turn into ...
4192 (linux_process_target::resume): ... this.
4193 * linux-low.h (class linux_process_target): Update.
4194 * lynx-low.cc (lynx_target_ops): Update.
4195 (lynx_resume): Turn into ...
4196 (lynx_process_target::resume): ... this.
4197 * lynx-low.h (class lynx_process_target): Update.
4198 * nto-low.cc (nto_target_ops): Update.
4199 (nto_resume): Turn into ...
4200 (nto_process_target::resume): ... this.
4201 * nto-low.h (class nto_process_target): Update.
4202 * win32-low.cc (win32_target_ops): Update.
4203 (win32_resume): Turn into ...
4204 (win32_process_target::resume): ... this.
4205 (win32_process_target::detach): Update.
4206 (do_initial_child_stuff): Update.
4207 * win32-low.h (class win32_process_target): Update.
4209 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4211 Turn process_stratum_target's thread_alive op into a method of
4214 * target.h (struct process_stratum_target): Remove the target op.
4215 (class process_target): Add the target op.
4216 (mythread_alive): Update the macro.
4218 Update the derived classes and callers below.
4220 * linux-low.cc (linux_target_ops): Update.
4221 (linux_thread_alive): Turn into ...
4222 (linux_process_target::thread_alive): ... this.
4223 (wait_for_sigstop): Update.
4224 * linux-low.h (class linux_process_target): Update.
4225 * lynx-low.cc (lynx_target_ops): Update.
4226 (lynx_thread_alive): Turn into ...
4227 (lynx_process_target::thread_alive): ... this.
4228 * lynx-low.h (class lynx_process_target): Update.
4229 * nto-low.cc (nto_target_ops): Update.
4230 (nto_thread_alive): Turn into ...
4231 (nto_process_target::thread_alive): ... this.
4232 * nto-low.h (class nto_process_target): Update.
4233 * win32-low.cc (win32_target_ops): Update.
4234 (win32_thread_alive): Turn into ...
4235 (win32_process_target::thread_alive): ... 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 join 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 (join_inferior): Update the macro.
4247 Update the derived classes and callers below.
4249 * linux-low.cc (linux_target_ops): Update.
4250 (linux_join): Turn into ...
4251 (linux_process_target::join): ... this.
4252 * linux-low.h (class linux_process_target): Update.
4253 * lynx-low.cc (lynx_target_ops): Update.
4254 (lynx_join): Turn into ...
4255 (lynx_process_target::join): ... this.
4256 * lynx-low.h (class lynx_process_target): Update.
4257 * nto-low.cc (nto_target_ops): Update.
4258 (nto_process_target::join): Define.
4259 * nto-low.h (class nto_process_target): Update.
4260 * win32-low.cc (win32_target_ops): Update.
4261 (win32_join): Turn into ...
4262 (win32_process_target::join): ... this.
4263 * win32-low.h (class win32_process_target): Update.
4265 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4267 Turn process_stratum_target's mourn op into a method of
4270 * target.h (struct process_stratum_target): Remove the target op.
4271 (class process_target): Add the target op.
4273 Update the derived classes and callers below.
4275 * target.cc (target_mourn_inferior): Update.
4276 * linux-low.cc (linux_target_ops): Update.
4277 (linux_mourn): Turn into ...
4278 (linux_process_target::mourn): ... this.
4279 (handle_extended_wait): Update.
4280 (linux_process_target::kill): Update.
4281 (linux_process_target::detach): Update.
4282 * linux-low.h (class linux_process_target): Update.
4283 * lynx-low.cc (lynx_target_ops): Update.
4284 (lynx_mourn): Turn into ...
4285 (lynx_process_target::mourn): ... this.
4286 * lynx-low.h (class lynx_process_target): Update.
4287 * nto-low.cc (nto_target_ops): Update.
4288 (nto_mourn): Turn into ...
4289 (nto_process_target::mourn): ... this.
4290 * nto-low.h (class nto_process_target): Update.
4291 * win32-low.cc (win32_target_ops): Update.
4292 (win32_mourn): Turn into ...
4293 (win32_process_target::mourn): ... this.
4294 * win32-low.h (class win32_process_target): Update.
4296 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4298 Turn process_stratum_target's detach op into a method of
4301 * target.h (struct process_stratum_target): Remove the target op.
4302 (class process_target): Add the target op.
4303 (detach_inferior): Update the macro.
4305 Update the derived classes and callers below.
4307 * linux-low.cc (linux_target_ops): Update.
4308 (linux_detach): Turn into ...
4309 (linux_process_target::detach): ... this.
4310 * linux-low.h (class linux_process_target): Update.
4311 * lynx-low.cc (lynx_target_ops): Update.
4312 (lynx_detach): Turn into ...
4313 (lynx_process_target::detach): ... this.
4314 * lynx-low.h (class lynx_process_target): Update.
4315 * nto-low.cc (nto_target_ops): Update.
4316 (nto_detach): Turn into ...
4317 (nto_process_target::detach): ... this.
4318 * nto-low.h (class nto_process_target): Update.
4319 * win32-low.cc (win32_target_ops): Update.
4320 (win32_detach): Turn into ...
4321 (win32_process_target::detach): ... this.
4322 * win32-low.h (class win32_process_target): Update.
4324 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4326 Turn process_stratum_target's kill op into a method of
4329 * target.h (struct process_stratum_target): Remove the target op.
4330 (class process_target): Add the target op.
4332 Update the derived classes and callers below.
4334 * target.cc (kill_inferior): Update.
4335 * linux-low.cc (linux_target_ops): Update.
4336 (linux_kill): Turn into ...
4337 (linux_process_target::kill): ... this.
4338 * linux-low.h (class linux_process_target): Update.
4339 * lynx-low.cc (lynx_target_ops): Update.
4340 (lynx_kill): Turn into ...
4341 (lynx_process_target::kill): ... this.
4342 * lynx-low.h (class lynx_process_target): Update.
4343 * nto-low.cc (nto_target_ops): Update.
4344 (nto_kill): Turn into ...
4345 (nto_process_target::kill): ... this.
4346 * nto-low.h (class nto_process_target): Update.
4347 * win32-low.cc (win32_target_ops): Update.
4348 (win32_kill): Turn into ...
4349 (win32_process_target::kill): ... this.
4350 * win32-low.h (class win32_process_target): Update.
4352 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4354 Turn process_stratum_target's attach op into a method of
4357 * target.h (struct process_stratum_target): Remove the target op.
4358 (class process_target): Add the target op.
4359 (myattach): Update the macro.
4361 Update the derived classes and callers below.
4363 * linux-low.cc (linux_target_ops): Update.
4364 (linux_attach): Turn into ...
4365 (linux_process_target::attach): ... this.
4366 * linux-low.h (class linux_process_target): Update.
4367 * lynx-low.cc (lynx_target_ops): Update.
4368 (lynx_attach): Turn into ...
4369 (lynx_process_target::attach): ... this.
4370 * lynx-low.h (class lynx_process_target): Update.
4371 * nto-low.cc (nto_target_ops): Update.
4372 (nto_attach): Turn into ...
4373 (nto_process_target::attach): ... this.
4374 * nto-low.h (class nto_process_target): Update.
4375 * win32-low.cc (win32_target_ops): Update.
4376 (win32_attach): Turn into ...
4377 (win32_process_target::attach): ... this.
4378 * win32-low.h (class win32_process_target): Update.
4380 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4382 Turn process_stratum_target's post_create_inferior op into a method
4385 * target.h (struct process_stratum_target): Remove the target op.
4386 (class process_target): Add the target op.
4387 (target_post_create_inferior): Update the macro.
4388 * target.cc (process_target::post_create_inferior): Define.
4390 Update the derived classes and callers below.
4392 * linux-low.cc (linux_target_ops): Update.
4393 (linux_post_create_inferior): Turn into ...
4394 (linux_process_target::post_create_inferior): ... this.
4395 * linux-low.h (class linux_process_target): Update.
4396 * lynx-low.cc (lynx_target_ops): Update.
4397 * nto-low.cc (nto_target_ops): Update.
4398 * win32-low.cc (win32_target_ops): Update.
4400 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4402 Turn process_stratum_target's create_inferior op into a method of
4405 * target.h (struct process_stratum_target): Remove the target op.
4406 (class process_target): Add the target op.
4407 (create_inferior): Rename the macro to ...
4408 (target_create_inferior): ... this.
4410 Update the derived classes and callers below.
4412 * server.cc (handle_v_run): Update.
4413 (captured_main): Update.
4414 (process_serial_event): Update.
4415 * linux-low.cc (linux_target_ops): Update.
4416 (linux_create_inferior): Turn into ...
4417 (linux_process_target::create_inferior): ... this.
4418 * linux-low.h (class linux_process_target): Update.
4419 * lynx-low.cc (lynx_target_ops): Update.
4420 (lynx_create_inferior): Turn into ...
4421 (lynx_process_target::create_inferior): ... this.
4422 * lynx-low.h (class lynx_process_target): Update.
4423 * nto-low.cc (nto_target_ops): Update.
4424 (nto_create_inferior): Turn into ...
4425 (nto_process_target::create_inferior): ... this.
4426 * nto-low.h (class nto_process_target): Update.
4427 * win32-low.cc (win32_target_ops): Update.
4428 (win32_create_inferior): Turn into ...
4429 (win32_process_target::create_inferior): ... this.
4430 * win32-low.h (class win32_process_target): Update.
4432 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4434 * target.h (class process_target): New class definition.
4435 (struct process_stratum_target) <pt>: New field with type
4437 * linux-low.h (class linux_process_target): Define as a derived
4438 class of 'process_target'.
4439 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4441 * lynx-low.h (class lynx_process_target): Define as a derived
4442 class of 'process_target'.
4443 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4445 * nto-low.h (class nto_process_target): Define as a derived
4446 class of 'process_target'.
4447 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4449 * win32-low.h (class win32_process_target): Define as a derived
4450 class of 'process_target'.
4451 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4454 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4456 * configure: Regenerate.
4458 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4459 Andrew Burgess <andrew.burgess@embecosm.com>
4461 * linux-riscv-low.cc: New file.
4462 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4463 and nat/riscv-linux-tdesc.c.
4464 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4465 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4468 2020-02-14 Tom Tromey <tom@tromey.com>
4470 * acinclude.m4: Don't include acx_configure_dir.m4.
4471 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4472 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4473 (all, install-only, uninstall, clean-info, clean)
4474 (maintainer-clean): Don't recurse.
4475 (subdir_do, all-lib): Remove.
4476 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4478 (generated_files): Update.
4479 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4480 * configure: Rebuild.
4481 * configure.ac: Don't configure gnulib or libiberty.
4484 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4486 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4487 preparing the command line for CreateProcess.
4488 (win32_create_inferior): Reflect the program name in debugging
4489 output that shows the process and its command line.
4491 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4493 * Makefile.in: Rename source files from .c to .cc.
4494 * %.c: Rename to %.cc.
4495 * configure.ac: Rename server.c to server.cc.
4496 * configure: Re-generate.
4498 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4500 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4502 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4504 * win32-low.c (win32_create_inferior): Set signal_pid.
4506 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4507 Pedro Alves <palves@redhat.com>
4509 Skip building gdbserver in a cross-configuration.
4510 * configure.srv: Set $gdbserver_host depending on whether $target
4511 is $host. Use $gdbserver_host instead of $host.
4513 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4515 * configure: Re-generate.
4517 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4519 * configure: Re-generate.
4521 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4523 * acinclude.m4: Update warning.m4 path.
4525 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4527 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4528 (handle_exception): Set siginfo_er.
4529 (win32_xfer_siginfo): New function.
4531 2020-02-07 Tom Tromey <tom@tromey.com>
4532 Pedro Alves <palves@redhat.com>
4534 * README: Update build documentation.
4535 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4537 * configure.ac: Update paths.
4538 * configure: Rebuild.
4539 * acinclude.m4: Update paths.
4540 * Makefile.in: Update include paths.
4541 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4542 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4543 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4544 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4545 (%-generated.c): Update paths.
4546 * Move entire directory from ../gdb/gdbserver.
4548 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4550 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4552 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4554 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4555 assignment instead of srv_linux_obj.
4557 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4559 * server.c (handle_qxfer_libraries): Write segment-address with
4562 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4564 * Makefile.in (install-strip): New target.
4565 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4566 * aclocal.m4: Regenerate.
4567 * configure: Regenerate.
4568 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4570 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4572 * Makefile.in (SFILES): Adjust paths to point to real files.
4573 (OBS): Move waitstatus.o to target/waitstatus.o.
4574 (TAGS): Transform paths appropriately.
4576 (nat/%.o): ... this pattern rule.
4578 (target/%.o): ... this pattern rule.
4579 * configure.srv: Adjust paths throughout to include nat/ prefix
4580 with the revant files.
4581 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4582 * configure: Regenerate.
4584 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4586 * Makefile.in (TAGS): Remove config files from the recipe.
4588 2020-01-14 Tom Tromey <tom@tromey.com>
4590 * configure: Rebuild.
4591 * configure.ac: Remove any checks that were added to common.m4.
4592 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4595 2020-01-14 Tom Tromey <tom@tromey.com>
4597 * server.h: Include config.h.
4598 * gdbreplay.c: Include config.h.
4599 * configure: Rebuild.
4600 * configure.ac: Don't source common.host.
4601 * acinclude.m4: Update path.
4602 * Makefile.in (INCSUPPORT): New variable.
4603 (INCLUDE_CFLAGS): Add INCSUPPORT.
4604 (SFILES): Update paths.
4605 (version-generated.c): Update path to create-version.sh.
4606 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4608 2020-01-14 Tom Tromey <tom@tromey.com>
4610 * configure.ac (LIBS): Use WIN32APILIBS.
4611 (USE_WIN32API): Don't define.
4612 * configure: Rebuild.
4614 2020-01-14 Tom Tromey <tom@tromey.com>
4616 * configure: Rebuild.
4618 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4620 * Makefile.in (%-generated.c): Remove rule for files from
4623 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4625 * configure: Re-generate.
4627 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4629 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4631 * tracepoint.c (stop_tracing, flush_trace_buffer,
4632 about_to_request_buffer_space, get_trace_state_variable_value,
4633 set_trace_state_variable_value, gdb_collect): Add declaration.
4635 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4637 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4638 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4639 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4640 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4641 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4644 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4646 * inferiors.c: Include gdbsupport/common-inferior.h.
4648 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4650 * hostio-errno.c: Include hostio.h.
4652 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4654 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4657 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4659 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4660 * linux-arm-tdesc.h: Include arch/arm.h.
4662 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4664 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4666 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4668 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4669 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4671 2020-01-10 Pedro Alves <palves@redhat.com>
4673 * fork-child.c (post_fork_inferior): Pass target down to
4675 * inferiors.c (switch_to_thread): Add process_stratum_target
4677 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4678 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4679 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4680 * remote-utils.c (prepare_resume_reply): Pass the target to
4682 * target.c (the_target): Now a process_stratum_target.
4683 (done_accessing_memory): Pass the target to switch_to_thread.
4684 (set_target_ops): Ajust to use process_stratum_target.
4685 * target.h (struct target_ops): Rename to ...
4686 (struct process_stratum_target): ... this.
4687 (the_target, set_target_ops): Adjust.
4688 (prepare_to_access_memory): Adjust comment.
4689 * win32-low.c (child_xfer_memory): Adjust to use
4690 process_stratum_target.
4691 (win32_target_ops): Now a process_stratum_target.
4693 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4694 Pedro Alves <palves@redhat.com>
4696 * win32-low.c (get_child_debug_event): Extract the fatal exception
4697 from the exit status and convert to the equivalent Posix signal
4699 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4700 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4702 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4704 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4706 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4708 * server.c (gdbserver_version): Change copyright year to 2020.
4709 * gdbreplay.c (gdbreplay_version): Likewise.
4711 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4713 * configure: Regenerate.
4714 * configure.ac: Quote variable arguments of test.
4716 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4718 * Makefile.in: Fix build with GNU Make 3.81
4720 2019-12-16 Tom Tromey <tromey@adacore.com>
4722 * server.c (get_exec_file): Constify result.
4724 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4726 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4727 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4728 * config.in: Regenerate.
4729 * configure: Regenerate.
4730 * configure.ac: Don't check for strerror.
4731 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4732 Call safe_strerror instead of strerror.
4733 * server.h (strerror): Remove this now-unnecessary declaration.
4734 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4736 (gdb_agent_helper_thread): Likewise.
4737 * utils.c (perror_with_name): Likewise.
4739 2019-11-26 Tom Tromey <tom@tromey.com>
4741 * configure, config.in: Rebuild.
4743 2019-11-26 Tom Tromey <tom@tromey.com>
4745 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4746 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4748 * configure, config.in: Rebuild.
4750 2019-11-26 Tom Tromey <tom@tromey.com>
4752 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4753 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4754 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4755 * acinclude.m4: Include ax_pthread.m4.
4756 * config.in, configure: Rebuild.
4758 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4760 * debug.c (debug_set_output): Call safe_strerror instead of
4762 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4763 (linux_kill_one_lwp): Likewise.
4764 (linux_detach_one_lwp): Likewise.
4765 (linux_wait_for_event_filtered): Likewise.
4766 (store_register): Likewise.
4767 * lynx-low.c (lynx_attach): Likewise.
4768 * mem-break.c (insert_memory_breakpoint): Likewise.
4769 (remove_memory_breakpoint): Likewise.
4770 (delete_fast_tracepoint_jump): Likewise.
4771 (set_fast_tracepoint_jump): Likewise.
4772 (uninsert_fast_tracepoint_jumps_at): Likewise.
4773 (reinsert_fast_tracepoint_jumps_at): Likewise.
4774 * nto-low.c (nto_xfer_memory): Likewise.
4775 (nto_resume): Likewise.
4777 2019-11-20 Luis Machado <luis.machado@linaro.org>
4779 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4780 instead of register count.
4781 * tdesc.c (tdesc_contains_feature): New function.
4782 * tdesc.h (tdesc_contains_feature): New prototype.
4784 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4786 * Makefile.in: Add safe-strerror.c.
4787 * configure: Regenerate.
4788 * configure.ac: Don't source common.host.
4790 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4792 * config.in: Regenerate.
4793 * configure: Regenerate.
4795 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4797 * ax.c (ax_printf): Handle size_t_arg.
4799 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4801 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4802 * mi/mi-main.c (output_cores): Likewise.
4803 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4804 (linux_xfer_osdata_modules): Likewise.
4805 * remote.c (register_remote_support_xml): Likewise.
4806 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4807 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4809 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4811 * configure: Regenerate.
4812 * configure.ac: Remove check for strerror_r.
4814 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4816 * config.in: Regenerate.
4817 * configure: Regenerate.
4818 * configure.ac: Also check for strerror_r.
4820 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4822 * ax.h (debug_agent): Remove duplicate declaration.
4824 2019-10-26 Tom de Vries <tdevries@suse.de>
4826 * linux-aarch64-low.c: Fix typos in comments.
4827 * linux-arm-low.c: Same.
4828 * linux-low.c: Same.
4829 * linux-ppc-low.c: Same.
4830 * proc-service.c: Same.
4833 * tracepoint.c: Same.
4834 * win32-low.c: Same.
4836 2019-10-25 Tom Tromey <tromey@adacore.com>
4838 * utils.c (xstrdup): Remove.
4840 2019-10-23 Tom Tromey <tom@tromey.com>
4842 * configure, config.in: Rebuild.
4844 2019-10-23 Tom Tromey <tom@tromey.com>
4846 * configure: Rebuild.
4847 * acinclude.m4: Use m4_include, not sinclude.
4849 2019-10-17 Tom Tromey <tromey@adacore.com>
4851 * configure: Rebuild.
4852 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4853 in AC_CONFIG_FILES invocation.
4854 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4857 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4859 * server.c: Include xml-builtin.h.
4860 (get_xml_features): Don't declare xml_builtins here.
4862 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4864 * Makefile.in: Remove references to vec-ipa.o.
4866 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4868 * Makefile.in: Remove references to vec.c.
4870 2019-10-02 Christian Biesinger <cbiesinger@google.com>
4872 * server.c (server_waiting): Change to bool.
4873 (extended_protocol): Likewise.
4874 (response_needed): Likewise.
4875 (exit_requested): Likewise.
4876 (run_once): Likewise.
4877 (report_no_resumed): Likewise.
4878 (non_stop): Likewise.
4879 (disable_packet_vCont): Likewise.
4880 (disable_packet_Tthread): Likewise.
4881 (disable_packet_qC): Likewise.
4882 (disable_packet_qfThreadInfo): Likewise.
4883 (handle_general_set): Update.
4884 (handle_detach): Update.
4885 (handle_monitor_command): Update.
4886 (handle_query): Update.
4887 (captured_main): Update.
4888 (process_serial_event): Update.
4889 * server.h (server_waiting): Change to bool.
4890 (disable_packet_vCont): Likewise.
4891 (disable_packet_Tthread): Likewise.
4892 (disable_packet_qC): Likewise.
4893 (disable_packet_qfThreadInfo): Likewise.
4894 (run_once): Likewise.
4895 (non_stop): Likewise.
4896 * target.c (target_stop_and_wait): Update.
4898 2019-10-02 Tom Tromey <tromey@adacore.com>
4900 * Makefile.in (SFILES): Add common-inferior.c.
4901 (OBS): Add common-inferior.o.
4902 * server.c (startup_with_shell): Don't define.
4904 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4906 * linux-low.c (linux_low_read_btrace): Update for change to
4909 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4911 * debug.c (debug_threads): Remove comment in favor of the header.
4912 * debug.h (using_threads): Add declaration.
4913 (debug_threads): Add comment.
4914 * linux-aarch64-low.c: Include debug.h and remove declaration of
4916 * nto-low.c: Likewise.
4917 * remote-utils.c: Likewise.
4918 * thread-db.c: Likewise.
4920 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4922 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4923 and powerpc-cell64l-ipa.o.
4924 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4925 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4926 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4929 * spu-low.c: Remove file.
4931 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4932 (parse_spufs_run): Remove.
4933 (ppc_get_pc): Remove Cell/B.E. support.
4934 (ppc_set_pc): Likewise.
4935 (ppc_breakpoint_at): Likewise.
4936 (ppc_arch_setup): Likewise.
4937 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4938 tdesc_powerpc_cell32l.
4939 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4940 or init_registers_powerpc_cell32l.
4941 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4942 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4943 or init_registers_powerpc_cell32l.
4944 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4945 (init_registers_powerpc_cell32l): Remove prototype.
4946 (init_registers_powerpc_cell64l): Likewise.
4948 * target.h (struct target_ops): Remove qxfer_spu member.
4949 * server.c (handle_qxfer_spu): Remove.
4950 (qxfer_packets): Remove entry for "spu".
4951 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4952 * linux-low.c (SPUFS_MAGIC): Remove.
4953 (spu_enumerate_spu_ids): Remove.
4954 (linux_qxfer_spu): Remove.
4955 (linux_target_ops): Remove qxfer_spu member.
4956 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4957 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4958 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4960 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4962 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4963 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4964 * config.in: Regenerate.
4965 * configure: Regenerate.
4967 2019-08-15 Tom Tromey <tromey@adacore.com>
4969 * target.c (target_write_memory): Use gdb::byte_vector.
4971 2019-08-15 Tom Tromey <tromey@adacore.com>
4973 * tracepoint.c (write_inferior_data_pointer)
4974 (write_inferior_integer, write_inferior_int8)
4975 (write_inferior_uinteger, m_tracepoint_action_download)
4976 (r_tracepoint_action_download, x_tracepoint_action_download)
4977 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4978 (download_agent_expr, download_tracepoint_1)
4979 (download_trace_state_variables, upload_fast_traceframes): Update.
4980 * server.c (gdb_write_memory): Update.
4981 * remote-utils.c (relocate_instruction): Update.
4982 * proc-service.c (ps_pdwrite): Update.
4983 * mem-break.c (remove_memory_breakpoint)
4984 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4985 (uninsert_fast_tracepoint_jumps_at)
4986 (reinsert_fast_tracepoint_jumps_at): Update.
4987 * linux-x86-low.c (append_insns)
4988 (i386_install_fast_tracepoint_jump_pad)
4989 (amd64_write_goto_address, i386_write_goto_address): Update.
4990 * linux-s390-low.c (append_insns, s390_write_goto_address):
4992 * linux-ppc-low.c (ppc_relocate_instruction)
4993 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4994 (ppc_write_goto_address): Update.
4995 * linux-aarch64-low.c (append_insns): Update.
4996 * target.h (struct target_ops): Update.
4997 (write_inferior_memory): Don't declare.
4998 * target.c (target_write_memory): Rename from
4999 write_inferior_memory. Remove old target_write_memory.
5001 2019-08-15 Tom Tromey <tromey@adacore.com>
5003 * target.c (write_inferior_memory): Use std::vector.
5005 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5008 * configure.ac: Drop enable-libmcheck support.
5009 * configure, config.in: Rebuild.
5010 * acinclude.m4: Don't include it.
5012 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5014 * configure.srv: Remove Arm xml files.
5016 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5018 * configure.srv: Add new files. Remove xml generated files.
5019 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
5021 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
5022 * linux-aarch32-tdesc.c: New file.
5023 * linux-aarch32-tdesc.h: New file.
5024 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
5025 * linux-arm-low.c (init_registers_arm, tdesc_arm)
5026 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
5027 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
5028 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
5029 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
5030 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
5031 (arm_read_description): Call arm_linux_read_description.
5032 (initialize_low_arch): Don't init registers.
5033 * linux-arm-tdesc.c: New file.
5034 * linux-arm-tdesc.h: New file.
5036 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5038 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
5039 Move counter inside for.
5040 (arm_read_description): Check ptrace earlier.
5041 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
5043 2019-07-09 Tom Tromey <tom@tromey.com>
5045 * configure: Rebuild.
5046 * configure.ac: Change common to gdbsupport.
5047 * acinclude.m4: Change common to gdbsupport.
5048 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
5049 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
5050 common to gdbsupport.
5051 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
5052 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
5053 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
5054 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
5055 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
5056 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
5057 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
5058 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
5059 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
5060 common to gdbsupport.
5062 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5064 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
5066 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
5068 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5070 * configure.srv: Remove legacy xml.
5071 * linux-aarch64-low.c (initialize_low_arch): Remove
5072 initialize_low_tdesc call.
5073 * linux-aarch64-tdesc-selftest.c: Remove file.
5074 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
5075 * linux-x86-low.c (initialize_low_arch): Remove
5076 initialize_low_tdesc call.
5077 * linux-x86-tdesc-selftest.c: Remove file.
5078 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
5080 2019-06-20 Tom de Vries <tdevries@suse.de>
5082 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
5083 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
5085 2019-06-19 Tom de Vries <tdevries@suse.de>
5087 * debug.h (debug_write): Change return type to ssize_t.
5088 * debug.c (debug_write): Same.
5090 2019-06-14 Tom Tromey <tom@tromey.com>
5092 * configure.ac: Use new path to gnulib.
5093 * configure: Rebuild.
5094 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
5097 2019-06-11 Tom Tromey <tom@tromey.com>
5099 * Makefile.in (SFILES): Add alloc.c.
5101 (IPA_OBJS): Add alloc-ipa.o.
5102 (alloc-ipa.o): New target.
5103 (%.o: ../%.c): New pattern rule.
5105 2019-06-10 Tom Tromey <tromey@adacore.com>
5107 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
5108 end warning with a newline.
5109 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
5111 * thread-db.c (attach_thread): Don't end warning with a newline.
5112 (thread_db_notice_clone): Likewise.
5113 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
5115 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
5116 end warning with a newline.
5118 2019-06-04 Pedro Alves <palves@redhat.com>
5120 * server.c (captured_main): Use make_unique_xstrdup.
5122 2019-06-02 Tom Tromey <tom@tromey.com>
5124 * gdbreplay.c (fromhex): Remove.
5125 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
5127 2019-05-29 Tom Tromey <tromey@adacore.com>
5129 * configure: Rebuild.
5131 2019-05-06 Kevin Buettner <kevinb@redhat.com>
5133 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
5134 sign extension code on 32-bit builds.
5136 2019-05-03 Eli Zaretskii <eliz@gnu.org>
5139 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
5141 2019-04-19 Tom Tromey <tom@tromey.com>
5143 * server.c (struct vstop_notif): Derive from notif_event.
5145 (queue_stop_reply): Update.
5146 (remove_all_on_match_ptid): Change type. Rewrite.
5147 (discard_queued_stop_replies): Rewrite.
5148 (in_queued_stop_replies_ptid): Change type.
5149 (in_queued_stop_replies): Rewrite.
5150 (notif_stop): Update.
5151 (queue_stop_reply_callback): Update.
5152 (captured_main): Don't call initialize_notif.
5153 (push_stop_notification): Update.
5154 * notif.c (notif_write_event, handle_notif_ack)
5155 (notif_event_enque, notif_push): Update.
5156 (notif_event_xfree, initialize_notif): Remove.
5157 * notif.h (struct notif_event): Include <list>, not
5159 (struct notif_server) <queue>: Now a std::list.
5160 (notif_event_p): Remove typedef.
5161 (initialize_notif): Don't declare.
5162 (struct notif_event): Add virtual destructor.
5164 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5166 * ax.c (ax_vdebug): Call debug_printf.
5167 * debug.c (debug_write): New function.
5168 * debug.h (debug_write): New declaration.
5169 * linux-low.c (sigchld_handler): Call debug_write.
5171 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5173 * debug.c (debug_set_output): New function.
5174 (debug_vprintf): Send output to debug_file.
5175 (debug_flush): Likewise.
5176 * debug.h (debug_set_output): New declaration.
5177 * server.c (handle_monitor_command): Add debug-file option.
5178 (captured_main): Likewise.
5180 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5182 * debug.c (remote_debug): Add definition.
5183 * debug.h (remote_debug): Add declaration.
5184 * hostio.c (remote_debug): Remove declaration.
5185 * remote-utils.c (struct ui_file): Likewise.
5186 (remote_debug): Likewise.
5187 * remote-utils.h (remote_debug): Likewise,
5188 * server.c (remote_debug): Remove definition.
5190 2019-04-10 Kevin Buettner <kevinb@redhat.com>
5192 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5193 when using a 64-bit gdbserver.
5195 2019-04-09 Tom Tromey <tromey@adacore.com>
5197 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5199 2019-04-08 Tom Tromey <tom@tromey.com>
5201 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5203 (linux_resume_one_lwp): Likewise.
5205 2019-04-08 Tom Tromey <tom@tromey.com>
5207 * gdbreplay.c: Update.
5208 * linux-low.c: Update.
5211 2019-04-08 Tom Tromey <tom@tromey.com>
5213 * server.c: Use C++ exception handling.
5214 * linux-low.c: Use C++ exception handling.
5215 * gdbreplay.c: Use C++ exception handling.
5217 2019-04-08 Tom Tromey <tom@tromey.com>
5219 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5220 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5221 (captured_main, main): Update.
5222 * gdbreplay.c (main): Update.
5224 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5226 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5227 value in argument pointer, return 1 if the entry is found and 0
5228 otherwise. Move comment.
5229 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5230 * linux-low.h (linux_get_auxv): Declare.
5231 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5233 2019-04-05 Tom Tromey <tromey@adacore.com>
5235 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5238 2019-03-28 Alan Hayward <alan.hayward@arm.com>
5240 * linux-low.c (AT_HWCAP2): Add define if not already included.
5242 2019-03-26 Alan Hayward <alan.hayward@arm.com>
5244 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5245 (aarch64_arch_setup): Call linux_get_hwcap.
5246 * linux-arm-low.c (arm_get_hwcap): Remove function.
5247 (arm_read_description): Call linux_get_hwcap.
5248 * linux-low.c (linux_get_auxv): New function.
5249 (linux_get_hwcap): Likewise.
5250 (linux_get_hwcap2): Likewise.
5251 * linux-low.h (linux_get_hwcap): New declaration.
5252 (linux_get_hwcap2): Likewise.
5253 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5254 (ppc_arch_setup): Call linux_get_hwcap.
5255 * linux-s390-low.c (s390_get_hwcap): Remove function.
5256 (s390_arch_setup): Call linux_get_hwcap.
5258 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5259 Jiong Wang <jiong.wang@arm.com>
5261 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5262 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5264 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5266 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5267 Jiong Wang <jiong.wang@arm.com>
5269 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5270 (aarch64_get_hwcap): New function.
5271 (aarch64_arch_setup): Read APIA hwcap.
5273 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5274 Jiong Wang <jiong.wang@arm.com>
5276 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5277 (initialize_low_tracepoint): Likewise.
5278 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5279 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5280 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5281 (aarch64_linux_read_description): Likewise.
5282 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5284 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5286 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5287 i386_create_target_description for 'segments' parameter.
5288 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5289 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5290 * win32-i386-low.c (i386_arch_setup): Likewise.
5292 2019-03-12 Tom Tromey <tromey@adacore.com>
5294 * linux-low.c (iterate_over_lwps): Update.
5296 2019-03-06 Tom Tromey <tom@tromey.com>
5298 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5299 (captured_main): Use SCOPE_EXIT.
5301 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5303 * configure.srv: Use '$enable_unittest' instead of '$development'
5304 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5307 2019-02-27 Tom Tromey <tromey@adacore.com>
5309 * gdbreplay.c (logchar): Handle \r\n.
5311 2019-02-07 Alan Hayward <alan.hayward@arm.com>
5313 * linux-low.c (linux_attach): Add process before lwp.
5314 * server.c (attach_inferior): Check if already attached.
5316 2019-02-07 Tom Tromey <tom@tromey.com>
5318 * x86-tdesc.h: Rename include guard.
5319 * x86-low.h: Add include guard.
5320 * wincecompat.h: Rename include guard.
5321 * win32-low.h: Add include guard.
5322 * utils.h: Rename include guard.
5323 * tracepoint.h: Rename include guard.
5324 * tdesc.h: Rename include guard.
5325 * target.h: Rename include guard.
5326 * server.h: Rename include guard.
5327 * remote-utils.h: Rename include guard.
5328 * regcache.h: Rename include guard.
5329 * nto-low.h: Rename include guard.
5330 * notif.h: Add include guard.
5331 * mem-break.h: Rename include guard.
5332 * lynx-low.h: Add include guard.
5333 * linux-x86-tdesc.h: Add include guard.
5334 * linux-s390-tdesc.h: Add include guard.
5335 * linux-ppc-tdesc-init.h: Add include guard.
5336 * linux-low.h: Add include guard.
5337 * linux-aarch64-tdesc.h: Add include guard.
5338 * linux-aarch32-low.h: Add include guard.
5339 * inferiors.h: Rename include guard.
5340 * i387-fp.h: Rename include guard.
5341 * hostio.h: Rename include guard.
5342 * gdbthread.h: Rename include guard.
5343 * gdb_proc_service.h: Rename include guard.
5344 * event-loop.h: Rename include guard.
5345 * dll.h: Rename include guard.
5346 * debug.h: Rename include guard.
5347 * ax.h: Rename include guard.
5349 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5352 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5353 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5355 2019-01-25 Tom Tromey <tom@tromey.com>
5357 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5359 2019-01-25 Tom Tromey <tom@tromey.com>
5361 * win32-low.c: Fix common/ includes.
5362 * win32-i386-low.c: Fix common/ includes.
5363 * tracepoint.c: Fix common/ includes.
5364 * thread-db.c: Fix common/ includes.
5365 * target.h: Fix common/ includes.
5366 * symbol.c: Fix common/ includes.
5367 * spu-low.c: Fix common/ includes.
5368 * server.h: Fix common/ includes.
5369 * server.c: Fix common/ includes.
5370 * remote-utils.c: Fix common/ includes.
5371 * regcache.h: Fix common/ includes.
5372 * regcache.c: Fix common/ includes.
5373 * nto-x86-low.c: Fix common/ includes.
5374 * notif.h: Fix common/ includes.
5375 * mem-break.h: Fix common/ includes.
5376 * lynx-low.c: Fix common/ includes.
5377 * lynx-i386-low.c: Fix common/ includes.
5378 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5379 * linux-x86-low.c: Fix common/ includes.
5380 * linux-low.c: Fix common/ includes.
5381 * inferiors.h: Fix common/ includes.
5382 * i387-fp.c: Fix common/ includes.
5383 * hostio.c: Fix common/ includes.
5384 * hostio-errno.c: Fix common/ includes.
5385 * gdbthread.h: Fix common/ includes.
5386 * gdbreplay.c: Fix common/ includes.
5387 * fork-child.c: Fix common/ includes.
5388 * event-loop.c: Fix common/ includes.
5390 (enum gdb_agent_op): Fix common/ includes.
5392 2019-01-21 Tom Tromey <tom@tromey.com>
5394 * tracepoint.c: Fix includes.
5395 * remote-utils.c: Fix includes.
5396 * linux-x86-low.c: Fix includes.
5398 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5400 * gdbreplay.c (gdbreplay_version): Update copyright year in
5402 * server.c (gdbserver_version): Likewise.
5404 2018-12-05 Alan Hayward <alan.hayward@arm.com>
5406 * linux-low.c (add_lwp): Switch ordering.
5408 2018-11-29 Tom Tromey <tom@tromey.com>
5410 * win32-low.c (win32_join): Take pid, not process.
5411 * target.h (struct target_ops) <join>: Change argument type.
5412 (join_inferior): Change argument name.
5413 * spu-low.c (spu_join): Take pid, not process.
5414 * server.c (handle_detach): Preserve pid before destroying
5416 * lynx-low.c (lynx_join): Take pid, not process.
5417 * linux-low.c (linux_join): Take pid, not process.
5419 2018-11-23 Alan Hayward <alan.hayward@arm.com>
5421 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5422 (aarch64_cannot_fetch_register): Likewise.
5423 (struct linux_target_ops): Update references.
5425 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5427 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5429 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5431 * configure.srv (ipa_ppc_linux_regobj): Add
5432 powerpc-isa207-htm-vsx32l-ipa.o and
5433 powerpc-isa207-htm-vsx64l-ipa.o.
5434 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5435 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5436 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5437 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5438 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5439 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5440 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5441 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5442 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5443 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5444 (init_registers_powerpc_isa207_htm_vsx32l)
5445 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5446 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5447 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5448 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5449 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5450 (ppc_store_tm_ctarregset): New functions.
5451 (ppc_regsets): Add entries for HTM regsets.
5452 (ppc_arch_setup): Set htm in features struct when needed. Set
5453 sizes for the HTM regsets.
5454 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5455 (initialize_low_arch): Call
5456 init_registers_powerpc_isa207_htm_vsx32l and
5457 init_registers_powerpc_isa207_htm_vsx64l.
5458 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5459 PPC_TDESC_ISA207_HTM_VSX.
5460 (initialize_low_tracepoint): Call
5461 init_registers_powerpc_isa207_htm_vsx32l and
5462 init_registers_powerpc_isa207_htm_vsx64l.
5464 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5466 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5467 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5468 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5469 (ppc_store_pmuregset): New functions.
5470 (ppc_regsets): Add entries for ebb and pmu regsets.
5471 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5472 pmu regsets are available. Set sizes for these regsets.
5474 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5476 * configure.srv (ipa_ppc_linux_regobj): Add
5477 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5478 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5479 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5480 rs6000/powerpc-isa207-vsx32l.xml, and
5481 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5482 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5483 <PPC_TDESC_ISA207_VSX>: New enum value.
5484 (init_registers_powerpc_isa207_vsx32l): Declare.
5485 (init_registers_powerpc_isa207_vsx64l): Declare.
5486 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5487 (ppc_store_tarregset): New function.
5488 (ppc_regsets): Add entry for the TAR regset.
5489 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5490 size for the TAR regsets.
5491 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5492 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5493 and init_registers_powerpc_isa207_vsx64l.
5494 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5495 (initialize_low_tracepoint): Call
5496 init_registers_powerpc_isa207_vsx32l and
5497 init_registers_powerpc_isa207_vsx64l.
5499 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5500 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5502 * configure.srv (ipa_ppc_linux_regobj): Add
5503 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5504 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5505 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5506 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5507 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5508 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5509 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5510 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5511 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5512 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5513 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5514 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5515 (ppc_hwcap): Add comment.
5516 (ppc_hwcap2): New global.
5517 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5518 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5519 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5520 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5521 when needed. Set sizes for the the DSCR and PPR regsets.
5522 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5523 (initialize_low_arch): Call
5524 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5525 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5526 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5527 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5528 (initialize_low_tracepoint): Call
5529 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5530 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5532 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5534 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5536 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5537 Simon Marchi <simark@simark.ca>
5539 * acinclude.m4: Include "../selftest.m4".
5540 * configure: Regenerate.
5541 * configure.ac: Use "GDB_AC_SELFTEST".
5542 * configure.srv: Use "$enable_unittests" instead of
5543 "$development" when checking whether unit tests have been
5545 * server.c (captured_main): Update message informing that
5546 selftests have been disabled.
5548 2018-10-04 Tom Tromey <tom@tromey.com>
5550 * configure: Rebuild.
5552 2018-10-04 Tom Tromey <tom@tromey.com>
5554 * server.c (handle_status): Rename inner "thread".
5555 (process_serial_event): Declare "res" in 'm' case.
5556 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5557 (iterate_over_lwps): Rename inner "thread".
5558 (linux_qxfer_libraries_svr4): Rename inner "len".
5559 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5561 2018-10-01 Gary Benson <gbenson@redhat.com>
5563 * gdb_proc_service.h: Moved common code to
5564 common/gdb_proc_service.h.
5566 2018-10-01 Gary Benson <gbenson@redhat.com>
5568 * gdb_proc_service.h: Synchronize comments and whitespace with
5569 GDB's version of this file.
5571 2018-09-25 Tom Tromey <tom@tromey.com>
5573 * configure: Rebuild.
5574 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5576 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5578 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5579 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5580 ($(IPA_LIB)): Sort IPA_OBJS.
5582 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5584 * Makefile.in: Remove references to $(ADD_DEPS).
5586 2018-09-16 Tom Tromey <tom@tromey.com>
5588 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5590 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5593 2018-09-05 Tom Tromey <tom@tromey.com>
5595 * configure: Rebuild.
5597 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5600 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5602 2018-08-27 Tom Tromey <tom@tromey.com>
5605 * configure: Rebuild.
5607 2018-08-27 Tom Tromey <tom@tromey.com>
5609 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5610 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5611 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5612 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5613 (s390x_emit_stack_adjust): Add casts to unsigned char.
5615 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5619 * server.h (struct client_state) <disable_randomization>:
5622 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5624 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5626 (mips_supply_ptrace_register): Likewise.
5628 2018-07-22 Tom Tromey <tom@tromey.com>
5630 * configure: Rebuild.
5632 2018-07-22 Tom Tromey <tom@tromey.com>
5634 * win32-low.c (win32_create_inferior): Remove unused variables.
5635 * gdbreplay.c (remote_open): Remove unused variable.
5636 * remote-utils.c (remote_prepare): Remove unused variable.
5637 * x86-tdesc.h (X86_TDESC_H): Define.
5638 (amd64_expedite_regs): Define conditionally.
5639 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5640 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5641 * remote-utils.c (readchar): Remove unused variable.
5643 2018-07-13 Pedro Alves <palves@redhat.com>
5645 * linux-low.c (linux_kill): Change parameter to process_info
5646 pointer instead of pid. Adjust.
5647 * lynx-low.c (lynx_kill): Likewise.
5648 * nto-low.c (nto_kill): Likewise.
5649 * spu-low.c (spu_kill): Likewise.
5650 * win32-low.c (win32_kill): Likewise.
5651 * server.c (handle_v_kill, kill_inferior_callback)
5652 (detach_or_kill_for_exit): Adjust.
5653 * target.c (kill_inferior): Change parameter to process_info
5654 pointer instead of pid. Adjust.
5655 * target.h (struct target_ops) <kill>: Change parameter to
5656 process_info pointer instead of pid. Adjust all implementations
5658 (kill_inferior): Likewise.
5660 2018-07-13 Pedro Alves <palves@redhat.com>
5662 * linux-low.c (linux_detach, linux_join): Change parameter to
5663 process_info pointer instead of pid. Adjust.
5664 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5665 * nto-low.c (nto_detach): Likewise.
5666 * spu-low.c (spu_detach, spu_join): Likewise.
5667 * win32-low.c (win32_detach, win32_join): Likewise.
5668 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5669 * target.h (struct target_ops) <detach, join>: Change parameter to
5670 process_info pointer instead of pid. Adjust all implementations
5672 (detach_inferior, join_inferior): Rename 'pid' parameter to
5675 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5676 Jan Kratochvil <jan.kratochvil@redhat.com>
5677 Paul Fertser <fercerpav@gmail.com>
5678 Tsutomu Seki <sekiriki@gmail.com>
5680 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5681 (OBS): Add 'common/netstuff.o'.
5682 (GDBREPLAY_OBS): Likewise.
5683 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5684 (remote_open): Implement support for IPv6
5686 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5688 (handle_accept_event): Accept connections from IPv6 sources.
5689 (remote_prepare): Handle IPv6-style hostnames; implement
5690 support for IPv6 connections.
5691 (remote_open): Implement support for printing connections from
5694 2018-07-11 Pedro Alves <palves@redhat.com>
5697 * mem-break.c (any_persistent_commands): Add process_info
5698 parameter and use it instead of relying on the current process.
5699 Change return type to bool.
5700 * mem-break.h (any_persistent_commands): Add process_info
5701 parameter and change return type to bool.
5702 * server.c (handle_detach): Remove require_running_or_return call.
5703 Look up the process_info for the process we're about to detach.
5704 If not found, return back error to GDB. Adjust
5705 any_persistent_commands call to pass down a process pointer.
5707 2018-07-11 Pedro Alves <palves@redhat.com>
5709 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5710 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5711 instead of collect_register_by_name.
5712 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5713 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5715 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5716 Pedro Alves <palves@redhat.com>
5718 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5720 2018-07-03 Tom Tromey <tom@tromey.com>
5722 * linux-low.c: Update.
5723 * lynx-low.c: Update.
5724 * mem-break.c: Update.
5725 * nto-low.c: Update.
5726 * remote-utils.c: Update.
5728 * spu-low.c: Update.
5730 * win32-low.c: Update.
5732 2018-07-03 Tom Tromey <tom@tromey.com>
5736 2018-07-03 Tom Tromey <tom@tromey.com>
5738 * linux-low.c: Update.
5740 2018-07-03 Tom Tromey <tom@tromey.com>
5744 2018-07-03 Tom Tromey <tom@tromey.com>
5746 * linux-low.c: Update.
5747 * linux-mips-low.c: Update.
5748 * lynx-low.c: Update.
5749 * nto-low.c: Update.
5750 * remote-utils.c: Update.
5752 * spu-low.c: Update.
5754 * thread-db.c: Update.
5756 2018-07-03 Tom Tromey <tom@tromey.com>
5758 * linux-low.c: Update.
5759 * linux-mips-low.c: Update.
5760 * lynx-low.c: Update.
5761 * mem-break.c: Update.
5762 * nto-low.c: Update.
5763 * remote-utils.c: Update.
5765 * spu-low.c: Update.
5767 * tracepoint.c: Update.
5769 2018-07-03 Tom Tromey <tom@tromey.com>
5771 * linux-low.c: Update.
5772 * linux-ppc-low.c: Update.
5773 * linux-x86-low.c: Update.
5774 * proc-service.c: Update.
5776 * spu-low.c: Update.
5777 * thread-db.c: Update.
5778 * win32-low.c: Update.
5780 2018-07-03 Tom Tromey <tom@tromey.com>
5782 * linux-low.c: Update.
5783 * lynx-low.c: Update.
5784 * nto-low.c: Update.
5785 * remote-utils.c: Update.
5786 * spu-low.c: Update.
5787 * thread-db.c: Update.
5788 * win32-low.c: Update.
5790 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5792 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5793 parameter in call to 'amd64_create_target_description'.
5795 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5797 * x86-tdesc.h: Remove executable permission flag.
5799 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5801 * configure.ac: Remove AC_PREREQ, add missing quoting.
5802 * configure: Re-generate.
5803 * config.in: Re-generate.
5804 * aclocal.m4: Re-generate.
5806 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5808 * tracepoint.h (current_traceframe): Remove declaration.
5810 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5812 * linux-aarch64-low.c (is_sve_tdesc): New function.
5813 (aarch64_sve_regs_copy_to_regcache): Likewise.
5814 (aarch64_sve_regs_copy_from_regcache): Likewise.
5815 (aarch64_regs_info): Add SVE checks.
5816 (initialize_low_arch): Initialize SVE.
5818 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5820 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5822 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5824 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5825 (initialize_low_tracepoint): Likewise
5826 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5827 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5829 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5831 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5833 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5835 * server.h (PBUFSIZ): Increase size
5837 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5839 * regcache.c (regcache::raw_compare): New function.
5840 * regcache.h (regcache::raw_compare): New declaration.
5842 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5844 * regcache.c (new_register_cache): Use new.
5845 (free_register_cache): Use delete.
5846 (register_data): Use const.
5847 (supply_register): Move body inside regcache.
5848 (regcache::raw_supply): New override function.
5849 (collect_register): Move body inside regcache.
5850 (regcache::raw_collect): New override function.
5851 (regcache::get_register_status): New override function.
5852 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5854 2018-06-09 Tom Tromey <tom@tromey.com>
5856 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5858 (event_queue): Use std::queue.
5859 (gdb_event_xfree): Remove.
5860 (initialize_event_loop, process_event, wait_for_event): Update.
5862 2018-06-08 Stan Cox <scox@redhat.com>
5864 * win32-low.c (win32_create_inferior): last_ptid and last_status
5865 moved to client_state.
5867 2018-06-08 Pedro Alves <palves@redhat.com>
5869 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5870 common/common-exceptions.o, common/common-utils.o,
5871 common/errors.o, common/print-utils.o and utils.o.
5872 * gdbreplay.c: Include "common-defs.h" instead of the two
5873 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5874 string.h or alloca.h.
5875 (perror_with_name): Delete.
5876 (remote_open): Use xstrdup instead of strdup.
5877 (main): Rename to ...
5878 (captured_main): ... this.
5881 2018-06-08 Tom Tromey <tom@tromey.com>
5883 * linux-low.c (linux_low_read_btrace): Update.
5885 2018-06-04 Stan Cox <scox@redhat.com>
5887 * server.h (struct client_state): New.
5888 * server.c (cont_thread, general_thread, multi_process)
5889 (report_fork_events, report_vfork_events, report_exec_events)
5890 (report_thread_events, swbreak_feature, hwbreak_feature)
5891 (vCont_supported, disable_randomization, pass_signals)
5892 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5893 Moved to client_state.
5894 * remote-utils.c (remote_debug, noack_mode)
5895 (transport_is_reliable): Moved to client_state.
5896 * tracepoint.c (current_traceframe): Moved to client_state.
5899 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5900 linux-low.c, remote-utils.h, target.c: Use client_state.
5902 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5904 * configure.srv: Add new c/h file.
5906 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5908 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5911 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5913 * gdb.arch/mips-fpregset-core.exp: New test.
5914 * gdb.arch/mips-fpregset-core.c: New test source.
5916 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5919 * hostio.c (require_int): Do not report overflow for integers
5920 between 0xfffffff and 0x7fffffff.
5922 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5924 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5925 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5926 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5928 (the_low_target): Wire them.
5930 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5932 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5933 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5934 mode. Call collect_register_by_name with vscr using
5935 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5936 (ppc_store_vrregset): Add and set vscr_offset variable as in
5937 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5940 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5942 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5943 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5944 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5946 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5948 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5949 (ppc_store_vsxregset): Likewise.
5950 (ppc_fill_vrregset): Likewise.
5951 (ppc_store_vrregset): Likewise.
5952 (ppc_fill_evrregset): Likewise.
5953 (ppc_store_evrregset): Likewise.
5954 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5955 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5958 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5960 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5961 wordsize of the inferior. Call ppc_linux_target_wordsize.
5963 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5965 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5966 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5967 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5968 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5969 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5970 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5971 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5972 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5973 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5974 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5975 (tdesc_powerpc_e500l): Remove.
5976 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5977 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5978 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5979 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5981 (ppc_arch_setup): Remove target description matching code. Fill a
5982 ppc_linux_features struct and call ppc_linux_match_description
5985 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5987 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5988 width of the requested register exceeds the width of the
5990 (mips_cannot_store_register): Likewise.
5992 2018-05-21 Maciej W. Rozycki <macro@mips.com>
5994 * linux-mips-low.c (mips_fetch_register): New function. Update
5996 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5997 (the_low_target): Wire `mips_fetch_register'.
5999 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6001 * lynx-i386-low.c (LYNXOS_178): New macro.
6002 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
6003 the layout on LynxOS-178.
6004 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
6005 handle floating point registers that are not supported by
6008 2018-05-10 Tom Tromey <tom@tromey.com>
6010 * configure: Rebuild.
6012 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6015 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
6016 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
6017 Use it to set the expedite_regs field in the given tdesc.
6018 * x86-tdesc.h: New file.
6019 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
6020 Adjust following the addition of the new expedite_regs parameter
6021 to init_target_desc.
6022 * linux-tic6x-low.c (tic6x_read_description): Likewise.
6023 * linux-x86-tdesc.c: #include "x86-tdesc.h".
6024 (i386_linux_read_description, amd64_linux_read_description):
6025 Adjust following the addition of the new expedite_regs parameter
6026 to init_target_desc.
6027 * lynx-i386-low.c: #include "x86-tdesc.h".
6028 (lynx_i386_arch_setup): Adjust following the addition of the new
6029 expedite_regs parameter to init_target_desc.
6030 * nto-x86-low.c: #include "x86-tdesc.h".
6031 (nto_x86_arch_setup): Adjust following the addition of the new
6032 expedite_regs parameter to init_target_desc.
6033 * win32-i386-low.c: #include "x86-tdesc.h".
6034 (i386_arch_setup): Adjust following the addition of the new
6035 expedite_regs parameter to init_target_desc.
6037 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6040 * win32-low.c (win32_create_inferior): Add call to my_wait
6041 setting last_status global.
6043 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6046 * win32-low.c (create_process): Only call gdb_tilde_expand if
6047 inferior_cwd is not NULL.
6049 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6051 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
6052 registers to the cache if their values have changed.
6053 (i387_xsave_to_cache): Provide default values for x87 control
6054 registers when these features are available, but disabled.
6055 * regcache.c (supply_register_by_name_zeroed): New function.
6056 * regcache.h (supply_register_by_name_zeroed): Declare new
6059 2018-05-07 Tom Tromey <tom@tromey.com>
6061 * configure: Rebuild.
6063 2018-05-04 Tom Tromey <tom@tromey.com>
6065 * configure: Rebuild.
6067 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6068 Pedro Alves <palves@redhat.com>
6070 * linux-aarch64-low.c (aarch64_stopped_data_address):
6073 2018-04-27 Tom Tromey <tom@tromey.com>
6075 * configure: Rebuild.
6077 2018-04-23 Tom Tromey <tom@tromey.com>
6079 * configure: Rebuild.
6081 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
6083 * Makefile.in (depcomp): Add "..".
6084 (all_deps_files): New and use it.
6086 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6088 * configure.srv (aarch64*-*-linux*): Don't include xml.
6089 (i[34567]86-*-cygwin*): Likewise.
6090 (i[34567]86-*-linux*): Likewise.
6091 (i[34567]86-*-lynxos*): Likewise.
6092 (i[34567]86-*-mingw32ce*): Likewise.
6093 (i[34567]86-*-mingw*): Likewise.
6094 (i[34567]86-*-nto*): Likewise.
6095 (tic6x-*-uclinux): Likewise.
6096 (x86_64-*-linux*): Likewise.
6097 (x86_64-*-mingw*): Likewise.
6098 (x86_64-*-cygwin*): Likewise.
6100 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6102 * tdesc.c: Remove xml parameter.
6104 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6106 * server.c (get_features_xml): Remove cast.
6107 * tdesc.c (void target_desc::accept): Fill in function.
6108 (tdesc_get_features_xml): Remove old xml creation.
6109 (print_xml_feature::visit_pre): Add xml vistor.
6110 * tdesc.h (struct target_desc): Make xmltarget mutable.
6111 (tdesc_get_features_xml): Remove declaration.
6113 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6115 * tdesc.c (tdesc_architecture_name): Add new function.
6116 (tdesc_osabi_name): Likewise.
6117 (tdesc_get_features_xml): Use new functions.
6119 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6121 * tdesc.c (tdesc_create_flags): Remove.
6122 (tdesc_add_flag): Likewise.
6123 (tdesc_named_type): Likewise.
6124 (tdesc_create_union): Likewise.
6125 (tdesc_create_struct): Likewise.
6126 (tdesc_create_vector): Likewise.
6127 (tdesc_add_bitfield): Likewise.
6128 (tdesc_add_field): Likewise.
6129 (tdesc_set_struct_size): Likewise.
6131 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6133 * tdesc.c (~target_desc): Remove implictly deleted items.
6134 (init_target_desc): Iterate all features.
6135 (tdesc_get_features_xml): Use vector.
6136 (tdesc_create_feature): Create feature.
6137 * tdesc.h (tdesc_feature) Remove
6138 (target_desc): Add features.
6140 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6142 * Makefile.in: Add common/tdesc.c
6143 * tdesc.c (init_target_desc): init all reg_defs from register
6145 (tdesc_create_reg): Create tdesc_reg.
6146 * tdesc.h (tdesc_feature): Add register vector.
6148 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6150 * tdesc.h (struct target_desc) <features>: Change type to
6151 std::vector<std::string>.
6152 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6154 (tdesc_get_features_xml): Likewise.
6155 (tdesc_create_feature): Likewise.
6157 2018-03-26 Alan Hayward <alan.hayward@arm.com>
6159 * regcache.c (find_register_by_number): Return a ref.
6160 (find_regno): Use references.
6161 (register_size): Likewise.
6162 (register_data): Likewise.
6163 * tdesc.c (target_desc::~target_desc): Remove free calls.
6164 (target_desc::operator==): Use std::vector compare.
6165 (init_target_desc): Use reference.
6166 (tdesc_create_reg): Use reg constructors.
6167 * tdesc.h (struct target_desc): Replace pointer with object.
6169 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6171 * regcache.c (find_register_by_number): Make static.
6172 (find_regno): Use find_register_by_number
6173 * regcache.h (struct reg): Remove declaration.
6175 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6177 * tdesc.c (target_desc::~target_desc): Move to here.
6178 (target_desc::operator==): Likewise.
6179 * tdesc.h (target_desc::~target_desc): Move from here.
6180 (target_desc::operator==): Likewise.
6182 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6184 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6186 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6188 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6190 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6191 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6192 and init_registers_s390_gs_linux64.
6194 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6196 * linux-s390-low.c (s390_fill_gs): Remove function.
6197 (s390_fill_gsbc): Remove function.
6198 (s390_regsets): Set fill functions for the guarded storage regsets
6201 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6203 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6204 the word size. Add comment.
6205 (s390_get_wordsize): New function.
6206 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6207 pswm with it. Instead, use s390_get_wordsize to determine the
6208 word size first and derive the correct tdesc from that directly.
6210 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6212 * Makefile.in: Include silent-rules.mk.
6213 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6214 (COMPILE): Add ECHO_CXX.
6215 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6216 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6217 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6218 (version-generated.c): Add ECHO_GEN.
6219 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6220 (IPAGENT_COMPILE): Add ECHO_CXX.
6221 (%-generated.c): Add ECHO_REGDAT.
6223 2018-03-14 Tom Tromey <tom@tromey.com>
6226 * ax.c (ax_printf): Special case for NULL.
6228 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6230 * linux-low.c (linux_qxfer_libraries_svr4): Use
6231 xml_escape_text_append.
6233 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6235 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6237 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6239 * server.c (handle_general_set): Remove unnecessary xstrdup.
6241 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6243 * server.c (parse_debug_format_options): Adjust to
6244 delim_string_to_char_ptr_vec changes.
6245 * thread-db.c (thread_db_load_search): Adjust to
6246 dirnames_to_char_ptr_vec changes.
6248 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6250 * target.h (target_enable_btrace, target_disable_btrace)
6251 (target_read_btrace, target_read_btrace_conf): Turn macro into
6252 inline function. Throw error if target method is not defined.
6253 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6254 check for btrace target method. Be prepared to handle exceptions
6255 from btrace target methods.
6257 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6259 * server.c (captured_main): Change order of error message printed
6260 when the current working directory cannot be found.
6262 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6264 * server.c: Include "filenames.h" and "pathstuff.h".
6265 (program_name): Delete variable.
6266 (program_path): New anonymous class.
6267 (get_exec_wrapper): Use "program_path" instead of
6269 (handle_v_run): Likewise.
6270 (captured_main): Likewise.
6271 (process_serial_event): Likewise.
6273 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6275 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6276 (OBJS): Add "pathstuff.o".
6277 * server.c (current_directory): New global variable.
6278 (captured_main): Initialize "current_directory".
6280 2018-02-26 Alan Hayward <alan.hayward@arm.com>
6282 * tdesc.c: Use common/tdesc.h.
6283 * tdesc.h: Likewise.
6285 2018-02-20 Alan Hayward <alan.hayward@arm.com>
6286 Simon Marchi <simon.marchi@ericsson.com>
6288 * Makefile.in: Switch order of make rules.
6290 2018-02-19 Alan Hayward <alan.hayward@arm.com>
6292 * Makefile.in: Add common directory in build.
6293 * configure.ac: Add common reference.
6294 * configure: Regenerate.
6296 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6298 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6299 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6300 * spu-low.c (spu_target_ops): Likewise.
6301 * win32-low.c (win32_target_ops): Likewise.
6302 * server.c (supported_btrace_packets): Report packets unconditionally.
6303 * target.h (target_ops) <supports_btrace>: Remove.
6304 (target_supports_btrace): Remove.
6306 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6308 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6309 (handle_btrace_disable): Change return type to void. Use exceptions
6311 (handle_btrace_general_set): Catch exception and copy message to
6314 2018-02-08 Tom Tromey <tom@tromey.com>
6316 * linux-low.c (install_software_single_step_breakpoints): Use
6317 make_scoped_restore.
6318 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6319 (do_restore_current_thread_cleanup): Remove.
6320 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6323 2018-02-08 Tom Tromey <tom@tromey.com>
6325 * mem-break.c (set_raw_breakpoint_at): Use
6326 gdb::unique_xmalloc_ptr.
6328 2018-01-30 Pedro Alves <palves@redhat.com>
6331 * target.c (target_terminal::terminal_state): Rename to ...
6332 (target_terminal::m_terminal_state): ... this.
6334 2018-01-19 James Clarke <jrtc27@jrtc27.com>
6336 * linux-low.c (handle_extended_wait): Surround call to
6337 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6339 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6341 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6342 linux_ptrace_attach_fail_reason_string now returning an
6344 (linux_attach): Likewise.
6345 * thread-db.c (attach_thread): Likewise.
6347 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6350 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6351 checking for fs_base/gs_base fields in struct user_regs_struct.
6352 * configure: Regenerate.
6354 2018-01-16 Yao Qi <yao.qi@linaro.org>
6357 * linux-low.c (fetch_register): Call supply_register instead of
6360 2018-01-08 Yao Qi <yao.qi@linaro.org>
6361 Simon Marchi <simon.marchi@ericsson.com>
6363 * Makefile.in (OBS): Remove selftest.o.
6364 * configure.ac: Set srv_selftest_objs if $development is true.
6365 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6366 * configure: Re-generated.
6367 * server.c (captured_main): Wrap variable selftest_filter with
6370 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6372 * server.c (parse_debug_format_options): Return std::string.
6373 (handle_monitor_command, captured_main): Adjust.
6375 2018-01-05 Pedro Alves <palves@redhat.com>
6378 * server.c (captured_main): Pass quiet=false to
6379 save_original_signals_state.
6381 2018-01-01 Joel Brobecker <brobecker@adacore.com>
6383 * gdbreplay.c (gdbreplay_version): Update copyright year in
6385 * server.c (gdbserver_version): Likewise.
6387 2017-12-08 Tom Tromey <tom@tromey.com>
6389 * ax.c (ax_printf): Update.
6391 2017-12-07 Yao Qi <yao.qi@linaro.org>
6393 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6394 aarch64_linux_read_description.
6395 * linux-amd64-ipa.c (idx2mask): New array.
6396 (get_ipa_tdesc): Move idx2mask out.
6397 (initialize_low_tracepoint): Initialize target descriptions.
6398 * linux-i386-ipa.c (idx2mask): New array.
6399 (get_ipa_tdesc): Move idx2mask out.
6400 (initialize_low_tracepoint): Initialize target descriptions.
6402 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6404 * tdesc.c (struct tdesc_type): Change return type.
6405 (tdesc_add_flag): Change parameter type.
6406 (tdesc_add_bitfield): Likewise.
6407 (tdesc_add_field): Likewise.
6408 (tdesc_set_struct_size): Likewise.
6410 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6412 * regcache.c (registers_to_string): Remove unused variable.
6414 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6416 * inferiors.c (for_each_inferior_with_data): Remove.
6417 * inferiors.h (for_each_inferior_with_data): Remove.
6418 * server.c (handle_qxfer_threads_worker): Change parameter type.
6419 (handle_qxfer_threads_proper): Use for_each_thread.
6421 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6423 * inferiors.c (for_each_inferior): Remove.
6424 (clear_inferiors): Use for_each_thread.
6425 * inferiors.h (for_each_inferior): Remove.
6426 * linux-low.c (linux_wait_for_event_filtered): Use
6428 (linux_stabilize_threads): Likewise.
6429 * regcache.c (regcache_release): Likewise.
6430 * server.c (gdb_wants_all_threads_stopped): Likewise.
6431 (clear_pending_status_callback): Remove.
6432 (handle_status): Use for_each_thread.
6433 (captured_main): Likewise.
6434 * win32-low.c (child_init_thread_list): Likewise.
6435 (win32_clear_inferiors): Likewise.
6436 (fake_breakpoint_event): Likewise.
6438 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6440 * inferiors.h (find_inferior): Remove.
6441 * inferiors.c (find_inferior): Remove.
6443 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6445 * linux-low.c (resume_status_pending_p): Update comment.
6446 (need_step_over_p): Update comment.
6448 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6450 * linux-low.c (proceed_one_lwp): Return void, change parameter
6452 (unsuspend_and_proceed_one_lwp): Likewise.
6453 (proceed_all_lwps): Use for_each_thread.
6454 (unstop_all_lwps): Likewise.
6456 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6458 * linux-low.c (linux_resume_one_thread): Return void, take
6460 (linux_resume): Use for_each_thread.
6462 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6464 * linux-low.c (send_sigstop_callback): Return void, change
6465 parameter type. Rename to...
6466 (send_sigstop): ... this.
6467 (suspend_and_send_sigstop_callback): Return void, change parameter
6469 (suspend_and_send_sigstop): ... this.
6470 (stop_all_lwps): Use for_each_thread.
6472 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6474 * linux-low.c (lwp_running): Return bool, remove unused
6476 (linux_stabilize_threads): Use find_thread.
6478 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6480 * linux-low.c (select_singlestep_lwp_callback): Remove.
6481 (count_events_callback): Remove.
6482 (select_event_lwp_callback): Remove.
6483 (select_event_lwp): Use find_thread/for_each_thread.
6485 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6487 * linux-low.c (not_stopped_callback): Return bool, take filter
6489 (linux_wait_for_event_filtered): Use find_thread.
6490 (linux_wait_1): Likewise.
6492 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6494 * linux-low.c (same_lwp): Remove.
6495 (find_lwp_pid): Use find_thread.
6497 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6499 * linux-low.c (delete_lwp_callback): Remove.
6500 (linux_mourn): Use for_each_thread.
6502 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6504 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6505 args parameter, don't check for pid.
6506 (linux_detach): Use for_each_thread.
6508 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6510 * linux-low.c (struct counter): Remove.
6511 (second_thread_of_pid_p): Remove.
6512 (last_thread_of_process_p): Use find_thread.
6514 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6516 * inferiors.c (find_inferior_in_random): Remove.
6517 * inferiors.h (find_inferior_in_random): Remove.
6518 * linux-low.c (status_pending_p_callback): Return bool, accept
6519 parameter ptid directly.
6520 (linux_wait_for_event_filtered): Use find_thread_in_random.
6521 (linux_wait_1): Likewise.
6523 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6525 * inferiors.c (find_inferior_id): Remove.
6526 (find_thread_ptid): Move implemention from find_inferior_id to
6528 * inferiors.h (find_inferior_id): Remove.
6529 * server.c (handle_status): Use find_thread_ptid.
6530 (process_serial_event): Likewise.
6531 * thread-db.c (find_one_thread): Likewise.
6532 (thread_db_thread_handle): Likewise.
6533 * win32-low.c (thread_rec): Likewise.
6534 (child_delete_thread): Likewise.
6535 (win32_thread_alive): Likewise.
6536 (get_child_debug_event): Likewise.
6538 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6540 * linux-mips-low.c (update_watch_registers_callback): Return
6541 void, remove pid_p parameter, don't check for pid.
6542 (mips_insert_point, mips_remove_point): Use for_each_thread.
6544 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6546 * lynx.low (lynx_delete_thread_callback): Remove.
6547 (lynx_mourn): Use for_each_thread.
6549 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6551 * regcache.c (regcache_invalidate_one): Remove.
6552 (regcache_invalidate_pid): use for_each_thread.
6554 2017-11-26 Tom Tromey <tom@tromey.com>
6556 * linux-low.c (linux_create_inferior): Update.
6558 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6560 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6562 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6564 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6565 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6566 * linux-aarch64-tdesc-selftest.c: New file.
6567 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6569 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6571 * configure.srv: Add new file.
6572 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6573 * linux-aarch64-tdesc-selftest.c: New file.
6574 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6576 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6578 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6579 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6580 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6582 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6584 * configure.srv: Add new files.
6585 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6586 aarch64_linux_read_description.
6587 * linux-aarch64-low.c (aarch64_linux_read_description):
6588 Merge with aarch64_arch_setup.
6589 (aarch64_arch_setup): Call aarch64_linux_read_description.
6590 * linux-aarch64-tdesc.c: New file.
6591 * linux-aarch64-tdesc.h: New file.
6593 2017-11-24 Yao Qi <yao.qi@linaro.org>
6595 * configure.srv: Set $srv_regobj for tic6x-linux.
6596 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6597 (tic6x_read_description): Move some code to tic6x_arch_setup.
6598 (tic6x_tdesc_test): New function.
6599 (initialize_low_arch): Call selftests::register_test.
6601 2017-11-22 Yao Qi <yao.qi@linaro.org>
6603 * remote-utils.c (prepare_resume_reply): Use memcpy.
6605 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6607 * linux-low.c (kill_one_lwp_callback): Return void, take
6608 argument directly, don't filter on pid.
6609 (linux_kill): Use for_each_thread.
6611 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6613 * linux-low.c (need_step_over_p): Return bool, remove dummy
6615 (linux_resume, proceed_all_lwps): Use find_thread.
6617 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6619 * linux-low.c (resume_status_pending_p): Return bool, remove
6621 (linux_resume): Use find_thread.
6623 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6625 * linux-low.c (struct thread_resume_array): Remove.
6626 (linux_set_resume_request): Return void, take arguments
6628 (linux_resume): Use for_each_thread.
6630 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6632 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6633 return bool, remove data argument.
6634 (linux_stabilize_threads): Use find_thread.
6636 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6638 * linux-low.c (unsuspend_one_lwp): Remove.
6639 (unsuspend_all_lwps): Use for_each_thread, inline code from
6642 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6644 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6645 * linux-low.c (struct iterate_over_lwps_args): Remove.
6646 (iterate_over_lwps_filter): Remove.
6647 (iterate_over_lwps): Use find_thread.
6649 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6651 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6652 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6653 code from reset_lwp_ptrace_options_callback.
6655 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6657 * linux-arm-low.c (struct update_registers_data): Remove.
6658 (update_registers_callback): Return void, take arguments
6659 directly, don't check thread's pid.
6660 (arm_insert_point, arm_remove_point): Use for_each_thread.
6662 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6664 * win32-low.c (continue_one_thread): Return void, take argument
6666 (child_continue): Use for_each_thread.
6668 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6670 * win32-i386-low.c (update_debug_registers_callback): Rename
6672 (update_debug_registers): ... this, return void, remove pid_p arg.
6673 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6675 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6677 * inferiors.h (struct process_info): Add constructor, initialize
6679 <syscalls_to_catch>: Change type to std::vector<int>.
6680 * inferiors.c (add_process): Allocate process_info with new.
6681 (remove_process): Free process_info with delete.
6682 * linux-low.c (handle_extended_wait): Adjust.
6683 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6684 * server.c (handle_general_set): Adjust.
6686 2017-11-16 Pedro Alves <palves@redhat.com>
6688 * remote-utils.c (remote_close): Block SIGIO signals instead of
6689 uninstalling the SIGIO handler.
6691 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6693 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6695 2017-11-16 Yao Qi <yao.qi@linaro.org>
6697 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6698 (tic6x_store_gregset): Likewise.
6699 (tic6x_usrregs_info): Move it up.
6701 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6703 * Makefile.in: Update arch rules.
6704 * configure.srv: Explicitly mark arch/ files.
6706 2017-11-13 Andreas Schwab <schwab@suse.de>
6708 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6710 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6712 2017-11-06 Pedro Alves <palves@redhat.com>
6714 * config.in, configure: Regenerate.
6716 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6718 * target.c (struct thread_search): Remove.
6719 (thread_search_callback): Remove.
6720 (prepare_to_access_memory): Use for_each_thread instead of
6721 find_inferior. Inline code from thread_search_callback.
6723 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6725 * server.c (struct visit_actioned_threads_data): Remove.
6726 (visit_actioned_threads): Change prototype to take arguments
6728 (resume): Use find_thread instead of find_inferior.
6730 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6732 * server.c (queue_stop_reply_callback): Change prototype, return
6734 (find_status_pending_thread_callback): Remove.
6735 (handle_status): Replace find_inferior with find_thread and
6738 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6740 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6742 (aarch64_store_gregset): Likewise.
6743 (aarch64_fill_fpregset): Likewise.
6744 (aarch64_store_fpregset): Likewise.
6746 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6748 * gdbthread.h (find_thread, for_each_thread): New functions.
6749 * inferiors.c (thread_of_pid): Remove.
6750 (find_any_thread_of_pid): Use find_thread.
6751 * linux-low.c (num_lwps): Use for_each_thread.
6753 2017-10-17 Yao Qi <yao.qi@linaro.org>
6755 * Makefile.in: Remove one rule.
6756 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6758 2017-10-17 Yao Qi <yao.qi@linaro.org>
6760 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6761 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6763 2017-10-17 Yao Qi <yao.qi@linaro.org>
6765 * configure.srv: Rename arm.o with arch/arm.o.
6767 2017-10-17 Yao Qi <yao.qi@linaro.org>
6769 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6770 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6771 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6772 (arch-i386.o, arch-amd64.o): Remove rules.
6773 (arch/%.o): New rule.
6774 Update POSTCOMPILE and COMPILE.pre.
6775 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6776 * configure: Re-generated.
6777 * configure.srv: Replace arch-i386.o with arch/i386.o.
6778 Replace arch-amd64.o with arch/amd64.o.
6780 2017-10-16 Yao Qi <yao.qi@linaro.org>
6782 * configure: Regenerated.
6784 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6786 * inferiors.h: (struct inferior_list): Remove.
6787 (struct inferior_list_entry); Remove.
6788 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6789 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6790 get_first_inferior): Remove.
6791 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6792 find_inferior_id, find_inferior_in_random): Change signature.
6793 * inferiors.c (all_threads): Change type to
6794 std::list<thread_info *>.
6795 (get_thread): Remove macro.
6796 (find_inferior, find_inferior_id): Change signature, implement
6798 (find_inferior_in_random): Change signature, implement using
6799 find_thread_in_random.
6800 (for_each_inferior, for_each_inferior_with_data): Change
6801 signature, implement using for_each_thread.
6802 (add_inferior_to_list, remove_inferior): Remove.
6803 (add_thread, get_first_thread, thread_of_pid,
6804 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6805 (get_first_inferior, one_inferior_p, clear_inferior_list):
6807 (clear_inferiors, get_thread_process): Update.
6808 * gdbthread.h: Include <list>.
6809 (struct thread_info) <entry>: Remove field.
6811 (all_threads): Change type to std::list<thread_info *>.
6812 (get_first_inferior): Add doc.
6813 (find_thread, for_each_thread, find_thread_in_random): New
6815 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6816 * linux-arm-low.c (update_registers_callback): Update.
6817 * linux-low.c (second_thread_of_pid_p): Update.
6818 (kill_one_lwp_callback, linux_detach_lwp_callback,
6819 delete_lwp_callback, status_pending_p_callback, same_lwp,
6820 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6821 iterate_over_lwps, not_stopped_callback,
6822 resume_stopped_resumed_lwps, count_events_callback,
6823 select_singlestep_lwp_callback, select_event_lwp_callback,
6824 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6825 suspend_and_send_sigstop_callback, wait_for_sigstop,
6826 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6827 lwp_running, linux_set_resume_request, resume_status_pending_p,
6828 need_step_over_p, start_step_over, linux_resume_one_thread,
6829 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6830 reset_lwp_ptrace_options_callback): Update.
6831 * linux-mips-low.c (update_watch_registers_callback): Update.
6832 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6834 (free_register_cache_thread_one): Remove.
6835 (regcache_release): Update.
6836 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6837 handle_qxfer_threads_worker): Update.
6838 (handle_query): Update, use list iterator.
6839 (visit_actioned_threads, handle_pending_status,
6840 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6841 clear_pending_status_callback, set_pending_status_callback,
6842 find_status_pending_thread_callback, handle_status,
6843 process_serial_event): Update.
6844 * target.c (thread_search_callback): Update.
6845 * thread-db.c (thread_db_get_tls_address): Update.
6846 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6848 * win32-i386-low.c (update_debug_registers_callback): Update.
6849 * win32-low.c (delete_thread_info, child_delete_thread,
6850 continue_one_thread, suspend_one_thread,
6851 get_child_debug_event): Adjust.
6853 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6855 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6856 * inferiors.h: Include <list>.
6857 (struct process_info) <entry>: Remove field.
6859 (pid_of): Change macro to function.
6860 (ptid_of, lwpid_of): Remove macro.
6861 (all_processes): Change type to std::list<process_info *>.
6862 (ALL_PROCESSES): Remove macro.
6863 (for_each_process, find_process): New function.
6864 * inferiors.c (all_processes): Change type to
6865 std::list<process_info *>.
6866 (find_thread_process): Adjust.
6867 (add_process): Likewise.
6868 (remove_process): Likewise.
6869 (find_process_pid): Likewise.
6870 (get_first_process): Likewise.
6871 (started_inferior_callback): Remove.
6872 (have_started_inferiors_p): Adjust.
6873 (attached_inferior_callback): Remove.
6874 (have_attached_inferiors_p): Adjust.
6875 * linux-low.c (check_zombie_leaders): Likewise.
6876 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6877 (x86_linux_update_xmltarget): Adjust.
6878 * server.c (handle_query): Likewise.
6879 (gdb_reattached_process): Remove.
6880 (handle_status): Adjust.
6881 (kill_inferior_callback): Likewise.
6882 (detach_or_kill_inferior): Remove.
6883 (print_started_pid): Likewise.
6884 (print_attached_pid): Likewise.
6885 (detach_or_kill_for_exit): Update.
6886 (process_serial_event): Likewise.
6887 * linux-arm-low.c (arm_new_fork): Likewise.
6889 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6891 * dll.h: Include <list>.
6892 (struct dll_info): Add constructor.
6893 <entry>: Remove field.
6894 (all_dlls): Change type to std::list<dll_info>.
6895 * dll.c: Include <algorithm>.
6896 (get_dll): Remove macro.
6897 (all_dlls): Change type to std::list<dll_info *>.
6898 (free_one_dll): Remove.
6899 (match_dll): Likewise.
6900 (loaded_dll): Adjust.
6901 (unloaded_dll): Adjust to all_dlls type change, use
6902 std::find_if. Inline code from match_dll.
6903 (clear_dlls): Adjust to all_dlls type change.
6904 * server.c (emit_dll_description): Remove.
6905 (handle_qxfer_libraries): Adjust to all_dlls type change,
6906 integrate emit_dll_description's functionality.
6908 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6910 * linux-low.h (struct linux_target_ops) <delete_process>: New
6912 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6913 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6914 (struct linux_target_ops): Add delete_process callback.
6915 * linux-arm-low.c (arm_delete_process): New.
6916 (struct linux_target_ops): Add delete_process callback.
6917 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6918 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6919 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6920 * linux-mips-low.c (mips_linux_delete_process): New.
6921 (struct linux_target_ops): Add delete_process callback.
6922 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6923 * linux-s390-low.c (struct linux_target_ops): Likewise.
6924 * linux-sh-low.c (struct linux_target_ops): Likewise.
6925 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6926 * linux-tile-low.c (struct linux_target_ops): Likewise.
6927 * linux-x86-low.c (x86_linux_delete_process): New.
6928 (struct linux_target_ops): Add delete_process callback.
6929 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6931 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6933 * linux-aarch64-low.c (the_low_target): Add thread delete
6935 * linux-arm-low.c (arm_delete_thread): New function.
6936 (the_low_target): Add thread delete callback.
6937 * linux-bfin-low.c (the_low_target): Likewise.
6938 * linux-crisv32-low.c (the_low_target): Likewise.
6939 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6941 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6943 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6944 * linux-mips-low.c (mips_linux_delete_thread): New function.
6945 (the_low_target): Add thread delete callback.
6946 * linux-ppc-low.c (the_low_target): Likewise.
6947 * linux-s390-low.c (the_low_target): Likewise.
6948 * linux-sh-low.c (the_low_target): Likewise.
6949 * linux-tic6x-low.c (the_low_target): Likewise.
6950 * linux-tile-low.c (the_low_target): Likewise.
6951 * linux-x86-low.c (the_low_target): Likewise.
6952 * linux-xtensa-low.c (the_low_target): Likewise.
6954 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6956 * win32-low.c: Include "common-inferior.h".
6958 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6960 * inferiors.c (set_inferior_cwd): New function.
6961 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6962 (handle_query): Inform that QSetWorkingDir is supported.
6963 * win32-low.c (create_process): Pass the inferior's cwd to
6966 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6968 * inferiors.c (current_inferior_cwd): New global variable.
6969 (get_inferior_cwd): New function.
6970 * inferiors.h (struct process_info) <cwd>: New field.
6972 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6974 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6975 (OBS): Add gdb_tilde_expand.o.
6977 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6979 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6980 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6982 2017-09-29 Pedro Alves <palves@redhat.com>
6984 * ax.c (gdb_parse_agent_expr): Constify.
6985 * ax.h (gdb_parse_agent_expr): Constify.
6986 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6988 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6989 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6990 * remote-utils.h (read_ptid): Constify.
6991 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6992 (process_point_options, process_serial_event): Constify.
6993 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6994 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6995 (cmd_qtbuffer): Constify.
6997 2017-09-29 Pedro Alves <palves@redhat.com>
6999 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
7002 2017-09-29 Pedro Alves <palves@redhat.com>
7004 * linux-low.c (handle_extended_wait): Pass parent thread instead
7005 of process to thread_db_notice_clone.
7006 * linux-low.h (thread_db_notice_clone): Replace parent process
7007 parameter with parent thread parameter.
7008 * thread-db.c (find_one_thread): Add comment.
7009 (thread_db_notice_clone): Replace parent process parameter with
7010 parent thread parameter. Temporarily switch to the parent thread.
7012 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
7014 * gdbthread.h: Include "common-gdbthread.h".
7015 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
7016 "if" when validating the ptid.
7017 * remote-utils.c: Include "gdbthread.h".
7018 (prepare_resume_reply): Use "switch_to_thread".
7019 * target.c (done_accessing_memory): Likewise.
7021 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7023 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
7024 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
7025 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
7026 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
7027 s390x-gs-linux64-ipa.o to ipa_obj.
7028 * linux-s390-low.c (HWCAP_S390_GS): New define.
7029 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
7031 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
7032 (s390_arch_setup): Check for guarded-storage support and choose
7034 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
7035 init_registers_s390x_gs_linux64.
7036 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
7038 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
7039 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
7041 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
7043 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
7045 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7047 * linux-low.h (struct lwp_info): Add new field, thread_handle.
7048 (thread_db_thread_handle): Declare.
7049 * linux-low.c (linux_target_ops): Initialize thread_handle.
7050 * server.c (handle_qxfer_threads_worker): Add support for
7052 * target.h (struct target_ops): Add new function pointer,
7054 (target_thread_handle): Define.
7055 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
7057 (thread_db_thread_handle): New function.
7059 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7061 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
7062 * linux-low.h (thread_db_notice_clone): Declare.
7063 * thread-db.c (thread_db_notice_clone): New function.
7065 2017-09-21 Pedro Alves <palves@redhat.com>
7067 * server.c (gdb_read_memory, handle_status, process_serial_event)
7068 (handle_serial_event, handle_target_event): Adjust to
7069 set_desired_thread prototype change.
7070 * target.c (set_desired_thread): Remove 'use_general' parameter
7072 * target.h (set_desired_thread): Remove 'use_general' parameter.
7074 2017-09-20 Tom Tromey <tom@tromey.com>
7076 * target.c (target_terminal::terminal_state): Define.
7077 (target_terminal::init): Rename from target_terminal_init.
7078 (target_terminal::inferior): Rename from
7079 target_terminal_inferior.
7080 (target_terminal::ours): Rename from target_terminal_ours.
7081 (target_terminal::ours_for_output, target_terminal::info): New.
7083 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7085 * server.c (accumulate_file_name_length): Remove.
7086 (emit_dll_description): Adjust to std::string change.
7087 (handle_qxfer_libraries): Use std::string to hold document.
7089 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7091 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
7092 return type of xml_escape_text.
7093 * server.c (emit_dll_description): Likewise.
7095 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7097 * server.c (captured_main): Accept argument for --selftest.
7098 Update run_tests call.
7099 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
7100 when registering selftests.
7102 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
7104 * regcache.c (get_thread_regcache): Update code to use "std::vector"
7105 instead of "VEC" for "target_desc.reg_defs".
7106 (regcache_cpy): Likewise.
7107 (registers_to_string): Likewise.
7108 (registers_from_string): Likewise.
7109 (find_regno): Likewise.
7110 (supply_regblock): Likewise.
7111 (regcache_raw_read_unsigned): Likewise.
7112 * tdesc.c (init_target_desc): Likewise.
7113 (tdesc_create_reg): Likewise.
7114 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
7115 (struct target_desc) <reg_defs>: Convert to "std::vector".
7116 (target_desc): Do not initialize "reg_defs".
7117 (~target_desc): Update code to use "std::vector" instead of "VEC"
7118 for "target_desc.reg_defs".
7119 (operator==): Likewise.
7121 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7123 * inferiors.h (thread_to_gdb_id): Remove.
7124 * inferiors.c (thread_to_gdb_id): Remove.
7125 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
7126 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
7127 lynx_store_registers, lynx_read_memory, lynx_write_memory):
7129 * nto-low.c (nto_fetch_registers, nto_store_registers,
7130 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
7132 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7134 * inferiors.h (gdb_id_to_thread_id): Remove.
7135 * inferiors.c (gdb_id_to_thread_id): Remove.
7136 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
7137 removal. Move pid declaration closer to where it's used.
7139 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7141 * server.c (handle_detach): New function.
7142 (process_serial_event): Move code out, call handle_detach.
7144 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7146 * server.c (require_running): Rename to ...
7147 (require_running_or_return): ... this ...
7148 (require_running_or_break): ... and this.
7149 (handle_query, process_serial_event): Adjust.
7151 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7153 * linux-low.c (linux_set_resume_request): Remove unused
7156 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7158 * server.c (first_thread_of): Remove.
7159 (process_serial_event): Replace usage of first_thread_of with
7160 find_any_thread_of_pid.
7161 * tracepoint.c (same_process_p): Remove.
7162 (gdb_agent_about_to_close): Replace usage of same_process_p with
7163 find_any_thread_of_pid.
7164 * linux-x86-low.c (same_process_callback): Remove.
7165 (x86_arch_setup_process_callback): Replace usage of
7166 same_process_callback with find_any_thread_of_pid.
7167 * thread-db.c (any_thread_of): Remove.
7168 (switch_to_process): Replace usage of any_thread_of with
7169 find_any_thread_of_pid.
7170 * inferiors.c (thread_pid_matches_callback): Remove.
7171 (find_thread_process): Adjust to use find_any_thread_of_pid.
7173 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7175 * regcache.c (get_thread_regcache): Guard calls to "memset"
7178 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7180 * linux-low.c (handle_extended_wait): Use
7181 "allocate_target_description" instead of "XNEW".
7182 * linux-x86-low.c (initialize_low_arch): Likewise.
7184 2017-09-05 Yao Qi <yao.qi@linaro.org>
7186 * configure.srv (srv_i386_regobj): Remove.
7187 (srv_amd64_regobj): Remove.
7188 (srv_regobj): Set it to "" for x86 non-linux targets.
7189 * linux-x86-tdesc.c (i386_linux_read_description):
7190 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7191 (init_registers_i386): Remove the declaration.
7192 (tdesc_i386): Remove the declaration.
7193 (lynx_i386_arch_setup): Call i386_create_target_description.
7194 * nto-x86-low.c: Likewise.
7195 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7196 [!__x86_64__]: include arch/i386.h.
7197 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7199 2017-09-05 Yao Qi <yao.qi@linaro.org>
7201 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7202 i386/amd64-XXX-linux from it.
7204 2017-09-05 Yao Qi <yao.qi@linaro.org>
7206 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7208 (ipa_amd64_linux_regobj): Remove.
7209 (ipa_x32_linux_regobj): Remove.
7211 2017-09-05 Yao Qi <yao.qi@linaro.org>
7213 * Makefile.in (arch-amd64.o): New rule.
7214 * configure.srv: Append arch-amd64.o.
7215 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7216 (get_ipa_tdesc): Call amd64_linux_read_description.
7217 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7218 and init_registers_amd64_XXX.
7219 * linux-x86-low.c (x86_linux_read_description): Call
7220 amd64_linux_read_description.
7221 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7222 (initialize_low_arch): Don't call init_registers_x32_XXX and
7223 init_registers_amd64_XXX.
7224 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7225 and tdesc_amd64_XXX.
7226 [__x86_64__] (amd64_tdesc_test): New function.
7227 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7228 and init_registers_amd64_XXX.
7229 * linux-x86-tdesc.c: Include arch/amd64.h.
7230 (xcr0_to_tdesc_idx): New function.
7231 (i386_linux_read_description): New function.
7232 (amd64_get_ipa_tdesc_idx): New function.
7233 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7234 (amd64_get_ipa_tdesc): Declare.
7236 2017-09-05 Yao Qi <yao.qi@linaro.org>
7238 * configure.srv (srv_i386_linux_xmlfiles): Remove
7239 i386/i386-XXX-linux.xml from it.
7241 2017-09-05 Yao Qi <yao.qi@linaro.org>
7243 * configure.srv: Set srv_i386_linux_regobj empty if $development
7245 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7246 initialize_low_tdesc.
7247 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7248 with #if initialize_low_tdesc.
7249 * linux-x86-tdesc-selftest.c: New file.
7250 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7252 2017-09-05 Yao Qi <yao.qi@linaro.org>
7254 * Makefile.in (arch-i386.o): New rule.
7255 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7256 (x86_64-*-linux*): Likewise.
7257 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7258 include arch/i386.h.
7259 (i386_linux_read_description): Remove code and call
7260 i386_create_target_description.
7261 * tdesc.c (allocate_target_description): New function.
7262 * tdesc.h (set_tdesc_architecture): Remove declaration.
7263 (set_tdesc_osabi): Likewise.
7265 2017-09-05 Yao Qi <yao.qi@linaro.org>
7267 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7268 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7269 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7271 * server.c (get_features_xml): Call tdesc_get_features_xml.
7272 * tdesc.c (set_tdesc_architecture): New function.
7273 (set_tdesc_osabi): New function.
7274 (tdesc_get_features_xml): New function.
7275 (tdesc_create_feature): Add an argument.
7276 * tdesc.h (struct target_desc) <features>: New field.
7277 <arch, osabi>: New field.
7278 (~target_desc): xfree features, arch, and osabi.
7279 (target_desc::oerator==): Don't compare .xmltarget.
7280 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7281 (set_tdesc_osabi): Likewise.
7282 (tdesc_get_features_xml): Likewise.
7284 2017-09-05 Yao Qi <yao.qi@linaro.org>
7286 * linux-x86-tdesc.c: Include selftest.h.
7287 (i386_tdesc_test): New function.
7288 (initialize_low_tdesc): Call selftests::register_test.
7289 * tdesc.h: Include regdef.h.
7290 (target_desc): Override operator == and !=.
7292 2017-09-05 Yao Qi <yao.qi@linaro.org>
7294 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7295 (ipa_obj): Likewise.
7296 * linux-i386-ipa.c: Include common/x86-xstate.h
7297 (get_ipa_tdesc): Call i386_linux_read_description.
7298 (initialize_low_tracepoint): Don't call init_registers_XXX
7299 functions, call initialize_low_tdesc instead.
7300 * linux-x86-low.c (x86_linux_read_description): Call
7301 i386_linux_read_description.
7302 (initialize_low_arch): Don't call init_registers_i386_XXX
7303 functions, call initialize_low_tdesc.
7304 * linux-x86-tdesc.c: New file.
7305 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7306 (i386_get_ipa_tdesc_idx): Declare.
7307 (i386_get_ipa_tdesc): Declare.
7308 (initialize_low_tdesc): Declare.
7310 2017-09-05 Yao Qi <yao.qi@linaro.org>
7312 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7315 2017-09-05 Yao Qi <yao.qi@linaro.org>
7317 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7318 * regcache.c (get_thread_regcache): Use VEC_length.
7319 (init_register_cache): Likewise.
7320 (regcache_cpy): Likewise.
7321 (registers_to_string): Iterate reg_defs via VEC_iterate.
7322 (find_regno): Likewise.
7323 (find_register_by_number): Use VEC_index.
7324 (register_size): Call find_register_by_number.
7325 (register_data): Call find_register_by_number.
7326 (supply_regblock): Use VEC_length.
7327 (regcache_raw_read_unsigned): Likewise.
7328 * tdesc.c (init_target_desc): Iterate reg_defs via
7330 (default_description): Update initializer.
7331 (copy_target_description): Don't update field num_registers.
7332 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7333 <num_registers>: Remove.
7335 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7337 * Makefile.in (.SECONDARY): Define target.
7339 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7341 * linux-low.c (linux_wait_1): Adjust.
7342 * server.c (queue_stop_reply_callback): Adjust.
7344 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7346 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7347 QEnvironmentUnset and QEnvironmentReset packets.
7348 (handle_query): Inform remote that QEnvironmentHexEncoded,
7349 QEnvironmentUnset and QEnvironmentReset are supported.
7351 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7353 * inferiors.h (inferior_target_data): Rename to ...
7354 (thread_target_data): ... this.
7355 (inferior_regcache_data): Rename to ...
7356 (thread_regcache_data): ... this.
7357 (set_inferior_regcache_data): Rename to ...
7358 (set_thread_regcache_data): ... this.
7359 * inferiors.c (inferior_target_data): Rename to ...
7360 (thread_target_data): ... this.
7361 (inferior_regcache_data): Rename to ...
7362 (thread_regcache_data): ... this.
7363 (set_inferior_regcache_data): Rename to ...
7364 (set_thread_regcache_data): ... this.
7365 (free_one_thread): Update.
7366 * linux-low.h (get_thread_lwp): Update.
7367 * regcache.c (get_thread_regcache): Update.
7368 (regcache_invalidate_thread): Update.
7369 (free_register_cache_thread): Update.
7370 * win32-i386-low.c (update_debug_registers_callback): Update.
7371 (win32_get_current_dr): Update.
7372 * win32-low.c (thread_rec): Update.
7373 (delete_thread_info): Update.
7374 (continue_one_thread): Update.
7375 (suspend_one_thread): Update.
7377 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7379 * inferiors.c (set_inferior_target_data): Remove.
7380 * inferiors.h (set_inferior_target_data): Remove.
7382 2017-08-18 Yao Qi <yao.qi@linaro.org>
7384 * Makefile.in (OBS): Add selftest.o.
7385 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7386 * configure, config.in: Re-generated.
7387 * server.c: Include common/sefltest.h.
7388 (captured_main): Handle option --selftest.
7390 2017-08-09 Yao Qi <yao.qi@linaro.org>
7392 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7393 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7394 i386-avx-mpx.o and i386-mmx.o.
7395 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7396 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7397 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7398 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7399 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7400 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7401 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7402 i386/amd64-avx-mpx.xml.
7404 2017-08-09 Yao Qi <yao.qi@linaro.org>
7406 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7407 and x32-avx-avx512.o.
7408 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7409 i386/x32-avx-avx512.xml.
7411 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7413 * tracepoint.h (enum class fast_tpoint_collect_result): New
7415 (fast_tracepoint_collecting): Change return type to
7416 fast_tpoint_collect_result.
7417 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7418 * linux-low.h: Include tracepoint.h.
7419 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7420 fast_tpoint_collect_result.
7421 * linux-low.c (handle_tracepoints): Adjust.
7422 (linux_fast_tracepoint_collecting): Change return type to
7423 fast_tpoint_collect_result.
7424 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7425 linux_wait_1, stuck_in_jump_pad_callback,
7426 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7427 proceed_one_lwp): Adjust to type change.
7429 2017-07-10 Yao Qi <yao.qi@linaro.org>
7431 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7433 2017-06-29 Yao Qi <yao.qi@linaro.org>
7435 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7437 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7439 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7441 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7443 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7445 * linux-low.c (linux_create_inferior): Adjust code to access the
7446 environment information via 'gdb_environ' class.
7447 * lynx-low.c (lynx_create_inferior): Likewise.
7448 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7449 (get_environ): Return a pointer to 'our_environ'.
7450 (captured_main): Initialize 'our_environ'.
7451 * server.h (get_environ): Adjust prototype.
7452 * spu-low.c (spu_create_inferior): Adjust code to access the
7453 environment information via 'gdb_environ' class.
7455 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7457 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7458 usage of "register" keyword.
7460 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7462 * configure: Re-generate.
7464 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7466 * configure: Re-generate.
7468 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7470 * Makefile.in (COMPILE.pre): Add "-x c++".
7472 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7474 * fork-child.c: Conditionally include <signal.h>.
7476 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7478 * server.c (handle_general_set): Handle new packet
7479 "QStartupWithShell".
7480 (handle_query): Add "QStartupWithShell" to the list of supported
7482 (gdbserver_usage): Add help text explaining the
7483 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7485 (captured_main): Recognize and act upon the presence of the new
7488 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7489 Pedro Alves <palves@redhat.com>
7491 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7492 * configure: Regenerate.
7493 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7495 (i[34567]86-*-lynxos*): Likewise.
7496 (spu*-*-*): Likewise.
7497 * fork-child.c: New file.
7498 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7500 (linux_ptrace_fun): New function.
7501 (linux_create_inferior): Adjust function prototype to reflect
7502 change on "target.h". Adjust function code to use
7504 (linux_request_interrupt): Delete "signal_pid".
7505 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7506 (lynx_ptrace_fun): New function.
7507 (lynx_create_inferior): Adjust function prototype to reflect
7508 change on "target.h". Adjust function code to use
7510 * nto-low.c (nto_create_inferior): Adjust function prototype and
7511 code to reflect change on "target.h". Update comments.
7512 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7513 "common-terminal.h" and "environ.h".
7514 (terminal_fd): Moved to fork-child.c.
7515 (old_foreground_pgrp): Likewise.
7516 (restore_old_foreground_pgrp): Likewise.
7517 (last_status): Make it global.
7518 (last_ptid): Likewise.
7519 (our_environ): New variable.
7520 (startup_with_shell): Likewise.
7521 (program_name): Likewise.
7522 (program_argv): Rename to...
7523 (program_args): ...this.
7524 (wrapper_argv): New variable.
7525 (start_inferior): Delete function.
7526 (get_exec_wrapper): New function.
7527 (get_exec_file): Likewise.
7528 (get_environ): Likewise.
7529 (prefork_hook): Likewise.
7530 (post_fork_inferior): Likewise.
7531 (postfork_hook): Likewise.
7532 (postfork_child_hook): Likewise.
7533 (handle_v_run): Update code to deal with arguments coming from the
7534 remote host. Update calls from "start_inferior" to
7536 (captured_main): Likewise. Initialize environment variable. Call
7538 * server.h (post_fork_inferior): New prototype.
7539 (get_environ): Likewise.
7540 (last_status): Declare.
7541 (last_ptid): Likewise.
7542 (signal_pid): Likewise.
7543 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7544 (spu_ptrace_fun): New function.
7545 (spu_create_inferior): Adjust function prototype to reflect change
7546 on "target.h". Adjust function code to use "fork_inferior".
7547 * target.c (target_terminal_init): New function.
7548 (target_terminal_inferior): Likewise.
7549 (target_terminal_ours): Likewise.
7550 * target.h: Include <vector>.
7551 (struct target_ops) <create_inferior>: Update prototype.
7552 (create_inferior): Update macro.
7553 * utils.c (gdb_flush_out_err): New function.
7554 * win32-low.c (win32_create_inferior): Adjust function prototype
7555 and code to reflect change on "target.h".
7557 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7559 * inferiors.c (switch_to_thread): New function.
7561 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7563 * Makefile.in (SFILE): Add "common/job-control.c".
7564 (OBS): Add "job-control.o".
7566 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7568 * Makefile: Remove "@host_makefile_frag@".
7570 2017-05-05 Pedro Alves <palves@redhat.com>
7572 * configure: Regenerate.
7574 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7576 * configure: Regenerate.
7578 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7580 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7581 software_single_step change of return type to
7582 std::vector<CORE_ADDR>.
7583 * linux-low.c (install_software_single_step_breakpoints):
7585 * linux-low.h (install_software_single_step_breakpoints):
7588 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7590 * remote-utils.c: Include "gdb_termios.h" instead of
7592 * terminal.h: Delete file.
7594 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7596 * server.c: Include <vector>.
7597 <program_argv, wrapper_argv>: Convert to std::vector.
7598 (start_inferior): Rewrite function to use C++.
7599 (handle_v_run): Likewise. Update code that calculates the argv
7600 based on the vRun packet; use C++.
7601 (captured_main): Likewise.
7603 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7605 * server.c (handle_v_cont): Initialize thread_resume::thread
7608 2017-04-05 Pedro Alves <palves@redhat.com>
7610 * configure: Regenerate.
7612 2017-04-05 Pedro Alves <palves@redhat.com>
7614 * gdbreplay.c (sync_error): Constify.
7615 * linux-x86-low.c (push_opcode): Constify.
7617 2017-04-05 Pedro Alves <palves@redhat.com>
7619 * win32-low.c (get_child_debug_event)
7620 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7621 Report TARGET_WAITKIND_SPURIOUS instead.
7623 2017-04-05 Pedro Alves <palves@redhat.com>
7625 * remote-utils.c (remote_prepare, remote_open): Constify.
7626 * remote-utils.h (remote_prepare, remote_open): Constify.
7627 * server.c (captured_main): Constify 'port' handling.
7629 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7631 * Makefile.in (clean): Clear .deps.
7633 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7635 * .gitignore: Remove generated files, replace with wildcard.
7636 * (clean): Replace removal of generated files with wildcard.
7637 (version.c): Replace with...
7638 (version-generated.c): ...this.
7639 (xml-builtin.c): Replace with...
7640 (xml-builtin-generated.c): ...this.
7641 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7642 (%.c: *regformats*): Replace with...
7643 (%-generated.c: *regformats*): ...this.
7645 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7647 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7648 (xtensa_fill_gregset): Call collect_register_by_name for
7650 (xtensa_store_gregset): Call supply_register_by_name for
7653 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7655 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7656 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7657 (xtensa_store_gregset): Call supply_register for all registers in
7658 a0_regnum..a0_regnum + C0_NREGS range.
7660 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7662 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7663 (ax-ipa.o: ax.c): Remove.
7664 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7665 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7666 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7667 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7668 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7670 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7672 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7673 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7674 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7675 (errors-ipa.o: ../common/errors.c): Remove.
7676 (format-ipa.o: ../common/format.c): Remove.
7677 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7679 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7681 * Makefile.in (%-ipa.o: %.c): New rule.
7682 (tracepoint-ipa.o: tracepoint.c): Remove.
7683 (utils-ipa.o: utils.c): Remove.
7684 (remote-utils-ipa.o: remote-utils.c): Remove.
7685 (regcache-ipa.o: regcache.c): Remove.
7686 (i386-linux-ipa.o: i386-linux.c): Remove.
7687 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7688 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7689 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7690 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7691 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7692 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7693 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7694 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7695 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7696 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7697 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7698 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7699 (aarch64-ipa.o: aarch64.c): Remove.
7700 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7701 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7702 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7703 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7704 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7705 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7706 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7707 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7708 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7709 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7710 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7711 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7712 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7713 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7714 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7715 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7716 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7717 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7718 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7719 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7720 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7721 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7722 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7723 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7724 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7725 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7726 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7727 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7728 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7729 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7730 (tdesc-ipa.o: tdesc.c): Remove.
7731 (x32-linux-ipa.o: x32-linux.c): Remove.
7732 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7733 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7735 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7737 * Makefile.in (%.o: ../arch/%.c): New rule.
7738 (arm.o: ../arch/arm.c): Remove.
7739 (arm-linux.o: ../arch/arm-linux.c): Remove.
7740 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7741 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7743 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7745 * Makefile.in (%.o: ../nat/%.c): New rule.
7746 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7747 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7748 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7749 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7750 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7751 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7752 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7753 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7754 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7755 (linux-personality.o: ../nat/linux-personality.c): Remove.
7756 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7757 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7758 (x86-linux.o: ../nat/x86-linux.c): Remove.
7759 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7760 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7762 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7764 * Makefile.in (%.o: ../common/%.c): New rule.
7765 (signals.o: ../common/signals.c): Remove.
7766 (print-utils.o: ../common/print-utils.c): Remove.
7767 (rsp-low.o: ../common/rsp-low.c): Remove.
7768 (common-utils.o: ../common/common-utils.c): Remove.
7769 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7770 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7771 (vec.o: ../common/vec.c): Remove.
7772 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7773 (xml-utils.o: ../common/xml-utils.c): Remove.
7774 (ptid.o: ../common/ptid.c): Remove.
7775 (buffer.o: ../common/buffer.c): Remove.
7776 (format.o: ../common/format.c): Remove.
7777 (filestuff.o: ../common/filestuff.c): Remove.
7778 (agent.o: ../common/agent.c): Remove.
7779 (errors.o: ../common/errors.c): Remove.
7780 (environ.o: ../common/environ.c): Remove.
7781 (common-debug.o: ../common/common-debug.c): Remove.
7782 (cleanups.o: ../common/cleanups.c): Remove.
7783 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7784 (fileio.o: ../common/fileio.c): Remove.
7785 (common-regcache.o: ../common/common-regcache.c): Remove.
7786 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7787 (new-op.o: ../common/new-op.c): Remove.
7788 (btrace-common.o: ../common/btrace-common.c): Remove.
7790 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7792 * Makefile.in (%.o: ../target/%.c): New rule.
7793 (waitstatus.o: ../target/waitstatus.c): Remove.
7795 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7798 (%.c: ../regformats/%.dat,
7799 (%.c: ../regformats/arm/%.dat,
7800 (%.c: ../regformats/i386/%.dat,
7801 (%.c: ../regformats/rs6000/%.dat): New rules.
7802 (aarch64.c): Remove.
7803 (reg-arm.c): Remove.
7804 (arm-with-iwmmxt.c): Remove.
7805 (arm-with-vfpv2.c): Remove.
7806 (arm-with-vfpv3.c): Remove.
7807 (arm-with-neon.c): Remove.
7808 (reg-bfin.c): Remove.
7809 (reg-cris.c): Remove.
7810 (reg-crisv32.c): Remove.
7812 (i386-linux.c): Remove.
7813 (i386-avx.c): Remove.
7814 (i386-avx-linux.c): Remove.
7815 (i386-avx-avx512.c): Remove.
7816 (i386-avx-avx512-linux.c): Remove.
7817 (i386-mpx.c): Remove.
7818 (i386-mpx-linux.c): Remove.
7819 (i386-avx-mpx-avx512-pku.c): Remove.
7820 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7821 (i386-avx-mpx.c): Remove.
7822 (i386-avx-mpx-linux.c): Remove.
7823 (i386-mmx.c): Remove.
7824 (i386-mmx-linux.c): Remove.
7825 (reg-ia64.c): Remove.
7826 (reg-m32r.c): Remove.
7827 (reg-m68k.c): Remove.
7829 (mips-linux.c): Remove.
7830 (mips-dsp-linux.c): Remove.
7831 (mips64-linux.c): Remove.
7832 (mips64-dsp-linux.c): Remove.
7833 (nios2-linux.c): Remove.
7834 (powerpc-32.c): Remove.
7835 (powerpc-32l.c): Remove.
7836 (powerpc-altivec32l.c): Remove.
7837 (powerpc-cell32l.c): Remove.
7838 (powerpc-vsx32l.c): Remove.
7839 (powerpc-isa205-32l.c): Remove.
7840 (powerpc-isa205-altivec32l.c): Remove.
7841 (powerpc-isa205-vsx32l.c): Remove.
7842 (powerpc-e500l.c): Remove.
7843 (powerpc-64l.c): Remove.
7844 (powerpc-altivec64l.c): Remove.
7845 (powerpc-cell64l.c): Remove.
7846 (powerpc-vsx64l.c): Remove.
7847 (powerpc-isa205-64l.c): Remove.
7848 (powerpc-isa205-altivec64l.c): Remove.
7849 (powerpc-isa205-vsx64l.c): Remove.
7850 (s390-linux32.c): Remove.
7851 (s390-linux32v1.c): Remove.
7852 (s390-linux32v2.c): Remove.
7853 (s390-linux64.c): Remove.
7854 (s390-linux64v1.c): Remove.
7855 (s390-linux64v2.c): Remove.
7856 (s390-te-linux64.c): Remove.
7857 (s390-vx-linux64.c): Remove.
7858 (s390-tevx-linux64.c): Remove.
7859 (s390x-linux64.c): Remove.
7860 (s390x-linux64v1.c): Remove.
7861 (s390x-linux64v2.c): Remove.
7862 (s390x-te-linux64.c): Remove.
7863 (s390x-vx-linux64.c): Remove.
7864 (s390x-tevx-linux64.c): Remove.
7865 (tic6x-c64xp-linux.c): Remove.
7866 (tic6x-c64x-linux.c): Remove.
7867 (tic6x-c62x-linux.c): Remove.
7869 (reg-sparc64.c): Remove.
7870 (reg-spu.c): Remove.
7872 (amd64-linux.c): Remove.
7873 (amd64-avx.c): Remove.
7874 (amd64-avx-linux.c): Remove.
7875 (amd64-avx-avx512.c): Remove.
7876 (amd64-avx-avx512-linux.c): Remove.
7877 (amd64-mpx.c): Remove.
7878 (amd64-mpx-linux.c): Remove.
7879 (amd64-avx-mpx-avx512-pku.c): Remove.
7880 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7881 (amd64-avx-mpx.c): Remove.
7882 (amd64-avx-mpx-linux.c): Remove.
7884 (x32-linux.c): Remove.
7885 (x32-avx.c): Remove.
7886 (x32-avx-linux.c): Remove.
7887 (x32-avx-avx512.c): Remove.
7888 (x32-avx-avx512-linux.c): Remove.
7889 (reg-xtensa.c): Remove.
7890 (reg-tilegx.c): Remove.
7891 (reg-tilegx32.c): Remove.
7893 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7895 * Makefile.in (SFILES): Add "common/environ.c".
7896 (OBJS): Add "common/environ.h".
7898 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7900 * configure.ac: Check if the fs_base and gs_base members of
7901 `struct user_regs_struct' exist.
7902 * config.in: Regenerated.
7903 * configure: Likewise.
7905 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7907 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7909 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7910 (get_next_pcs_syscall_next_pc): Likewise.
7912 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
7914 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7915 * nto-x86-low.c: Likewise.
7917 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7919 * Makefile.in: Include disable-implicit-rules.mk.
7921 2016-11-23 Pedro Alves <palves@redhat.com>
7923 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7924 (debug_vprintf): Use std::chrono::steady_clock instead of
7925 gettimeofday. Use '.' instead of ':'.
7926 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7927 (get_timestamp): Use std::chrono::steady_clock instead of
7930 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7932 * Makefile.in: Fix whitespace formatting.
7934 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7936 * Makefile.in (SFILES, OBS): Flatten list and order
7939 2016-11-23 Pedro Alves <palves@redhat.com>
7941 * event-loop.c (handle_file_event): Use warning.
7942 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7943 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7946 2016-11-23 Pedro Alves <palves@redhat.com>
7948 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7950 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7951 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7952 debug_printf and debug_flush for debug output.
7953 * server.c (handle_general_set): Likewise.
7954 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7957 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7959 * Makefile.in (.c.o): Replace rule with ...
7960 (%.o: %.c): ... this one.
7962 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7964 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7965 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7967 * configure.ac: Remove checks for the make program.
7968 * configure: Re-generate.
7970 2016-10-28 Pedro Alves <palves@redhat.com>
7972 * Makefile.in (CXX_DIALECT): Get from configure.
7973 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7974 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7975 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7976 * config.in: Regenerate.
7977 * configure: Regenerate.
7979 2016-10-27 Yao Qi <yao.qi@linaro.org>
7981 * linux-low.c (linux_supports_range_stepping): Return true if
7982 can_software_single_step return true.
7984 2016-10-27 Yao Qi <yao.qi@linaro.org>
7986 * inferiors.c (find_inferior_in_random): New function.
7987 * inferiors.h (find_inferior_in_random): Declare.
7988 * linux-low.c (linux_wait_for_event_filtered): Call
7989 find_inferior_in_random instead of find_inferior.
7991 2016-10-27 Yao Qi <yao.qi@linaro.org>
7993 * linux-low.c (linux_wait_1): If single-step breakpoints are
7994 inserted, remove them.
7996 2016-10-26 Pedro Alves <palves@redhat.com>
7998 * linux-low.c (handle_extended_wait): Link parent/child fork
8000 (linux_wait_1): Unlink them.
8001 (linux_set_resume_request): Ignore resume requests for
8002 already-resumed and unhandled fork child threads.
8003 * linux-low.h (struct lwp_info) <fork_relative>: New field.
8004 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
8006 (handle_v_requests) <vCont>: Don't call require_running.
8007 * server.h (in_queued_stop_replies): New declaration.
8009 2016-10-24 Yao Qi <yao.qi@linaro.org>
8012 * linux-aarch64-low.c (append_insns): Cast the return value to
8015 2016-10-10 Yao Qi <yao.qi@linaro.org>
8017 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
8019 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
8021 * target.c (target_supports_multi_process): New function, moved
8023 * target.h (target_supports_multi_process): ... here. Remove
8026 2016-10-05 Tom Tromey <tom@tromey.com>
8029 * tracepoint.c (handle_tracepoint_bkpts): Check
8030 ipa_error_tracepoint, not ipa_stopping_tracepoint.
8032 2016-10-05 Yao Qi <yao.qi@linaro.org>
8034 * configure.srv: Update the path of arm-*.xml files.
8036 2016-10-05 Terry Guo <terry.guo@arm.com>
8037 Yao Qi <yao.qi@linaro.org>
8039 * Makefile.in: Adjust the path of rules.
8040 * configure.srv: Update the path of xml files.
8041 * regformats/arm-with-iwmmxt.dat: Regenerated.
8042 * regformats/arm-with-neon.dat: Likewise.
8043 * regformats/arm-with-vfpv2.dat: Likewise.
8044 * regformats/arm-with-vfpv3.dat Likewise.
8046 2016-09-30 Yao Qi <yao.qi@linaro.org>
8049 * target.c (target_stop_and_wait): Don't call
8050 target_continue_no_signal, use resume_stop instead.
8052 2016-09-26 Yao Qi <yao.qi@linaro.org>
8054 * linux-low.c (linux_wait_1): Call debug_exit.
8056 2016-09-23 Pedro Alves <palves@redhat.com>
8058 * Makefile.in (SFILES): Add common/new-op.c.
8059 (OBS): Add common/new-op.o.
8060 (new-op.o): New rule.
8062 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
8064 * .gitinore: Ignore more files.
8066 2016-09-21 Yao Qi <yao.qi@linaro.org>
8068 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
8071 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
8073 * server.c (start_inferior): Call target_mourn_inferior instead of
8074 mourn_inferior; pass ptid_t argument to it.
8076 (handle_target_event): Likewise.
8077 * target.c (target_mourn_inferior): New function.
8078 * target.h (mourn_inferior): Delete macro.
8080 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
8082 * linux-low.c (lwp_is_stepping): New function.
8084 2016-09-06 Carl Love <cel@us.ibm.com>
8086 * server.c (start_inferior): Fixed comment, requested comment change
8087 didn't get updated correctly. Removed reference to ptrace () call as
8088 it is only true on Linux systems.
8090 2016-09-06 Carl Love <cel@us.ibm.com>
8092 * server.c (start_inferior): Do not call
8093 function target_post_create_inferior () if the
8094 inferior process has already exited.
8096 2016-09-05 Pedro Alves <palves@redhat.com>
8098 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
8099 (COMPILE.pre, CC_LD): Use CXX directly.
8100 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
8101 * acinclude.m4: Don't include build-with-cxx.m4.
8102 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
8103 * configure: Regenerate.
8105 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
8108 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
8109 call writing data to own_buf.
8111 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8113 * target.c (mywait): Call target_wait instead of
8115 (target_wait): New function.
8117 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8119 * server.c (start_inferior): New variable 'ptid'. Replace calls
8120 to the_target->resume by target_continue{,_no_signal}, depending
8122 * target.c (target_stop_and_wait): Call target_continue_no_signal
8123 instead of the_target->resume.
8124 (target_continue): New function.
8126 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8128 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
8130 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8133 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
8135 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
8136 * linux-arm-low.c (ps_get_thread_area): Likewise.
8137 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
8138 * linux-m68k-low.c (ps_get_thread_area): Likewise.
8139 * linux-mips-low.c (ps_get_thread_area): Likewise.
8140 * linux-nios2-low.c (ps_get_thread_area): Likewise.
8141 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
8142 * linux-x86-low.c (ps_get_thread_area): Likewise.
8143 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
8145 2016-08-19 Pedro Alves <palves@redhat.com>
8147 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
8149 2016-08-19 Pedro Alves <palves@redhat.com>
8151 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8152 comment. Use memcpy instead of casting through unsigned long.
8154 2016-08-19 Pedro Alves <palves@redhat.com>
8156 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8157 allocating around 0x80000000.
8159 2016-08-19 Pedro Alves <palves@redhat.com>
8162 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8163 (x32-avx512-linux-ipa.o): New rules.
8164 * configure.ac (x86_64-*-linux*): New x32 check.
8165 * configure.srv (ipa_x32_linux_regobj): New.
8166 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8167 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8169 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8171 * configure: Regenerate.
8173 2016-08-09 Pedro Alves <palves@redhat.com>
8176 * Makefile.in (OBS): Add signals-state-save-restore.o.
8177 (signals-state-save-restore.o): New rule.
8178 * config.in: Regenerate.
8179 * configure: Regenerate.
8180 * linux-low.c: Include "signals-state-save-restore.h".
8181 (linux_create_inferior): Call
8182 restore_original_signals_state.
8183 * server.c: Include "dispositions-save-restore.h".
8184 (captured_main): Call save_original_signals_state.
8186 2016-08-05 Pedro Alves <palves@redhat.com>
8188 * configure: Regenerate.
8190 2016-08-04 Yao Qi <yao.qi@linaro.org>
8192 * linux-low.c (regsets_fetch_inferior_registers): Check
8193 errno is ESRCH or not.
8195 2016-08-02 Yao Qi <yao.qi@linaro.org>
8197 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8198 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8199 (thread_db_load_search): Update.
8200 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8201 td_ta_set_event and td_ta_event_getmsg.
8203 2016-07-26 Pedro Alves <palves@redhat.com>
8206 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8207 of unsigned long for 64-bit registers and use uint32_t instead of
8208 unsigned int for 32-bit registers.
8210 2016-07-26 Pedro Alves <palves@redhat.com>
8212 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8215 2016-07-21 Tom Tromey <tom@tromey.com>
8217 * configure: Rebuild.
8219 2016-07-21 Yao Qi <yao.qi@linaro.org>
8221 * mem-break.c (find_gdb_breakpoint): Cast bp to
8222 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8224 2016-07-21 Yao Qi <yao.qi@linaro.org>
8226 * server.c (handle_v_requests): Support s and S actions
8227 if target_supports_software_single_step return true.
8229 2016-07-21 Yao Qi <yao.qi@linaro.org>
8231 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8232 is resume_step, call maybe_hw_step.
8233 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8235 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8237 (proceed_one_lwp): If resume request is resume_step, install
8238 reinsert breakpoints and call maybe_hw_step.
8240 2016-07-21 Yao Qi <yao.qi@linaro.org>
8242 * linux-low.c (proceed_one_lwp): Declare.
8243 (linux_resume_one_thread): Remove local variable 'step'.
8244 Lift code enqueue signal. Call proceed_one_lwp instead of
8245 linux_resume_one_lwp.
8247 2016-07-21 Yao Qi <yao.qi@linaro.org>
8249 * linux-low.c (linux_resume_one_thread): Call
8250 enqueue_pending_signal.
8252 2016-07-21 Yao Qi <yao.qi@linaro.org>
8254 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8255 * inferiors.c (do_restore_current_thread_cleanup): New function.
8256 (make_cleanup_restore_current_thread): Likewise.
8257 * linux-low.c (install_software_single_step_breakpoints): Call
8258 make_cleanup_restore_current_thread. Switch current_thread to
8261 2016-07-21 Yao Qi <yao.qi@linaro.org>
8263 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8264 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8265 (clone_one_breakpoint): Likewise.
8266 (delete_reinsert_breakpoints): Change parameter to thread.
8268 (has_reinsert_breakpoints): Likewise.
8269 (uninsert_reinsert_breakpoints): Likewise.
8270 (reinsert_reinsert_breakpoints): Likewise.
8271 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8272 (delete_reinsert_breakpoints): Likewise.
8273 (reinsert_reinsert_breakpoints): Likewise.
8274 (uninsert_reinsert_breakpoints): Likewise.
8275 (has_reinsert_breakpoints): Likewise.
8277 2016-07-21 Yao Qi <yao.qi@linaro.org>
8279 * inferiors.c (get_thread_process): Make parameter const.
8280 * inferiors.h (get_thread_process): Update declaration.
8281 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8282 Add new parameters child_thread and parent_thread. Callers
8284 * mem-break.h (clone_all_breakpoints): Update declaration.
8286 2016-07-21 Yao Qi <yao.qi@linaro.org>
8288 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8289 <command_list, handler>: Remove.
8290 (struct gdb_breakpoint): New.
8291 (struct other_breakpoint): New.
8292 (struct reinsert_breakpoint): New.
8293 (is_gdb_breakpoint): New function.
8294 (any_persistent_commands): Update command_list if
8295 is_gdb_breakpoint returns true.
8296 (set_breakpoint): Create breakpoints according to their types.
8297 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8298 (set_gdb_breakpoint_1): Likewise.
8299 (set_gdb_breakpoint): Likewise.
8300 (clear_breakpoint_conditions): Change parameter type to
8301 'struct gdb_breakpoint *'.
8302 (clear_breakpoint_commands): Likewise.
8303 (clear_breakpoint_conditions_and_commands): Likewise.
8304 (add_condition_to_breakpoint): Likewise.
8305 (add_breakpoint_condition): Likewise.
8306 (add_commands_to_breakpoint): Likewise.
8307 (check_breakpoints): Check other_breakpoint.
8308 (clone_one_breakpoint): Clone breakpopint according to its type.
8309 * mem-break.h (struct gdb_breakpoint): Declare.
8310 (set_gdb_breakpoint): Update declaration.
8311 (clear_breakpoint_conditions_and_commands): Likewise.
8312 (add_breakpoint_condition): Likewise.
8313 (add_breakpoint_commands): Likewise.
8314 * server.c (process_point_options): Change parameter type to
8315 'struct gdb_breakpoint *'.
8317 2016-07-21 Yao Qi <yao.qi@linaro.org>
8319 * mem-break.c (set_breakpoint_at): Rename it to ...
8320 (set_breakpoint_type_at): ... it.
8321 (set_breakpoint_at): Call set_breakpoint_type_at.
8322 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8323 * mem-break.h (set_breakpoint_at): Update comments.
8325 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8327 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8329 (nios2_store_gregset): Likewise.
8331 2016-07-01 Pedro Alves <palves@redhat.com>
8332 Antoine Tremblay <antoine.tremblay@ericsson.com>
8334 * linux-low.c: Change interface to take the target lwp_info
8335 pointer directly and return void. Handle detaching from a zombie
8337 (linux_detach_lwp_callback): New function.
8338 (linux_detach): Detach from the leader thread after detaching from
8341 2016-06-28 Yao Qi <yao.qi@linaro.org>
8343 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8344 for variable new_offset.
8345 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8346 (aarch64_ftrace_insn_reloc_cb): Likewise.
8347 (aarch64_ftrace_insn_reloc_tb): Likewise.
8348 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8349 PRIx64 instead of PRIx32.
8351 2016-06-28 Yao Qi <yao.qi@linaro.org>
8353 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8354 (the_low_target): Install arm_get_syscall_trapinfo.
8356 2016-06-28 Yao Qi <yao.qi@linaro.org>
8358 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8360 (the_low_target): Install aarch64_get_syscall_trapinfo.
8362 2016-06-28 Yao Qi <yao.qi@linaro.org>
8364 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8366 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8367 Remove parameter sysno.
8368 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8371 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8373 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8374 (s390_emit_ne_goto): Likewise.
8375 (s390_emit_lt_goto): Likewise.
8376 (s390_emit_le_goto): Likewise.
8377 (s390_emit_gt_goto): Likewise.
8378 (s390_emit_ge_goto): Likewise.
8379 (s390x_emit_eq_goto): Likewise.
8380 (s390x_emit_ne_goto): Likewise.
8381 (s390x_emit_lt_goto): Likewise.
8382 (s390x_emit_le_goto): Likewise.
8383 (s390x_emit_gt_goto): Likewise.
8384 (s390x_emit_ge_goto): Likewise.
8385 (s390_emit_ops_impl): Mark variable static.
8386 (s390x_emit_ops): Likewise.
8388 2016-06-17 Yao Qi <yao.qi@linaro.org>
8390 * linux-low.c (handle_extended_wait): Call
8391 uninsert_reinsert_breakpoints for the parent process. Remove
8392 reinsert breakpoints from the child process. Reinsert them to
8393 the parent process when vfork is done.
8394 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8395 (reinsert_reinsert_breakpoints): New function.
8396 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8397 (reinsert_reinsert_breakpoints): Declare.
8399 2016-06-17 Yao Qi <yao.qi@linaro.org>
8401 * linux-low.c (handle_extended_wait): If the parent is doing
8402 step-over, remove the reinsert breakpoints from the forked child.
8404 2016-06-17 Yao Qi <yao.qi@linaro.org>
8406 * linux-low.c (unsuspend_all_lwps): Declare.
8407 (linux_low_filter_event): If thread exited, call finish_step_over.
8408 If step-over is finished, unsuspend other threads.
8410 2016-06-17 Yao Qi <yao.qi@linaro.org>
8412 * linux-low.c (linux_resume_one_lwp_throw): Assert
8413 has_reinsert_breakpoints returns false.
8414 * mem-break.c (delete_disabled_breakpoints): Assert
8415 bp type isn't reinsert_breakpoint.
8417 2016-06-17 Yao Qi <yao.qi@linaro.org>
8419 * linux-low.c (maybe_hw_step): New function.
8420 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8421 (finish_step_over): Switch current_thread to lwp temporarily,
8422 and assert has_reinsert_breakpoints returns true.
8423 (proceed_one_lwp): Call maybe_hw_step.
8424 * mem-break.c (has_reinsert_breakpoints): New function.
8425 * mem-break.h (has_reinsert_breakpoints): Declare.
8427 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8429 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8431 2016-05-17 Yao Qi <yao.qi@linaro.org>
8433 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8434 instead of find_inferior.
8436 2016-05-05 Yao Qi <yao.qi@linaro.org>
8438 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8439 Initialize res to zero.
8441 2016-05-05 Yao Qi <yao.qi@linaro.org>
8443 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8446 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8448 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8449 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8450 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8452 2016-04-28 Par Olsson <par.olsson@windriver.com>
8453 Simon Marchi <simon.marchi@ericsson.com>
8455 * tracepoint.c (write_inferior_int8): New function.
8456 (cmd_qtenable_disable): Write enable flag using
8457 write_inferior_int8.
8459 2016-04-25 Yao Qi <yao.qi@linaro.org>
8461 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8462 (need_step_over_p): Return zero if the LWP has pending signals
8463 can be delivered on software single step target.
8465 2016-04-25 Yao Qi <yao.qi@linaro.org>
8467 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8468 return instead of error.
8470 2016-04-22 Yao Qi <yao.qi@linaro.org>
8472 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8475 2016-04-22 Yao Qi <yao.qi@linaro.org>
8477 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8478 signal when stepping over breakpoint with software single
8481 2016-04-21 Pedro Alves <palves@redhat.com>
8483 * linux-s390-low.c (s390_collect_ptrace_register)
8484 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8486 (s390_check_regset): Use void * instead of gdb_byte *.
8488 2016-04-20 Pedro Alves <palves@redhat.com>
8490 * configure: Renegerate.
8492 2016-04-20 Yao Qi <yao.qi@linaro.org>
8494 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8495 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8497 (arm_store_gregset): Likewise.
8499 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8501 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8502 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8503 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8504 (amd64-avx-mpx-linux.c): New rules.
8505 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8506 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8507 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8508 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8509 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8510 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8511 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8512 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8513 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8514 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8515 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8516 * linux-x86-low.c (x86_linux_read_description): Add case for
8517 X86_XSTATE_AVX_MPX_MASK.
8518 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8519 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8520 init_registers_i386_avx_mpx_linux.
8521 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8522 (initialize_low_tracepoint): Call
8523 init_registers_i386_avx_mpx_linux.
8524 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8525 (initialize_low_tracepoint): Call
8526 init_registers_amd64_avx_mpx_linux.
8527 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8528 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8529 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8532 2016-04-18 Pedro Alves <palves@redhat.com>
8534 * configure: Regenerate.
8536 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8538 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8539 (aarch64_emit_sub): Likewise.
8541 2016-04-12 Pedro Alves <palves@redhat.com>
8543 * utils.c (prepare_to_throw_exception): Delete.
8545 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8547 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8549 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8551 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8553 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8555 * linux-aarch64-ipa.c: Add <elf.h> include.
8556 * linux-ppc-ipa.c: Add <elf.h> include.
8557 * linux-s390-ipa.c: Add <elf.h> include.
8559 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8561 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8562 (get_raw_reg_ptr): Likewise.
8563 (get_trace_state_variable_value_ptr): Likewise.
8564 (set_trace_state_variable_value_ptr): Likewise.
8565 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8568 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8569 Marcin Kościelnicki <koriakin@0x04.net>
8572 * linux-ppc-low.c (emit_insns): New function.
8573 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8574 (ppc_emit_prologue): New function.
8575 (ppc_emit_epilogue): New function.
8576 (ppc_emit_add): New function.
8577 (ppc_emit_sub): New function.
8578 (ppc_emit_mul): New function.
8579 (ppc_emit_lsh): New function.
8580 (ppc_emit_rsh_signed): New function.
8581 (ppc_emit_rsh_unsigned): New function.
8582 (ppc_emit_ext): New function.
8583 (ppc_emit_zero_ext): New function.
8584 (ppc_emit_log_not): New function.
8585 (ppc_emit_bit_and): New function.
8586 (ppc_emit_bit_or): New function.
8587 (ppc_emit_bit_xor): New function.
8588 (ppc_emit_bit_not): New function.
8589 (ppc_emit_equal): New function.
8590 (ppc_emit_less_signed): New function.
8591 (ppc_emit_less_unsigned): New function.
8592 (ppc_emit_ref): New function.
8593 (ppc_emit_const): New function.
8594 (ppc_emit_reg): New function.
8595 (ppc_emit_pop): New function.
8596 (ppc_emit_stack_flush): New function.
8597 (ppc_emit_swap): New function.
8598 (ppc_emit_stack_adjust): New function.
8599 (ppc_emit_call): New function.
8600 (ppc_emit_int_call_1): New function.
8601 (ppc_emit_void_call_2): New function.
8602 (ppc_emit_if_goto): New function.
8603 (ppc_emit_goto): New function.
8604 (ppc_emit_eq_goto): New function.
8605 (ppc_emit_ne_goto): New function.
8606 (ppc_emit_lt_goto): New function.
8607 (ppc_emit_le_goto): New function.
8608 (ppc_emit_gt_goto): New function.
8609 (ppc_emit_ge_goto): New function.
8610 (ppc_write_goto_address): New function.
8611 (ppc_emit_ops_impl): New static variable.
8612 (ppc64v1_emit_prologue): New function.
8613 (ppc64v2_emit_prologue): New function.
8614 (ppc64_emit_epilogue): New function.
8615 (ppc64_emit_add): New function.
8616 (ppc64_emit_sub): New function.
8617 (ppc64_emit_mul): New function.
8618 (ppc64_emit_lsh): New function.
8619 (ppc64_emit_rsh_signed): New function.
8620 (ppc64_emit_rsh_unsigned): New function.
8621 (ppc64_emit_ext): New function.
8622 (ppc64_emit_zero_ext): New function.
8623 (ppc64_emit_log_not): New function.
8624 (ppc64_emit_bit_and): New function.
8625 (ppc64_emit_bit_or): New function.
8626 (ppc64_emit_bit_xor): New function.
8627 (ppc64_emit_bit_not): New function.
8628 (ppc64_emit_equal): New function.
8629 (ppc64_emit_less_signed): New function.
8630 (ppc64_emit_less_unsigned): New function.
8631 (ppc64_emit_ref): New function.
8632 (ppc64_emit_const): New function.
8633 (ppc64v1_emit_reg): New function.
8634 (ppc64v2_emit_reg): New function.
8635 (ppc64_emit_pop): New function.
8636 (ppc64_emit_stack_flush): New function.
8637 (ppc64_emit_swap): New function.
8638 (ppc64v1_emit_call): New function.
8639 (ppc64v2_emit_call): New function.
8640 (ppc64v1_emit_int_call_1): New function.
8641 (ppc64v2_emit_int_call_1): New function.
8642 (ppc64v1_emit_void_call_2): New function.
8643 (ppc64v2_emit_void_call_2): New function.
8644 (ppc64_emit_if_goto): New function.
8645 (ppc64_emit_eq_goto): New function.
8646 (ppc64_emit_ne_goto): New function.
8647 (ppc64_emit_lt_goto): New function.
8648 (ppc64_emit_le_goto): New function.
8649 (ppc64_emit_gt_goto): New function.
8650 (ppc64_emit_ge_goto): New function.
8651 (ppc64v1_emit_ops_impl): New static variable.
8652 (ppc64v2_emit_ops_impl): New static variable.
8653 (ppc_emit_ops): New function.
8654 (linux_low_target): Wire in ppc_emit_ops.
8656 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8657 Marcin Kościelnicki <koriakin@0x04.net>
8660 * Makefile.in: Add powerpc-*-ipa.o
8661 * configure.srv: Add ipa_obj for powerpc*-linux.
8662 * linux-ppc-ipa.c: New file.
8663 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8665 (PPC_FIELD): New macro.
8666 (PPC_SEXT): New macro.
8667 (PPC_OP6): New macro.
8668 (PPC_BO): New macro.
8669 (PPC_LI): New macro.
8670 (PPC_BD): New macro.
8671 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8672 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8673 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8674 (ppc_get_thread_area): New function.
8675 (is_elfv2_inferior): New function.
8676 (gen_ds_form): New function.
8677 (GEN_STD): New macro.
8678 (GEN_STDU): New macro.
8679 (GEN_LD): New macro.
8680 (GEN_LDU): New macro.
8681 (gen_d_form): New function.
8682 (GEN_ADDI): New macro.
8683 (GEN_ADDIS): New macro.
8684 (GEN_LI): New macro.
8685 (GEN_LIS): New macro.
8686 (GEN_ORI): New macro.
8687 (GEN_ORIS): New macro.
8688 (GEN_LWZ): New macro.
8689 (GEN_STW): New macro.
8690 (GEN_STWU): New macro.
8691 (gen_xfx_form): New function.
8692 (GEN_MFSPR): New macro.
8693 (GEN_MTSPR): New macro.
8694 (GEN_MFCR): New macro.
8695 (GEN_MTCR): New macro.
8696 (GEN_SYNC): New macro.
8697 (GEN_LWSYNC): New macro.
8698 (gen_x_form): New function.
8699 (GEN_OR): New macro.
8700 (GEN_MR): New macro.
8701 (GEN_LWARX): New macro.
8702 (GEN_STWCX): New macro.
8703 (GEN_CMPW): New macro.
8704 (gen_md_form): New function.
8705 (GEN_RLDICL): New macro.
8706 (GEN_RLDICR): New macro.
8707 (gen_i_form): New function.
8709 (GEN_BL): New macro.
8710 (gen_b_form): New function.
8711 (GEN_BNE): New macro.
8712 (GEN_LOAD): New macro.
8713 (GEN_STORE): New macro.
8714 (gen_limm): New function.
8715 (gen_atomic_xchg): New function.
8716 (gen_call): New function.
8717 (ppc_relocate_instruction): New function.
8718 (ppc_install_fast_tracepoint_jump_pad): New function.
8719 (ppc_get_min_fast_tracepoint_insn_len): New function.
8720 (ppc_get_ipa_tdesc_idx): New function.
8721 (the_low_target): Wire in the new functions.
8722 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8724 * linux-ppc-tdesc.h: New file.
8726 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8728 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8729 (alloc_jump_pad_buffer): New function.
8730 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8731 (alloc_jump_pad_buffer): New function.
8732 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8733 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8734 (alloc_jump_pad_buffer): New function.
8735 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8736 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8737 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8738 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8740 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8742 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8743 * linux-amd64-ipa.c: Likewise.
8744 * linux-i386-ipa.c: Likewise.
8745 * linux-s390-ipa.c: Likewise.
8746 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8747 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8748 set_trace_state_variable_value_ptr.
8749 (struct ipa_sym_addresses): Likewise.
8750 (symbol_list): Likewise.
8751 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8752 accessing gdb_collect directly.
8753 (gdb_collect_ptr_type): New typedef.
8754 (get_raw_reg_ptr_type): New typedef.
8755 (get_trace_state_variable_value_ptr_type): New typedef.
8756 (set_trace_state_variable_value_ptr_type): New typedef.
8757 (gdb_collect_ptr): New global.
8758 (get_raw_reg_ptr): New global.
8759 (get_trace_state_variable_value_ptr): New global.
8760 (set_trace_state_variable_value_ptr): New global.
8761 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8762 accessing get_raw_reg directly.
8763 (get_get_tsv_func_addr): Likewise for
8764 get_trace_state_variable_value_ptr.
8765 (get_set_tsv_func_addr): Likewise for
8766 set_trace_state_variable_value_ptr.
8767 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8769 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8771 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8773 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8775 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8777 (relocate_instruction): Remove own_buf.
8778 * server.c (own_buf): Make global.
8779 (handle_v_requests): Make global.
8780 * server.h (own_buf): New declaration.
8781 (handle_v_requests): New prototype.
8783 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8786 * linux-s390-low.c (add_insns): New function.
8787 (s390_emit_prologue): New function.
8788 (s390_emit_epilogue): New function.
8789 (s390_emit_add): New function.
8790 (s390_emit_sub): New function.
8791 (s390_emit_mul): New function.
8792 (s390_emit_lsh): New function.
8793 (s390_emit_rsh_signed): New function.
8794 (s390_emit_rsh_unsigned): New function.
8795 (s390_emit_ext): New function.
8796 (s390_emit_log_not): New function.
8797 (s390_emit_bit_and): New function.
8798 (s390_emit_bit_or): New function.
8799 (s390_emit_bit_xor): New function.
8800 (s390_emit_bit_not): New function.
8801 (s390_emit_equal): New function.
8802 (s390_emit_less_signed): New function.
8803 (s390_emit_less_unsigned): New function.
8804 (s390_emit_ref): New function.
8805 (s390_emit_if_goto): New function.
8806 (s390_emit_goto): New function.
8807 (s390_write_goto_address): New function.
8808 (s390_emit_litpool): New function.
8809 (s390_emit_const): New function.
8810 (s390_emit_call): New function.
8811 (s390_emit_reg): New function.
8812 (s390_emit_pop): New function.
8813 (s390_emit_stack_flush): New function.
8814 (s390_emit_zero_ext): New function.
8815 (s390_emit_swap): New function.
8816 (s390_emit_stack_adjust): New function.
8817 (s390_emit_set_r2): New function.
8818 (s390_emit_int_call_1): New function.
8819 (s390_emit_void_call_2): New function.
8820 (s390_emit_eq_goto): New function.
8821 (s390_emit_ne_goto): New function.
8822 (s390_emit_lt_goto): New function.
8823 (s390_emit_le_goto): New function.
8824 (s390_emit_gt_goto): New function.
8825 (s390_emit_ge_goto): New function.
8826 (s390x_emit_prologue): New function.
8827 (s390x_emit_epilogue): New function.
8828 (s390x_emit_add): New function.
8829 (s390x_emit_sub): New function.
8830 (s390x_emit_mul): New function.
8831 (s390x_emit_lsh): New function.
8832 (s390x_emit_rsh_signed): New function.
8833 (s390x_emit_rsh_unsigned): New function.
8834 (s390x_emit_ext): New function.
8835 (s390x_emit_log_not): New function.
8836 (s390x_emit_bit_and): New function.
8837 (s390x_emit_bit_or): New function.
8838 (s390x_emit_bit_xor): New function.
8839 (s390x_emit_bit_not): New function.
8840 (s390x_emit_equal): New function.
8841 (s390x_emit_less_signed): New function.
8842 (s390x_emit_less_unsigned): New function.
8843 (s390x_emit_ref): New function.
8844 (s390x_emit_if_goto): New function.
8845 (s390x_emit_const): New function.
8846 (s390x_emit_call): New function.
8847 (s390x_emit_reg): New function.
8848 (s390x_emit_pop): New function.
8849 (s390x_emit_stack_flush): New function.
8850 (s390x_emit_zero_ext): New function.
8851 (s390x_emit_swap): New function.
8852 (s390x_emit_stack_adjust): New function.
8853 (s390x_emit_int_call_1): New function.
8854 (s390x_emit_void_call_2): New function.
8855 (s390x_emit_eq_goto): New function.
8856 (s390x_emit_ne_goto): New function.
8857 (s390x_emit_lt_goto): New function.
8858 (s390x_emit_le_goto): New function.
8859 (s390x_emit_gt_goto): New function.
8860 (s390x_emit_ge_goto): New function.
8861 (s390_emit_ops): New function.
8862 (struct linux_target_ops): Fill in emit_ops hook.
8864 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8867 * Makefile.in: Add s390 IPA files.
8868 * configure.srv: Build IPA for s390.
8869 * linux-s390-ipa.c: New file.
8870 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8871 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8872 (tdesc_s390_linux32): Likewise.
8873 (init_registers_s390_linux32v1): Likewise.
8874 (tdesc_s390_linux32v1): Likewise.
8875 (init_registers_s390_linux32v2): Likewise.
8876 (tdesc_s390_linux32v2): Likewise.
8877 (init_registers_s390_linux64): Likewise.
8878 (tdesc_s390_linux64): Likewise.
8879 (init_registers_s390_linux64v1): Likewise.
8880 (tdesc_s390_linux64v1): Likewise.
8881 (init_registers_s390_linux64v2): Likewise.
8882 (tdesc_s390_linux64v2): Likewise.
8883 (init_registers_s390_te_linux64): Likewise.
8884 (tdesc_s390_te_linux64): Likewise.
8885 (init_registers_s390_vx_linux64): Likewise.
8886 (tdesc_s390_vx_linux64): Likewise.
8887 (init_registers_s390_tevx_linux64): Likewise.
8888 (tdesc_s390_tevx_linux64): Likewise.
8889 (init_registers_s390x_linux64): Likewise.
8890 (tdesc_s390x_linux64): Likewise.
8891 (init_registers_s390x_linux64v1): Likewise.
8892 (tdesc_s390x_linux64v1): Likewise.
8893 (init_registers_s390x_linux64v2): Likewise.
8894 (tdesc_s390x_linux64v2): Likewise.
8895 (init_registers_s390x_te_linux64): Likewise.
8896 (tdesc_s390x_te_linux64): Likewise.
8897 (init_registers_s390x_vx_linux64): Likewise.
8898 (tdesc_s390x_vx_linux64): Likewise.
8899 (init_registers_s390x_tevx_linux64): Likewise.
8900 (tdesc_s390x_tevx_linux64): Likewise.
8901 (have_hwcap_s390_vx): New static variable.
8902 (s390_arch_setup): Fill have_hwcap_s390_vx.
8903 (s390_get_thread_area): New function.
8904 (s390_ft_entry_gpr_esa): New const.
8905 (s390_ft_entry_gpr_zarch): New const.
8906 (s390_ft_entry_misc): New const.
8907 (s390_ft_entry_fr): New const.
8908 (s390_ft_entry_vr): New const.
8909 (s390_ft_main_31): New const.
8910 (s390_ft_main_64): New const.
8911 (s390_ft_exit_fr): New const.
8912 (s390_ft_exit_vr): New const.
8913 (s390_ft_exit_misc): New const.
8914 (s390_ft_exit_gpr_esa): New const.
8915 (s390_ft_exit_gpr_zarch): New const.
8916 (append_insns): New function.
8917 (s390_relocate_instruction): New function.
8918 (s390_install_fast_tracepoint_jump_pad): New function.
8919 (s390_get_min_fast_tracepoint_insn_len): New function.
8920 (s390_get_ipa_tdesc_idx): New function.
8921 (struct linux_target_ops): Wire in the above functions.
8922 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8923 * linux-s390-tdesc.h: New file.
8925 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8927 * linux-s390-low.c (s390_supports_tracepoints): New function.
8928 (struct linux_target_ops): Fill supports_tracepoints hook.
8930 2016-03-18 Yao Qi <yao.qi@linaro.org>
8932 * linux-low.c (lwp_signal_can_be_delivered): New function.
8933 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8935 2016-03-18 Yao Qi <yao.qi@linaro.org>
8937 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8938 0 if signal is enqueued. Remove 'signal' from one debugging
8939 message. Move one debugging message to some lines below.
8940 Remove code setting 'signal' to 0.
8942 2016-03-18 Yao Qi <yao.qi@linaro.org>
8944 * linux-low.c (linux_low_filter_event): Remove redundant
8945 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8947 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8949 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8950 (struct linux_target_ops): Wire in the above.
8952 2016-03-03 Yao Qi <yao.qi@linaro.org>
8954 * linux-low.c: Update comments to start_step_over.
8956 2016-03-03 Yao Qi <yao.qi@linaro.org>
8959 * linux-low.c (handle_extended_wait): Set child suspended
8960 if event_lwp->bp_reinsert isn't zero.
8962 2016-03-02 Yao Qi <yao.qi@linaro.org>
8964 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8965 enqueue_pending_signal.
8967 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8969 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8972 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8974 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8975 (s390_regmap_3264) [!__s390x__]: New global.
8976 (s390_collect_ptrace_register): Skip map entries containing -1.
8977 (s390_supply_ptrace_register): Ditto.
8978 (s390_fill_gprs_high): New function.
8979 (s390_store_gprs_high): New function.
8980 (s390_regsets): Add NT_S390_HIGH_GPRS.
8981 (s390_get_hwcap): Enable on 31-bit.
8982 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8983 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8984 Detect NT_S390_HIGH_GPRS.
8985 (s390_usrregs_info_3264): Enable on 31-bit.
8986 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8987 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8989 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8992 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8993 * configure.srv: Ditto.
8994 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8995 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8996 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8997 (init_registers_amd64_linux): Remove prototype.
8998 (tdesc_amd64_linux): Remove declaration.
8999 (get_ipa_tdesc): New function.
9000 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9001 initialize remaining tdescs.
9002 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
9003 (init_registers_i386_linux): Remove prototype.
9004 (tdesc_i386_linux): Remove declaration.
9005 (get_ipa_tdesc): New function.
9006 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9007 initialize remaining tdescs.
9008 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
9009 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
9010 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
9011 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
9012 (x86_get_ipa_tdesc_idx): New function.
9013 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
9014 * linux-x86-tdesc.h: New file.
9015 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
9016 (target_get_ipa_tdesc_idx): New macro.
9017 * tracepoint.c (ipa_tdesc_idx): New macro.
9018 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
9019 (symbol_list): Add ipa_tdesc_idx.
9020 (cmd_qtstart): Write ipa_tdesc_idx in the target.
9021 (ipa_tdesc): Remove.
9022 (ipa_tdesc_idx): New variable.
9023 (get_context_regcache): Use get_ipa_tdesc.
9024 (gdb_collect): Ditto.
9026 * tracepoint.h (get_ipa_tdesc): New prototype.
9027 (ipa_tdesc): Remove.
9029 2016-02-24 Pedro Alves <palves@redhat.com>
9031 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
9032 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
9033 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
9034 Factor out common code between the USE_SIGTRAP_SIGINFO and
9035 !USE_SIGTRAP_SIGINFO blocks.
9036 (linux_low_filter_event): Call save_stop_reason instead of
9037 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
9039 (linux_wait_1): Update comments.
9041 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
9043 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
9044 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
9045 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
9046 ppc_insert_point, ppc_remove_point.
9048 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
9050 * linux-s390-low.c (s390_supports_z_point_type): New function.
9051 (struct linux_target_ops): Wire s390_supports_z_point_type in.
9053 2016-02-16 Yao Qi <yao.qi@linaro.org>
9055 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
9056 PC. Get pc from regcache_read_pc.
9058 2016-02-12 Yao Qi <yao.qi@linaro.org>
9060 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
9061 or linux_get_pc_32bit.
9062 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
9064 2016-02-12 Yao Qi <yao.qi@linaro.org>
9066 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
9067 arm_linux_get_next_pcs_fixup.
9069 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
9071 * tracepoint.c (x_tracepoint_action_download): Change
9072 write_inferior_data_ptr to write_inferior_data_pointer.
9073 (cmd_qtstart): Likewise.
9074 (write_inferior_data_ptr): Remove.
9075 (download_agent_expr): Change write_inferior_data_ptr to
9076 write_inferior_data_pointer.
9077 (download_tracepoint_1): Likewise.
9078 (download_tracepoint): Likewise.
9079 (download_trace_state_variables): Likewise.
9081 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
9082 Marcin Kościelnicki <koriakin@0x04.net>
9084 * tracepoint.c (struct tracepoint_action_ops): Remove.
9085 (struct tracepoint_action): Remove ops.
9086 (m_tracepoint_action_download, r_tracepoint_action_download)
9087 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
9088 size and offset accordingly.
9089 (m_tracepoint_action_ops, r_tracepoint_action_ops)
9090 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
9091 (tracepoint_action_send, tracepoint_action_download): New functions.
9092 Helpers for trace action handlers.
9093 (add_tracepoint_action): Remove setup actions ops.
9094 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
9096 2016-02-10 Yao Qi <yao.qi@linaro.org>
9098 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
9100 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9102 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
9104 * configure: Regenerate.
9106 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9108 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
9109 void * to gdb_byte *.
9110 * linux-low.c (siginfo_fixup): Likewise.
9111 (linux_xfer_siginfo): Likewise.
9112 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
9114 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
9116 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9118 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
9120 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
9122 * linux-x86-low.c [__x86_64__]: Include
9123 "nat/amd64-linux-siginfo.h".
9124 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
9125 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
9126 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
9127 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
9128 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
9129 (cpt_si_fd, si_timerid, si_overrun): Move from
9130 nat/amd64-linux-siginfo.c.
9131 * Makefile.in (amd64-linux-siginfo.o:): New rule.
9133 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9135 * server.c (skip_to_semicolon): Remove.
9136 (process_point_options): Use strchrnul instead of
9139 2016-01-26 Yao Qi <yao.qi@linaro.org>
9141 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
9142 * linux-low.c (install_software_single_step_breakpoints): Don't
9143 call regcache_read_pc.
9144 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
9147 2016-01-26 Yao Qi <yao.qi@linaro.org>
9149 * linux-low.c (install_software_single_step_breakpoints): Call
9150 regcache_read_pc instead of get_pc.
9152 2016-01-26 Yao Qi <yao.qi@linaro.org>
9154 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9155 (unblock_async_io): Rename to ...
9156 (block_unblock_async_io): ... it. New function.
9157 (enable_async_io): Don't install SIGIO handler. Unblock it
9159 (disable_async_io): Don't ignore SIGIO. Block it instead.
9160 (initialize_async_io): Install SIGIO handler. Don't call
9163 2016-01-26 Yao Qi <yao.qi@linaro.org>
9165 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9166 first character is '\003', call *the_target->request_interrupt.
9168 2016-01-25 Yao Qi <yao.qi@linaro.org>
9170 * remote-utils.c (new_thread_notify): Remove.
9171 (dead_thread_notify): Likewise.
9172 * remote-utils.h (new_thread_notify): Remove declaration.
9173 (dead_thread_notify): Likewise.
9175 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9177 * gdb.trace/pending.exp: Fix expected message on continue.
9179 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9181 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9182 it works properly on big-endian machines where sizeof (CORE_ADDR)
9185 2016-01-21 Pedro Alves <palves@redhat.com>
9187 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9188 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9189 * configure: Regenerate.
9191 2016-01-21 Yao Qi <yao.qi@linaro.org>
9193 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9194 is_thumb and set it according to CPSR saved on the stack.
9195 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9196 arm_sigreturn_next_pc.
9198 2016-01-18 Yao Qi <yao.qi@linaro.org>
9200 * linux-low.c (linux_set_pc_64bit): New function.
9201 (linux_get_pc_64bit): New function.
9202 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9204 * linux-sparc-low.c (debug_threads): Remove declaration.
9205 (sparc_get_pc): Remove.
9206 (the_low_target): Use linux_get_pc_64bit instead of
9208 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9209 (the_low_target): Use linux_get_pc_64bit and
9212 2016-01-18 Yao Qi <yao.qi@linaro.org>
9214 * linux-arm-low.c (debug_threads): Remove declaration.
9215 (arm_get_pc, arm_set_pc): Remove.
9216 (the_low_target): Use linux_get_pc_32bit and
9218 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9219 (the_low_target): Use linux_get_pc_32bit and
9221 * linux-cris-low.c (debug_threads): Remove declaration.
9222 (cris_get_pc, cris_set_pc,): Remove.
9223 (the_low_target): Use linux_get_pc_32bit and
9225 * linux-crisv32-low.c (debug_threads): Remove declaration.
9226 (cris_get_pc, cris_set_pc): Remove.
9227 (the_low_target): Use linux_get_pc_32bit and
9229 * linux-low.c: Include inttypes.h.
9230 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9231 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9232 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9233 (the_low_target): Use linux_get_pc_32bit and
9235 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9236 (the_low_target): Use linux_get_pc_32bit and
9238 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9239 (the_low_target): Use linux_get_pc_32bit and
9241 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9242 (the_low_target): Use linux_get_pc_32bit and
9244 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9245 (the_low_target): Use linux_get_pc_32bit and
9248 2016-01-18 Gary Benson <gbenson@redhat.com>
9250 * configure.ac (AC_FUNC_FORK): New check.
9251 * config.in: Regenerate.
9252 * configure: Likewise.
9254 2016-01-14 Yao Qi <yao.qi@linaro.org>
9256 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9257 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9258 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9259 arm_get_next_pcs_ctor.
9261 2016-01-12 Josh Stone <jistone@redhat.com>
9262 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9264 * inferiors.h: Include "gdb_vecs.h".
9265 (struct process_info): Add syscalls_to_catch.
9266 * inferiors.c (remove_process): Free syscalls_to_catch.
9267 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9268 syscall_return stops.
9269 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9270 * server.c (handle_general_set): Handle QCatchSyscalls.
9271 (handle_query): Report support for QCatchSyscalls.
9272 * target.h (struct target_ops): Add supports_catch_syscall.
9273 (target_supports_catch_syscall): New macro.
9274 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9275 (struct lwp_info): Add syscall_state.
9276 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9277 Maintain syscall_state and syscalls_to_catch across exec.
9278 (get_syscall_trapinfo): New function, proxy to the_low_target.
9279 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9280 (linux_low_filter_event): Toggle syscall_state entry/return for
9281 syscall traps, and set it ignored for all others.
9282 (gdb_catching_syscalls_p): New function.
9283 (gdb_catch_this_syscall_p): New function.
9284 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9285 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9286 (linux_supports_catch_syscall): New function.
9287 (linux_target_ops): Install it.
9288 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9289 (the_low_target): Install it.
9291 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9293 * acinclude.m4: Include new ../warning.m4 file.
9294 * configure: Regenerated.
9295 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9297 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9299 * ax.c (is_goto_target): Mark static.
9300 * linux-low.c (register_addr): Likewise.
9301 (linux_fetch_registers, linux_store_registers): Likewise.
9302 * mem-break.c (any_persistent_commands): Fix old prototype.
9303 (add_commands_to_breakpoint): Mark static.
9304 * regcache.c (find_register_by_name): Delete unused func.
9305 * remote-utils.c (hex_or_minus_one): Mark static.
9306 * server.c (monitor_show_help): Mark static.
9307 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9308 handle_v_requests): Likewise.
9310 2016-01-12 Pedro Alves <palves@redhat.com>
9312 Remove use of the registered trademark symbol throughout.
9314 2016-01-08 Yao Qi <yao.qi@linaro.org>
9316 * remote-utils.c (getpkt): If c is '\003', call target hook
9319 2016-01-06 Yao Qi <yao.qi@linaro.org>
9321 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9322 linux-aarch32-low.c.
9323 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9324 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9325 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9326 (thumb2_breakpoint): Declare.
9327 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9328 linux-aarch32-low.h.
9329 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9330 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9331 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9333 2016-01-01 Joel Brobecker <brobecker@adacore.com>
9335 * gdbreplay.c (gdbreplay_version): Change copyright year in
9337 * server.c (gdbserver_version): Likewise.
9339 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9341 * server.c (crc32_table): Delete.
9342 (crc32): Use libiberty's xcrc32 function.
9344 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9346 * lynx-low.c (lynx_delete_thread_callback): New function.
9347 (lynx_mourn): Properly delete our process and all of its
9348 threads. Remove call to clear_inferiors.
9350 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9352 * target.c (thread_search_callback): Add check that
9353 the thread_stopped target callback is not NULL before
9356 2015-12-21 Yao Qi <yao.qi@linaro.org>
9358 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9361 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9363 * server.c (handle_query): Call target_supports_software_single_step.
9365 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9367 * linux-low.c (single_step): New function.
9368 (linux_resume_one_lwp_throw): Call single_step.
9369 (start_step_over): Likewise.
9371 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9373 * Makefile.in (SFILES): Append arch/arm-linux.c,
9374 arch/arm-get-next-pcs.c.
9375 (arm-linux.o): New rule.
9376 (arm-get-next-pcs.o): New rule.
9377 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9379 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9380 to linux-aarch32-low.c.
9381 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9382 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9383 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9384 (thumb2_breakpoint_len): Likewise.
9385 (arm_is_thumb_mode): Make non-static.
9386 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9387 from linux-aarch32-low.c.
9388 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9389 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9390 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9391 (thumb2_breakpoint_len): Likewise.
9392 (arm_is_thumb_mode): New declaration.
9393 * linux-arm-low.c: Include arch/arm-linux.h
9394 aarch/arm-get-next-pcs.h, sys/syscall.h.
9395 (get_next_pcs_ops): New struct.
9396 (get_next_pcs_addr_bits_remove): New function.
9397 (get_next_pcs_is_thumb): New function.
9398 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9399 (arm_sigreturn_next_pc): Likewise.
9400 (get_next_pcs_syscall_next_pc): Likewise.
9401 (arm_gdbserver_get_next_pcs): Likewise.
9402 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9404 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9405 * server.h: Include gdb_vecs.h.
9407 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9409 * Makefile.in (SFILES): Append common/common-regcache.c.
9410 (OBS): Append common-regcache.o.
9411 (common-regcache.o): New rule.
9412 * regcache.c (init_register_cache): Initialize cache to
9414 (regcache_raw_read_unsigned): New function.
9415 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9416 register_status enum.
9418 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9420 * linux-aarch64-low.c (the_low_targets): Rename
9421 breakpoint_reinsert_addr to get_next_pcs.
9422 * linux-arm-low.c (the_low_targets): Likewise.
9423 * linux-bfin-low.c (the_low_targets): Likewise.
9424 * linux-cris-low.c (the_low_targets): Likewise.
9425 * linux-crisv32-low.c (the_low_targets): Likewise.
9426 * linux-low.c (can_software_single_step): Likewise.
9427 (install_software_single_step_breakpoints): New function.
9428 (start_step_over): Use install_software_single_step_breakpoints.
9429 * linux-low.h: New CORE_ADDR vector.
9430 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9432 * linux-mips-low.c (the_low_targets): Likewise.
9433 * linux-nios2-low.c (the_low_targets): Likewise.
9434 * linux-sparc-low.c (the_low_targets): Likewise.
9436 2015-12-17 Pedro Alves <palves@redhat.com>
9438 * linux-low.c (linux_kill_one_lwp): Remove references to
9440 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9442 (linux_init_signals): Delete.
9443 (initialize_low): Adjust.
9444 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9446 2015-12-16 Pedro Alves <palves@redhat.com>
9448 * configure.ac (compiler warning flags): When testing a
9449 -Wno-foo option, check whether -Wfoo works instead.
9450 * configure: Regenerate.
9452 2015-12-11 Don Breazeal <donb@codesourcery.com>
9454 * server.c (process_serial_event): Don't exit from gdbserver
9455 in remote mode if there are still active inferiors.
9457 2015-12-11 Yao Qi <yao.qi@linaro.org>
9459 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9460 arm_breakpoint_at if the process is 32-bit.
9462 2015-12-11 Yao Qi <yao.qi@linaro.org>
9464 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9467 2015-12-07 Yao Qi <yao.qi@linaro.org>
9469 * configure.srv: Append arm.o to srv_tgtobj for
9470 aarch64*-*-linux* target.
9471 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9472 from linux-arm-low.c.
9473 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9474 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9475 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9476 (thumb2_breakpoint_len): Likewise.
9477 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9478 (arm_breakpoint_kinds): Likewise.
9479 (arm_breakpoint_kind_from_pc): Likewise.
9480 (arm_sw_breakpoint_from_kind): Likewise.
9481 (arm_breakpoint_kind_from_current_state): Likewise.
9482 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9483 (arm_sw_breakpoint_from_kind): Declare.
9484 (arm_breakpoint_kind_from_current_state): Declare.
9485 (arm_breakpoint_at): Declare.
9486 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9487 arm_sw_breakpoint_from_kind if process is 32-bit.
9488 (aarch64_breakpoint_kind_from_pc): New function.
9489 (aarch64_breakpoint_kind_from_current_state): New function.
9490 (the_low_target): Initialize fields breakpoint_kind_from_pc
9491 and breakpoint_kind_from_current_state.
9492 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9493 linux-aarch32-low.c.
9494 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9495 (arm_breakpoint, arm_breakpoint_len): Likewise.
9496 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9497 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9498 (arm_is_thumb_mode): Likewise.
9499 (arm_breakpoint_at): Likewise.
9500 (arm_breakpoint_kind_from_pc): Likewise.
9501 (arm_sw_breakpoint_from_kind): Likewise.
9502 (arm_breakpoint_kind_from_current_state): Likewise.
9505 2015-08-04 Yao Qi <yao.qi@linaro.org>
9507 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9508 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9509 * server.c (extended_protocol): Remove "static".
9510 * server.h (extended_protocol): Declare it.
9512 2015-12-04 Josh Stone <jistone@redhat.com>
9514 * target.h (struct target_ops) <arch_setup>: Rename to ...
9515 (struct target_ops) <post_create_inferior>: ... this.
9516 (target_arch_setup): Rename to ...
9517 (target_post_create_inferior): ... this, calling post_create_inferior.
9518 * server.c (start_inferior): Update target_arch_setup calls to
9519 target_post_create_inferior.
9520 * linux-low.c (linux_low_ptrace_options): Forward declare.
9521 (linux_arch_setup): Update its comment for general use.
9522 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9523 (struct linux_target_ops): Use linux_post_create_inferior.
9524 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9525 to post_create_inferior.
9526 * nto-low.c (struct nto_target_ops): Likewise.
9527 * spu-low.c (struct spu_target_ops): Likewise.
9528 * win32-low.c (struct win32_target_ops): Likewise.
9530 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9532 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9534 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9536 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9537 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9538 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9539 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9540 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9541 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9542 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9543 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9544 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9545 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9546 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9547 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9549 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9551 * linux-low.c (linux_look_up_symbols): Don't call
9552 linux_supports_traceclone.
9553 * linux-low.h (thread_db_init): Remove use_events argument.
9554 * thread-db.c (thread_db_use_event): Remove global variable.
9555 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9556 (struct thread_db) <td_create_bp>: Remove field.
9557 (thread_db_create_event): Remove function.
9558 (thread_db_enable_reporting): Likewise.
9559 (find_one_thread): Don't check for thread_db_use_events.
9560 (attach_thread): Likewise.
9561 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9562 (try_thread_db_load_1): Don't check for thread_db_use_events.
9563 (thread_db_init): Remove use_events argument and thread events
9565 (remove_thread_event_breakpoints): Remove function.
9566 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9568 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9570 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9572 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9573 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9574 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9575 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9576 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9578 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9580 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9581 * linux-low.c (can_hardware_single_step): Use
9582 supports_hardware_single_step.
9583 (can_software_single_step): New function.
9584 (start_step_over): Call can_software_single_step.
9585 (linux_supports_hardware_single_step): New function.
9586 (struct target_ops) <supports_software_single_step>: Initialize.
9587 * linux-low.h (struct linux_target_ops)
9588 <supports_hardware_single_step>: Initialize.
9589 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9590 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9591 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9592 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9593 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9594 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9595 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9596 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9597 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9598 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9600 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9601 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9603 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9604 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9605 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9607 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9608 * target.h (struct target_ops): <supports_software_single_step>:
9610 (target_supports_software_single_step): New macro.
9612 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9614 * linux-low.c (linux_wait_1): Fix pc advance condition.
9615 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9616 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9618 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9620 * linux-arm-low.c (arm_is_thumb_mode): New function.
9621 (arm_breakpoint_at): Use arm_is_thumb_mode.
9622 (arm_breakpoint_kind_from_current_state): New function.
9623 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9625 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9626 (linux_breakpoint_kind_from_current_state): New function.
9627 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9628 * linux-low.h (struct linux_target_ops)
9629 <breakpoint_kind_from_current_state>: New field.
9630 * target.h (struct target_ops): Likewise.
9631 (target_breakpoint_kind_from_current_state): New macro.
9633 2015-11-30 Pedro Alves <palves@redhat.com>
9635 * linux-low.c (linux_resume): Wake up the event loop before
9638 2015-11-30 Pedro Alves <palves@redhat.com>
9640 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9642 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9644 * target.c (struct thread_search): New structure.
9645 (thread_search_callback): New function.
9646 (prev_general_thread): New global.
9647 (prepare_to_access_memory, done_accessing_memory): New functions.
9648 * target.h (prepare_to_access_memory, done_accessing_memory):
9649 Replace macros with function declarations.
9651 2015-11-30 Pedro Alves <palves@redhat.com>
9654 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9655 report TARGET_WAITKIND_NO_RESUMED.
9656 * remote-utils.c (prepare_resume_reply): Handle
9657 TARGET_WAITKIND_NO_RESUMED.
9658 * server.c (report_no_resumed): New global.
9659 (handle_query) <qSupported>: Handle "no-resumed+". Report
9660 "no-resumed+" support.
9661 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9662 return error if the client doesn't support no-resumed events.
9663 (push_stop_notification): New function.
9664 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9665 events if the client supports them.
9667 2015-11-30 Pedro Alves <palves@redhat.com>
9669 * linux-low.c (thread_still_has_status_pending_p): Don't check
9671 (lwp_resumed): New function.
9672 (status_pending_p_callback): Return early if the LWP is not
9673 supposed to be resumed.
9675 2015-11-30 Pedro Alves <palves@redhat.com>
9677 * linux-low.c (handle_extended_wait): Assert that the LWP's
9678 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9679 thread create events, leave the new child's status pending.
9680 (linux_low_filter_event): If GDB wants to hear about thread exit
9681 events, leave the LWP marked dead and don't delete it.
9682 (linux_wait_for_event_filtered): Don't check for thread exit.
9683 (filter_exit_event): New function.
9684 (linux_wait_1): Use it, when returning an exit event.
9685 (linux_resume_one_lwp_throw): Assert that the LWP's
9686 waitstatus is TARGET_WAITKIND_IGNORE.
9687 * remote-utils.c (prepare_resume_reply): Handle
9688 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9689 * server.c (report_thread_events): New global.
9690 (handle_general_set): Handle QThreadEvents.
9691 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9692 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9693 TARGET_WAITKIND_THREAD_EXITED.
9694 * server.h (report_thread_events): Declare.
9696 2015-11-30 Pedro Alves <palves@redhat.com>
9698 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9699 the thread's last_resume_kind was resume_stop.
9701 2015-11-30 Pedro Alves <palves@redhat.com>
9703 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9706 2015-11-30 Pedro Alves <palves@redhat.com>
9708 * server.c (handle_v_requests): Handle vCtrlC.
9710 2015-11-30 Pedro Alves <palves@redhat.com>
9712 * gdbthread.h (find_any_thread_of_pid): Declare.
9713 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9715 * server.c (handle_query): If current_thread is NULL, look for
9716 another thread of the selected process.
9718 2015-11-26 Daniel Colascione <dancol@dancol.org>
9719 Simon Marchi <simon.marchi@ericsson.com>
9721 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9722 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9724 * target.h (struct target_ops) <thread_name>: New field.
9725 (target_thread_name): New macro.
9727 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9729 * regcache.h (regcache_invalidate_pid): Add declaration.
9730 * regcache.c (regcache_invalidate_pid): New function, extracted
9731 from regcache_invalidate.
9732 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9733 Add trivial documentation comment.
9734 * lynx-low.c: Use regcache_invalidate_pid instead of
9735 regcache_invalidate.
9737 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9739 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9740 and Elf64_auxv_t if the target is Android.
9742 2015-11-22 Doug Evans <xdje42@gmail.com>
9744 * target.h: #include <sys/types.h>.
9746 2015-11-19 Pedro Alves <palves@redhat.com>
9748 * linux-low.c (linux_process_qsupported): Change prototype.
9750 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9752 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9753 and adjust to loop over all features.
9754 * server.c (handle_query) <qSupported>: Adjust to call
9755 target_process_qsupported once, passing it a vector of unprocessed
9757 * target.h (struct target_ops) <process_qsupported>: Change
9759 (target_process_qsupported): Adjust.
9761 2015-11-19 Pedro Alves <palves@redhat.com>
9763 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9765 * configure: Regenerate.
9767 2015-11-19 Pedro Alves <palves@redhat.com>
9769 * configure: Regenerate.
9771 2015-11-19 Yao Qi <yao.qi@linaro.org>
9773 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9776 2015-11-19 Yao Qi <yao.qi@linaro.org>
9778 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9779 (struct aarch64_operand): Move enum out.
9781 2015-11-19 Yao Qi <yao.qi@linaro.org>
9783 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9784 struct user_fpsimd_state *.
9785 (aarch64_store_fpregset): Likewise.
9787 2015-11-19 Yao Qi <yao.qi@linaro.org>
9789 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9790 struct user_pt_regs *.
9791 (aarch64_store_gregset): Likewise.
9793 2015-11-18 Pedro Alves <palves@redhat.com>
9795 * Makefile.in (all_object_files): Add $IPA_OBJS.
9797 2015-11-17 Pedro Alves <palves@redhat.com>
9799 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9800 GDB_SIGNAL_0 and gdb_signal_to_string.
9802 2015-11-17 Pedro Alves <palves@redhat.com>
9804 * win32-low.c (handle_output_debug_string): Remove parameter.
9805 (win32_kill): Remove our_status local and adjust call to
9806 handle_output_debug_string.
9807 (get_child_debug_event): Adjust call to
9808 handle_output_debug_string.
9810 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9812 * linux-mips-low.c (mips_fill_gregset): Add cast.
9813 (mips_store_gregset): Likewise.
9814 (mips_fill_fpregset): Likewise.
9815 (mips_store_fpregset): Likewise.
9817 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9819 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9822 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9824 * linux-mips-low.c (mips_linux_new_thread): Change type of
9825 watch_type to enum target_hw_bp_type.
9827 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9829 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9830 Change return type to arm_hwbp_type.
9832 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9834 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9835 (arm_store_gregset): Likewise.
9836 * linux-arm-low.c (arm_get_hwcap): Likewise.
9837 (arm_read_description): Likewise.
9839 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9841 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9843 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9845 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9846 (ppc_fill_vsxregset): Likewise.
9847 (ppc_store_vsxregset): Likewise.
9848 (ppc_fill_vrregset): Likewise.
9849 (ppc_store_vrregset): Likewise.
9850 (ppc_fill_evrregset): Likewise.
9851 (ppc_store_evrregset): Likewise.
9853 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9855 * linux-ppc-low.c (ppc_usrregs_info): Remove
9856 forward-declaration.
9857 (ppc_arch_setup): Move lower in file.
9859 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9861 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9862 (ps_pdwrite): Likewise.
9864 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9866 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9867 to after assert checks.
9869 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9871 * proc-service.c (ps_pdread): Add/adjust casts.
9872 (ps_pdwrite): Add/adjust casts.
9874 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9876 * server.c (handle_search_memory_1): Cast return value of
9879 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9881 * server.c (write_qxfer_response): Change type of data to
9884 2015-10-29 Pedro Alves <palves@redhat.com>
9886 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9888 2015-10-29 Pedro Alves <palves@redhat.com>
9890 * tracepoint.c (clear_installed_tracepoints): Add casts.
9892 2015-10-29 Pedro Alves <palves@redhat.com>
9894 * server.c (handle_v_cont, process_serial_event): Add enum
9895 gdb_signal casts to signal parsing code.
9897 2015-10-29 Pedro Alves <palves@redhat.com>
9899 * linux-low.h (NULL_REGSET): Define.
9900 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9901 * linux-arm-low.c (arm_regsets): Likewise.
9902 * linux-crisv32-low.c (cris_regsets): Likewise.
9903 * linux-m68k-low.c (m68k_regsets): Likewise.
9904 * linux-mips-low.c (mips_regsets): Likewise.
9905 * linux-nios2-low.c (nios2_regsets): Likewise.
9906 * linux-ppc-low.c (ppc_regsets): Likewise.
9907 * linux-s390-low.c (s390_regsets): Likewise.
9908 * linux-sh-low.c (sh_regsets): Likewise.
9909 * linux-sparc-low.c (sparc_regsets): Likewise.
9910 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9911 * linux-tile-low.c (tile_regsets): Likewise.
9912 * linux-x86-low.c (x86_regsets): Likewise.
9913 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9915 2015-10-29 Pedro Alves <palves@redhat.com>
9917 * linux-low.h (NULL_REGSET): Define.
9918 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9919 * linux-arm-low.c (arm_regsets): Likewise.
9920 * linux-crisv32-low.c (cris_regsets): Likewise.
9921 * linux-m68k-low.c (m68k_regsets): Likewise.
9922 * linux-mips-low.c (mips_regsets): Likewise.
9923 * linux-nios2-low.c (nios2_regsets): Likewise.
9924 * linux-ppc-low.c (ppc_regsets): Likewise.
9925 * linux-s390-low.c (s390_regsets): Likewise.
9926 * linux-sh-low.c (sh_regsets): Likewise.
9927 * linux-sparc-low.c (sparc_regsets): Likewise.
9928 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9929 * linux-tile-low.c (tile_regsets): Likewise.
9930 * linux-x86-low.c (x86_regsets): Likewise.
9931 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9933 2015-10-26 Doug Evans <dje@google.com>
9935 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9937 2015-10-26 Doug Evans <dje@google.com>
9939 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9941 2015-10-26 Doug Evans <dje@google.com>
9943 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9945 (attach_thread, find_new_threads_callback): Ditto.
9947 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9949 * mem-break.h (set_breakpoint_data): Remove.
9951 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9953 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9954 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9955 (initialize_low): Remove set_breakpoint_data call.
9956 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9957 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9958 (initialize_low): Remove set_breakpoint_data call.
9959 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9960 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9961 (initialize_low): Remove set_breakpoint_data call.
9963 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9965 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9966 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9967 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9968 * target.h (target_breakpoint_kind_from_pc): New macro.
9970 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9972 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9973 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9974 the default breakpoint kind.
9976 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9978 * linux-arm-low.c (arm_supports_z_point_type): Add software
9981 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9983 * linux-arm-low.c: Refactor breakpoint definitions.
9984 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9985 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9987 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9989 * Makefile.in: Add arm.c/o.
9990 * configure.srv: Likewise.
9991 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9992 (arm_breakpoint_kind_from_pc): New function.
9993 (arm_sw_breakpoint_from_kind): Return proper kind.
9994 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9996 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9998 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
10000 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
10001 (struct raw_breakpoint) <size>: Remove.
10002 (struct raw_breakpoint) <kind>: Add.
10003 (bp_size): New function.
10004 (bp_opcode): Likewise.
10005 (find_raw_breakpoint_at): Adjust for kind.
10006 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
10007 (remove_memory_breakpoint): Adjust for kind call bp_size.
10008 (set_raw_breakpoint_at): Adjust for kind.
10009 (set_breakpoint): Likewise.
10010 (set_breakpoint_at): Call breakpoint_kind_from_pc.
10011 (delete_raw_breakpoint): Adjust for kind.
10012 (delete_breakpoint): Likewise.
10013 (find_gdb_breakpoint): Likewise.
10014 (set_gdb_breakpoint_1): Likewise.
10015 (set_gdb_breakpoint): Likewise.
10016 (delete_gdb_breakpoint_1): Likewise.
10017 (delete_gdb_breakpoint): Likewise.
10018 (uninsert_raw_breakpoint): Likewise.
10019 (reinsert_raw_breakpoint): Likewise.
10020 (set_breakpoint_data): Remove.
10021 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
10022 (check_mem_read): Adjust for kind call bp_size.
10023 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
10024 (clone_one_breakpoint): Adjust for kind.
10025 * mem-break.h (set_gdb_breakpoint): Likewise.
10026 (delete_gdb_breakpoint): Likewise.
10027 * server.c (process_serial_event): Likewise.
10029 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10031 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
10032 (struct linux_target_ops) <breakpoint>: Remove.
10033 (struct linux_target_ops) <breakpoint_len>: Remove.
10034 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10035 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10036 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
10037 (arm_sw_breakpoint_from_kind): New function.
10038 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
10039 (struct linux_target_ops) <breakpoint>: Remove.
10040 (struct linux_target_ops) <breakpoint_len>: Remove.
10041 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10042 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10043 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
10044 (struct linux_target_ops) <breakpoint>: Remove.
10045 (struct linux_target_ops) <breakpoint_len>: Remove.
10046 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10047 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10048 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
10049 (struct linux_target_ops) <breakpoint>: Remove.
10050 (struct linux_target_ops) <breakpoint_len>: Remove.
10051 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10052 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10053 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
10054 and sw_breakpoint_from_kind to increment the pc.
10055 (linux_breakpoint_kind_from_pc): New function.
10056 (linux_sw_breakpoint_from_kind): New function.
10057 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
10058 (initialize_low): Call breakpoint_kind_from_pc and
10059 sw_breakpoint_from_kind to replace breakpoint_data/len.
10060 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
10062 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
10063 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
10064 (struct linux_target_ops) <breakpoint>: Remove.
10065 (struct linux_target_ops) <breakpoint_len>: Remove.
10066 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10067 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10068 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
10069 (struct linux_target_ops) <breakpoint>: Remove.
10070 (struct linux_target_ops) <breakpoint_len>: Remove.
10071 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10072 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10073 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
10074 (struct linux_target_ops) <breakpoint>: Remove.
10075 (struct linux_target_ops) <breakpoint_len>: Remove.
10076 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10077 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10078 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
10079 (struct linux_target_ops) <breakpoint>: Remove.
10080 (struct linux_target_ops) <breakpoint_len>: Remove.
10081 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10082 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10083 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
10084 (struct linux_target_ops) <breakpoint>: Remove.
10085 (struct linux_target_ops) <breakpoint_len>: Remove.
10086 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10087 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10088 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
10089 (struct linux_target_ops) <breakpoint>: Remove.
10090 (struct linux_target_ops) <breakpoint_len>: Remove.
10091 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10092 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10093 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
10094 (struct linux_target_ops) <breakpoint>: Remove.
10095 (struct linux_target_ops) <breakpoint_len>: Remove.
10096 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10097 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10098 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
10099 (struct linux_target_ops) <breakpoint>: Remove.
10100 (struct linux_target_ops) <breakpoint_len>: Remove.
10101 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10102 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10103 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
10104 (struct linux_target_ops) <breakpoint>: Remove.
10105 (struct linux_target_ops) <breakpoint_len>: Remove.
10106 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10107 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10108 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
10109 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
10110 (struct linux_target_ops) <breakpoint>: Remove.
10111 (struct linux_target_ops) <breakpoint_len>: Remove.
10112 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10113 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10114 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
10115 (struct linux_target_ops) <breakpoint>: Remove.
10116 (struct linux_target_ops) <breakpoint_len>: Remove.
10117 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10118 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10120 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10122 * linux-cris-low.c (cris_get_pc): Remove void arg.
10124 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10126 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
10129 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10131 * inferiors.c (thread_pid_matches_callback): New function.
10132 (find_thread_process): New function.
10133 (remove_thread): Reset current_thread.
10134 (remove_process): Assert threads have been removed first.
10136 2015-10-15 Yao Qi <yao.qi@linaro.org>
10138 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
10140 (aarch64_remove_point): Likewise.
10141 * regcache.c (regcache_register_size): New function.
10143 2015-10-12 Yao Qi <yao.qi@linaro.org>
10145 * linux-aarch64-low.c: Update all callers as emit_load_store
10146 is renamed to aarch64_emit_load_store.
10148 2015-10-12 Yao Qi <yao.qi@linaro.org>
10150 * linux-aarch64-low.c: Update all callers of function renaming
10151 from emit_insn to aarch64_emit_insn.
10153 2015-10-12 Yao Qi <yao.qi@linaro.org>
10155 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10156 arch/aarch64-insn.h.
10157 (struct aarch64_memory_operand): Likewise.
10158 (ENCODE): Likewise.
10159 (emit_insn): Move to arch/aarch64-insn.c.
10160 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10161 (emit_load_store): Move to arch/aarch64-insn.c.
10162 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10163 (can_encode_int32): Remove.
10165 2015-10-12 Yao Qi <yao.qi@linaro.org>
10167 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10168 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10169 (aarch64_relocate_instruction): Likewise.
10170 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10171 (struct aarch64_insn_visitor): Likewise.
10173 2015-10-12 Yao Qi <yao.qi@linaro.org>
10175 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10176 (struct aarch64_insn_visitor): New.
10177 (struct aarch64_insn_relocation_data): New.
10178 (aarch64_ftrace_insn_reloc_b): New function.
10179 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10180 (aarch64_ftrace_insn_reloc_cb): Likewise.
10181 (aarch64_ftrace_insn_reloc_tb): Likewise.
10182 (aarch64_ftrace_insn_reloc_adr): Likewise.
10183 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10184 (aarch64_ftrace_insn_reloc_others): Likewise.
10186 (aarch64_relocate_instruction): Use visitor.
10188 2015-10-12 Yao Qi <yao.qi@linaro.org>
10190 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10191 int. Add argument buf.
10192 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10193 aarch64_relocate_instruction.
10195 2015-10-12 Yao Qi <yao.qi@linaro.org>
10197 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10198 argument insn. Remove local variable insn. Don't call
10199 target_read_uint32.
10200 (aarch64_install_fast_tracepoint_jump_pad): Call
10201 target_read_uint32.
10203 2015-09-30 Yao Qi <yao.qi@linaro.org>
10205 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10206 (emit_load_store_pair): Likewise.
10208 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10210 * dll.c (match_dll): Add cast(s).
10211 (unloaded_dll): Likewise.
10212 * linux-low.c (second_thread_of_pid_p): Likewise.
10213 (delete_lwp_callback): Likewise.
10214 (count_events_callback): Likewise.
10215 (select_event_lwp_callback): Likewise.
10216 (linux_set_resume_request): Likewise.
10217 * server.c (accumulate_file_name_length): Likewise.
10218 (emit_dll_description): Likewise.
10219 (handle_qxfer_threads_worker): Likewise.
10220 (visit_actioned_threads): Likewise.
10221 * thread-db.c (any_thread_of): Likewise.
10222 * tracepoint.c (same_process_p): Likewise.
10223 (match_blocktype): Likewise.
10224 (build_traceframe_info_xml): Likewise.
10226 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10228 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10230 (gdb_unparse_agent_expr): Likewise.
10231 * hostio.c (require_data): Likewise.
10232 (handle_pread): Likewise.
10233 * linux-low.c (disable_regset): Likewise.
10234 (fetch_register): Likewise.
10235 (store_register): Likewise.
10236 (get_dynamic): Likewise.
10237 (linux_qxfer_libraries_svr4): Likewise.
10238 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10239 (set_fast_tracepoint_jump): Likewise.
10240 (uninsert_fast_tracepoint_jumps_at): Likewise.
10241 (reinsert_fast_tracepoint_jumps_at): Likewise.
10242 (validate_inserted_breakpoint): Likewise.
10243 (clone_agent_expr): Likewise.
10244 * regcache.c (init_register_cache): Likewise.
10245 * remote-utils.c (putpkt_binary_1): Likewise.
10246 (decode_M_packet): Likewise.
10247 (decode_X_packet): Likewise.
10248 (look_up_one_symbol): Likewise.
10249 (relocate_instruction): Likewise.
10250 (monitor_output): Likewise.
10251 * server.c (handle_search_memory): Likewise.
10252 (handle_qxfer_exec_file): Likewise.
10253 (handle_qxfer_libraries): Likewise.
10254 (handle_qxfer): Likewise.
10255 (handle_query): Likewise.
10256 (handle_v_cont): Likewise.
10257 (handle_v_run): Likewise.
10258 (captured_main): Likewise.
10259 * target.c (write_inferior_memory): Likewise.
10260 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10261 * tracepoint.c (init_trace_buffer): Likewise.
10262 (add_tracepoint_action): Likewise.
10263 (add_traceframe): Likewise.
10264 (add_traceframe_block): Likewise.
10265 (cmd_qtdpsrc): Likewise.
10266 (cmd_qtdv): Likewise.
10267 (cmd_qtstatus): Likewise.
10268 (response_source): Likewise.
10269 (response_tsv): Likewise.
10270 (cmd_qtnotes): Likewise.
10271 (gdb_collect): Likewise.
10272 (initialize_tracepoint): Likewise.
10274 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10276 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10277 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10278 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10280 (enum aarch64_condition_codes): New enum.
10281 (w0): New static global.
10284 (struct aarch64_memory_operand) <type>: New
10285 MEMORY_OPERAND_POSTINDEX type.
10286 (postindex_memory_operand): New helper function.
10287 (emit_ret): New function.
10288 (emit_load_store_pair): New function, factored out of emit_stp
10289 with support for MEMORY_OPERAND_POSTINDEX.
10290 (emit_stp): Rewrite using emit_load_store_pair.
10291 (emit_ldp): New function.
10292 (emit_load_store): Likewise.
10293 (emit_ldr): Mention post-index instruction in comment.
10294 (emit_ldrh): New function.
10295 (emit_ldrb): New function.
10296 (emit_ldrsw): Mention post-index instruction in comment.
10297 (emit_str): Likewise.
10298 (emit_subs): New function.
10299 (emit_cmp): Likewise.
10300 (emit_and): Likewise.
10301 (emit_orr): Likewise.
10302 (emit_orn): Likewise.
10303 (emit_eor): Likewise.
10304 (emit_mvn): Likewise.
10305 (emit_lslv): Likewise.
10306 (emit_lsrv): Likewise.
10307 (emit_asrv): Likewise.
10308 (emit_mul): Likewise.
10309 (emit_sbfm): Likewise.
10310 (emit_sbfx): Likewise.
10311 (emit_ubfm): Likewise.
10312 (emit_ubfx): Likewise.
10313 (emit_csinc): Likewise.
10314 (emit_cset): Likewise.
10315 (emit_nop): Likewise.
10316 (emit_ops_insns): New helper function.
10317 (emit_pop): Likewise.
10318 (emit_push): Likewise.
10319 (aarch64_emit_prologue): New function.
10320 (aarch64_emit_epilogue): Likewise.
10321 (aarch64_emit_add): Likewise.
10322 (aarch64_emit_sub): Likewise.
10323 (aarch64_emit_mul): Likewise.
10324 (aarch64_emit_lsh): Likewise.
10325 (aarch64_emit_rsh_signed): Likewise.
10326 (aarch64_emit_rsh_unsigned): Likewise.
10327 (aarch64_emit_ext): Likewise.
10328 (aarch64_emit_log_not): Likewise.
10329 (aarch64_emit_bit_and): Likewise.
10330 (aarch64_emit_bit_or): Likewise.
10331 (aarch64_emit_bit_xor): Likewise.
10332 (aarch64_emit_bit_not): Likewise.
10333 (aarch64_emit_equal): Likewise.
10334 (aarch64_emit_less_signed): Likewise.
10335 (aarch64_emit_less_unsigned): Likewise.
10336 (aarch64_emit_ref): Likewise.
10337 (aarch64_emit_if_goto): Likewise.
10338 (aarch64_emit_goto): Likewise.
10339 (aarch64_write_goto_address): Likewise.
10340 (aarch64_emit_const): Likewise.
10341 (aarch64_emit_call): Likewise.
10342 (aarch64_emit_reg): Likewise.
10343 (aarch64_emit_pop): Likewise.
10344 (aarch64_emit_stack_flush): Likewise.
10345 (aarch64_emit_zero_ext): Likewise.
10346 (aarch64_emit_swap): Likewise.
10347 (aarch64_emit_stack_adjust): Likewise.
10348 (aarch64_emit_int_call_1): Likewise.
10349 (aarch64_emit_void_call_2): Likewise.
10350 (aarch64_emit_eq_goto): Likewise.
10351 (aarch64_emit_ne_goto): Likewise.
10352 (aarch64_emit_lt_goto): Likewise.
10353 (aarch64_emit_le_goto): Likewise.
10354 (aarch64_emit_gt_goto): Likewise.
10355 (aarch64_emit_ge_got): Likewise.
10356 (aarch64_emit_ops_impl): New static global variable.
10357 (aarch64_emit_ops): New target function, return
10358 &aarch64_emit_ops_impl.
10359 (struct linux_target_ops): Install it.
10361 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10363 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10364 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10366 * linux-aarch64-ipa.c: New file.
10367 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10369 (aarch64_get_thread_area): New target method.
10370 (extract_signed_bitfield): New helper function.
10371 (aarch64_decode_ldr_literal): New function.
10372 (enum aarch64_opcodes): New enum.
10373 (struct aarch64_register): New struct.
10374 (struct aarch64_operand): New struct.
10375 (x0): New static global.
10384 (aarch64_register): New helper function.
10385 (register_operand): Likewise.
10386 (immediate_operand): Likewise.
10387 (struct aarch64_memory_operand): New struct.
10388 (offset_memory_operand): New helper function.
10389 (preindex_memory_operand): Likewise.
10390 (enum aarch64_system_control_registers): New enum.
10391 (ENCODE): New macro.
10392 (emit_insn): New helper function.
10393 (emit_b): New function.
10394 (emit_bcond): Likewise.
10395 (emit_cb): Likewise.
10396 (emit_tb): Likewise.
10397 (emit_blr): Likewise.
10398 (emit_stp): Likewise.
10399 (emit_ldp_q_offset): Likewise.
10400 (emit_stp_q_offset): Likewise.
10401 (emit_load_store): Likewise.
10402 (emit_ldr): Likewise.
10403 (emit_ldrsw): Likewise.
10404 (emit_str): Likewise.
10405 (emit_ldaxr): Likewise.
10406 (emit_stxr): Likewise.
10407 (emit_stlr): Likewise.
10408 (emit_data_processing_reg): Likewise.
10409 (emit_data_processing): Likewise.
10410 (emit_add): Likewise.
10411 (emit_sub): Likewise.
10412 (emit_mov): Likewise.
10413 (emit_movk): Likewise.
10414 (emit_mov_addr): Likewise.
10415 (emit_mrs): Likewise.
10416 (emit_msr): Likewise.
10417 (emit_sevl): Likewise.
10418 (emit_wfe): Likewise.
10419 (append_insns): Likewise.
10420 (can_encode_int32_in): New helper function.
10421 (aarch64_relocate_instruction): New function.
10422 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10423 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10424 (struct linux_target_ops): Install aarch64_get_thread_area,
10425 aarch64_install_fast_tracepoint_jump_pad and
10426 aarch64_get_min_fast_tracepoint_insn_len.
10428 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10430 * Makefile.in (aarch64-insn.o): New rule.
10431 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10433 2015-09-21 Yao Qi <yao.qi@linaro.org>
10435 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10437 2015-09-21 Yao Qi <yao.qi@linaro.org>
10439 * tracepoint.c (max_jump_pad_size): Remove.
10441 2015-09-18 Yao Qi <yao.qi@linaro.org>
10443 * linux-aarch64-low.c: Don't include sys/uio.h.
10444 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10446 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
10448 * tracepoint.c (eval_result_type): Change prototype.
10449 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10451 2015-09-15 Pedro Alves <palves@redhat.com>
10453 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10454 Check whether to report exec events instead of checking whether
10455 multiprocess is enabled.
10457 2015-09-15 Pedro Alves <palves@redhat.com>
10460 * remote-utils.c (prepare_resume_reply): Merge
10461 TARGET_WAITKIND_VFORK_DONE switch case with the
10462 TARGET_WAITKIND_FORKED case.
10464 2015-09-15 Yao Qi <yao.qi@linaro.org>
10466 * server.c (handle_query): Check string comparison using
10467 "else if" instead of "if".
10469 2015-09-15 Yao Qi <yao.qi@linaro.org>
10471 * server.c (vCont_supported): New global variable.
10472 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10473 matches. Append ";vContSupported+" to own_buf.
10474 (handle_v_requests): Append ";s;S" to own_buf if target supports
10475 hardware single step or vCont_supported is false.
10476 (capture_main): Set vCont_supported to zero.
10478 2015-09-15 Yao Qi <yao.qi@linaro.org>
10480 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10482 (linux_supports_hardware_single_step): ... New function.
10483 (linux_target_ops): Update.
10484 * lynx-low.c (lynx_target_ops): Set field
10485 supports_hardware_single_step to target_can_do_hardware_single_step.
10486 * nto-low.c (nto_target_ops): Likewise.
10487 * spu-low.c (spu_target_ops): Likewise.
10488 * win32-low.c (win32_target_ops): Likewise.
10489 * target.c (target_can_do_hardware_single_step): New function.
10490 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10491 Remove. <supports_hardware_single_step>: New field.
10492 (target_supports_conditional_breakpoints): Remove.
10493 (target_supports_hardware_single_step): New macro.
10494 (target_can_do_hardware_single_step): Declare.
10495 * server.c (handle_query): Use target_supports_hardware_single_step
10496 instead of target_supports_conditional_breakpoints.
10498 2015-09-15 Yao Qi <yao.qi@linaro.org>
10500 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10502 (struct linux_target_ops the_low_target): Install
10503 aarch64_linux_siginfo_fixup.
10505 2015-09-11 Don Breazeal <donb@codesourcery.com>
10506 Luis Machado <lgustavo@codesourcery.com>
10508 * linux-low.c (linux_mourn): Static declaration.
10509 (linux_arch_setup): Move in front of
10510 handle_extended_wait.
10511 (linux_arch_setup_thread): New function.
10512 (handle_extended_wait): Handle exec events. Call
10513 linux_arch_setup_thread. Make event_lwp argument a
10514 pointer-to-a-pointer.
10515 (check_zombie_leaders): Do not check stopped threads.
10516 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10517 (linux_low_filter_event): Add lwp and thread for exec'ing
10518 non-leader thread if leader thread has been deleted.
10519 Refactor code into linux_arch_setup_thread and call it.
10520 Pass child lwp pointer by reference to handle_extended_wait.
10521 (linux_wait_for_event_filtered): Update comment.
10522 (linux_wait_1): Prevent clobbering exec event status.
10523 (linux_supports_exec_events): New function.
10524 (linux_target_ops) <supports_exec_events>: Initialize new member.
10525 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10527 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10528 * server.c (report_exec_events): New global variable.
10529 (handle_query): Handle qSupported query for exec-events feature.
10530 (captured_main): Initialize report_exec_events.
10531 * server.h (report_exec_events): Declare new global variable.
10532 * target.h (struct target_ops) <supports_exec_events>: New
10534 (target_supports_exec_events): New macro.
10535 * win32-low.c (win32_target_ops) <supports_exec_events>:
10536 Initialize new member.
10538 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10540 * linux-low.c (linux_low_enable_btrace): Remove.
10541 (linux_target_ops): Replace linux_low_enable_btrace with
10542 linux_enable_btrace.
10544 2015-09-03 Yao Qi <yao.qi@linaro.org>
10546 * linux-aarch64-low.c (aarch64_insert_point): Call
10547 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10550 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10552 * linux-low.c (check_stopped_by_breakpoint): Use
10553 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10555 2015-08-27 Pedro Alves <palves@redhat.com>
10557 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10559 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10561 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10562 the XNEW-family equivalent.
10563 (compile_bytecodes): Likewise.
10564 * dll.c (loaded_dll): Likewise.
10565 * event-loop.c (append_callback_event): Likewise.
10566 (create_file_handler): Likewise.
10567 (create_file_event): Likewise.
10568 * hostio.c (handle_open): Likewise.
10569 * inferiors.c (add_thread): Likewise.
10570 (add_process): Likewise.
10571 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10572 * linux-arm-low.c (arm_new_process): Likewise.
10573 (arm_new_thread): Likewise.
10574 * linux-low.c (add_to_pid_list): Likewise.
10575 (linux_add_process): Likewise.
10576 (handle_extended_wait): Likewise.
10577 (add_lwp): Likewise.
10578 (enqueue_one_deferred_signal): Likewise.
10579 (enqueue_pending_signal): Likewise.
10580 (linux_resume_one_lwp_throw): Likewise.
10581 (linux_resume_one_thread): Likewise.
10582 (linux_read_memory): Likewise.
10583 (linux_write_memory): Likewise.
10584 * linux-mips-low.c (mips_linux_new_process): Likewise.
10585 (mips_linux_new_thread): Likewise.
10586 (mips_add_watchpoint): Likewise.
10587 * linux-x86-low.c (initialize_low_arch): Likewise.
10588 * lynx-low.c (lynx_add_process): Likewise.
10589 * mem-break.c (set_raw_breakpoint_at): Likewise.
10590 (set_breakpoint): Likewise.
10591 (add_condition_to_breakpoint): Likewise.
10592 (add_commands_to_breakpoint): Likewise.
10593 (clone_agent_expr): Likewise.
10594 (clone_one_breakpoint): Likewise.
10595 * regcache.c (new_register_cache): Likewise.
10596 * remote-utils.c (look_up_one_symbol): Likewise.
10597 * server.c (queue_stop_reply): Likewise.
10598 (start_inferior): Likewise.
10599 (queue_stop_reply_callback): Likewise.
10600 (handle_target_event): Likewise.
10601 * spu-low.c (fetch_ppc_memory): Likewise.
10602 (store_ppc_memory): Likewise.
10603 * target.c (set_target_ops): Likewise.
10604 * thread-db.c (thread_db_load_search): Likewise.
10605 (try_thread_db_load_1): Likewise.
10606 * tracepoint.c (add_tracepoint): Likewise.
10607 (add_tracepoint_action): Likewise.
10608 (create_trace_state_variable): Likewise.
10609 (cmd_qtdpsrc): Likewise.
10610 (cmd_qtro): Likewise.
10611 (add_while_stepping_state): Likewise.
10612 * win32-low.c (child_add_thread): Likewise.
10613 (get_image_name): Likewise.
10615 2015-08-25 Yao Qi <yao.qi@linaro.org>
10617 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10619 2015-08-25 Yao Qi <yao.qi@linaro.org>
10621 * Makefile.in (aarch64-linux.o): New rule.
10622 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10624 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10625 (aarch64_init_debug_reg_state): Make it extern.
10626 (aarch64_linux_prepare_to_resume): Remove.
10628 2015-08-25 Yao Qi <yao.qi@linaro.org>
10630 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10631 lwp_arch_private_info and ptid_of_lwp.
10633 2015-08-25 Yao Qi <yao.qi@linaro.org>
10635 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10636 Find proc_info by find_process_pid. All callers updated.
10638 2015-08-25 Yao Qi <yao.qi@linaro.org>
10640 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10642 (debug_reg_change_callback): Remove.
10643 (aarch64_notify_debug_reg_change): Remove.
10645 2015-08-25 Yao Qi <yao.qi@linaro.org>
10647 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10648 Call current_lwp_ptid.
10650 2015-08-25 Yao Qi <yao.qi@linaro.org>
10652 * linux-aarch64-low.c (debug_reg_change_callback): Use
10655 2015-08-25 Yao Qi <yao.qi@linaro.org>
10657 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10659 2015-08-25 Yao Qi <yao.qi@linaro.org>
10661 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10663 2015-08-25 Yao Qi <yao.qi@linaro.org>
10665 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10668 2015-08-25 Yao Qi <yao.qi@linaro.org>
10670 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10672 (debug_reg_change_callback): Remove argument entry and add argument
10673 lwp. Remove local variable thread. Don't print thread id in the
10674 debugging output. Don't check whether pid of thread equals to pid.
10675 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10676 iterate_over_lwps instead find_inferior.
10678 2015-08-24 Pedro Alves <palves@redhat.com>
10680 * inferiors.c (get_first_process): New function.
10681 * inferiors.h (get_first_process): New declaration.
10682 * remote-utils.c (read_ptid): Default to the first process in the
10683 list, instead of to the current thread's process.
10685 2015-08-24 Pedro Alves <palves@redhat.com>
10687 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10688 * event-loop.c: Likewise.
10689 * remote-utils.c: Likewise.
10690 * tracepoint.c: Likewise.
10692 2015-08-24 Pedro Alves <palves@redhat.com>
10694 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10697 2015-08-21 Pedro Alves <palves@redhat.com>
10699 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10700 instead of literal 1.
10702 2015-08-21 Pedro Alves <palves@redhat.com>
10704 * tdesc.c (default_description): Explicitly zero-initialize.
10706 2015-08-21 Pedro Alves <palves@redhat.com>
10709 * inferiors.c (remove_thread): Discard any pending stop reply for
10711 * server.c (remove_all_on_match_pid): Rename to ...
10712 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10714 (discard_queued_stop_replies): Change parameter to a ptid. Now
10716 (handle_v_kill, kill_inferior_callback, captured_main)
10717 (process_serial_event): Adjust.
10718 * server.h (discard_queued_stop_replies): Declare.
10720 2015-08-21 Pedro Alves <palves@redhat.com>
10722 * linux-low.c (wait_for_sigstop): Always switch to no thread
10723 selected if the previously current thread dies.
10724 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10725 process instead of the current thread's.
10726 * remote-utils.c (input_interrupt): Don't check if there's no
10728 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10729 current thread to the general thread fails, error out.
10730 (handle_qxfer_auxv, handle_qxfer_libraries)
10731 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10732 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10733 (handle_query): Check if there's a thread selected instead of
10734 checking whether there's any thread in the thread list.
10735 (handle_qxfer_threads, handle_qxfer_btrace)
10736 (handle_qxfer_btrace_conf): Don't error out early if there's no
10737 thread in the thread list.
10738 (handle_v_cont, myresume): Don't set the current thread to the
10740 (process_serial_event) <Hg handling>: Also set thread_id if the
10741 previous general thread is still alive.
10742 (process_serial_event) <g/G handling>: If setting the current
10743 thread to the general thread fails, error out.
10744 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10745 thread's lwp instead of the current thread's.
10746 * target.c (set_desired_thread): If the desired thread was not
10747 found, leave the current thread pointing to NULL. Return an int
10748 (boolean) indicating success.
10749 * target.h (set_desired_thread): Change return type to int.
10751 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10753 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10754 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10756 (ps_get_thread_area): New function.
10758 2015-08-19 Gary Benson <gbenson@redhat.com>
10760 * hostio.c (handle_pread): Do not attempt to read more data
10761 than hostio_reply_with_data can fit in a packet.
10763 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10765 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10767 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10769 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10771 2015-08-06 Pedro Alves <palves@redhat.com>
10773 * tracepoint.c (expr_eval_result): Now an int.
10775 2015-08-06 Pedro Alves <palves@redhat.com>
10777 * gdbthread.h (struct regcache): Forward declare.
10778 (struct thread_info) <regcache_data>: Now a struct regcache
10780 * inferiors.c (inferior_regcache_data)
10781 (set_inferior_regcache_data): Now work with struct regcache
10783 * inferiors.h (struct regcache): Forward declare.
10784 (inferior_regcache_data, set_inferior_regcache_data): Now work
10785 with struct regcache pointers.
10786 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10787 (free_register_cache_thread): Remove struct regcache pointer
10790 2015-08-06 Pedro Alves <palves@redhat.com>
10792 * server.c (captured_main): On error, print the exception message
10793 to stderr, and if run_once is set, throw a quit.
10795 2015-08-06 Pedro Alves <palves@redhat.com>
10797 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10798 the current thread.
10800 2015-08-06 Pedro Alves <palves@redhat.com>
10802 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10803 reading beyond the passed in buffer length.
10805 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10807 * tracepoint.c (symbol_list) <required>: Remove.
10809 2015-08-06 Pedro Alves <palves@redhat.com>
10811 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10812 count if stopping and suspending threads.
10813 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10814 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10815 (linux_detach): Complete an ongoing step-over.
10816 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10818 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10819 (linux_wait_1): If passing a signal to the inferior after
10820 finishing a step-over, unsuspend and re-resume all lwps. If we
10821 see a single-step event but the thread should be continuing, don't
10822 pass the trap to gdb.
10823 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10824 internal_error instead of gdb_assert.
10825 (enqueue_pending_signal): New function.
10826 (check_ptrace_stopped_lwp_gone): Add debug output.
10827 (start_step_over): Use internal_error instead of gdb_assert.
10828 (complete_ongoing_step_over): New function.
10829 (linux_resume_one_thread): Don't resume a suspended thread.
10830 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10833 2015-08-06 Pedro Alves <palves@redhat.com>
10835 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10836 (linux_thread_alive): Use lwp_is_marked_dead.
10837 (extended_event_reported): Delete.
10838 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10839 instead of extended_event_reported.
10840 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10842 (lwp_is_marked_dead): New function.
10843 (lwp_running): Use lwp_is_marked_dead.
10844 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10847 2015-08-06 Pedro Alves <palves@redhat.com>
10849 * linux-low.c (linux_wait_1): Move fork event output out of the
10850 !report_to_gdb check. Pass event_child->waitstatus to
10851 target_waitstatus_to_string instead of ourstatus.
10853 2015-08-04 Yao Qi <yao.qi@linaro.org>
10855 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10856 if current_thread is 32 bit.
10858 2015-08-04 Yao Qi <yao.qi@linaro.org>
10860 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10861 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10862 * server.c (extended_protocol): Remove "static".
10863 * server.h (extended_protocol): Declare it.
10865 2015-08-04 Yao Qi <yao.qi@linaro.org>
10867 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10868 both aarch64 and aarch32.
10869 (aarch64_set_pc): Likewise.
10871 2015-08-04 Yao Qi <yao.qi@linaro.org>
10873 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10874 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10875 arm-with-neon.xml to srv_xmlfiles.
10876 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10877 (is_64bit_tdesc): New function.
10878 (aarch64_linux_read_description): New function.
10879 (aarch64_arch_setup): Call aarch64_linux_read_description.
10880 (regs_info): Rename to regs_info_aarch64.
10881 (aarch64_regs_info): Return right regs_info.
10882 (initialize_low_arch): Call initialize_low_arch_aarch32.
10884 2015-08-04 Yao Qi <yao.qi@linaro.org>
10886 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10887 * linux-aarch32-low.c: New file.
10888 * linux-aarch32-low.h: New file.
10889 * linux-arm-low.c (arm_fill_gregset): Move it to
10890 linux-aarch32-low.c.
10891 (arm_store_gregset): Likewise.
10892 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10893 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10894 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10895 (regs_info): Rename to regs_info_arm.
10896 (arm_regs_info): Return regs_info_aarch32 if
10897 have_ptrace_getregset is 1 and target description is
10898 arm_with_neon or arm_with_vfpv3.
10899 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10900 Call initialize_low_arch_aarch32 instead.
10902 2015-08-04 Yao Qi <yao.qi@linaro.org>
10904 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10905 * linux-low.c: ... here.
10906 * linux-low.h (have_ptrace_getregset): Declare it.
10908 2015-08-04 Pedro Alves <palves@redhat.com>
10910 * thread-db.c (struct thread_db): Use new typedefs.
10911 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10913 (disable_thread_event_reporting): Cast result of dlsym to
10914 destination function pointer type.
10915 (thread_db_mourn): Use td_ta_delete_ftype.
10917 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10919 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10921 (CDX_BREAKPOINT): Define for R2.
10922 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10923 (the_low_target): Add comments.
10925 2015-07-30 Yao Qi <yao.qi@linaro.org>
10927 * linux-arm-low.c (arm_hwcap): Remove it.
10928 (arm_read_description): New local variable arm_hwcap. Don't
10929 set arm_hwcap to zero.
10931 2015-07-30 Yao Qi <yao.qi@linaro.org>
10933 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10934 Use regcache->tdesc instead.
10935 (arm_store_wmmxregset): Likewise.
10936 (arm_fill_vfpregset): Likewise.
10937 (arm_store_vfpregset): Likewise.
10939 2015-07-30 Yao Qi <yao.qi@linaro.org>
10941 * linux-arm-low.c: Include arch/arm.h.
10942 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10943 (arm_store_gregset): Likewise.
10945 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10947 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10948 ptrace's 4th parameter.
10950 2015-07-27 Yao Qi <yao.qi@linaro.org>
10952 * configure.srv (case aarch64*-*-linux*): Don't set
10955 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10957 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10959 * linux-arm-low.c: Likewise.
10960 * linux-cris-low.c: Likewise.
10961 * linux-crisv32-low.c: Likewise.
10962 * linux-low.c: Likewise.
10963 * linux-m68k-low.c: Likewise.
10964 * linux-mips-low.c: Likewise.
10965 * linux-nios2-low.c: Likewise.
10966 * linux-s390-low.c: Likewise.
10967 * linux-sparc-low.c: Likewise.
10968 * linux-tic6x-low.c: Likewise.
10969 * linux-tile-low.c: Likewise.
10970 * linux-x86-low.c: Likewise.
10972 2015-07-24 Pedro Alves <palves@redhat.com>
10974 * config.in: Regenerate.
10975 * configure: Regenerate.
10977 2015-07-24 Pedro Alves <palves@redhat.com>
10979 * acinclude.m4: Include ../ptrace.m4.
10980 * configure.ac: Call GDB_AC_PTRACE.
10981 * config.in, configure: Regenerate.
10983 2015-07-24 Yao Qi <yao.qi@linaro.org>
10985 * linux-low.c (linux_create_inferior): Remove setting to
10986 proc->priv->new_inferior.
10987 (linux_attach): Likewise.
10988 (linux_low_filter_event): Likewise.
10989 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10991 2015-07-24 Yao Qi <yao.qi@linaro.org>
10993 * linux-low.c (linux_arch_setup): New function.
10994 (linux_low_filter_event): If proc->tdesc is NULL and
10995 proc->attached is true, call the_low_target.arch_setup.
10996 Otherwise, keep status pending, and return.
10997 (linux_resume_one_lwp_throw): Don't call get_pc if
10998 thread->while_stepping isn't NULL. Don't call
10999 get_thread_regcache if proc->tdesc is NULL.
11000 (need_step_over_p): Return 0 if proc->tdesc is NULL.
11001 (linux_target_ops): Install arch_setup.
11002 * server.c (start_inferior): Call the_target->arch_setup.
11003 * target.h (struct target_ops) <arch_setup>: New field.
11004 (target_arch_setup): New marco.
11005 * lynx-low.c (lynx_target_ops): Update.
11006 * nto-low.c (nto_target_ops): Update.
11007 * spu-low.c (spu_target_ops): Update.
11008 * win32-low.c (win32_target_ops): Update.
11010 2015-07-24 Yao Qi <yao.qi@linaro.org>
11012 * linux-low.c (linux_add_process): Don't set
11013 proc->priv->new_inferior.
11014 (linux_create_inferior): Set proc->priv->new_inferior to 1.
11015 (linux_attach): Likewise.
11017 2015-07-24 Yao Qi <yao.qi@linaro.org>
11019 * server.c (start_inferior): Code refactor.
11021 2015-07-24 Yao Qi <yao.qi@linaro.org>
11023 * server.c (process_serial_event): Set general_thread.
11025 2015-07-21 Yao Qi <yao.qi@linaro.org>
11027 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
11028 aarch64_linux_get_debug_reg_capacity.
11030 2015-07-17 Yao Qi <yao.qi@linaro.org>
11032 * Makefile.in (aarch64-linux-hw-point.o): New rule.
11033 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
11034 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
11035 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
11036 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
11037 (AARCH64_HWP_ALIGNMENT): Likewise.
11038 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
11039 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
11040 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
11041 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
11042 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
11043 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
11044 (struct aarch64_debug_reg_state): Likewise.
11045 (struct arch_lwp_info): Likewise.
11046 (aarch64_align_watchpoint): Likewise.
11047 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
11048 (aarch64_watchpoint_length): Likewise.
11049 (aarch64_point_encode_ctrl_reg): Likewise
11050 (aarch64_point_is_aligned): Likewise.
11051 (aarch64_align_watchpoint): Likewise.
11052 (aarch64_linux_set_debug_regs):
11053 (aarch64_dr_state_insert_one_point): Likewise.
11054 (aarch64_dr_state_remove_one_point): Likewise.
11055 (aarch64_handle_breakpoint): Likewise.
11056 (aarch64_handle_aligned_watchpoint): Likewise.
11057 (aarch64_handle_unaligned_watchpoint): Likewise.
11058 (aarch64_handle_watchpoint): Likewise.
11060 2015-07-17 Yao Qi <yao.qi@linaro.org>
11062 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
11063 and don't aarch64_get_debug_reg_state. All callers update.
11064 (aarch64_handle_aligned_watchpoint): Likewise.
11065 (aarch64_handle_unaligned_watchpoint): Likewise.
11066 (aarch64_handle_watchpoint): Likewise.
11067 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
11068 (aarch64_remove_point): Likewise.
11070 2015-07-17 Yao Qi <yao.qi@linaro.org>
11072 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
11074 (aarch64_handle_unaligned_watchpoint): Likewise.
11076 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11078 Revert the previous 3 commits:
11079 Move gdb_regex* to common/
11080 Move linux_find_memory_regions_full & co.
11081 gdbserver build-id attribute generator
11083 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11084 Jan Kratochvil <jan.kratochvil@redhat.com>
11086 gdbserver build-id attribute generator.
11087 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
11088 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
11089 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
11091 (get_dynamic): Use find_pdhr to traverse program headers.
11092 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
11093 (compare_mapping_entry_range, struct find_memory_region_callback_data)
11094 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
11095 (get_hex_build_id): New.
11096 (linux_qxfer_libraries_svr4): Add optional build-id attribute
11097 to reply XML document.
11099 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11100 Jan Kratochvil <jan.kratochvil@redhat.com>
11102 * target.c: Include target/target-utils.h and fcntl.h.
11103 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
11104 (target_fileio_read_stralloc): New functions.
11106 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11108 * Makefile.in (OBS): Add gdb_regex.o.
11109 (gdb_regex.o): New.
11110 * config.in: Rebuilt.
11111 * configure: Rebuilt.
11113 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11114 Jan Kratochvil <jan.kratochvil@redhat.com>
11116 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
11117 * Makefile.in (OBS): Add target-utils.o.
11118 (linux-maps.o, target-utils.o): New.
11119 * configure.srv (srv_linux_obj): Add linux-maps.o.
11121 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
11123 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
11124 function, return 1.
11125 (the_low_target): Install it.
11127 2015-07-14 Pedro Alves <palves@redhat.com>
11129 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
11130 Instead, ignore ECHILD, and throw an error for other errnos.
11132 2015-07-10 Pedro Alves <palves@redhat.com>
11134 * event-loop.c (struct callback_event) <data>: Change type to
11135 gdb_client_data instance instead of gdb_client_data pointer.
11136 (append_callback_event): Adjust.
11138 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
11140 * linux-aarch64-low.c: Add comments for each linux_target_ops
11141 method. Remove comments already covered in target_ops and
11142 linux_target_ops definitions.
11143 (the_low_target): Add comments for each unimplemented method.
11145 2015-07-09 Yao Qi <yao.qi@linaro.org>
11147 * linux-aarch64-low.c (aarch64_regmap): Remove.
11148 (aarch64_usrregs_info): Remove.
11149 (regs_info): Set field usrregs to NULL.
11151 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11153 * linux-low.c: Include "rsp-low.h"
11154 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11155 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11156 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11157 (handle_btrace_enable_pt): New.
11158 (handle_btrace_general_set): Support "pt".
11159 (handle_btrace_conf_general_set): Support "pt:size".
11161 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11163 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11166 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11168 * linux-aarch64-low.c: Remove comment about endianness.
11169 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11170 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11173 2015-06-24 Gary Benson <gbenson@redhat.com>
11175 * linux-i386-ipa.c (stdint.h): Do not include.
11176 * lynx-i386-low.c (stdint.h): Likewise.
11177 * lynx-ppc-low.c (stdint.h): Likewise.
11178 * mem-break.c (stdint.h): Likewise.
11179 * thread-db.c (stdint.h): Likewise.
11180 * tracepoint.c (stdint.h): Likewise.
11181 * win32-low.c (stdint.h): Likewise.
11183 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11185 * server.c (write_qxfer_response): Update call to
11186 remote_escape_output.
11188 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11189 Jan Kratochvil <jan.kratochvil@redhat.com>
11191 Merge multiple hex conversions.
11192 * gdbreplay.c (tohex): Rename to 'fromhex'.
11193 (logchar): Use fromhex.
11195 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11197 * server.c (handle_qxfer_libraries): Set `version' attribute for
11200 2015-06-10 Gary Benson <gbenson@redhat.com>
11202 * target.h (struct target_ops) <multifs_open>: New field.
11203 <multifs_unlink>: Likewise.
11204 <multifs_readlink>: Likewise.
11205 * linux-low.c (nat/linux-namespaces.h): New include.
11206 (linux_target_ops): Initialize the_target->multifs_open,
11207 the_target->multifs_unlink and the_target->multifs_readlink.
11208 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11209 * hostio.c (hostio_fs_pid): New static variable.
11210 (hostio_handle_new_gdb_connection): New function.
11211 (handle_setfs): Likewise.
11212 (handle_open): Use the_target->multifs_open as appropriate.
11213 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11214 (handle_readlink): Use the_target->multifs_readlink as
11216 (handle_vFile): Handle vFile:setfs packets.
11217 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11218 after target_handle_new_gdb_connection.
11220 2015-06-10 Gary Benson <gbenson@redhat.com>
11222 * configure.ac (AC_CHECK_FUNCS): Add setns.
11223 * config.in: Regenerate.
11224 * configure: Likewise.
11225 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11226 (linux-namespaces.o): New rule.
11227 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11229 2015-06-09 Gary Benson <gbenson@redhat.com>
11231 * hostio.c (handle_open): Process mode argument with
11232 fileio_to_host_mode.
11234 2015-06-01 Yao Qi <yao.qi@linaro.org>
11236 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11237 * linux-x86-low.c: Likewise.
11239 2015-05-28 Don Breazeal <donb@codesourcery.com>
11241 * linux-low.c (handle_extended_wait): Initialize
11242 thread_info.last_resume_kind for new fork children.
11244 2015-05-15 Pedro Alves <palves@redhat.com>
11246 * target.h (target_handle_new_gdb_connection): Rewrite using if
11247 wrapped in do/while.
11249 2015-05-14 Joel Brobecker <brobecker@adacore.com>
11251 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11252 * configure, config.in: Regenerate.
11253 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11256 2015-05-12 Don Breazeal <donb@codesourcery.com>
11258 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11259 PTRACE_EVENT_VFORK_DONE.
11260 (linux_low_ptrace_options, extended_event_reported): Add vfork
11262 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11263 and "vforkdone" for RSP 'T' Stop Reply Packet.
11264 * server.h (report_vfork_events): Declare
11267 2015-05-12 Don Breazeal <donb@codesourcery.com>
11269 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11270 (the_low_target) <new_fork>: Initialize new member.
11271 * linux-arm-low.c (arm_new_fork): New function.
11272 (the_low_target) <new_fork>: Initialize new member.
11273 * linux-low.c (handle_extended_wait): Call new target function
11275 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11276 * linux-mips-low.c (mips_add_watchpoint): New function
11277 extracted from mips_insert_point.
11278 (the_low_target) <new_fork>: Initialize new member.
11279 (mips_linux_new_fork): New function.
11280 (mips_insert_point): Call mips_add_watchpoint.
11281 * linux-x86-low.c (x86_linux_new_fork): New function.
11282 (the_low_target) <new_fork>: Initialize new member.
11284 2015-05-12 Don Breazeal <donb@codesourcery.com>
11286 * linux-low.c (handle_extended_wait): Implement return value,
11287 rename argument 'event_child' to 'event_lwp', handle
11288 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11289 (linux_low_ptrace_options): New function.
11290 (linux_low_filter_event): Call linux_low_ptrace_options,
11291 use different argument fo linux_enable_event_reporting,
11292 use return value from handle_extended_wait.
11293 (extended_event_reported): New function.
11294 (linux_wait_1): Call extended_event_reported and set
11295 status to report fork events.
11296 (linux_write_memory): Add pid to debug message.
11297 (reset_lwp_ptrace_options_callback): New function.
11298 (linux_handle_new_gdb_connection): New function.
11299 (linux_target_ops): Initialize new structure member.
11300 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11301 * lynx-low.c: Initialize new structure member.
11302 * remote-utils.c (prepare_resume_reply): Implement stop reason
11303 "fork" for "T" stop message.
11304 * server.c (handle_query): Call handle_new_gdb_connection.
11305 * server.h (report_fork_events): Declare global flag.
11306 * target.h (struct target_ops) <handle_new_gdb_connection>:
11308 (target_handle_new_gdb_connection): New macro.
11309 * win32-low.c: Initialize new structure member.
11311 2015-05-12 Don Breazeal <donb@codesourcery.com>
11313 * mem-break.c (APPEND_TO_LIST): Define macro.
11314 (clone_agent_expr): New function.
11315 (clone_one_breakpoint): New function.
11316 (clone_all_breakpoints): New function.
11317 * mem-break.h: Declare new functions.
11319 2015-05-12 Don Breazeal <donb@codesourcery.com>
11321 * linux-low.c (linux_supports_fork_events): New function.
11322 (linux_supports_vfork_events): New function.
11323 (linux_target_ops): Initialize new structure members.
11324 (initialize_low): Call linux_check_ptrace_features.
11325 * lynx-low.c (lynx_target_ops): Initialize new structure
11327 * server.c (report_fork_events, report_vfork_events):
11329 (handle_query): Add new features to qSupported packet and
11331 (captured_main): Initialize new global variables.
11332 * target.h (struct target_ops) <supports_fork_events>:
11334 <supports_vfork_events>: New member.
11335 (target_supports_fork_events): New macro.
11336 (target_supports_vfork_events): New macro.
11337 * win32-low.c (win32_target_ops): Initialize new structure
11340 2015-05-12 Gary Benson <gbenson@redhat.com>
11342 * server.c (handle_qxfer_exec_file): Use current process
11345 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11347 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11348 Remove HAVE_PTRACE_GETREGS conditionals.
11349 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11350 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11352 2015-05-08 Yao Qi <yao.qi@linaro.org>
11354 * linux-low.c (linux_supports_conditional_breakpoints): New
11356 (linux_target_ops): Install new target method.
11357 * lynx-low.c (lynx_target_ops): Install NULL hook for
11358 supports_conditional_breakpoints.
11359 * nto-low.c (nto_target_ops): Likewise.
11360 * spu-low.c (spu_target_ops): Likewise.
11361 * win32-low.c (win32_target_ops): Likewise.
11362 * server.c (handle_query): Check
11363 target_supports_conditional_breakpoints.
11364 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11366 (target_supports_conditional_breakpoints): New macro.
11368 2015-05-06 Pedro Alves <palves@redhat.com>
11371 * server.c (start_inferior): If the process exits, mourn it.
11373 2015-04-21 Gary Benson <gbenson@redhat.com>
11375 * hostio.c (fileio_open_flags_to_host): Factored out to
11376 fileio_to_host_openflags in common/fileio.c. Single use
11379 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11381 * linux-xtensa-low.c (xtensa_fill_gregset)
11382 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11385 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11387 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11388 (regs_info): Replace usrregs pointer with NULL.
11390 2015-04-17 Gary Benson <gbenson@redhat.com>
11392 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11393 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11394 * server.c (handle_qxfer_exec_file): New function.
11395 (qxfer_packets): Add exec-file entry.
11396 (handle_query): Report qXfer:exec-file:read as supported packet.
11398 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11400 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11402 2015-04-09 Gary Benson <gbenson@redhat.com>
11404 * hostio-errno.c (errno_to_fileio_error): Remove function.
11405 Update caller to use remote_fileio_to_fio_error.
11407 2015-04-09 Yao Qi <yao.qi@linaro.org>
11409 * linux-low.c (linux_insert_point): Call
11410 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11411 (linux_remove_point): Call remove_memory_breakpoint if type is
11413 * linux-x86-low.c (x86_insert_point): Don't call
11414 insert_memory_breakpoint.
11415 (x86_remove_point): Don't call remove_memory_breakpoint.
11417 2015-04-01 Pedro Alves <palves@redhat.com>
11418 Cleber Rosa <crosa@redhat.com>
11420 * server.c (gdbserver_usage): Reorganize and extend the usage
11423 2015-03-24 Pedro Alves <palves@redhat.com>
11425 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11426 output. Also dump TRAP_TRACE.
11427 (linux_low_filter_event): In debug output, distinguish a
11428 resume_stop SIGSTOP from a delayed SIGSTOP.
11430 2015-03-24 Gary Benson <gbenson@redhat.com>
11432 * linux-x86-low.c (x86_linux_new_thread): Moved to
11434 (x86_linux_prepare_to_resume): Likewise.
11436 2015-03-24 Gary Benson <gbenson@redhat.com>
11438 * Makefile.in (x86-linux-dregs.o): New rule.
11439 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11440 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11441 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11442 (x86_linux_dr_get): Likewise.
11443 (x86_linux_dr_set): Likewise.
11444 (update_debug_registers_callback): Likewise.
11445 (x86_linux_dr_set_addr): Likewise.
11446 (x86_linux_dr_get_addr): Likewise.
11447 (x86_linux_dr_set_control): Likewise.
11448 (x86_linux_dr_get_control): Likewise.
11449 (x86_linux_dr_get_status): Likewise.
11450 (x86_linux_update_debug_registers): Likewise.
11452 2015-03-24 Gary Benson <gbenson@redhat.com>
11454 * linux-x86-low.c (x86_linux_update_debug_registers):
11455 New function, factored out from...
11456 (x86_linux_prepare_to_resume): ...this.
11458 2015-03-24 Gary Benson <gbenson@redhat.com>
11460 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11461 (x86_linux_dr_set): Likewise.
11462 (update_debug_registers_callback): Likewise.
11463 (x86_linux_dr_set_addr): Likewise.
11464 (x86_linux_dr_get_addr): Likewise.
11465 (x86_linux_dr_set_control): Likewise.
11466 (x86_linux_dr_get_control): Likewise.
11467 (x86_linux_dr_get_status): Likewise.
11468 (x86_linux_prepare_to_resume): Likewise.
11470 2015-03-24 Gary Benson <gbenson@redhat.com>
11472 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11473 Use perror_with_name. Pass string through gettext.
11474 (x86_linux_dr_set): Likewise.
11476 2015-03-24 Gary Benson <gbenson@redhat.com>
11478 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11479 (x86_linux_dr_set_addr): ...this.
11480 (x86_dr_low_get_addr): Rename to...
11481 (x86_linux_dr_get_addr): ...this.
11482 (x86_dr_low_set_control): Rename to...
11483 (x86_linux_dr_set_control): ...this.
11484 (x86_dr_low_get_control): Rename to...
11485 (x86_linux_dr_get_control): ...this.
11486 (x86_dr_low_get_status): Rename to...
11487 (x86_linux_dr_get_status): ...this.
11488 (x86_dr_low): Update with new function names.
11490 2015-03-24 Gary Benson <gbenson@redhat.com>
11492 * Makefile.in (x86-linux.o): New rule.
11493 * configure.srv: Add x86-linux.o to relevant targets.
11494 * linux-low.c (lwp_set_arch_private_info): New function.
11495 (lwp_arch_private_info): Likewise.
11496 * linux-x86-low.c: Include nat/x86-linux.h.
11497 (arch_lwp_info): Removed structure.
11498 (update_debug_registers_callback):
11499 Use lwp_set_debug_registers_changed.
11500 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11501 and lwp_set_debug_registers_changed.
11502 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11504 2015-03-24 Gary Benson <gbenson@redhat.com>
11506 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11507 * linux-arm-low.c (arm_new_thread): Likewise.
11508 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11509 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11510 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11511 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11513 2015-03-24 Gary Benson <gbenson@redhat.com>
11515 * linux-low.c (ptid_of_lwp): New function.
11516 (lwp_is_stopped): Likewise.
11517 (lwp_stop_reason): Likewise.
11518 * linux-x86-low.c (update_debug_registers_callback):
11519 Use lwp_is_stopped.
11520 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11523 2015-03-24 Gary Benson <gbenson@redhat.com>
11525 * linux-low.h (linux_stop_lwp): Remove declaration.
11527 2015-03-24 Gary Benson <gbenson@redhat.com>
11529 * linux-low.h: Include nat/linux-nat.h.
11530 * linux-low.c (iterate_over_lwps_args): New structure.
11531 (iterate_over_lwps_filter): New function.
11532 (iterate_over_lwps): Likewise.
11533 * linux-x86-low.c (update_debug_registers_callback):
11534 Update signature to what iterate_over_lwps expects.
11535 Remove PID check that iterate_over_lwps now performs.
11536 (x86_dr_low_set_addr): Use iterate_over_lwps.
11537 (x86_dr_low_set_control): Likewise.
11539 2015-03-24 Gary Benson <gbenson@redhat.com>
11541 * linux-x86-low.c (x86_debug_reg_state): New function.
11542 (x86_linux_prepare_to_resume): Use the above.
11544 2015-03-24 Gary Benson <gbenson@redhat.com>
11546 * linux-low.c (current_lwp_ptid): New function.
11547 * linux-x86-low.c: Include nat/linux-nat.h.
11548 (x86_dr_low_get_addr): Use current_lwp_ptid.
11549 (x86_dr_low_get_control): Likewise.
11550 (x86_dr_low_get_status): Likewise.
11552 2015-03-20 Pedro Alves <palves@redhat.com>
11554 * tracepoint.c (cmd_qtstatus): Make "str" const.
11556 2015-03-20 Pedro Alves <palves@redhat.com>
11558 * server.c (handle_general_set): Make "req_str" const.
11560 2015-03-19 Pedro Alves <palves@redhat.com>
11562 * linux-low.c (linux_resume_one_lwp): Rename to ...
11563 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11564 instead call perror_with_name.
11565 (check_ptrace_stopped_lwp_gone): New function.
11566 (linux_resume_one_lwp): Reimplement as wrapper around
11567 linux_resume_one_lwp_throw that swallows errors if the LWP is
11570 2015-03-19 Pedro Alves <palves@redhat.com>
11572 * linux-low.c (count_events_callback, select_event_lwp_callback):
11573 No longer check whether the thread has resume_stop as last resume
11576 2015-03-19 Pedro Alves <palves@redhat.com>
11578 * linux-low.c (count_events_callback, select_event_lwp_callback):
11579 Use the lwp's status_pending_p field, not the thread's.
11581 2015-03-19 Pedro Alves <palves@redhat.com>
11583 * linux-low.c (select_event_lwp_callback): Update comments to
11584 no longer mention SIGTRAP.
11586 2015-03-18 Gary Benson <gbenson@redhat.com>
11588 * server.c (handle_query): Do not report vFile:fstat as supported.
11590 2015-03-11 Gary Benson <gbenson@redhat.com>
11592 * hostio.c (sys/types.h): New include.
11593 (sys/stat.h): Likewise.
11594 (common-remote-fileio.h): Likewise.
11595 (handle_fstat): New function.
11596 (handle_vFile): Handle vFile:fstat packets.
11598 2015-03-11 Gary Benson <gbenson@redhat.com>
11600 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11601 struct stat.st_blocks and struct stat.st_blksize.
11602 * configure: Regenerate.
11603 * config.in: Likewise.
11604 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11605 (OBS): Add common-remote-fileio.o.
11606 (common-remote-fileio.o): New rule.
11608 2015-03-09 Pedro Alves <palves@redhat.com>
11610 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11611 'struct sockaddr' pointer in 'accept' call.
11613 2015-03-09 Pedro Alves <palves@redhat.com>
11616 2015-03-07 Pedro Alves <palves@redhat.com>
11617 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11618 or <winsock2.h> here. Instead include "gdb_socket.h".
11619 (remote_open): Use union gdb_sockaddr_u.
11620 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11621 or <winsock2.h> here. Instead include "gdb_socket.h".
11622 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11623 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11625 (init_named_socket, gdb_agent_helper_thread): Use union
11628 2015-03-07 Pedro Alves <palves@redhat.com>
11630 * configure.ac (build_warnings): Move
11631 -Wdeclaration-after-statement to the C-specific set.
11632 * configure: Regenerate.
11634 2015-03-07 Pedro Alves <palves@redhat.com>
11636 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11637 or <winsock2.h> here. Instead include "gdb_socket.h".
11638 (remote_open): Use union gdb_sockaddr_u.
11639 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11640 or <winsock2.h> here. Instead include "gdb_socket.h".
11641 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11642 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11644 (init_named_socket, gdb_agent_helper_thread): Use union
11647 2015-03-07 Pedro Alves <palves@redhat.com>
11649 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11652 2015-03-06 Yao Qi <yao.qi@linaro.org>
11654 * linux-aarch64-low.c (aarch64_insert_point): Use
11655 show_debug_regs as a boolean.
11656 (aarch64_remove_point): Likewise.
11658 2015-03-05 Pedro Alves <palves@redhat.com>
11660 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11661 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11662 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11663 * nto-low.c (nto_target_ops): Likewise.
11664 * spu-low.c (spu_target_ops): Likewise.
11665 * win32-low.c (win32_target_ops): Likewise.
11667 2015-03-04 Pedro Alves <palves@redhat.com>
11669 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11670 Decide whether a breakpoint triggered based on the SIGTRAP's
11672 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11673 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11674 (linux_low_filter_event): Check for breakpoints before checking
11676 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11678 (linux_stopped_by_sw_breakpoint)
11679 (linux_supports_stopped_by_sw_breakpoint)
11680 (linux_stopped_by_hw_breakpoint)
11681 (linux_supports_stopped_by_hw_breakpoint): New functions.
11682 (linux_target_ops): Install new target methods.
11684 2015-03-04 Pedro Alves <palves@redhat.com>
11686 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11687 * server.c (swbreak_feature, hwbreak_feature): New globals.
11688 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11689 (captured_main): Clear swbreak_feature and hwbreak_feature.
11690 * server.h (swbreak_feature, hwbreak_feature): Declare.
11691 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11692 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11693 supports_stopped_by_hw_breakpoint>: New fields.
11694 (target_supports_stopped_by_sw_breakpoint)
11695 (target_stopped_by_sw_breakpoint)
11696 (target_supports_stopped_by_hw_breakpoint)
11697 (target_stopped_by_hw_breakpoint): Declare.
11699 2015-03-04 Pedro Alves <palves@redhat.com>
11701 enum lwp_stop_reason -> enum target_stop_reason
11702 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11703 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11704 (linux_wait_1, stuck_in_jump_pad_callback)
11705 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11706 (linux_stopped_by_watchpoint):
11707 * linux-low.h (enum lwp_stop_reason): Delete.
11708 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11709 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11711 2015-03-04 Yao Qi <yao.qi@linaro.org>
11713 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11715 2015-03-03 Gary Benson <gbenson@redhat.com>
11717 * hostio.c (handle_vFile): Fix prefix lengths.
11719 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11721 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11724 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11726 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11727 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11728 (clean): Add "rm -f" for above C files.
11729 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11730 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11731 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11732 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11733 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11734 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11735 (init_registers_s390x_vx_linux64)
11736 (init_registers_s390x_tevx_linux64)
11737 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11738 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11740 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11741 (s390_store_vxrs_high): New functions.
11742 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11744 (s390_arch_setup): Add logic for selecting one of the new target
11745 descriptions. Activate the new vector regsets if applicable.
11746 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11747 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11748 and init_registers_s390x_tevx_linux64.
11750 2015-03-01 Pedro Alves <palves@redhat.com>
11752 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11755 2015-02-27 Pedro Alves <palves@redhat.com>
11757 * linux-x86-low.c (u_debugreg_offset): New function.
11758 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11760 2015-02-27 Pedro Alves <palves@redhat.com>
11762 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11763 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11764 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11765 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11766 (ps_lsetfpregs, ps_getpid)
11767 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11768 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11769 (ps_lsetxregs, ps_plog): Declare.
11771 2015-02-27 Pedro Alves <palves@redhat.com>
11773 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11774 IP_AGENT_EXPORT_FUNC.
11775 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11776 IP_AGENT_EXPORT_FUNC.
11777 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11778 (IP_AGENT_EXPORT): Delete.
11779 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11780 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11781 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11782 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11783 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11784 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11785 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11786 (traceframe_read_count, traceframe_write_count)
11787 (traceframes_created, trace_state_variables, get_raw_reg)
11788 (get_trace_state_variable_value, set_trace_state_variable_value)
11789 (ust_loaded, helper_thread_id, cmd_buf): Use
11790 IPA_SYM_EXPORTED_NAME.
11791 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11792 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11793 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11794 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11795 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11796 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11797 EXTERN_C_PUSH/EXTERN_C_POP.
11798 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11799 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11800 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11801 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11802 (traceframe_write_count, traceframe_read_count)
11803 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11804 (about_to_request_buffer_space, get_trace_state_variable_value)
11805 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11806 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11807 EXTERN_C_PUSH/EXTERN_C_POP.
11808 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11809 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11810 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11811 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11812 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11813 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11814 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11815 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11817 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11818 (IP_AGENT_EXPORT_VAR_DECL): Define.
11819 (tracing): Declare.
11820 (gdb_agent_get_raw_reg): Declare.
11822 2015-02-27 Tom Tromey <tromey@redhat.com>
11823 Pedro Alves <palves@redhat.com>
11825 Rename symbols whose names are reserved C++ keywords throughout.
11827 2015-02-27 Pedro Alves <palves@redhat.com>
11829 * Makefile.in (COMPILER): New, get it from autoconf.
11830 (CXX): Get from autoconf instead.
11831 (COMPILE.pre): Use COMPILER.
11832 (CC-LD): Rename to ...
11833 (CC_LD): ... this. Use COMPILER.
11834 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11835 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11836 * acinclude.m4: Include build-with-cxx.m4.
11837 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11838 Disable -Werror by default if building in C++ mode.
11839 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11840 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11841 the C++ compiler. Save/restore CXXFLAGS too.
11842 * configure: Regenerate.
11844 2015-02-27 Pedro Alves <palves@redhat.com>
11846 * acinclude.m4: Include libiberty.m4.
11847 * configure.ac: Call libiberty_INIT.
11848 * config.in, configure: Regenerate.
11850 2015-02-26 Pedro Alves <palves@redhat.com>
11852 * linux-low.c (linux_wait_1): When incrementing the PC past a
11853 program breakpoint always use the_low_target.breakpoint_len as
11854 increment, rather than the maximum between that and
11855 the_low_target.decr_pc_after_break.
11857 2015-02-23 Pedro Alves <palves@redhat.com>
11859 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11860 thread was doing a step-over; always adjust the PC if
11861 we stepped over a permanent breakpoint.
11862 (linux_wait_1): If we stepped over breakpoint that was on top of a
11863 permanent breakpoint, manually advance the PC past it.
11865 2015-02-23 Pedro Alves <palves@redhat.com>
11867 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11869 (x86_fill_gregset, x86_store_gregset): Use it when handling
11872 2015-02-20 Pedro Alves <palves@redhat.com>
11874 * thread-db.c: Include "nat/linux-procfs.h".
11875 (thread_db_init): Skip listing new threads if the kernel supports
11876 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11878 2015-02-20 Pedro Alves <palves@redhat.com>
11880 * linux-low.c (status_pending_p_callback): Use ptid_match.
11882 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11884 PR breakpoints/16812
11885 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11886 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11887 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11889 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11891 PR breakpoints/15956
11892 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11894 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11896 * linux-low.c (linux_low_btrace_conf): Print size.
11897 * server.c (handle_btrace_conf_general_set): New.
11898 (hanle_general_set): Call handle_btrace_conf_general_set.
11899 (handle_query): Report Qbtrace-conf:bts:size as supported.
11901 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11903 * linux-low.c (linux_low_enable_btrace): Update parameters.
11904 (linux_low_btrace_conf): New.
11905 (linux_target_ops)<to_btrace_conf>: Initialize.
11906 * server.c (current_btrace_conf): New.
11907 (handle_btrace_enable): Rename to ...
11908 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
11909 to target_enable_btrace. Update comment. Update users.
11910 (handle_qxfer_btrace_conf): New.
11911 (qxfer_packets): Add btrace-conf entry.
11912 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11913 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11914 (target_ops)<read_btrace_conf>: New.
11915 (target_enable_btrace): Update parameters.
11916 (target_read_btrace_conf): New.
11918 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11920 * server.c (handle_btrace_general_set): Remove call to
11921 target_supports_btrace.
11922 (supported_btrace_packets): New.
11923 (handle_query): Call supported_btrace_packets.
11924 * target.h: include btrace-common.h.
11925 (btrace_target_info): Removed.
11926 (supports_btrace, target_supports_btrace): Update parameters.
11928 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11930 * Makefile.in (SFILES): Add common/btrace-common.c.
11931 (OBS): Add common/btrace-common.o.
11932 (btrace-common.o): Add build rules.
11933 * linux-low: Include btrace-common.h.
11934 (linux_low_read_btrace): Use struct btrace_data. Call
11935 btrace_data_init and btrace_data_fini.
11937 2015-02-06 Pedro Alves <palves@redhat.com>
11939 * thread-db.c (find_new_threads_callback): Add debug output.
11941 2015-02-04 Pedro Alves <palves@redhat.com>
11943 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11944 (resume_stopped_resumed_lwps): New function.
11945 (linux_wait_for_event_filtered): Use it.
11947 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11949 * Makefile.in (SFILES): Add linux-personality.c.
11950 (linux-personality.o): New rule.
11951 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11952 list of objects to be built.
11953 * linux-low.c: Include nat/linux-personality.h.
11954 (linux_create_inferior): Remove code to disable address space
11955 randomization (moved to ../nat/linux-personality.c). Create
11956 cleanup to disable address space randomization.
11958 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11960 * Makefile.in (posix-strerror.o): New rule.
11961 (mingw-strerror.o): Likewise.
11962 * configure: Regenerated.
11963 * configure.ac: Source file ../common/common.host. Initialize new
11964 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11966 2015-01-14 Yao Qi <yao@codesourcery.com>
11968 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11969 (ppc-linux.o): New rule.
11970 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11971 * configure.ac: AC_CHECK_FUNCS(getauxval).
11972 * config.in: Re-generated.
11973 * configure: Re-generated.
11974 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11975 ppc64_64bit_inferior_p
11977 2015-01-14 Yao Qi <yao@codesourcery.com>
11979 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11980 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11981 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11982 (PT_ORIG_R3, PT_TRAP): Likewise.
11983 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11984 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11985 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11987 2015-01-10 Joel Brobecker <brobecker@adacore.com>
11989 * i387-fp.c (i387_cache_to_xsave): In look over
11990 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11991 zmmh_low_space field by use of zmmh_high_space.
11993 2015-01-09 Pedro Alves <palves@redhat.com>
11995 * linux-low.c (step_over_bkpt): Move higher up in the file.
11996 (handle_extended_wait): Don't store the stop_pc here.
11997 (get_stop_pc): Adjust comments and rename to ...
11998 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11999 stopped for a software breakpoint or hardware breakpoint.
12000 (thread_still_has_status_pending_p): New function.
12001 (status_pending_p_callback): Use
12002 thread_still_has_status_pending_p. If the event is no longer
12003 interesting, resume the LWP.
12004 (handle_tracepoints): Add assert.
12005 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
12006 (wstatus_maybe_breakpoint): New function.
12007 (cancel_breakpoint): Delete function.
12008 (check_stopped_by_watchpoint): New function, factored out from
12009 linux_low_filter_event.
12010 (lp_status_maybe_breakpoint): Delete function.
12011 (linux_low_filter_event): Remove filter_ptid argument.
12012 Leave thread group exits pending here. Store the LWP's stop PC.
12013 Always leave events pending.
12014 (linux_wait_for_event_filtered): Pull all events out of the
12015 kernel, and leave them all pending.
12016 (count_events_callback, select_event_lwp_callback): Consider all
12018 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
12019 (select_event_lwp): Only give preference to the stepping LWP in
12020 all-stop mode. Adjust comments.
12021 (ignore_event): New function.
12022 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
12023 references to cancel_breakpoints. Adjust to renames. Also give
12024 equal priority to all LWPs that have had events in non-stop mode.
12025 If reporting a software breakpoint event, unadjust the LWP's PC.
12026 (linux_wait): If linux_wait_1 returned an ignored event, retry.
12027 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
12029 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
12030 (resume_status_pending_p): Use thread_still_has_status_pending_p.
12031 (linux_stopped_by_watchpoint): Adjust.
12032 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
12033 * linux-low.h (enum lwp_stop_reason): New.
12034 (struct lwp_info) <stop_pc>: Adjust comment.
12035 <stopped_by_watchpoint>: Delete field.
12036 <stop_reason>: New field.
12037 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12038 * mem-break.c (software_breakpoint_inserted_here)
12039 (hardware_breakpoint_inserted_here): New function.
12040 * mem-break.h (software_breakpoint_inserted_here)
12041 (hardware_breakpoint_inserted_here): Declare.
12042 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
12043 (cancel_breakpoints): Delete.
12044 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
12045 (upload_fast_traceframes): Remove references to
12046 cancel_breakpoints.
12048 2015-01-09 Pedro Alves <palves@redhat.com>
12050 * thread-db.c (find_new_threads_callback): Ignore thread if the
12051 kernel thread ID is -1.
12053 2015-01-09 Pedro Alves <palves@redhat.com>
12055 * linux-low.c (linux_attach_fail_reason_string): Move to
12056 nat/linux-ptrace.c, and rename.
12057 (linux_attach_lwp): Update comment.
12058 (attach_proc_task_lwp_callback): New function.
12059 (linux_attach): Adjust to rename and use
12060 linux_proc_attach_tgid_threads.
12061 (linux_attach_fail_reason_string): Delete declaration.
12063 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12065 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
12066 * server.c (gdbserver_version): Likewise.
12068 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
12070 * remote-utils.c: Include ctype.h.
12071 (input_interrupt): Explicitly handle the case when the char
12072 received is the NUL byte. Improve the printing of non-ASCII
12075 2014-12-16 Joel Brobecker <brobecker@adacore.com>
12077 * linux-low.c (linux_low_filter_event): Update call to
12078 linux_enable_event_reporting following the addition of
12079 a new parameter to that function.
12081 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
12084 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
12085 (AARCH64_FPCR_REGNO): Likewise.
12086 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
12087 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
12088 (aarch64_store_fpregset): Likewise.
12090 2014-12-15 Joel Brobecker <brobecker@adacore.com>
12092 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
12093 Remove FIXME comment about assumption about N.
12095 2014-12-13 Joel Brobecker <brobecker@adacore.com>
12097 * configure.ac: If large-file support is disabled in GDBserver,
12098 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
12099 * configure: Regenerate.
12101 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12103 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
12104 warning upon ENODATA from ptrace.
12105 * linux-s390-low.c (s390_store_tdb): New.
12106 (s390_regsets): Add regset for NT_S390_TDB.
12108 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12110 * linux-low.c (regsets_store_inferior_registers): Skip regsets
12111 without a fill_function.
12112 * linux-s390-low.c (s390_fill_last_break): Remove.
12113 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
12114 (s390_arch_setup): Use regset's size instead of fill_function for
12115 loop end condition.
12117 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12119 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
12120 the regset's store function when ptrace returned an error.
12121 * regcache.c (get_thread_regcache): Invalidate register cache
12122 before fetching inferior's registers.
12124 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12126 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
12127 while-loop as for-loop.
12128 (regsets_store_inferior_registers): Likewise.
12130 2014-11-28 Yao Qi <yao@codesourcery.com>
12132 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
12133 * config.in, configure: Re-generate.
12134 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
12137 2014-11-21 Yao Qi <yao@codesourcery.com>
12139 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
12140 (AC_CHECK_HEADERS): Remove malloc.h.
12141 * configure: Re-generated.
12142 * config.in: Re-generated.
12143 * server.h: Don't include alloca.h and malloc.h.
12144 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
12145 Don't include malloc.h.
12147 2014-11-17 Joel Brobecker <brobecker@adacore.com>
12149 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12150 corresponding ERRNO check in same block.
12152 2014-11-12 Pedro Alves <palves@redhat.com>
12154 * server.c (cont_thread): Update comment.
12155 (start_inferior, attach_inferior): No longer clear cont_thread.
12156 (handle_v_cont): No longer set cont_thread.
12157 (captured_main): Clear cont_thread each time a GDB connects.
12159 2014-11-12 Pedro Alves <palves@redhat.com>
12161 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12162 thread, and don't resume all threads if the Hc thread has exited.
12164 2014-11-12 Pedro Alves <palves@redhat.com>
12166 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12167 the process group instead of to a specific LWP.
12169 2014-10-15 Pedro Alves <palves@redhat.com>
12172 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12174 (arm_set_thread_context): Delete.
12175 (the_low_target): Adjust.
12176 * win32-i386-low.c (debug_registers_changed)
12177 (debug_registers_used): Delete.
12178 (update_debug_registers_callback): New function.
12179 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12180 needing to update their debug registers.
12181 (win32_get_current_dr): New function.
12182 (x86_dr_low_get_addr, x86_dr_low_get_control)
12183 (x86_dr_low_get_status): Fetch the debug register from the thread
12185 (i386_initial_stuff): Adjust.
12186 (i386_get_thread_context): Remove current_event parameter. Don't
12187 clear debug_registers_changed nor copy DR values to
12189 (i386_set_thread_context): Delete.
12190 (i386_prepare_to_resume): New function.
12191 (i386_thread_added): Mark the thread as needing to update irs
12193 (the_low_target): Remove i386_set_thread_context and install
12194 i386_prepare_to_resume.
12195 * win32-low.c (win32_get_thread_context): Adjust.
12196 (win32_set_thread_context): Use SetThreadContext
12198 (win32_prepare_to_resume): New function.
12199 (win32_require_context): New function, factored out from ...
12200 (thread_rec): ... this.
12201 (continue_one_thread): Call win32_prepare_to_resume on each thread
12202 we're about to continue.
12203 (win32_resume): Call win32_prepare_to_resume on the event thread.
12204 * win32-low.h (struct win32_thread_info)
12205 <debug_registers_changed>: New field.
12206 (struct win32_target_ops): Change prototype of set_thread_context,
12207 delete set_thread_context and add prepare_to_resume.
12208 (win32_require_context): New declaration.
12210 2014-10-08 Gary Benson <gbenson@redhat.com>
12212 * server.h: Do not include common-exceptions.h.
12214 2014-10-08 Gary Benson <gbenson@redhat.com>
12216 * server.h: Do not include cleanups.h.
12218 2014-09-30 James Hogan <james.hogan@imgtec.com>
12220 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12221 mips64-dsp-linux.c.
12223 2014-09-23 Yao Qi <yao@codesourcery.com>
12225 * linux-low.c (lp_status_maybe_breakpoint): New function.
12226 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12227 (count_events_callback): Likewise.
12228 (select_event_lwp_callback): Likewise.
12229 (cancel_breakpoints_callback): Likewise.
12231 2014-09-19 Don Breazeal <donb@codesourcery.com>
12233 * linux-low.c (handle_extended_wait): Call
12234 linux_ptrace_get_extended_event.
12235 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12236 linux_is_extended_waitstatus.
12238 2014-09-16 Joel Brobecker <brobecker@adacore.com>
12240 * Makefile.in (CPPFLAGS): Define.
12241 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12242 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12244 2014-09-16 Gary Benson <gbenson@redhat.com>
12246 * inferiors.h (current_inferior): Renamed as...
12247 (current_thread): New variable. All uses updated.
12248 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12249 (maybe_move_out_of_jump_pad): Likewise.
12250 (cancel_breakpoint): Likewise.
12251 (linux_low_filter_event): Likewise.
12252 (wait_for_sigstop): Likewise.
12253 (linux_resume_one_lwp): Likewise.
12254 (need_step_over_p): Likewise.
12255 (start_step_over): Likewise.
12256 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12257 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12258 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12259 and save_inferior as saved_thread.
12260 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12262 (regcache_invalidate_thread): Likewise.
12263 * remote-utils.c (prepare_resume_reply): Likewise.
12264 * thread-db.c (thread_db_get_tls_address): Likewise.
12265 (disable_thread_event_reporting): Likewise.
12266 (remove_thread_event_breakpoints): Likewise.
12267 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12269 * target.h (set_desired_inferior): Renamed as...
12270 (set_desired_thread): New declaration. All uses updated.
12271 * server.c (myresume): Updated comment to reference thread instead
12273 (handle_serial_event): Likewise.
12274 (handle_target_event): Likewise.
12276 2014-09-12 Tom Tromey <tromey@redhat.com>
12277 Gary Benson <gbenson@redhat.com>
12279 * regcache.h: Include common-regcache.h.
12280 (regcache_read_pc): Don't declare.
12281 * regcache.c (get_thread_regcache_for_ptid): New function.
12283 2014-09-11 Tom Tromey <tromey@redhat.com>
12284 Gary Benson <gbenson@redhat.com>
12286 * symbol.c: New file.
12287 * Makefile.in (SFILES): Add symbol.c.
12288 (OBS): Add symbol.o.
12290 2014-09-11 Gary Benson <gbenson@redhat.com>
12292 * target.c (target_stop_ptid, target_continue_ptid): New
12295 2014-09-11 Tom Tromey <tromey@redhat.com>
12296 Gary Benson <gbenson@redhat.com>
12298 * target.h: Include target/target.h.
12299 * target.c (target_read_memory, target_read_uint32)
12300 (target_write_memory): New functions.
12302 2014-09-11 Gary Benson <gbenson@redhat.com>
12304 * server.h (debug_hw_points): Don't declare.
12305 * server.c (debug_hw_points): Don't define. Replace all uses
12306 with show_debug_regs.
12307 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12308 all uses with show_debug_regs.
12310 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12312 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12313 endianness into account.
12314 (ppc_supply_ptrace_register): Likewise.
12316 2014-09-03 James Hogan <james.hogan@imgtec.com>
12318 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12319 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12321 2014-09-03 Gary Benson <gbenson@redhat.com>
12323 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12324 ALL_DEBUG_ADDRESS_REGISTERS.
12326 2014-09-02 Gary Benson <gbenson@redhat.com>
12328 * i386-low.h: Renamed as...
12329 * x86-low.h: New file. All type, function and variable name
12330 prefixes changed from "i386_" to "x86_". All references updated.
12331 * i386-low.c: Renamed as...
12332 * x86-low.c: New file. All type, function and variable name
12333 prefixes changed from "i386_" to "x86_". All references updated.
12335 2014-09-02 Gary Benson <gbenson@redhat.com>
12337 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12338 (x86_linux_new_thread): Likewise.
12340 2014-08-29 Gary Benson <gbenson@redhat.com>
12342 * server.h (setjmp.h): Do not include.
12343 (toplevel): Do not declare.
12344 (common-exceptions.h): Include.
12345 (cleanups.h): Likewise.
12346 * server.c (toplevel): Do not define.
12347 (exit_code): New static global.
12348 (detach_or_kill_for_exit_cleanup): New function.
12349 (main): New function. Original main renamed to...
12350 (captured_main): New function.
12351 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12353 2014-08-29 Gary Benson <gbenson@redhat.com>
12355 * Makefile.in (SFILES): Add common/common-exceptions.c.
12356 (OBS): Add common-exceptions.o.
12357 (common-exceptions.o): New rule.
12358 * utils.c (prepare_to_throw_exception): New function.
12360 2014-08-29 Gary Benson <gbenson@redhat.com>
12362 * config.in: Regenerate.
12363 * configure: Likewise.
12365 2014-08-29 Gary Benson <gbenson@redhat.com>
12367 * Makefile.in (SFILES): Add common/cleanups.c.
12369 (cleanups.o): New rule.
12371 2014-08-29 Gary Benson <gbenson@redhat.com>
12373 * utils.c (internal_vwarning): New function.
12375 2014-08-28 Gary Benson <gbenson@redhat.com>
12377 * utils.h (fatal): Remove declaration.
12378 * utils.c (fatal): Remove function.
12380 2014-08-28 Gary Benson <gbenson@redhat.com>
12382 * tracepoint.c (gdb_agent_init): Replace fatal with
12384 (initialize_tracepoint): Likewise.
12386 2014-08-28 Gary Benson <gbenson@redhat.com>
12388 * remote-utils.c (remote_prepare): Replace fatal with error.
12390 2014-08-28 Gary Benson <gbenson@redhat.com>
12392 * linux-low.c (linux_async): Replace fatal with warning.
12393 Tidy up and return.
12394 (linux_start_non_stop): Return -1 if linux_async failed.
12396 2014-08-28 Gary Benson <gbenson@redhat.com>
12398 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12400 (i386_dr_low_get_addr): Remove vague comment.
12401 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12404 2014-08-28 Gary Benson <gbenson@redhat.com>
12406 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12407 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12409 (linux_resume_one_lwp): Likewise.
12410 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12412 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12413 with internal_error.
12414 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12415 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12416 (find_register_by_name): Replace fatal with internal_error.
12417 (find_regno): Likewise.
12418 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12419 * thread-db.c (thread_db_create_event): Likewise.
12420 (thread_db_load_search): Likewise.
12421 (try_thread_db_load_1): Likewise.
12422 * tracepoint.c (get_jump_space_head): Replace fatal with
12424 (claim_trampoline_space): Likewise.
12425 (have_fast_tracepoint_trampoline_buffer): Likewise.
12426 (cmd_qtstart): Likewise.
12427 (stop_tracing): Likewise.
12428 (fast_tracepoint_collecting): Likewise.
12429 (target_malloc): Likewise.
12430 (download_tracepoint): Likewise.
12431 (download_trace_state_variables): Replace check with gdb_assert.
12432 (upload_fast_traceframes): Replace fatal with internal_error.
12434 2014-08-19 Tom Tromey <tromey@redhat.com>
12435 Gary Benson <gbenson@redhat.com>
12437 * Makefile.in (SFILES): Add common/common-debug.c.
12438 (OBS): Add common-debug.o.
12439 (common-debug.o): New rule.
12440 * debug.h (debug_printf): Don't declare.
12441 * debug.c (debug_printf): Renamed and rewritten as...
12442 (debug_vprintf): New function.
12444 2014-08-19 Gary Benson <gbenson@redhat.com>
12446 * utils.h: Do not include print-utils.h.
12448 2014-08-19 Tom Tromey <tromey@redhat.com>
12449 Gary Benson <gbenson@redhat.com>
12451 * server.h: Add static assertion.
12452 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12454 2014-08-19 Tom Tromey <tromey@redhat.com>
12455 Gary Benson <gbenson@redhat.com>
12457 * Makefile.in (SFILES): Add common/errors.c.
12458 (OBS): Add errors.o.
12459 (IPA_OBS): Add errors-ipa.o.
12460 (errors.o): New rule.
12461 (errors-ipa.o): Likewise.
12462 * utils.h (perror_with_name, error, warning): Don't declare.
12463 * utils.c (warning): Renamed and rewritten as...
12464 (vwarning): New function.
12465 (error): Renamed and rewritten as...
12466 (verror): New function.
12467 (internal_error): Renamed and rewritten as...
12468 (internal_verror): New function.
12470 2014-08-07 Gary Benson <gbenson@redhat.com>
12472 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12473 * configure: Regenerate.
12474 * config.in: Likewise.
12475 * server.h: Do not include errno.h.
12476 * event-loop.c: Likewise.
12477 * hostio-errno.c: Likewise.
12478 * linux-low.c: Likewise.
12479 * remote-utils.c: Likewise.
12480 * spu-low.c: Likewise.
12481 * utils.c: Likewise.
12482 * gdbreplay.c: Unconditionally include errno.h.
12484 2014-08-07 Gary Benson <gbenson@redhat.com>
12486 * server.h: Do not include string.h.
12487 * event-loop.c: Likewise.
12488 * linux-low.c: Likewise.
12489 * regcache.c: Likewise.
12490 * remote-utils.c: Likewise.
12491 * spu-low.c: Likewise.
12492 * utils.c: Likewise.
12494 2014-08-07 Gary Benson <gbenson@redhat.com>
12496 * server.h: Do not include gdb_assert.h.
12498 2014-08-07 Gary Benson <gbenson@redhat.com>
12500 * server.h: Do not include common-utils.h.
12502 2014-08-07 Gary Benson <gbenson@redhat.com>
12504 * server.h: Do not include ptid.h.
12505 * notif.h: Likewise.
12507 2014-08-07 Gary Benson <gbenson@redhat.com>
12509 * server.h: Do not include gdb_locale.h.
12511 2014-08-07 Gary Benson <gbenson@redhat.com>
12513 * server.h: Do not include gdb/signals.h.
12514 * win32-low.c: Likewise.
12516 2014-08-07 Gary Benson <gbenson@redhat.com>
12518 * server.h: Do not include pathmax.h.
12520 2014-08-07 Gary Benson <gbenson@redhat.com>
12522 * server.h: Do not include libiberty.h.
12523 * linux-bfin-low.c: Likewise.
12525 2014-08-07 Gary Benson <gbenson@redhat.com>
12527 * server.h: Do not include ansidecl.h.
12529 2014-08-07 Gary Benson <gbenson@redhat.com>
12531 * linux-x86-low.c: Do not include stddef.h.
12532 * lynx-ppc-low.c: Likewise.
12533 * tracepoint.c: Likewise.
12535 2014-08-07 Gary Benson <gbenson@redhat.com>
12537 * server.h: Do not include stdarg.h.
12538 * nto-low.c: Likewise.
12540 2014-08-07 Gary Benson <gbenson@redhat.com>
12542 * server.h: Do not include stdlib.h.
12543 * inferiors.c: Likewise.
12544 * linux-low.c: Likewise.
12545 * regcache.c: Likewise.
12546 * spu-low.c: Likewise.
12547 * tracepoint.c: Likewise.
12548 * utils.c: Likewise.
12550 2014-08-07 Gary Benson <gbenson@redhat.com>
12552 * server.h: Do not include stdio.h.
12553 * linux-low.c: Likewise.
12554 * remote-utils.c: Likewise.
12555 * spu-low.c: Likewise.
12556 * utils.c: Likewise.
12557 * wincecompat.c: Likewise.
12559 2014-08-06 Gary Benson <gbenson@redhat.com>
12561 * regcache.c (init_register_cache): Move conditionals inside if.
12563 2014-08-06 Gary Benson <gbenson@redhat.com>
12565 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12567 2014-07-31 Gary Benson <gbenson@redhat.com>
12569 * ax.h: Do not include server.h.
12570 * gdbthread.h: Likewise.
12571 * lynx-low.h: Likewise.
12572 * notif.h: Likewise.
12574 2014-07-30 Gary Benson <gbenson@redhat.com>
12576 * server.h: Include common-defs.h.
12577 Do not include config.h or build-gnulib-gdbserver/config.h.
12579 2014-07-30 Gary Benson <gbenson@redhat.com>
12581 * hostio-errno.c: Move server.h to top of includes list.
12582 * inferiors.c: Likewise.
12583 * linux-x86-low.c: Likewise.
12584 * notif.c: Include server.h.
12586 2014-07-24 Tom Tromey <tromey@redhat.com>
12587 Gary Benson <gbenson@redhat.com>
12589 * server.h (CORE_ADDR): Now unsigned.
12591 2014-07-16 Pedro Alves <palves@redhat.com>
12593 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12595 2014-07-15 Pedro Alves <palves@redhat.com>
12597 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12600 2014-07-11 Pedro Alves <palves@redhat.com>
12602 * linux-low.c (kill_wait_lwp): New function, based on
12603 kill_one_lwp_callback, but use my_waitpid directly.
12604 (kill_one_lwp_callback, linux_kill): Use it.
12606 2014-06-23 Pedro Alves <palves@redhat.com>
12608 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12609 before setting DR0..DR3.
12611 2014-06-20 Gary Benson <gbenson@redhat.com>
12613 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12614 * configure: Regenerated.
12615 * config.in: Likewise.
12617 2014-06-20 Gary Benson <gbenson@redhat.com>
12619 * Makefile.in (SFILES): Update locations for files moved
12620 from common to nat.
12621 (object file files): Reordered.
12623 2014-06-20 Gary Benson <gbenson@redhat.com>
12625 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12626 (i386_dr_low_set_addr): Likewise.
12627 (i386_dr_low_get_addr): Likewise.
12628 (i386_dr_low_can_set_control): Likewise.
12629 (i386_dr_low_set_control): Likewise.
12630 (i386_dr_low_get_control): Likewise.
12631 (i386_dr_low_get_status): Likewise.
12632 (i386_get_debug_register_length): Likewise.
12633 * linux-x86-low.c (i386_dr_low_set_addr):
12634 Changed signature. Made static.
12635 (i386_dr_low_get_addr): Likewise.
12636 (i386_dr_low_set_control): Likewise.
12637 (i386_dr_low_get_control): Likewise.
12638 (i386_dr_low_get_status): Likewise.
12639 (i386_dr_low): New global variable.
12640 * win32-i386-low.c (i386_dr_low_set_addr):
12641 Changed signature. Made static.
12642 (i386_dr_low_get_addr): Likewise.
12643 (i386_dr_low_set_control): Likewise.
12644 (i386_dr_low_get_control): Likewise.
12645 (i386_dr_low_get_status): Likewise.
12646 (i386_dr_low): New global variable.
12648 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12650 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12651 * Makefile.in (AR, AR_FLAGS): Define.
12652 * configure: Regenerate.
12654 2014-06-19 Gary Benson <gbenson@redhat.com>
12656 * Makefile.in (i386-dregs.o): New rule.
12657 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12658 * i386-low.c (target.h): Remove include.
12659 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12660 (DR_CONTROL_SHIFT): Likewise.
12661 (DR_CONTROL_SIZE): Likewise.
12662 (DR_RW_EXECUTE): Likewise.
12663 (DR_RW_WRITE): Likewise.
12664 (DR_RW_READ): Likewise.
12665 (DR_RW_IORW): Likewise.
12666 (DR_LEN_1): Likewise.
12667 (DR_LEN_2): Likewise.
12668 (DR_LEN_4): Likewise.
12669 (DR_LEN_8): Likewise.
12670 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12671 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12672 (DR_ENABLE_SIZE): Likewise.
12673 (DR_LOCAL_SLOWDOWN): Likewise.
12674 (DR_GLOBAL_SLOWDOWN): Likewise.
12675 (DR_CONTROL_RESERVED): Likewise.
12676 (I386_DR_CONTROL_MASK): Likewise.
12677 (I386_DR_VACANT): Likewise.
12678 (I386_DR_LOCAL_ENABLE): Likewise.
12679 (I386_DR_GLOBAL_ENABLE): Likewise.
12680 (I386_DR_DISABLE): Likewise.
12681 (I386_DR_SET_RW_LEN): Likewise.
12682 (I386_DR_GET_RW_LEN): Likewise.
12683 (I386_DR_WATCH_HIT): Likewise.
12684 (i386_wp_op_t): Likewise.
12685 (i386_show_dr): Likewise.
12686 (i386_length_and_rw_bits): Likewise.
12687 (i386_insert_aligned_watchpoint): Likewise.
12688 (i386_remove_aligned_watchpoint): Likewise.
12689 (i386_handle_nonaligned_watchpoint): Likewise.
12690 i386_update_inferior_debug_regs(): Likewise.
12691 (i386_dr_insert_watchpoint): Likewise.
12692 (i386_dr_remove_watchpoint): Likewise.
12693 (i386_dr_region_ok_for_watchpoint): Likewise.
12694 (i386_dr_stopped_data_address): Likewise.
12695 (i386_dr_stopped_by_watchpoint): Likewise.
12697 2014-06-19 Gary Benson <gbenson@redhat.com>
12699 * i386-low.c (i386_dr_show): Renamed to
12700 i386_show_dr and made static. All uses updated.
12701 (i386_dr_length_and_rw_bits): Renamed to
12702 i386_length_and_rw_bits and made static.
12704 (i386_dr_insert_aligned_watchpoint): Renamed to
12705 i386_insert_aligned_watchpoint and made static.
12707 (i386_dr_remove_aligned_watchpoint): Renamed to
12708 i386_remove_aligned_watchpoint and made static.
12710 (i386_dr_update_inferior_debug_regs): Renamed to
12711 i386_update_inferior_debug_regs and made static.
12714 2014-06-18 Gary Benson <gbenson@redhat.com>
12716 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12717 (i386_dr_low_can_set_control): Likewise.
12718 (i386_get_debug_register_length): Likewise.
12719 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12720 (i386_dr_low_can_set_control): Likewise.
12721 (i386_get_debug_register_length): Likewise.
12723 2014-06-17 Gary Benson <gbenson@redhat.com>
12725 * i386-low.h (i386-dregs.h): New include.
12726 (DR_FIRSTADDR): Now in i386-dregs.h.
12727 (DR_LASTADDR): Likewise.
12728 (DR_NADDR): Likewise.
12729 (DR_STATUS): Likewise.
12730 (DR_CONTROL): Likewise.
12731 (i386_debug_reg_state): Likewise.
12732 (i386_dr_insert_watchpoint): Likewise.
12733 (i386_dr_remove_watchpoint): Likewise.
12734 (i386_dr_region_ok_for_watchpoint): Likewise.
12735 (i386_dr_stopped_data_address): Likewise.
12736 (i386_dr_stopped_by_watchpoint): Likewise.
12737 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12739 2014-06-18 Gary Benson <gbenson@redhat.com>
12741 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12742 i386_dr_insert_watchpoint.
12743 (i386_low_remove_watchpoint): Renamed to
12744 i386_dr_remove_watchpoint.
12745 (i386_low_region_ok_for_watchpoint): Renamed to
12746 i386_dr_region_ok_for_watchpoint.
12747 (i386_low_stopped_data_address): Renamed to
12748 i386_dr_stopped_data_address.
12749 (i386_low_stopped_by_watchpoint): Renamed to
12750 i386_dr_stopped_by_watchpoint.
12751 * i386-low.c (i386_show_dr): Renamed to
12752 i386_dr_show and made nonstatic. All uses updated.
12753 (i386_length_and_rw_bits): Renamed to
12754 i386_dr_length_and_rw_bits and made nonstatic.
12756 (i386_insert_aligned_watchpoint): Renamed to
12757 i386_dr_insert_aligned_watchpoint and made nonstatic.
12759 (i386_remove_aligned_watchpoint): Renamed to
12760 i386_dr_remove_aligned_watchpoint and made nonstatic.
12762 (i386_update_inferior_debug_regs): Renamed to
12763 i386_dr_update_inferior_debug_regs and made nonstatic.
12765 (i386_low_insert_watchpoint): Renamed to
12766 i386_dr_insert_watchpoint. All uses updated.
12767 (i386_low_remove_watchpoint): Renamed to
12768 i386_dr_remove_watchpoint. All uses updated.
12769 (i386_low_region_ok_for_watchpoint): Renamed to
12770 i386_dr_region_ok_for_watchpoint. All uses updated.
12771 (i386_low_stopped_data_address): Renamed to
12772 i386_dr_stopped_data_address. All uses updated.
12773 (i386_low_stopped_by_watchpoint): Renamed to
12774 i386_dr_stopped_by_watchpoint. All uses updated.
12776 2014-06-18 Gary Benson <gbenson@redhat.com>
12778 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12779 (i386_dr_low_can_set_control): Likewise.
12780 (i386_insert_aligned_watchpoint): New check.
12782 2014-06-18 Gary Benson <gbenson@redhat.com>
12784 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12787 2014-06-18 Gary Benson <gbenson@redhat.com>
12789 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12790 instead of fatal and error.
12791 (i386_handle_nonaligned_watchpoint): Likewise.
12793 2014-06-18 Gary Benson <gbenson@redhat.com>
12795 * i386-low.c (i386_get_debug_register_length): New macro.
12796 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12797 (i386_show_dr): Use debug_printf instead of fprintf. Use
12798 phex to format values.
12800 2014-06-18 Gary Benson <gbenson@redhat.com>
12802 * i386-low.h: Comment changes.
12803 * i386-low.c: Likewise.
12805 2014-06-18 Gary Benson <gbenson@redhat.com>
12807 * i386-low.c: Whitespace changes.
12809 2014-06-12 Tom Tromey <tromey@redhat.com>
12811 * utils.c (freeargv): Remove.
12813 2014-06-12 Tom Tromey <tromey@redhat.com>
12815 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12816 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12817 (parse_debug_format_options): Likewise.
12818 (gdbserver_usage): Likewise.
12819 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12820 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12821 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12823 ($(LIBGNU)): Depend on libiberty.
12824 (all-lib): Recurse into all subdirs.
12825 (install-only): Invoke "install" target in subdirs.
12826 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12828 * configure: Rebuild.
12829 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12830 for vasprintf, vsnprintf, or gettimeofday.
12831 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12834 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12836 * development.sh: Delete.
12837 * Makefile.in (config.status): Adjust dependency on development.sh.
12838 * configure.ac: Adjust development.sh source call.
12839 * configure: Regenerate.
12841 2014-06-02 Pedro Alves <palves@redhat.com>
12843 * ax.c (gdb_free_agent_expr): New function.
12844 * ax.h (gdb_free_agent_expr): New declaration.
12845 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12847 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12849 (clear_breakpoint_conditions_and_commands): New function.
12850 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12851 (clear_breakpoint_conditions_and_commands): New declaration.
12853 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12855 * linux-aarch64-low.c (asm/ptrace.h): Include.
12857 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12859 Fix TLS access for -static -pthread.
12860 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12861 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12862 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12864 2014-05-20 Pedro Alves <palves@redhat.com>
12866 * linux-aarch64-low.c (aarch64_insert_point)
12867 (aarch64_remove_point): No longer check whether the type is
12868 supported here. Adjust to new interface.
12869 (the_low_target): Install aarch64_supports_z_point_type as
12870 supports_z_point_type method.
12871 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12872 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12873 instead of a Z packet char. Adjust.
12874 (arm_supports_z_point_type): New function.
12875 (arm_insert_point, arm_remove_point): Adjust to new interface.
12876 (the_low_target): Install arm_supports_z_point_type.
12877 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12878 (cris_insert_point, cris_remove_point): Adjust to new interface.
12879 Don't check whether the type is supported here.
12880 (the_low_target): Install cris_supports_z_point_type.
12881 * linux-low.c (linux_supports_z_point_type): New function.
12882 (linux_insert_point, linux_remove_point): Adjust to new interface.
12883 * linux-low.h (struct linux_target_ops) <insert_point,
12884 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12885 raw_breakpoint pointer parameter.
12886 <supports_z_point_type>: New method.
12887 * linux-mips-low.c (mips_supports_z_point_type): New function.
12888 (mips_insert_point, mips_remove_point): Adjust to new interface.
12889 Use mips_supports_z_point_type.
12890 (the_low_target): Install mips_supports_z_point_type.
12891 * linux-ppc-low.c (the_low_target): Install NULL as
12892 supports_z_point_type method.
12893 * linux-s390-low.c (the_low_target): Install NULL as
12894 supports_z_point_type method.
12895 * linux-sparc-low.c (the_low_target): Install NULL as
12896 supports_z_point_type method.
12897 * linux-x86-low.c (x86_supports_z_point_type): New function.
12898 (x86_insert_point): Adjust to new insert_point interface. Use
12899 insert_memory_breakpoint. Adjust to new
12900 i386_low_insert_watchpoint interface.
12901 (x86_remove_point): Adjust to remove_point interface. Use
12902 remove_memory_breakpoint. Adjust to new
12903 i386_low_remove_watchpoint interface.
12904 (the_low_target): Install x86_supports_z_point_type.
12905 * lynx-low.c (lynx_target_ops): Install NULL as
12906 supports_z_point_type callback.
12907 * nto-low.c (nto_supports_z_point_type): New.
12908 (nto_insert_point, nto_remove_point): Adjust to new interface.
12909 (nto_target_ops): Install nto_supports_z_point_type.
12910 * mem-break.c: Adjust intro comment.
12911 (struct raw_breakpoint) <raw_type, size>: New fields.
12912 <inserted>: Update comment.
12913 <shlib_disabled>: Delete field.
12914 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12915 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12916 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12917 (raw_bkpt_type_to_target_hw_bp_type): New function.
12918 (find_enabled_raw_code_breakpoint_at): New function.
12919 (find_raw_breakpoint_at): New type and size parameters. Use them.
12920 (insert_memory_breakpoint): New function, based off
12921 set_raw_breakpoint_at.
12922 (remove_memory_breakpoint): New function.
12923 (set_raw_breakpoint_at): Reimplement.
12924 (set_breakpoint): New, based on set_breakpoint_at.
12925 (set_breakpoint_at): Reimplement.
12926 (delete_raw_breakpoint): Go through the_target->remove_point
12927 instead of assuming memory breakpoints.
12928 (find_gdb_breakpoint_at): Delete.
12929 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12930 (find_gdb_breakpoint): New function.
12931 (set_gdb_breakpoint_at): Delete.
12932 (z_type_supported): New function.
12933 (set_gdb_breakpoint_1): New function, loosely based off
12934 set_gdb_breakpoint_at.
12935 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12936 (delete_gdb_breakpoint_at): Delete.
12937 (delete_gdb_breakpoint_1): New function, loosely based off
12938 delete_gdb_breakpoint_at.
12939 (delete_gdb_breakpoint): New function.
12940 (clear_gdb_breakpoint_conditions): Rename to ...
12941 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12943 (add_condition_to_breakpoint): Make static.
12944 (add_breakpoint_condition): Take a struct breakpoint pointer
12945 instead of an address. Adjust.
12946 (gdb_condition_true_at_breakpoint): Rename to ...
12947 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12949 (gdb_condition_true_at_breakpoint): Reimplement.
12950 (add_breakpoint_commands): Take a struct breakpoint pointer
12951 instead of an address. Adjust.
12952 (gdb_no_commands_at_breakpoint): Rename to ...
12953 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12954 parameter. Return true if no breakpoint was found. Change debug
12956 (gdb_no_commands_at_breakpoint): Reimplement.
12957 (run_breakpoint_commands): Rename to ...
12958 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12959 and change return type to boolean.
12960 (run_breakpoint_commands): New function.
12961 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12962 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12963 breakpoint. Go through the_target->remove_point instead of
12964 assuming memory breakpoint.
12965 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12966 software and hardware breakpoints.
12967 (reinsert_raw_breakpoint): Go through the_target->insert_point
12968 instead of assuming memory breakpoint.
12969 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12970 software and hardware breakpoints.
12971 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12972 Check both software and hardware breakpoints.
12973 (validate_inserted_breakpoint): Assert the breakpoint is a
12974 software breakpoint. Set the inserted flag to -1 instead of
12975 setting shlib_disabled.
12976 (delete_disabled_breakpoints): Adjust.
12977 (validate_breakpoints): Only validate software breakpoints.
12978 Adjust to inserted flag change.
12979 (check_mem_read, check_mem_write): Skip breakpoint types other
12980 than software breakpoints. Adjust to inserted flag change.
12981 * mem-break.h (enum raw_bkpt_type): New enum.
12982 (raw_breakpoint, struct process_info): Forward declare.
12983 (Z_packet_to_target_hw_bp_type): Delete declaration.
12984 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12985 (set_gdb_breakpoint, delete_gdb_breakpoint)
12986 (clear_breakpoint_conditions): New declarations.
12987 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12988 (breakpoint_inserted_here): Update comment.
12989 (add_breakpoint_condition, add_breakpoint_commands): Replace
12990 address parameter with a breakpoint pointer parameter.
12991 (gdb_breakpoint_here): Update comment.
12992 (delete_gdb_breakpoint_at): Delete.
12993 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12994 * server.c (process_point_options): Take a struct breakpoint
12995 pointer instead of an address. Adjust.
12996 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12997 delete_gdb_breakpoint.
12998 * spu-low.c (spu_target_ops): Install NULL as
12999 supports_z_point_type method.
13000 * target.h: Include mem-break.h.
13001 (struct target_ops) <prepare_to_access_memory>: Update comment.
13002 <supports_z_point_type>: New field.
13003 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13004 instead of a char. Also take a raw breakpoint pointer.
13005 * win32-arm-low.c (the_low_target): Install NULL as
13006 supports_z_point_type.
13007 * win32-i386-low.c (i386_supports_z_point_type): New function.
13008 (i386_insert_point, i386_remove_point): Adjust to new interface.
13009 (the_low_target): Install i386_supports_z_point_type.
13010 * win32-low.c (win32_supports_z_point_type): New function.
13011 (win32_insert_point, win32_remove_point): Adjust to new interface.
13012 (win32_target_ops): Install win32_supports_z_point_type.
13013 * win32-low.h (struct win32_target_ops):
13014 <supports_z_point_type>: New method.
13015 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13016 instead of a char. Also take a raw breakpoint pointer.
13018 2014-05-20 Pedro Alves <palves@redhat.com>
13020 * mem-break.h: Include break-common.h.
13021 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13022 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
13023 (Z_packet_to_target_hw_bp_type): New declaration.
13024 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
13025 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
13026 (Z_PACKET_ACCESS_WP): Delete macros.
13027 (Z_packet_to_hw_type): Delete function.
13028 * i386-low.h: Don't include break-common.h here.
13029 (Z_packet_to_hw_type): Delete declaration.
13030 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
13031 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13032 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
13033 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13034 * linux-aarch64-low.c: Don't include break-common.h here.
13035 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13036 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
13037 (Z_packet_to_target_hw_bp_type): Delete function.
13038 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
13040 (mips_insert_point, mips_remove_point): Use
13041 Z_packet_to_target_hw_bp_type.
13043 2014-05-20 Pedro Alves <palves@redhat.com>
13045 * linux-aarch64-low.c: Include break-common.h.
13046 (enum target_point_type): Delete.
13047 (Z_packet_to_point_type): Rename to ...
13048 (Z_packet_to_target_hw_bp_type): ... this, and return a
13049 target_hw_bp_type instead.
13050 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
13051 instead of an enum target_point_type.
13052 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
13054 (aarch64_dr_state_insert_one_point)
13055 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
13056 (aarch64_handle_aligned_watchpoint)
13057 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
13058 Take an enum target_hw_bp_type instead of an enum
13060 (aarch64_supports_z_point_type): New function.
13061 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
13062 use Z_packet_to_target_hw_bp_type.
13064 2014-05-20 Joel Brobecker <brobecker@adacore.com>
13066 * configure.ac: Only use -Werror by default when DEVELOPMENT
13068 * configure: Regenerate.
13070 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
13072 Fix gdbserver qGetTLSAddr for x86_64 -m32.
13073 * linux-x86-low.c (X86_64_USER_REGS): New.
13074 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
13076 2014-04-28 Yao Qi <yao@codesourcery.com>
13078 * Makefile.in (i386-avx512.c): Fix the typo of generated file
13081 2014-04-25 Pedro Alves <palves@redhat.com>
13084 * linux-low.c (linux_attach_fail_reason_string): New function.
13085 (linux_attach_lwp): Delete.
13086 (linux_attach_lwp_1): Rename to ...
13087 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
13088 argument. Remove "initial" parameter. Return int instead of
13089 void. Don't error or warn here.
13090 (linux_attach): Adjust to call linux_attach_lwp. Call error on
13091 failure to attach to the tgid. Call warning when failing to
13093 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
13094 argument. Remove "initial" parameter. Return int instead of
13095 void. Don't error or warn here.
13096 (linux_attach_fail_reason_string): New declaration.
13097 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
13098 interface change. Use linux_attach_fail_reason_string.
13100 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
13101 Walfred Tedeschi <walfred.tedeschi@intel.com>
13103 * Makefile.in: Added rules to handle new files
13104 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
13105 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
13106 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
13107 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
13108 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
13109 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
13110 x32-avx512-linux.o.
13111 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
13112 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
13113 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
13114 i386/x32-avx512.xml.
13115 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
13116 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
13117 i386/x32-avx512-linux.xml.
13118 * i387-fp.c (num_avx512_k_registers): New constant for number
13120 (num_avx512_zmmh_low_registers): New constant for number of
13121 lower ZMM registers (0-15).
13122 (num_avx512_zmmh_high_registers): New constant for number of
13123 higher ZMM registers (16-31).
13124 (num_avx512_ymmh_registers): New contant for number of higher
13125 YMM registers (ymm16-31 added by avx521 on x86_64).
13126 (num_avx512_xmm_registers): New constant for number of higher
13127 XMM registers (xmm16-31 added by AVX512 on x86_64).
13128 (struct i387_xsave): Add space for AVX512 registers.
13129 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
13130 Add code to handle AVX512 registers.
13131 (i387_xsave_to_cache): Add code to handle AVX512 registers.
13132 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
13133 prototypei from generated file.
13134 (tdesc_amd64_avx512_linux): Likewise.
13135 (init_registers_x32_avx512_linux): Likewise.
13136 (tdesc_x32_avx512_linux): Likewise.
13137 (init_registers_i386_avx512_linux): Likewise.
13138 (tdesc_i386_avx512_linux): Likewise.
13139 (x86_64_regmap): Add AVX512 registers.
13140 (x86_linux_read_description): Add code to handle AVX512 XSTATE
13142 (initialize_low_arch): Add code to initialize AVX512 registers.
13144 2014-04-23 Pedro Alves <palves@redhat.com>
13146 * mem-break.c (find_gdb_breakpoint_at): Make static.
13147 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
13149 2014-04-23 Pedro Alves <palves@redhat.com>
13151 * i386-low.c: Don't include break-common.h here.
13152 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13153 prototype to take target_hw_bp_type as argument instead of a Z
13155 * i386-low.h: Include break-common.h here.
13156 (Z_packet_to_hw_type): Declare.
13157 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13159 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13160 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13161 (x86_remove_point): Convert the packet number to a
13162 target_hw_bp_type before calling i386_low_remove_watchpoint.
13163 * win32-i386-low.c (i386_insert_point): Convert the packet number
13164 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13165 (i386_remove_point): Convert the packet number to a
13166 target_hw_bp_type before calling i386_low_remove_watchpoint.
13168 2014-04-23 Pedro Alves <palves@redhat.com>
13170 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13172 2014-04-10 Pedro Alves <palves@redhat.com>
13174 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13175 Check if the condition or command is NULL before checking if the
13176 breakpoint is known. On success, return true.
13177 * mem-break.h (add_breakpoint_condition): Document return.
13178 (add_breakpoint_commands): Add describing comment.
13179 * server.c (skip_to_semicolon): New function.
13180 (process_point_options): Use it.
13182 2014-04-09 Pedro Alves <palves@redhat.com>
13184 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13187 2014-02-27 Pedro Alves <palves@redhat.com>
13190 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13192 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13194 (last_thread_of_process_p): Take a PID argument instead of a
13196 (linux_wait_for_lwp): Delete.
13197 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13199 (linux_low_filter_event): New function, party factored out from
13200 linux_wait_for_event.
13201 (linux_wait_for_event): Rename to ...
13202 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13203 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13204 sigsuspend. Check for zombie leaders.
13205 (linux_wait_for_event): Reimplement as wrapper around
13206 linux_wait_for_event_filtered.
13207 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13208 a normal or signal exit is seen, it's the whole process exiting.
13209 (wait_for_sigstop): No longer a for_each_inferior callback.
13210 Rewrite on top of linux_wait_for_event_filtered.
13211 (stop_all_lwps): Call wait_for_sigstop directly.
13212 * server.c (resume, handle_target_event): Handle
13213 TARGET_WAITKIND_NO_RESUMED.
13215 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13217 * win32-low.c (psapi_get_dll_name,
13218 * win32_CreateToolhelp32Snapshot): Delete.
13219 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13220 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13222 (handle_load_dll): Add function description.
13223 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13225 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13227 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13229 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13230 base address when calling win32_add_one_solib.
13231 (handle_load_dll): Delete local variable load_addr.
13232 Remove 0x1000 offset applied to DLL base address when calling
13233 win32_add_one_solib.
13234 (handle_unload_dll): Add comment.
13236 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13238 * win32-low.c (win32_add_all_dlls): Renames
13239 win32_ensure_ntdll_loaded. Rewrite function documentation.
13240 Adjust implementation to always load all DLLs.
13241 Add 0x1000 offset to DLL base address when calling
13242 win32_add_one_solib.
13243 (child_initialization_done): New static global.
13244 (do_initial_child_stuff): Set child_initialization_done to
13245 zero during child initialization, and 1 after. Replace call
13246 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13248 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13249 (handle_unload_dll): Add function documentation.
13250 (get_child_debug_event): Ignore load and unload DLL events
13251 during child initialization.
13253 2014-02-20 Doug Evans <dje@google.com>
13255 Remove global all_lwps.
13256 * inferiors.h (ptid_of): Move here from linux-low.h.
13257 (pid_of, lwpid_of): Ditto.
13258 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13259 parameter is a struct thread_info * now.
13260 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13261 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13262 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13264 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13265 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13266 * linux-arm-low.c (update_registers_callback): Update, "entry"
13267 parameter is a struct thread_info * now.
13268 Fetch lwpid from current_inferior directly.
13269 (arm_insert_point): Pass &all_threads to find_inferior instead of
13271 (arm_remove_point): Ditto.
13272 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13273 (arm_prepare_to_resume): Fetch pid from thread.
13274 (arm_read_description): Fetch lwpid from current_inferior directly.
13275 * linux-low.c (all_lwps): Delete.
13276 (delete_lwp): Delete call to remove_inferior.
13277 (handle_extended_wait): Fetch lwpid from thread.
13278 (add_lwp): Don't set lwp->entry.id. Remove call to
13279 add_inferior_to_list.
13280 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13281 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13282 (kill_one_lwp_callback): Ditto.
13283 (linux_kill): Don't dereference NULL pointer.
13284 Fetch ptid,lwpid from thread.
13285 (get_detach_signal): Fetch ptid from thread.
13286 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13287 Simplify call to regcache_invalidate_thread.
13288 (delete_lwp_callback): Update, "entry" parameter is a
13289 struct thread_info * now. Fetch pid from thread.
13290 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13291 (status_pending_p_callback): Update, "entry" parameter is a
13292 struct thread_info * now. Fetch ptid from thread.
13293 (find_lwp_pid): Update, "entry" parameter is a
13294 struct thread_info * now.
13295 (linux_wait_for_lwp): Fetch pid from thread.
13296 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13297 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13298 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13299 (dequeue_one_deferred_signal): Ditto.
13300 (cancel_breakpoint): Fetch ptid from current_inferior.
13301 (linux_wait_for_event): Pass &all_threads to find_inferior,
13302 not &all_lwps. Fetch ptid, lwpid from thread.
13303 (count_events_callback): Update, "entry" parameter is a
13304 struct thread_info * now.
13305 (select_singlestep_lwp_callback): Ditto.
13306 (select_event_lwp_callback): Ditto.
13307 (cancel_breakpoints_callback): Ditto.
13308 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13310 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13311 (unsuspend_one_lwp): Update, "entry" parameter is a
13312 struct thread_info * now.
13313 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13315 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13316 Fetch lwpid from thread, not lwp.
13317 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13318 Pass &all_threads to find_inferior, not &all_lwps.
13319 (send_sigstop): Fetch lwpid from thread, not lwp.
13320 (send_sigstop_callback): Update, "entry" parameter is a
13321 struct thread_info * now.
13322 (suspend_and_send_sigstop_callback): Ditto.
13323 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13324 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13325 struct thread_info * now.
13326 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13328 (lwp_running): Update, "entry" parameter is a
13329 struct thread_info * now.
13330 (stop_all_lwps): Fetch ptid from thread.
13331 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13332 (linux_resume_one_lwp): Fetch lwpid from thread.
13333 (linux_set_resume_request): Update, "entry" parameter is a
13334 struct thread_info * now. Fetch pid, lwpid from thread.
13335 (resume_status_pending_p): Update, "entry" parameter is a
13336 struct thread_info * now.
13337 (need_step_over_p): Ditto. Fetch lwpid from thread.
13338 (start_step_over): Fetch lwpid from thread.
13339 (linux_resume_one_thread): Update, "entry" parameter is a
13340 struct thread_info * now. Fetch lwpid from thread.
13341 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13342 (proceed_one_lwp): Update, "entry" parameter is a
13343 struct thread_info * now. Fetch lwpid from thread.
13344 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13345 struct thread_info * now.
13346 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13347 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13348 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13350 (regsets_store_inferior_registers): Ditto.
13351 (fetch_register, store_register): Ditto.
13352 (linux_read_memory, linux_write_memory): Ditto.
13353 (linux_request_interrupt): Ditto.
13354 (linux_read_auxv): Ditto.
13355 (linux_xfer_siginfo): Ditto.
13356 (linux_qxfer_spu): Ditto.
13357 (linux_qxfer_libraries_svr4): Ditto.
13358 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13359 moved to inferiors.h.
13361 (get_thread_lwp): Update.
13362 (struct lwp_info): Delete member "entry". Simplify comment for
13364 (all_lwps): Delete.
13365 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13366 current_inferior directly.
13367 (update_watch_registers_callback): Update, "entry" parameter is a
13368 struct thread_info * now. Fetch pid from thread.
13369 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13370 (mips_insert_point): Fetch lwpid from current_inferior.
13371 Pass &all_threads to find_inferior, not &all_lwps.
13372 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13373 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13375 (mips_stopped_data_address): Ditto.
13376 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13378 * linux-tile-low.c (tile_arch_setup): Ditto.
13379 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13380 (update_debug_registers_callback): Update, "entry" parameter is a
13381 struct thread_info * now. Fetch pid from thread.
13382 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13383 Pass &all_threads to find_inferior, not &all_lwps.
13384 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13385 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13386 Pass &all_threads to find_inferior, not &all_lwps.
13387 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13388 (i386_dr_low_get_status): Ditto.
13389 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13390 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13391 (x86_linux_read_description): Ditto.
13392 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13394 2014-02-20 Doug Evans <dje@google.com>
13396 * inferiors.c (get_first_inferior): Fix buglet.
13398 2014-02-19 Doug Evans <dje@google.com>
13400 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13401 * inferiors.c (add_thread): Change result type to struct thread_info *.
13402 All callers updated.
13403 (add_lwp): Call add_thread here instead of in callers.
13404 All callers updated.
13405 * linux-low.h (get_lwp_thread): Rewrite.
13406 (struct lwp_info): New member "thread".
13408 2014-02-19 Doug Evans <dje@google.com>
13410 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13411 All callers updated.
13413 2014-02-19 Doug Evans <dje@google.com>
13415 * inferiors.c (add_thread): Fix whitespace.
13417 2014-02-19 Doug Evans <dje@google.com>
13419 * dll.c (clear_dlls): Replace accessing list implemention details
13421 * gdbthread.h (get_first_thread): Declare.
13422 * inferiors.c (for_each_inferior_with_data): New function.
13423 (get_first_thread): New function.
13424 (find_thread_ptid): Simplify.
13425 (get_first_inferior): New function.
13426 (clear_list): Delete.
13427 (one_inferior_p): New function.
13428 (clear_inferior_list): New function.
13429 (clear_inferiors): Update.
13430 * inferiors.h (for_each_inferior_with_data): Declare.
13431 (clear_inferior_list): Declare.
13432 (one_inferior_p): Declare.
13433 (get_first_inferior): Declare.
13434 * linux-low.c (linux_wait_for_event): Replace accessing list
13435 implemention details with API function.
13436 * server.c (target_running): Ditto.
13437 (accumulate_file_name_length): New function.
13438 (emit_dll_description): New function.
13439 (handle_qxfer_libraries): Replace accessing list implemention
13440 details with API function.
13441 (handle_qxfer_threads_worker): New function.
13442 (handle_qxfer_threads_proper): Replace accessing list implemention
13443 details with API function.
13444 (handle_query): Ditto.
13445 (visit_actioned_threads_callback_ftype): New typedef.
13446 (visit_actioned_threads_data): New struct.
13447 (visit_actioned_threads): Rewrite to be find_inferior callback.
13448 (resume): Call find_inferior.
13449 (handle_status): Replace accessing list implemention
13450 details with API function.
13451 (process_serial_event): Replace accessing list implemention details
13453 * target.c (set_desired_inferior): Replace accessing list implemention
13454 details with API function.
13455 * tracepoint.c (same_process_p): New function.
13456 (gdb_agent_about_to_close): Replace accessing list implemention
13457 details with API function.
13458 * win32-low.c (child_delete_thread): Replace accessing list
13459 implemention details with API function.
13460 (match_dll_by_basename): New function.
13461 (dll_is_loaded_by_basename): New function.
13462 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13463 details call to dll_is_loaded_by_basename.
13465 2014-02-19 Doug Evans <dje@google.com>
13467 * dll.h (struct dll_info): Add comment.
13468 * gdbthread.h (struct thread_info): Add comment.
13469 (current_ptid): Simplify.
13470 * inferiors.c (add_process): Update.
13471 (remove_process): Update.
13472 * inferiors.h (struct process_info): Rename member "head" to "entry".
13473 * linux-low.c (delete_lwp): Update.
13475 (last_thread_of_process_p): Update.
13476 (kill_one_lwp_callback, linux_kill): Update.
13477 (status_pending_p_callback): Update.
13478 (wait_for_sigstop): Update. Simplify read of ptid.
13479 (start_step_over): Update.
13480 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13481 (get_lwp_thread): Update.
13482 (struct lwp_info): Rename member "head" to "entry".
13483 * regcache.h (inferior_list_entry): Delete.
13484 * server.c (kill_inferior_callback): Update.
13485 (detach_or_kill_inferior_callback): Update.
13486 (print_started_pid): Update.
13487 (print_attached_pid): Update.
13488 (process_serial_event): Simplify read of ptid.
13489 * thread-db.c (thread_db_create_event): Update.
13490 (thread_db_get_tls_address): Update.
13491 * win32-low.c (current_inferior_ptid): Simplify.
13493 2014-02-19 Tom Tromey <tromey@redhat.com>
13495 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13497 (target_supports_btrace): Update.
13499 2014-02-14 Yao Qi <yao@codesourcery.com>
13501 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13502 (rsp-low-ipa.o): New target.
13504 2014-02-12 Tom Tromey <tromey@redhat.com>
13506 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13507 convert_ascii_to_int.
13508 * regcache.c (registers_to_string): Likewise.
13509 * remote-utils.c (decode_M_packet): Likewise.
13510 * server.c (process_serial_event): Likewise.
13512 2014-02-12 Tom Tromey <tromey@redhat.com>
13514 * server.c (handle_query, handle_v_run): Use hex2bin, not
13516 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13518 2014-02-12 Tom Tromey <tromey@redhat.com>
13520 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13521 convert_int_to_ascii.
13522 * regcache.c (registers_to_string, collect_register_as_string):
13524 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13526 * server.c (process_serial_event): Likewise.
13527 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13528 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13530 2014-02-12 Tom Tromey <tromey@redhat.com>
13532 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13533 bin2hex, not hexify.
13534 * tracepoint.c (cmd_qtstatus): Likewise.
13536 2014-02-12 Tom Tromey <tromey@redhat.com>
13538 * remote-utils.c (monitor_output): Pass explicit length to
13541 2014-02-12 Tom Tromey <tromey@redhat.com>
13543 * tracepoint.c: Include rsp-low.h.
13544 * server.c: Include rsp-low.h.
13545 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13546 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13548 * remote-utils.c: Include rsp-low.h.
13549 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13550 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13551 (convert_int_to_ascii, convert_ascii_to_int): Move to
13553 * regcache.c: Include rsp-low.h.
13554 * ax.c: Include rsp-low.h.
13555 * Makefile.in (SFILES): Add common/rsp-low.c.
13556 (OBS): Add rsp-low.o.
13557 (rsp-low.o): New target.
13559 2014-02-12 Tom Tromey <tromey@redhat.com>
13561 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13562 Include print-utils.h.
13563 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13564 (plongest, thirty_two, phex_nz): Remove.
13565 * Makefile.in (SFILES): Add common/print-utils.c.
13566 (OBS): Add print-utils.o.
13567 (print-utils-ipa.o): New target.
13568 (print-utils.o): New target.
13569 (IPA_OBJS): Add print-utils-ipa.o.
13571 2014-02-06 Tom Tromey <tromey@redhat.com>
13573 * Makefile.in (SFILES): Fix indentation.
13575 2014-02-05 Doug Evans <dje@google.com>
13577 * linux-low.c (linux_wait_for_event): Improve comment.
13578 (linux_wait_1): Keep current_inferior in sync with event_child.
13580 2014-01-22 Doug Evans <dje@google.com>
13582 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13584 2014-01-22 Doug Evans <dje@google.com>
13586 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13587 * configure: Regenerate.
13588 * config.in: Regenerate.
13589 * Makefile.in (SFILES): Add debug.c.
13590 (OBS): Add debug.o.
13591 * debug.c: New file.
13592 * debug.h: New file.
13593 * linux-aarch64-low.c (*): Update all debugging printfs to use
13594 debug_printf instead of fprintf.
13595 * linux-arm-low.c (*): Ditto.
13596 * linux-cris-low.c (*): Ditto.
13597 * linux-crisv32-low.c (*): Ditto.
13598 * linux-m32r-low.c (*): Ditto.
13599 * linux-sparc-low.c (*): Ditto.
13600 * linux-x86.c (*): Ditto.
13601 * linux-low.c (*): Ditto.
13602 (linux_wait_1): Add calls to debug_enter, debug_exit.
13603 (linux_wait): Remove redundant debugging printf.
13604 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13605 (linux_resume, unstop_all_lwps): Ditto.
13606 * mem-break.c (*): Update all debugging printfs to use
13607 debug_printf instead of fprintf.
13608 * remote-utils.c (*): Ditto.
13609 * thread-db.c (*): Ditto.
13610 * server.c #include <ctype.h>, "gdb_vecs.h".
13611 (debug_threads): Moved to debug.c.
13612 (*): Update all debugging printfs to use debug_printf instead of
13614 (start_inferior): Replace call to fflush with call to debug_flush.
13615 (monitor_show_help): Mention set debug-format.
13616 (parse_debug_format_options): New function.
13617 (handle_monitor_command): Handle "monitor set debug-format".
13618 (gdbserver_usage): Mention --debug-format.
13619 (main): Parse --debug-format.
13620 * server.h (debug_threads): Declaration moved to debug.h.
13621 #include "debug.h".
13622 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13623 trace_debug_1 that uses debug_printf.
13624 (tracepoint_look_up_symbols): Update all debugging printfs to use
13625 debug_printf instead of fprintf.
13627 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13629 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13632 2014-01-17 Pedro Alves <palves@redhat.com>
13635 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13636 defined after including gdb_proc_service.h.
13638 2014-01-16 Doug Evans <dje@google.com>
13640 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13641 (match_dll): Use it.
13643 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13645 * target.h (target_ops) <read_btrace>: Change parameters and
13646 return type to allow error reporting.
13647 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13648 trace reading errors on.
13649 * linux-low.c (linux_low_read_btrace): Pass trace reading
13651 (linux_low_disable_btrace): New.
13653 2014-01-15 Doug Evans <dje@google.com>
13655 * inferiors.c (thread_id_to_gdb_id): Delete.
13656 * inferiors.h (thread_id_to_gdb_id): Delete.
13658 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13660 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13661 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13664 2014-01-08 Pedro Alves <palves@redhat.com>
13666 * server.c (handle_status): Don't discard previous queued stop
13667 replies or thread's pending status here.
13668 (main) <disconnection>: Do it here instead.
13670 2014-01-08 Pedro Alves <palves@redhat.com>
13672 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13673 * server.c (visit_actioned_threads, handle_pending_status): New
13675 (handle_v_cont): Factor out parts to ...
13676 (resume): ... this new function. If in all-stop, and a thread
13677 being resumed has a pending status, report it without actually
13679 (myresume): Adjust to use the new 'resume' function.
13680 (clear_pending_status_callback, set_pending_status_callback)
13681 (find_status_pending_thread_callback): New functions.
13682 (handle_status): Handle the case of multiple threads having
13683 interesting statuses to report. Report threads' real last signal
13684 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13685 with an interesting thread to report the status for, instead of
13686 always reporting the status of the first thread.
13688 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13690 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13691 * gdbreplay.c (gdbreplay_version): Likewise.
13693 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13695 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13696 iov.iov_len with the real length in use.
13698 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13700 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13701 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13702 for all targets that use win32-low.c.
13703 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13704 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13706 2013-12-13 Pedro Alves <palves@redhat.com>
13708 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13709 if equal to TARGET_WAITKIND_LOADED.
13710 * win32-low.c (cached_status): New static global.
13711 (win32_wait): Add declaration.
13712 (do_initial_child_stuff): Flush all initial pending debug events
13713 up to the initial breakpoint.
13714 (win32_wait): If CACHED_STATUS was set, return that instead
13715 of doing a real wait. Remove the code resuming the execution
13716 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13717 during the initial phase. Also remove the code changing
13718 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13719 TARGET_WAITKIND_STOPPED.
13721 2013-12-11 Yao Qi <yao@codesourcery.com>
13723 * notif.c (handle_notif_ack): Return 0 if no notification
13726 2013-11-20 Doug Evans <dje@google.com>
13728 * linux-low.c (linux_set_resume_request): Fix comment.
13730 2013-11-20 Doug Evans <dje@google.com>
13732 * linux-low.c (resume_status_pending_p): Tweak comment.
13734 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13736 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13737 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13738 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13739 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13740 (srv_amd64_regobj): Add amd64-mpx.o.
13741 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13742 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13743 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13744 * i387-fp.c (num_pl_bnd_register) Added constant.
13745 (num_pl_bnd_cfg_registers) Added constant.
13746 (struct i387_xsave) Added reserved area and MPX fields.
13747 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13748 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13750 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13751 (init_registers_amd64_mpx_linux): Declare new function.
13752 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13753 (x86_64_regmap): Add MPX registers.
13754 (x86_linux_read_description): Add MPX case.
13755 (initialize_low_arch): Initialize MPX targets.
13757 2013-11-18 Tom Tromey <tromey@redhat.com>
13759 * configure: Rebuild.
13760 * configure.ac: Don't check for stdlib.h.
13761 * gdbreplay.c: Unconditionally include stdlib.h.
13763 2013-11-18 Tom Tromey <tromey@redhat.com>
13765 * config.in: Rebuild.
13766 * configure: Rebuild.
13767 * configure.ac: Don't use AC_HEADER_DIRENT.
13769 2013-11-18 Tom Tromey <tromey@redhat.com>
13771 * server.h: Don't check HAVE_STRING_H.
13772 * gdbreplay.c: Don't check HAVE_STRING_H.
13773 * configure: Rebuild.
13775 2013-11-18 Tom Tromey <tromey@redhat.com>
13777 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13780 2013-11-08 Tom Tromey <tromey@redhat.com>
13782 * configure, config.in: Rebuild.
13783 * configure.ac: Remove unused configury.
13785 2013-11-08 Tom Tromey <tromey@redhat.com>
13787 * acinclude.m4: Include common.m4, codeset.m4.
13788 * configure, config.in: Rebuild.
13789 * configure.ac: Use GDB_AC_COMMON.
13791 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13793 * linux-s390-low.c (HWCAP_S390_TE): New define.
13794 (s390_arch_setup): Consider the TE field in the HWCAP for
13795 determining 'have_regset_tdb'.
13797 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13800 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13803 2013-10-02 Pedro Alves <palves@redhat.com>
13805 * server.c (process_serial_event): Don't output "GDBserver
13806 exiting" if GDB is connected through stdio.
13807 * target.c (mywait): Likewise, be silent if GDB is connected
13810 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13812 * lynx-low.c (lynx_add_threads_after_attach): New function.
13813 (lynx_attach): Remove call to add_thread. Add call to
13814 lynx_add_threads_after_attach instead.
13816 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13818 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13819 * config.in, configure: Regenerated.
13821 2013-09-18 Yao Qi <yao@codesourcery.com>
13824 * server.c (start_inferior): Clear 'resume_info'.
13826 2013-09-16 Jiong Wang <jiwang@tilera.com>
13828 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13831 2013-09-16 Jiong Wang <jiwang@tilera.com>
13833 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13834 linux-tile-low.o to srv_tgtobj.
13836 2013-09-16 Will Newton <will.newton@linaro.org>
13838 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13841 2013-09-06 Pedro Alves <palves@redhat.com>
13843 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13844 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13845 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13846 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13847 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13848 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13850 2013-09-06 Pedro Alves <palves@redhat.com>
13852 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13853 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13855 2013-09-06 Pedro Alves <palves@redhat.com>
13857 * linux-amd64-ipa.c: Include tracepoint.h.
13858 * linux-i386-ipa.c: Include tracepoint.h.
13860 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13862 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13863 (ps_get_thread_area): New function.
13865 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13867 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13868 (initialize_low_arch): Call init_registers_crisv32 rather than
13869 init_register_crisv32.
13871 2013-09-05 Pedro Alves <palves@redhat.com>
13873 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13875 * hostio.h: ... this new file.
13876 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13877 win32-low.c: Include hostio.h.
13879 2013-09-05 Pedro Alves <palves@redhat.com>
13881 * server.h (gdb_client_data, handler_func, callback_handler_func)
13882 (delete_file_handler, add_file_handler, append_callback_event)
13883 (delete_callback_event, start_event_loop, initialize_event_loop):
13884 Move to event-loop.h and include it.
13885 * event-loop.h: New file.
13887 2013-09-05 Pedro Alves <palves@redhat.com>
13889 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13890 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13891 (loaded_dll, unloaded_dll): Move to ...
13892 * dll.h: ... this new file.
13893 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13895 2013-09-05 Pedro Alves <palves@redhat.com>
13897 * server.h (current_process, get_thread_process, all_processes)
13898 (add_inferior_to_list, for_each_inferior, current_inferior)
13899 (remove_inferior, add_process, remove_process, find_process_pid)
13900 (have_started_inferiors_p, have_attached_inferiors_p)
13901 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13902 (clear_inferiors, find_inferior, find_inferior_id)
13903 (inferior_target_data, set_inferior_target_data)
13904 (inferior_regcache_data, set_inferior_regcache_data): Move to
13905 inferiors.h, and include it.
13906 * inferiors.h: New file.
13908 2013-09-05 Pedro Alves <palves@redhat.com>
13910 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13914 2013-09-05 Pedro Alves <palves@redhat.com>
13916 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13918 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13919 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13920 (handle_tracepoint_general_set, handle_tracepoint_query)
13921 (tracepoint_finished_step, tracepoint_was_hit)
13922 (release_while_stepping_state_list, current_traceframe)
13923 (in_readonly_region, traceframe_read_mem)
13924 (fetch_traceframe_registers, traceframe_read_sdata)
13925 (traceframe_read_info, struct fast_tpoint_collect_status)
13926 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13927 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13928 (supply_fast_tracepoint_registers)
13929 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13930 (ipa_tdesc, claim_trampoline_space)
13931 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13932 (agent_mem_read, agent_get_trace_state_variable_value)
13933 (agent_set_trace_state_variable_value, agent_tsv_read)
13934 (agent_mem_read_string, get_raw_reg_func_addr)
13935 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13936 * tracepoint.h: ... this new file.
13938 2013-09-05 Pedro Alves <palves@redhat.com>
13940 * server.h (perror_with_name, error, fatal, warning, paddress)
13941 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13943 * utils.h: New file.
13945 2013-09-05 Pedro Alves <palves@redhat.com>
13947 * server.h (remote_debug, noack_mode, transport_is_reliable)
13948 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13949 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13950 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13951 (write_enn, initialize_async_io, enable_async_io)
13952 (disable_async_io, check_remote_input_interrupt_request)
13953 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13954 (dead_thread_notify, prepare_resume_reply)
13955 (decode_address_to_semicolon, decode_address, decode_m_packet)
13956 (decode_M_packet, decode_X_packet, decode_xfer_write)
13957 (decode_search_memory_packet, unhexify, hexify)
13958 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13959 (look_up_one_symbol, relocate_instruction)
13960 (monitor_output): Move to remote-utils.h, and include it.
13961 * remote-utils.h: New file.
13963 2013-09-05 Pedro Alves <palves@redhat.com>
13965 * server.h (_): Delete.
13967 2013-09-02 Pedro Alves <palves@redhat.com>
13969 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13970 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13972 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13974 2013-09-02 Pierre Muller <muller@sourceware.org>
13976 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13977 or WriteProcessMemory complete successfully and handle
13978 ERROR_PARTIAL_COPY error.
13980 2013-09-02 Pedro Alves <palves@redhat.com>
13982 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13983 error instead of EIO.
13985 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13988 * linux-low.c: Include filestuff.h.
13989 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13990 * lynx-low.c: Include filestuff.h.
13991 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13992 * server.c: Include filestuff.h.
13993 (main): Call notice_open_fds.
13994 * spu-low.c: Include filestuff.h.
13995 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13997 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
13999 * Makefile.in: Explain why ../target and ../nat are not
14000 listed as include file search paths.
14001 (linux-waitpid.o): New object file rule.
14002 * configure.srv (srv_native_linux_obj): New variable.
14003 Replace all occurrences of linux native object files with
14004 $srv_native_linux_obj.
14005 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
14006 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
14007 (linux_enable_event_reporting): Remove declaration.
14008 (my_waitpid): Moved to common/linux-waitpid.c.
14009 (linux_wait_for_event): Pass ptid when calling
14010 linux_enable_event_reporting.
14011 (linux_supports_tracefork_flag): Remove.
14012 (linux_enable_event_reporting): Likewise.
14013 (linux_tracefork_grandchild): Remove.
14014 (STACK_SIZE): Moved to common/linux-ptrace.c.
14015 (linux_tracefork_child): Remove.
14016 (linux_test_for_tracefork): Remove.
14017 (linux_look_up_symbols): Call linux_supports_traceclone.
14018 (initialize_low): Remove call to linux_test_for_tracefork.
14019 * linux-low.h (PTRACE_TYPE_ARG3): Move to
14020 common/linux-ptrace.h.
14021 (PTRACE_TYPE_ARG4): Likewise.
14022 Include linux-ptrace.h.
14024 2013-08-21 Pedro Alves <palves@redhat.com>
14026 * config.in: Renegerate.
14028 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
14030 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
14031 (SFILES): Remove $(srcdir)/common/target-common.c and
14032 add $(srcdir)/target/waitstatus.c.
14033 (OBS): Remove target-common.o and add waitstatus.o.
14034 (server_h): Remove $(srcdir)/../common/target-common.h and
14035 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
14036 and $(srcdir)/../target/waitstatus.h.
14037 (target-common.o): Remove.
14038 (waitstatus.o): New target object file.
14039 * target.h: Do not include target-common.h and
14040 include target/resume.h, target/wait.h and
14041 target/waitstatus.h.
14043 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
14045 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14046 to PTRACE_TYPE_ARG3.
14047 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14048 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
14050 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
14051 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
14053 2013-07-27 Jie Zhang <jie@codesourcery.com>
14054 Daniel Jacobowitz <dan@codesourcery.com>
14055 Yao Qi <yao@codesourcery.com>
14057 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
14058 (mips-linux-watch.o): New rule.
14059 (mips_linux_watch_h): New variable.
14060 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
14062 * linux-mips-low.c: Include mips-linux-watch.h.
14063 (struct arch_process_info, struct arch_lwp_info): New.
14064 (update_watch_registers_callback): New function.
14065 (mips_linux_new_process, mips_linux_new_thread) New functions.
14066 (mips_linux_prepare_to_resume, mips_insert_point): New
14068 (mips_remove_point, mips_stopped_by_watchpoint): New
14070 (rsp_bp_type_to_target_hw_bp_type): New function.
14071 (mips_stopped_data_address): New function.
14072 (the_low_target): Add watchpoint support functions.
14074 2013-07-27 Yao Qi <yao@codesourcery.com>
14076 * i386-low.c: Include break-common.h.
14077 (enum target_hw_bp_type): Remove.
14079 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
14081 * Makefile.in (SFILES): /common/target-common.c.
14082 (OBS): Add target-common.o.
14083 (server_h): Add $(srcdir)/../common/target-common.h.
14084 (target-common.o): New target.
14085 * server.c (queue_stop_reply_callback): Free
14086 status string after use.
14087 * target.c (target_waitstatus_to_string): Remove.
14088 * target.h: Include target-common.h.
14089 (resume_kind): Likewise.
14090 (target_waitkind): Likewise.
14091 (target_waitstatus): Likewise.
14092 (TARGET_WNOHANG): Likewise.
14094 2013-07-04 Yao Qi <yao@codesourcery.com>
14096 * Makefile.in (host_alias): Use @host_noncanonical@.
14097 (target_alias): Use @target_noncanonical@.
14098 * configure.ac: Use ACX_NONCANONICAL_TARGET and
14099 ACX_NONCANONICAL_HOST.
14100 * configure: Regenerated.
14103 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14105 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14106 * configure: Rebuild.
14107 * Makefile.in (version_host, version_target): Get from configure.
14108 (version.c): Use $(version_host) and $(version_target).
14110 2013-07-03 Pedro Alves <palves@redhat.com>
14112 * Makefile.in (config.status): Depend on development.sh.
14113 * acinclude.m4: Include libmcheck.m4.
14114 * configure: Regenerate.
14116 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14118 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
14119 attribute inside the parentheses.
14120 (winapi_DebugSetProcessKillOnExit): Ditto.
14121 (winapi_DebugBreakProcess): Ditto.
14122 (winapi_GenerateConsoleCtrlEvent): Ditto.
14124 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14126 * notif.h (notif_event): Add a dummy member to avoid compiler
14129 2013-07-01 Pedro Alves <palves@redhat.com>
14131 * hostio.c (HOSTIO_PATH_MAX): Define.
14132 (require_filename, handle_open, handle_unlink, handle_readlink):
14135 2013-07-01 Pedro Alves <palves@redhat.com>
14137 * server.h: Include "pathmax.h".
14138 * linux-low.c: Don't include sys/param.h.
14139 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
14141 * win32-low.c: Don't include sys/param.h.
14142 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
14144 2013-07-01 Pedro Alves <palves@redhat.com>
14146 * event-loop.c: Don't check HAVE_UNISTD_H before including
14148 * gdbreplay.c: Likewise.
14149 * remote-utils.c: Likewise.
14150 * server.c: Likewise.
14151 * configure.ac: Don't check for unistd.h.
14152 * configure: Regenerate.
14154 2013-06-28 Tom Tromey <tromey@redhat.com>
14156 * Makefile.in (version.c): Use version.in, not
14159 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14161 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14162 * configure: Rebuild.
14163 * Makefile.in (version_host, version_target): Get from configure.
14164 (version.c): Use $(version_host) and $(version_target).
14166 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14168 Fix trace-status to output user name without trailing colon.
14169 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14171 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14173 Fix trace-status to output proper start-time and stop-time.
14174 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14175 output start time and stop time in hex as gdb expects.
14177 2013-06-26 Pedro Alves <pedro@codesourcery.com>
14179 * tracepoint.c (build_traceframe_info_xml): Output trace state
14180 variables present in the trace buffer.
14182 2013-06-24 Tom Tromey <tromey@redhat.com>
14184 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14186 (version.o): Remove.
14187 * gdbreplay.c: Include version.h.
14188 (version, host_name): Don't declare.
14189 * server.h: Include version.h.
14190 (version, host_name): Don't declare.
14192 2013-06-12 Pedro Alves <palves@redhat.com>
14194 * linux-x86-low.c (linux_is_elf64): Delete global.
14195 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14196 with local linux_pid_exe_is_elf_64_file use.
14198 2013-06-11 Pedro Alves <palves@redhat.com>
14200 * linux-low.c (regset_disabled, disable_regset): New functions.
14201 (regsets_fetch_inferior_registers)
14202 (regsets_store_inferior_registers): Use them.
14203 (initialize_regsets_info); Don't allocate the disabled_regsets
14205 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14208 2013-06-11 Pedro Alves <palves@redhat.com>
14210 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14213 2013-06-11 Pedro Alves <palves@redhat.com>
14215 * linux-x86-low.c (initialize_low_arch): Call
14216 init_registers_x32_avx_linux.
14218 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14220 Fix compatibility with Android Bionic.
14221 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14224 2013-06-07 Pedro Alves <palves@redhat.com>
14227 * Makefile.in (OBS): Add tdesc.o.
14228 (IPA_OBJS): Add tdesc-ipa.o.
14229 (tdesc-ipa.o): New rule.
14230 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14232 * linux-low.c (new_inferior): Delete.
14233 (disabled_regsets, num_regsets): Delete.
14234 (linux_add_process): Adjust to set the new per-process
14236 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14237 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14238 was a stop. When calling arch_setup, switch the current inferior
14239 to the thread that got an event.
14240 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14241 (regsets_fetch_inferior_registers)
14242 (regsets_store_inferior_registers): New regsets_info parameter.
14244 (linux_register_in_regsets): New regs_info parameter. Adjust to
14246 (register_addr, fetch_register, store_register): New usrregs_info
14247 parameter. Adjust to use it.
14248 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14249 parameter regs_info. Adjust to use it.
14250 (linux_fetch_registers): Get the current inferior's regs_info, and
14252 (linux_store_registers): Ditto.
14253 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14254 (initialize_low): Don't initialize the target_regsets here. Call
14255 initialize_low_arch.
14256 * linux-low.h (target_regsets): Delete declaration.
14257 (struct regsets_info): New.
14258 (struct usrregs_info): New.
14259 (struct regs_info): New.
14260 (struct process_info_private) <new_inferior>: New field.
14261 (struct linux_target_ops): Delete the num_regs, regmap, and
14262 regset_bitmap fields. New field regs_info.
14263 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14264 * i387-fp.c (num_xmm_registers): Delete.
14265 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14266 calls to new interface.
14267 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14268 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14269 Infer the number of xmm registers from the regcache's target
14271 * i387-fp.h (num_xmm_registers): Delete.
14272 * inferiors.c (add_thread): Don't install the thread's regcache
14274 * proc-service.c (gregset_info): Fetch the current inferior's
14275 regs_info. Adjust to use it.
14276 * regcache.c: Include tdesc.h.
14277 (register_bytes, reg_defs, num_registers)
14278 (gdbserver_expedite_regs): Delete.
14279 (get_thread_regcache): If the thread doesn't have a regcache yet,
14280 create one, instead of aborting gdbserver.
14281 (regcache_invalidate_one): Rename to ...
14282 (regcache_invalidate_thread): ... this.
14283 (regcache_invalidate_one): New.
14284 (regcache_invalidate): Only invalidate registers of the current
14286 (init_register_cache): Add target_desc parameter, and use it.
14287 (new_register_cache): Ditto. Assert the target description has a
14288 non zero registers_size.
14289 (regcache_cpy): Add assertions. Adjust.
14290 (realloc_register_cache, set_register_cache): Delete.
14291 (registers_to_string, registers_from_string): Adjust.
14292 (find_register_by_name, find_regno, find_register_by_number)
14293 (register_cache_size): Add target_desc parameter, and use it.
14294 (free_register_cache_thread, free_register_cache_thread_one)
14295 (regcache_release, register_cache_size): New.
14296 (register_size): Add target_desc parameter, and use it.
14297 (register_data, supply_register, supply_register_zeroed)
14298 (supply_regblock, supply_register_by_name, collect_register)
14299 (collect_register_as_string, collect_register_by_name): Adjust.
14300 * regcache.h (struct target_desc): Forward declare.
14301 (struct regcache) <tdesc>: New field.
14302 (init_register_cache, new_register_cache): Add target_desc
14304 (regcache_invalidate_thread): Declare.
14305 (regcache_invalidate_one): Delete declaration.
14306 (regcache_release): Declare.
14307 (find_register_by_number, register_cache_size, register_size)
14308 (find_regno): Add target_desc parameter.
14309 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14311 * remote-utils.c: Include tdesc.h.
14312 (outreg, prepare_resume_reply): Adjust.
14313 * server.c: Include tdesc.h.
14314 (gdbserver_xmltarget): Delete declaration.
14315 (get_features_xml, process_serial_event): Adjust.
14316 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14318 (struct process_info) <tdesc>: New field.
14319 (ipa_tdesc): Declare.
14320 * tdesc.c: New file.
14321 * tdesc.h: New file.
14322 * tracepoint.c: Include tdesc.h.
14323 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14324 (get_context_regcache): Adjust to pass ipa_tdesc down.
14325 (do_action_at_tracepoint): Adjust to get the register cache size
14326 from the context regcache's description.
14327 (traceframe_walk_blocks): Adjust to get the register cache size
14328 from the current trace frame's description.
14329 (traceframe_get_pc): Adjust to get current trace frame's
14330 description and pass it down.
14331 (gdb_collect): Adjust to get the register cache size from the
14333 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14334 (gdbserver_xmltarget): Delete.
14335 (initialize_low_tracepoint): Set the ipa's target description.
14336 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14337 (initialize_low_tracepoint): Set the ipa's target description.
14338 * linux-x86-low.c: Include tdesc.h.
14339 [__x86_64__] (is_64bit_tdesc): New.
14340 (ps_get_thread_area, x86_get_thread_area): Use it.
14341 (i386_cannot_store_register): Rename to ...
14342 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14343 (i386_cannot_fetch_register): Rename to ...
14344 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14345 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14347 (target_regsets): Rename to ...
14348 (x86_regsets): ... this.
14349 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14351 (x86_siginfo_fixup): Use is_64bit_tdesc.
14352 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14353 (tdesc_x32_avx_linux, tdesc_x32_linux)
14354 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14356 (x86_linux_update_xmltarget): Delete.
14357 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14358 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14359 (AMD64_LINUX_USER64_CS): New.
14360 (x86_linux_read_description): New, based on
14361 x86_linux_update_xmltarget.
14362 (same_process_callback): New.
14363 (x86_arch_setup_process_callback): New.
14364 (x86_linux_update_xmltarget): New.
14365 (x86_regsets_info): New.
14366 (amd64_linux_regs_info): New.
14367 (i386_linux_usrregs_info): New.
14368 (i386_linux_regs_info): New.
14369 (x86_linux_regs_info): New.
14370 (x86_arch_setup): Reimplement.
14371 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14372 (x86_emit_ops): Ditto.
14373 (the_low_target): Adjust. Install x86_linux_regs_info,
14374 x86_cannot_fetch_register, and x86_cannot_store_register.
14375 (initialize_low_arch): New.
14376 * linux-ia64-low.c (tdesc_ia64): Declare.
14377 (ia64_fetch_register): Adjust.
14378 (ia64_usrregs_info, regs_info): New globals.
14379 (ia64_regs_info): New function.
14380 (the_low_target): Adjust.
14381 (initialize_low_arch): New function.
14382 * linux-sparc-low.c (tdesc_sparc64): Declare.
14383 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14385 (sparc_arch_setup): New function.
14386 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14387 (the_low_target): Adjust.
14388 (initialize_low_arch): New function.
14389 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14390 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14391 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14392 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14393 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14394 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14395 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14396 (tdesc_powerpc_isa205_vsx64l): Declare.
14397 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14398 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14399 (ppc_set_pc, ppc_get_hwcap): Adjust.
14400 (ppc_usrregs_info): Forward declare.
14401 (!__powerpc64__) ppc_regmap_adjusted: New global.
14402 (ppc_arch_setup): Adjust to the current process'es target
14404 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14405 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14406 (ppc_store_evrregset): Adjust.
14407 (target_regsets): Rename to ...
14408 (ppc_regsets): ... this, and make static.
14409 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14410 (ppc_regs_info): New function.
14411 (the_low_target): Adjust.
14412 (initialize_low_arch): New function.
14413 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14414 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14415 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14416 (tdesc_s390x_linux64v2): Declare.
14417 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14418 (s390_fill_gregset, s390_store_last_break): Adjust.
14419 (target_regsets): Rename to ...
14420 (s390_regsets): ... this, and make static.
14421 (s390_get_pc, s390_set_pc): Adjust.
14422 (s390_get_hwcap): New target_desc parameter, and use it.
14423 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14424 (s390_arch_setup): Adjust to set the current process'es target
14425 description. Don't adjust the regmap.
14426 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14427 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14428 (regs_info_3264): New globals.
14429 (s390_regs_info): New function.
14430 (the_low_target): Adjust.
14431 (initialize_low_arch): New function.
14432 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14433 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14434 [__mips64] (init_registers_mips_linux)
14435 (init_registers_mips_dsp_linux): Delete defines.
14436 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14437 (have_dsp): New global.
14438 (mips_read_description): New, based on mips_arch_setup.
14439 (mips_arch_setup): Reimplement.
14440 (get_usrregs_info): New function.
14441 (mips_cannot_fetch_register, mips_cannot_store_register)
14442 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14443 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14444 (target_regsets): Rename to ...
14445 (mips_regsets): ... this, and make static.
14446 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14447 (dsp_regs_info, regs_info): New globals.
14448 (mips_regs_info): New function.
14449 (the_low_target): Adjust.
14450 (initialize_low_arch): New function.
14451 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14452 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14454 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14455 (arm_read_description): New, with bits factored from
14457 (arm_arch_setup): Reimplement.
14458 (target_regsets): Rename to ...
14459 (arm_regsets): ... this, and make static.
14460 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14461 (arm_regs_info): New function.
14462 (the_low_target): Adjust.
14463 (initialize_low_arch): New function.
14464 * linux-m68k-low.c (tdesc_m68k): Declare.
14465 (target_regsets): Rename to ...
14466 (m68k_regsets): ... this, and make static.
14467 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14468 (m68k_regs_info): New function.
14469 (m68k_arch_setup): New function.
14470 (the_low_target): Adjust.
14471 (initialize_low_arch): New function.
14472 * linux-sh-low.c (tdesc_sharch): Declare.
14473 (target_regsets): Rename to ...
14474 (sh_regsets): ... this, and make static.
14475 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14476 (sh_regs_info, sh_arch_setup): New functions.
14477 (the_low_target): Adjust.
14478 (initialize_low_arch): New function.
14479 * linux-bfin-low.c (tdesc_bfin): Declare.
14480 (bfin_arch_setup): New function.
14481 (bfin_usrregs_info, regs_info): New globals.
14482 (bfin_regs_info): New function.
14483 (the_low_target): Adjust.
14484 (initialize_low_arch): New function.
14485 * linux-cris-low.c (tdesc_cris): Declare.
14486 (cris_arch_setup): New function.
14487 (cris_usrregs_info, regs_info): New globals.
14488 (cris_regs_info): New function.
14489 (the_low_target): Adjust.
14490 (initialize_low_arch): New function.
14491 * linux-cris-low.c (tdesc_crisv32): Declare.
14492 (cris_arch_setup): New function.
14493 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14494 (cris_regs_info): New function.
14495 (the_low_target): Adjust.
14496 (initialize_low_arch): New function.
14497 * linux-m32r-low.c (tdesc_m32r): Declare.
14498 (m32r_arch_setup): New function.
14499 (m32r_usrregs_info, regs_info): New globals.
14500 (m32r_regs_info): Adjust.
14501 (initialize_low_arch): New function.
14502 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14503 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14504 (tic6x_usrregs_info): Forward declare.
14505 (tic6x_read_description): New function, based on ...
14506 (tic6x_arch_setup): ... this. Reimplement.
14507 (target_regsets): Rename to ...
14508 (tic6x_regsets): ... this, and make static.
14509 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14510 (tic6x_regs_info): New function.
14511 (the_low_target): Adjust.
14512 (initialize_low_arch): New function.
14513 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14514 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14515 (target_regsets): Rename to ...
14516 (xtensa_regsets): ... this, and make static.
14517 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14519 (xtensa_arch_setup, xtensa_regs_info): New functions.
14520 (the_low_target): Adjust.
14521 (initialize_low_arch): New function.
14522 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14523 (nios2_arch_setup): Set the current process'es tdesc.
14524 (target_regsets): Rename to ...
14525 (nios2_regsets): ... this.
14526 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14527 (nios2_regs_info): New function.
14528 (the_low_target): Adjust.
14529 (initialize_low_arch): New function.
14530 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14531 (aarch64_arch_setup): Set the current process'es tdesc.
14532 (target_regsets): Rename to ...
14533 (aarch64_regsets): ... this.
14534 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14535 (aarch64_regs_info): New function.
14536 (the_low_target): Adjust.
14537 (initialize_low_arch): New function.
14538 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14540 (target_regsets): Rename to ...
14541 (tile_regsets): ... this.
14542 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14543 (tile_regs_info): New function.
14544 (tile_arch_setup): Set the current process'es tdesc.
14545 (the_low_target): Adjust.
14546 (initialize_low_arch): New function.
14547 * spu-low.c (tdesc_spu): Declare.
14548 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14549 * win32-arm-low.c (tdesc_arm): Declare.
14550 (arm_arch_setup): New function.
14551 (the_low_target): Install arm_arch_setup instead of
14552 init_registers_arm.
14553 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14554 (init_windows_x86): Rename to ...
14555 (i386_arch_setup): ... this. Set `win32_tdesc'.
14556 (the_low_target): Adjust.
14557 * win32-low.c (win32_tdesc): New global.
14558 (child_add_thread): Don't create the thread cache here.
14559 (do_initial_child_stuff): Set the new process'es tdesc.
14560 * win32-low.h (struct target_desc): Forward declare.
14561 (win32_tdesc): Declare.
14562 * lynx-i386-low.c (tdesc_i386): Declare global.
14563 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14564 * lynx-low.c (lynx_tdesc): New global.
14565 (lynx_add_process): Set the new process'es tdesc.
14566 * lynx-low.h (struct target_desc): Forward declare.
14567 (lynx_tdesc): Declare global.
14568 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14569 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14570 * nto-low.c (nto_tdesc): New global.
14571 (do_attach): Set the new process'es tdesc.
14572 * nto-low.h (struct target_desc): Forward declare.
14573 (nto_tdesc): Declare.
14574 * nto-x86-low.c (tdesc_i386): Declare.
14575 (nto_x86_arch_setup): Set `nto_tdesc'.
14577 2013-06-04 Gary Benson <gbenson@redhat.com>
14579 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14580 to qSupported response when appropriate.
14581 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14582 with nonzero-length annex.
14583 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14584 arguments supplied in annex.
14586 2013-05-31 Doug Evans <dje@google.com>
14589 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14590 64 bits in 64-cross-32 environment.
14592 2013-05-28 Pedro Alves <palves@redhat.com>
14594 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14595 (aarch64-without-fpu.c): Delete rule.
14596 * configure.srv (aarch64*-*-linux*): Remove references to
14597 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14598 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14601 2013-05-24 Pedro Alves <palves@redhat.com>
14603 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14604 instead of strchr/decode_address. Error if the range isn't split
14605 with a ','. Don't assume there's be a ':' in the action.
14607 2013-05-23 Yao Qi <yao@codesourcery.com>
14608 Pedro Alves <palves@redhat.com>
14610 * linux-low.c (lwp_in_step_range): New function.
14611 (linux_wait_1): If the thread was range stepping and stopped
14612 outside the stepping range, report the stop to GDB. Otherwise,
14613 continue stepping. Add range stepping debug output.
14614 (linux_set_resume_request): Copy the step range from the resume
14615 request to the lwp.
14616 (linux_supports_range_stepping): New.
14617 (linux_target_ops) <supports_range_stepping>: Set to
14618 linux_supports_range_stepping.
14619 * linux-low.h (struct linux_target_ops)
14620 <supports_range_stepping>: New field.
14621 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14622 * linux-x86-low.c (x86_supports_range_stepping): New.
14623 (the_low_target) <supports_range_stepping>: Set to
14624 x86_supports_range_stepping.
14625 * server.c (handle_v_cont): Handle 'r' action.
14626 (handle_v_requests): Append ";r" if the target supports range
14628 * target.h (struct thread_resume) <step_range_start,
14629 step_range_end>: New fields.
14630 (struct target_ops) <supports_range_stepping>:
14632 (target_supports_range_stepping): New macro.
14634 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14636 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14637 confusion in comment.
14639 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14641 * lynx-low.c (struct process_info_private): New type.
14642 (lynx_add_process): New function.
14643 (lynx_create_inferior, lynx_attach): Replace calls to
14644 add_process by calls to lynx_add_process.
14645 (lynx_resume): If PTID is null, then try using
14646 current_process()->private->last_wait_event_ptid.
14648 (lynx_clear_inferiors): Delete. The contents of that function
14649 has been inlined in lynx_mourn;
14650 (lynx_wait_1): Save the ptid in the process's private data.
14651 (lynx_mourn): Free the process' private data. Replace call
14652 to lynx_clear_inferiors by call to clear_inferiors.
14654 2013-05-17 Yao Qi <yao@codesourcery.com>
14656 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14659 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14661 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14662 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14663 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14664 PT_TEXT_END_ADDR guards. Update comments.
14665 (linux_target_op) <read_offsets>: Conditionally define to
14666 linux_read_offsets if the target is UCLIBC and if it defines
14667 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14669 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14670 Andrew Jenner <andrew@codesourcery.com>
14672 * Makefile.in (SFILES): Add linux-nios2-low.c.
14673 (clean): Add action to delete nios2-linux.c.
14674 (nios2-linux.c): New rule.
14675 * configure.srv: Add nios2*-*-linux*.
14676 * linux-nios2-low.c: New.
14678 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14680 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14682 2013-04-25 Hui Zhu <hui@codesourcery.com>
14685 * ax.c (ax_printf): Add fflush.
14687 2013-04-22 Tom Tromey <tromey@redhat.com>
14689 * Makefile.in (SFILES): Add filestuff.c.
14690 (OBS): Add filestuff.o.
14691 (filestuff.o): New target.
14692 * config.in, configure: Rebuild.
14693 * configure.ac: Check for fdwalk, pipe2.
14695 2013-04-17 Pedro Alves <palves@redhat.com>
14697 * configure.ac (USE_THREAD_DB): Delete variable.
14698 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14699 Don't AC_SUBST USE_THREAD_DB.
14700 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14701 * config.in, configure: Regenerate.
14703 2013-04-16 Pedro Alves <palves@redhat.com>
14705 * linux-low.h (struct lwp_info) <thread_known>: Move under
14706 the USE_THREAD_DB #ifdef.
14708 2013-04-16 Pedro Alves <palves@redhat.com>
14710 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14711 (linux-low.o): Delete rule.
14712 * linux-low.h: Always include "gdb_thread_db.h" instead of
14713 conditionally including thread_db.h.
14714 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14717 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14719 * Makefile.in (install-only): Fix make install regression.
14721 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14723 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14724 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14726 * gdbserver.1: Remove.
14728 2013-03-22 Pedro Alves <palves@redhat.com>
14730 * linux-low.c (handle_extended_wait): Don't call
14731 linux_enable_event_reporting.
14733 2013-03-15 Tony Theodore <tonyt@logyst.com>
14736 * Makefile.in (SHELL): Use @SHELL@.
14738 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14740 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14743 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14745 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14746 Remove extraneous NULL element.
14748 2013-03-13 Yao Qi <yao@codesourcery.com>
14750 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14751 'V' block in trace frame.
14753 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14755 * target.h (struct target_ops): Add btrace ops.
14756 (target_supports_btrace): New macro.
14757 (target_enable_btrace): New macro.
14758 (target_disable_btrace): New macro.
14759 (target_read_btrace): New macro.
14760 * gdbthread.h (struct thread_info): Add btrace field.
14761 * server.c: Include btrace-common.h.
14762 (handle_btrace_general_set): New function.
14763 (handle_btrace_enable): New function.
14764 (handle_btrace_disable): New function.
14765 (handle_general_set): Call handle_btrace_general_set.
14766 (handle_qxfer_btrace): New function.
14767 (struct qxfer qxfer_packets[]): Add btrace entry.
14768 * inferiors.c (remove_thread): Disable btrace.
14769 * linux-low: Include linux-btrace.h.
14770 (linux_low_enable_btrace): New function.
14771 (linux_low_read_btrace): New function.
14772 (linux_target_ops): Add btrace ops.
14773 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14774 Add srv_linux_btrace=yes.
14775 (x86_64-*-linux*): Add linux-btrace.o.
14776 Add srv_linux_btrace=yes.
14777 * configure.ac: Define HAVE_LINUX_BTRACE.
14778 * config.in: Regenerated.
14779 * configure: Regenerated.
14781 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14783 * server.c (handle_qxfer): Preserve error message if -3 is
14785 (qxfer): Document the -3 return value.
14787 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14789 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14790 (linux_btrace_h): New variable.
14791 (linux-btrace.o): New rule.
14793 2013-03-08 Stan Shebs <stan@codesourcery.com>
14794 Hafiz Abid Qadeer <abidh@codesourcery.com>
14796 * tracepoint.c (trace_buffer_size): New global.
14797 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14798 (init_trace_buffer): Change to one-argument function. Allocate
14799 trace buffer memory.
14800 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14801 handle QTBuffer:size packet.
14802 (cmd_bigqtbuffer_size): New function.
14803 (initialize_tracepoint): Call init_trace_buffer with
14804 DEFAULT_TRACE_BUFFER_SIZE.
14805 * server.c (handle_query): Add QTBuffer:size in the
14808 2013-03-07 Yao Qi <yao@codesourcery.com>
14810 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14811 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14813 (cmd_qtsp): Adjust condition. Do post increment.
14814 Set cur_action and cur_step_action back to 0.
14816 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14819 * linux-low.c (linux_write_memory): Return early success if LEN is
14822 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14824 * configure.srv: Add x86_64-*-cygwin* as target.
14826 2013-02-28 Tom Tromey <tromey@redhat.com>
14828 * configure.ac: Invoke AC_SYS_LARGEFILE.
14829 * configure, config.in: Rebuild.
14831 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14833 * win32-low.c: Throughout, fix format strings and casts of
14834 printf-like functions to avoid type related warnings on all
14836 (get_child_debug_event): Print dwDebugEventCode as hex since
14837 that's how it's usually documented.
14839 2013-02-28 Yao Qi <yao@codesourcery.com>
14841 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14844 2013-02-27 Jiong Wang <jiwang@tilera.com>
14846 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14847 (reg-tilegx32.c): New rule.
14848 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14849 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14850 different register info initializer according to elf class.
14851 (init_registers_tilgx32): New function. The tilegx32 register info
14853 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14854 (tile_store_gregset): Likewise.
14856 2013-02-27 Yao Qi <yao@codesourcery.com>
14858 * server.c (process_point_options): Print debug message when
14859 debug_threads is true.
14861 2013-02-26 Yao Qi <yao@codesourcery.com>
14863 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14865 2013-02-19 Pedro Alves <palves@redhat.com>
14866 Kai Tietz <ktietz@redhat.com>
14870 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14871 instead of strtoul to extract address from packet.
14872 (process_serial_event) <'z'>: Likewise.
14874 2013-02-18 Yao Qi <yao@codesourcery.com>
14876 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14878 2013-02-14 Pedro Alves <palves@redhat.com>
14882 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14883 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14885 2013-02-14 Pedro Alves <palves@redhat.com>
14887 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14889 2013-02-14 Pedro Alves <palves@redhat.com>
14891 * tracepoint.c (save_string): Delete.
14892 (add_tracepoint_action): Use savestring instead of save_string.
14894 2013-02-12 Pedro Alves <palves@redhat.com>
14896 * linux-xtensa-low.c: Ditto.
14897 * xtensa-xtregs.c: Ditto.
14899 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14901 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14904 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14906 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14907 aarch64_num_wp_regs and aarch64_num_bp_regs to
14908 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14910 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14912 * linux-aarch64-low.c (ps_get_thread_area): Replace
14913 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14915 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14916 Marcus Shawcroft <marcus.shawcroft@arm.com>
14917 Nigel Stephens <nigel.stephens@arm.com>
14918 Yufeng Zhang <yufeng.zhang@arm.com>
14920 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14921 (aarch64.c, aarch64-without-fpu.c): New targets.
14922 * configure.srv (aarch64*-*-linux*): New.
14923 * linux-aarch64-low.c: New file.
14925 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14927 * linux-low.c (handle_extended_wait, linux_create_inferior)
14928 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14929 (dequeue_one_deferred_signal, linux_resume_one_thread)
14930 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14931 (linux_tracefork_grandchild, linux_test_for_tracefork)
14932 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14933 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14934 where the argument is 0.
14936 2013-01-25 Yao Qi <yao@codesourcery.com>
14938 * event-loop.c: Include "queue.h".
14939 (gdb_event_p): New typedef.
14940 (struct gdb_event) <next_event>: Remove.
14941 (event_queue): Change to QUEUE(gdb_event_p).
14942 (async_queue_event): Remove.
14943 (gdb_event_xfree): New.
14944 (initialize_event_loop): New.
14945 (process_event): Use API from QUEUE.
14946 (wait_for_event): Likewise.
14947 * server.c (main): Call initialize_event_loop.
14948 * server.h (initialize_event_loop): Declare.
14950 2013-01-18 Yao Qi <yao@codesourcery.com>
14952 * ax.h (struct eval_agent_expr_context): New.
14953 (gdb_eval_agent_expr): Update declaration.
14954 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14955 TFRAME. Add new argument CTX.
14956 * server.h (struct eval_agent_expr_context): Declare.
14957 (agent_mem_read, agent_tsv_read): Update declaration.
14958 (agent_mem_read_string): Likewise.
14959 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14960 (add_traceframe_block): Add new argument TPOINT.
14961 Increase TPOINT->traceframe_usage.
14962 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14963 eval_tracepoint_agent_expr.
14964 (condition_true_at_tracepoint): Likewise.
14965 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14966 (agent_mem_read_string, agent_tsv_read): Likewise.
14968 2013-01-16 Yao Qi <yao@codesourcery.com>
14970 * linux-low.c (linux_resume_one_lwp): Don't check
14971 'lwp->bp_reinsert != 0'.
14973 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14974 Pedro Alves <palves@redhat.com>
14976 * lynx-low.c (ptrace_request_to_str): Define a temporary
14977 macro and use it to simplify this function's implementation.
14979 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14981 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14984 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14986 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14988 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14990 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14992 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14994 * lynx-low.c (lynx_resume): Use the resume_info parameter
14995 to determine the ptid for the lynx_ptrace call, unless
14996 it is equal to minus_one_ptid, in which case we use the
14997 ptid of the current_inferior.
14998 (lynx_wait_1): After having received a thread create/exit
14999 event, resume the inferior's execution using the signaling
15000 thread's ptid, rather than the old ptid.
15002 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15004 * lynx-low.c (lynx_resume): Delete variable ret.
15006 2013-01-01 Joel Brobecker <brobecker@adacore.com>
15008 * gdbreplay.c (gdbreplay_version): Update copyright year.
15009 * server.c (gdbserver_version): Likewise.
15011 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15013 * lynx-low.c (lynx_wait_1): Add debug trace before adding
15016 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15018 * lynx-low.c (ptrace_request_to_str): Add handling for
15019 PTRACE_GETTRACESIG.
15021 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15023 * lynx-low.c (lynx_attach): Delete variable new_process.
15025 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15027 * lynx-low.c (lynx_create_inferior): Delete variable
15030 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15032 * lynx-low.c (ptrace_request_to_str): Do not handle
15033 PTRACE_GETTHREADLIST if this macro does not exist.
15035 2012-12-15 Yao Qi <yao@codesourcery.com>
15037 * Makefile.in (OBS): Add notif.o.
15038 * notif.c, notif.h: New.
15039 * server.c: Include "notif.h".
15040 (struct vstop_notif) <next>: Remove.
15042 (queue_stop_reply): Update.
15043 (push_event, send_next_stop_reply): Remove.
15044 (discard_queued_stop_replies): Update.
15045 (notif_stop): New variable.
15046 (handle_v_stopped): Remove.
15047 (handle_v_requests): Don't call handle_v_stopped. Call
15048 handle_ack_notif instead.
15049 (queue_stop_reply_callback): Call notif_event_enque instead
15050 of queue_stop_reply.
15051 (handle_status): Don't call send_next_stop_reply, call
15052 notif_write_event instead.
15053 (kill_inferior_callback): Likewise.
15054 (detach_or_kill_inferior_callback): Likewise.
15055 (main): Call initialize_notif.
15056 (process_serial_event): Call QUEUE_is_empty.
15057 (handle_target_event): Call notif_push instead of push event.
15058 * server.h (push_event): Remove declaration.
15060 2012-12-10 Tom Tromey <tromey@redhat.com>
15062 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
15063 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
15066 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
15067 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
15068 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
15069 (amd64-linux-ipa.o, ax.o): Rewrite.
15070 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
15071 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
15072 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
15073 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
15074 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
15075 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
15076 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
15077 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
15078 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
15079 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
15080 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
15081 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
15082 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
15083 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
15084 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
15085 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
15086 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
15087 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
15088 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
15089 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
15090 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
15091 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
15092 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
15093 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
15094 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
15095 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
15096 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
15097 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
15098 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
15099 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
15100 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
15101 (reg-tilegx.o): Remove.
15102 (all_object_files): New macro.
15103 Include .deps files.
15104 * aclocal.m4, configure: Rebuild.
15105 * acinclude.m4: Include depstand.m4, lead-dot.m4.
15106 * configure.ac: Invoke ZW_CREATE_DEPDIR,
15107 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
15109 2012-12-05 Tom Tromey <tromey@redhat.com>
15112 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
15114 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
15116 * configure.ac: Check for linux/perf_event.h.
15117 * config.in: Regenerated.
15118 * configure: Regenerated.
15120 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
15122 * hostio.c (handle_readlink): Decrease buffer size
15123 parameter passed to readlink by one byte.
15125 2012-11-26 Yao Qi <yao@codesourcery.com>
15127 * configure.ac (build_warnings): Append '-Wempty-body'.
15128 * configure: Regenerated.
15129 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
15132 2012-11-15 Pierre Muller <muller@sourceware.org>
15134 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
15135 * config.in: Regenerate.
15136 * configure: Regenerate.
15137 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
15138 Use "gdb_wait.h" header instead of <sys/wait.h> header.
15139 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15140 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
15142 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
15143 instead of <sys/wait.h> header.
15144 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15146 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
15148 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15149 (various make rules): Remove -DGDBSERVER
15151 2012-11-09 Yao Qi <yao@codesourcery.com>
15153 * spu-low.c (current_ptid): Move it to ..
15154 * gdbthread.h: ... here. New.
15155 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15156 * server.c (myresume, process_serial_event): Likewise.
15157 * thread-db.c (thread_db_find_new_threads): Likewise.
15158 * tracepoint.c (run_inferior_command): Likewise.
15160 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
15162 * server.c (handle_search_memory_1): Include access length in
15165 2012-09-05 Michael Brandt <michael.brandt@axis.com>
15167 * linux-crisv32-low.c: Fix compile errors.
15169 2012-09-04 Yao Qi <yao@codesourcery.com>
15171 * tracepoint.c (cmd_qtsv): Adjust debug message.
15172 Don't check CUR_TPOINT.
15174 2012-08-28 Yao Qi <yao@codesourcery.com>
15176 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15177 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15178 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15179 Remove declarations of xmalloc, xreallloc, xstrdup and
15181 * Makefile.in (libiberty_h): New.
15182 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15183 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15185 2012-08-23 Yao Qi <yao@codesourcery.com>
15187 * server.h: Remove declaration of 'xsnprintf'.
15189 2012-08-22 Keith Seitz <keiths@redhat.com>
15191 * server.h: Include build-gnulib-gbserver/config.h.
15192 * gdbreplay.c: Likewise.
15194 2012-08-08 Doug Evans <dje@google.com>
15196 * Makefile.in (SFILES): Add gdb_vecs.c.
15197 (OBS): Add gdb_vecs.o.
15198 (gdb_vecs_h, host_defs_h): New variables.
15199 (thread-db.o): Add $(gdb_vecs_h) dependency.
15200 (gdb_vecs.o): New rule.
15201 * thread-db.c: #include "gdb_vecs.h".
15202 (thread_db_load_search): Use a vector to iterate over path elements.
15203 Handle text appearing after "$pdir".
15205 * configure.ac: Add check for strstr.
15206 * config.in: Regenerate.
15207 * configure: Regenerate.
15209 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15211 * hostio.c (handle_pread): If pread fails, fall back to attempting
15213 (handle_pwrite): Likewise for pwrite.
15215 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15217 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15218 between unsupported TYPE and unimplementable ADDR/LEN combination.
15219 (arm_insert_point): Act on new return value.
15221 2012-07-31 Pedro Alves <palves@redhat.com>
15223 * server.c (process_point_options): Only skip tokens if we find
15224 one that is unrecognized. Don't treat 'X' specially while
15225 skipping unrecognized tokens.
15227 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15229 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15230 to 4-byte-align HW breakpoint addresses for Thumb.
15232 2012-07-27 Yao Qi <yao@codesourcery.com>
15236 * server.h: Declare gdb_agent_about_to_close.
15237 * target.c (kill_inferior): Include "agent.h".
15238 New. Send command 'kill'.
15239 * target.h (kill_inferior): Removed macro.
15240 * tracepoint.c (gdb_agent_about_to_close): New.
15241 (gdb_agent_helper_thread): Handle command 'close'.
15242 Wait endlessly until the inferior stops.
15243 Install gdb_agent_remove_socket to atexit hook.
15244 (agent_socket_name): New static variable.
15245 (gdb_agent_socket_init): Replace local variable 'name' with
15246 'agent_socket_name'.
15247 (gdb_agent_remove_socket): New.
15249 2012-07-27 Yao Qi <yao@codesourcery.com>
15251 * server.c (process_point_options): Stop at 'X' when parsing.
15253 2012-07-19 Michael Eager <eager@eagercon.com>
15255 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
15257 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15258 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15259 hardware breakpoint.
15261 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15263 * gdbserver/linux-low.c (initialize_low): Call
15264 linux_ptrace_init_warnings.
15266 2012-07-02 Doug Evans <dje@google.com>
15268 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15271 2012-07-02 Stan Shebs <stan@codesourcery.com>
15273 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15274 (ax.o): Add it to build rule.
15276 (OBS): Add format.o.
15277 (IPA_OBS): Add format.o.
15278 * server.c (handle_query): Claim support for breakpoint commands.
15279 (process_point_options): Add command case.
15280 (process_serial_event): Leave running if there are printfs in
15282 * mem-break.h (any_persistent_commands): Declare.
15283 (add_breakpoint_commands): Declare.
15284 (gdb_no_commands_at_breakpoint): Declare.
15285 (run_breakpoint_commands): Declare.
15286 * mem-break.c (struct point_command_list): New struct.
15287 (struct breakpoint): New field command_list.
15288 (any_persistent_commands): New function.
15289 (add_commands_to_breakpoint): New function.
15290 (add_breakpoint_commands): New function.
15291 (gdb_no_commands_at_breakpoint): New function.
15292 (run_breakpoint_commands): New function.
15293 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15295 * ax.c: Include format.h.
15296 (ax_printf): New function.
15297 (gdb_eval_agent_expr): Add printf opcode.
15299 2012-06-13 Yao Qi <yao@codesourcery.com>
15301 * server.c (start_inferior): Remove duplicated writes to fields
15302 'last_resume_kind' and 'last_status' of 'current_inferior'.
15304 2012-06-12 Yao Qi <yao@codesourcery.com>
15305 Pedro Alves <palves@redhat.com>
15307 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15309 * server.c (handle_v_cont): Extend comment.
15311 2012-06-11 Yao Qi <yao@codesourcery.com>
15313 * linux-low.c (linux_attach): Add 'static'.
15315 2012-06-06 Yao Qi <yao@codesourcery.com>
15317 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15319 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15321 Fix gcc -flto compilation warning.
15322 * server.c (main): Make variable multi_mode and attach volatile.
15324 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15326 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15327 if the platform doesn't know about it.
15329 2012-05-30 Jeff Kenton <jkenton@tilera.com>
15331 * Makefile.in (SFILES): Add linux-tile-low.c.
15332 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15333 * configure.srv: Handle tilegx-*-linux*.
15334 * linux-tile-low.c: New file.
15336 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15338 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15340 2012-05-24 Pedro Alves <palves@redhat.com>
15344 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
15346 2012-05-24 Pedro Alves <palves@redhat.com>
15350 Replace target_signal with gdb_signal throughout.
15352 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15354 * linux-low.c (linux_store_registers): Avoid the copying sequence
15355 when no data has been retrieved by ptrace.
15357 2012-05-22 Will Deacon <will.deacon@arm.com>
15359 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15360 Include asm/ptrace.h.
15361 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15364 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15366 * linux-low.c (linux_store_registers): Don't re-retrieve data
15367 with ptrace that has already been obtained from /proc. Always
15368 copy any data retrieved with ptrace to the buffer supplied.
15370 2012-05-11 Yao Qi <yao@codesourcery.com>
15371 Pedro Alves <palves@redhat.com>
15373 * linux-low.c (enum stopping_threads_kind): New.
15374 (stopping_threads): Change type to `enum stopping_threads_kind'.
15375 (handle_extended_wait): If stopping and suspending threads, leave
15376 the new_lwp suspended too.
15377 (linux_wait_for_event): Adjust.
15378 (stop_all_lwps): Set `stopping_threads' to
15379 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15380 whether we're suspending threads or just stopping them. Assert no
15383 2012-04-29 Yao Qi <yao@codesourcery.com>
15385 * server.h: Move some code to ...
15386 * gdbthread.h: ... here. New.
15387 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15388 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15389 (nto-low.o, win32-low.o): Likewise.
15390 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15391 * regcache.c, remote-utils.c, server.c: Likewise.
15392 * target.c, tracepoint.c, win32-low.c: Likewise.
15394 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15396 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15397 (PTRACE_ARG4_TYPE): Likewise.
15398 (PTRACE_XFER_TYPE): Likewise.
15399 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15400 ptrace to PTRACE_ARG3_TYPE.
15401 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15402 (PTRACE_ARG4_TYPE): Likewise.
15403 (PTRACE_XFER_TYPE): Likewise.
15404 (linux_detach_one_lwp): Cast fourth argument of
15405 ptrace to long then PTRACE_ARG4_TYPE.
15406 (regsets_fetch_inferior_registers): Cast third argument of
15407 ptrace to long then PTRACE_ARG3_TYPE.
15408 (regsets_store_inferior_registers): Likewise.
15410 2012-04-20 Pedro Alves <palves@redhat.com>
15412 * configure: Regenerate.
15414 2012-04-19 Pedro Alves <palves@redhat.com>
15416 * Makefile.in (GNULIB_BUILDDIR): New.
15417 (LIBGNU, INCGNU, GNULIB_H): Adjust.
15418 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15419 (all, install-only, uninstall, clean-info, all-lib, clean): No
15420 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15421 (maintainer-clean realclean distclean): Use subdir_do.
15423 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
15424 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
15425 * acinclude.m4: Include acx_configure_dir.m4.
15426 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15427 calls. Call AC_PROG_RANLIB. Configure gnulib using
15430 (GNULIB_STDINT_H): Adjust.
15431 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15432 * gdbreplay.c: Include build-gnulib/config.h.
15433 * server.h: Likewise.
15434 * aclocal.m4: Regenerate.
15435 * config.in: Regenerate.
15436 * configure: Regenerate.
15438 2012-04-19 Pedro Alves <palves@redhat.com>
15440 * Makefile.in (LIBGNU, INCGNU): Adjust.
15441 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15442 (all, install-only, uninstall, clean-info, all-lib, clean)
15443 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15444 * configure.ac: Adjust AC_OUTPUT output.
15445 * aclocal.m4: Regenerate.
15446 * configure: Regenerate.
15448 2012-04-19 Pedro Alves <palves@redhat.com>
15450 * Makefile.in (generated_files): New.
15451 (server_h): Remove the explicit dependency on config.h, and depend
15452 on $generated_files.
15454 2012-04-19 Pedro Alves <palves@redhat.com>
15456 * Makefile.in (INCGNU): Add -Ignulib.
15458 2012-04-19 Pedro Alves <palves@redhat.com>
15460 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15461 (INCGNU): ... this, and spell out -I here.
15462 (GNULIB_LIB): Rename to ...
15463 (LIBGNU): ... this.
15464 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15466 2012-04-19 Pedro Alves <palves@redhat.com>
15468 * config.in: Regenerate.
15470 2012-04-19 Pedro Alves <palves@redhat.com>
15472 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15473 * server.h (memmem): Remove declaration.
15474 * config.in: Regenerate.
15475 * configure: Regenerate.
15477 2012-04-19 Yao Qi <yao@codesourcery.com>
15479 * Makefile.in (SFILES): Add common/vec.c.
15483 2012-04-19 Yao Qi <yao@codesourcery.com>
15485 * remote-utils.c (prepare_resume_reply): Replace with macro
15486 target_core_of_thread.
15487 * server.c (handle_qxfer_threads_proper): Likewise.
15488 * target.h (traget_core_of_thread): New macro.
15490 2012-04-18 Pedro Alves <palves@redhat.com>
15492 * aclocal.m4: Regenerate.
15493 * configure: Regenerate.
15495 2012-04-16 Yao Qi <yao@codesourcery.com>
15497 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15498 duplicated on address.
15500 2012-04-16 Yao Qi <yao@codesourcery.com>
15502 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15503 (struct tracepoint_action_ops) <send>: New field.
15504 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15505 (agent_expr_send, x_tracepoint_action_send): New.
15506 (l_tracepoint_action_send): New.
15507 (cmd_qtdp): Download and install tracepoint
15508 according to `use_agent'.
15509 (run_inferior_command): Add one more parameter `len'.
15511 (tracepoint_send_agent): New.
15512 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15514 2012-04-16 Yao Qi <yao@codesourcery.com>
15516 * tracepoint.c (download_tracepoints): Moved to ...
15517 (cmd_qtstart): ... here.
15519 2012-04-14 Yao Qi <yao@codesourcery.com>
15521 * tracepoint.c: Include inttypes.h.
15522 (struct collect_memory_action): Use sized types.
15523 (struct tracepoint): Likewise.
15524 (cmd_qtdp, stop_tracing): Update print specifiers.
15525 (cmd_qtp, response_tracepoint): Likewise.
15526 (collect_data_at_tracepoint): Likewise.
15527 (collect_data_at_step): Likewise.
15529 2012-04-14 Yao Qi <yao@codesourcery.com>
15531 Import gnulib module inttypes.
15532 * aclocal.m4, config.in, configure: Regenerated.
15534 2012-04-14 Yao Qi <yao@codesourcery.com>
15536 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15537 Makefile and config.status at last.
15539 2012-04-13 Yao Qi <yao@codesourcery.com>
15541 * tracepoint.c: Include stdint.h unconditionally.
15543 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15545 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15546 on BFD_HAVE_SYS_PROCFS_TYPE.
15547 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15548 * configure: Regenerate.
15549 * config.in: Likewise.
15551 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15553 * Makefile.in (clean): Also remove x32.c x32-linux.c
15554 x32-avx.c x32-avx-linux.c.
15555 (x32.o): New target.
15557 (x32-linux.o): Likewise.
15558 (x32-linux.c): Likewise.
15559 (x32-avx.o): Likewise.
15560 (x32-avx.c): Likewise.
15561 (x32-avx-linux.o): Likewise.
15562 (x32-avx-linux.c): Likewise.
15564 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15565 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15566 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15567 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15568 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15569 i386/x32-avx-linux.xml.
15571 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15572 (init_registers_x32_avx_linux): Likwise.
15573 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15574 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15576 2012-04-13 Pedro Alves <palves@redhat.com>
15578 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15579 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15580 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15581 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15584 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15586 * linux-x86-low.c (compat_x32_clock_t): New.
15587 (compat_x32_siginfo_t): Likewise.
15588 (compat_x32_siginfo_from_siginfo): Likewise.
15589 (siginfo_from_compat_x32_siginfo): Likewise.
15590 (linux_is_elf64): Likewise.
15591 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15592 and siginfo_from_compat_x32_siginfo for x32.
15593 (x86_arch_setup): Set linux_is_elf64.
15595 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15598 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15600 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15601 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15602 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15603 compatible with process.
15605 2012-04-12 Yao Qi <yao@codesourcery.com>
15607 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15608 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15609 (install-only, install-info, clean): Handle sub dir gnulib.
15610 (all-lib, am--refresh): New targets.
15611 (memmem.o): Remove target.
15612 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15613 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15614 (AC_REPLACE_FUNCS): Remove memmem.
15615 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15616 (AC_OUTPUT): Generate Makefile in gnulib/.
15617 * aclocal.m4, config.in, configure: Regenerated.
15619 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15621 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15623 2012-04-05 Pedro Alves <palves@redhat.com>
15625 -Werror=strict-aliasing
15627 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15630 2012-04-04 Pedro Alves <palves@redhat.com>
15632 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15633 (sparc_store_gregset_from_stack, sparc_store_gregset)
15634 (sparc_breakpoint_at): Fix formatting.
15636 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15638 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15640 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15641 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15642 * config.in: Regenerate.
15643 * configure: Likewise.
15645 2012-03-29 Pedro Alves <palves@redhat.com>
15647 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15648 Correct ptrace arguments.
15650 2012-03-28 Pedro Alves <palves@redhat.com>
15652 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15653 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15654 (IA64_FR1_REGNUM): New defines.
15655 (ia64_fetch_register): New.
15656 (the_low_target): Install it.
15657 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15659 * linux-low.c (linux_fetch_registers): Try the
15660 the_low_target.fetch_register hook first.
15662 * linux-arm-low.c (the_low_target): Adjust.
15663 * linux-bfin-low.c (the_low_target): Adjust.
15664 * linux-cris-low.c (the_low_target): Adjust.
15665 * linux-crisv32-low.c (the_low_target): Adjust.
15666 * linux-m32r-low.c (the_low_target): Adjust.
15667 * linux-m68k-low.c (the_low_target): Adjust.
15668 * linux-mips-low.c (the_low_target): Adjust.
15669 * linux-ppc-low.c (the_low_target): Adjust.
15670 * linux-s390-low.c (the_low_target): Adjust.
15671 * linux-sh-low.c (the_low_target): Adjust.
15672 * linux-sparc-low.c (the_low_target): Adjust.
15673 * linux-tic6x-low.c (the_low_target): Adjust.
15674 * linux-x86-low.c (the_low_target): Adjust.
15675 * linux-xtensa-low.c (the_low_target): Adjust.
15677 2012-03-26 Pedro Alves <palves@redhat.com>
15679 * server.c (handle_qxfer_libraries): Don't bail early if
15680 the_target->qxfer_libraries_svr4 is not NULL.
15682 2012-03-26 Pedro Alves <palves@redhat.com>
15684 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15686 2012-03-23 Pedro Alves <palves@redhat.com>
15688 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15689 "library-list-svr4" element's start tag when the the DSO list is
15692 2012-03-23 Pedro Alves <palves@redhat.com>
15694 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15695 a variable whose type size is the same as the inferior's pointer
15698 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15700 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15702 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15703 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15704 * linux-low.h: Include <signal.h>.
15705 (struct siginfo): Remove forward declaration.
15706 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15709 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15711 * .gitignore: Ignore more files.
15713 2012-03-19 Pedro Alves <palves@redhat.com>
15714 Jan Kratochvil <jan.kratochvil@redhat.com>
15716 * server.c (cont_thread, general_thread): Add describing comments.
15717 (start_inferior): Clear `cont_thread'.
15718 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15721 2012-03-15 Yao Qi <yao@codesourcery.com>
15723 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15725 (cmd_qtdp): ... here.
15727 2012-03-15 Yao Qi <yao@codesourcery.com>
15729 * tracepoint.c (struct tracepoint_action_ops): New.
15730 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15731 (m_tracepoint_action_download): New.
15732 (r_tracepoint_action_download): New.
15733 (x_tracepoint_action_download): New.
15734 (l_tracepoint_action_download): New.
15735 (add_tracepoint_action): Install `action->ops' according type.
15736 (download_tracepoint_1): Move code `download' function pointer
15737 of various tracepoint_action_ops.
15739 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15741 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15742 linux_ptrace_attach_warnings.
15744 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15746 * Makefile.in (linux-ptrace.o): New.
15747 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15748 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15749 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15750 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15751 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15753 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15755 2012-03-08 Yao Qi <yao@codesourcery.com>
15756 Pedro Alves <palves@redhat.com>
15758 Fix PR server/13392.
15759 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15760 offset of JMP insn.
15761 * tracepoint.c (remove_tracepoint): New.
15762 (cmd_qtdp): Call remove_tracepoint when failed to install.
15764 2012-03-07 Pedro Alves <palves@redhat.com>
15766 * linux-low.c (get_detach_signal): New.
15767 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15768 Pass on pending signals to PTRACE_DETACH. Check the result of the
15770 * server.c (program_signals, program_signals_p): New.
15771 (handle_general_set): Handle QProgramSignals.
15772 * server.h (program_signals, program_signals_p): Declare.
15774 2012-03-05 Pedro Alves <palves@redhat.com>
15775 Jan Kratochvil <jan.kratochvil@redhat.com>
15777 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15780 2012-03-03 Yao Qi <yao@codesourcery.com>
15782 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15783 agent_look_up_symbols.
15785 2012-03-03 Yao Qi <yao@codesourcery.com>
15787 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15788 (linux-x86-low.o): Likewise.
15789 * server.h: Remove in_process_agent_loaded.
15790 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15794 2012-03-03 Yao Qi <yao@codesourcery.com>
15796 * tracepoint.c (gdb_agent_capability): New global.
15797 (in_process_agent_loaded_ust): Renamed to
15798 `in_process_agent_supports_ust'.
15800 (in_process_agent_supports_ust): Call agent_capability_check.
15801 (clear_installed_tracepoints): Assert that agent supports
15804 2012-03-03 Yao Qi <yao@codesourcery.com>
15806 * linux-low.c (linux_supports_agent): New.
15807 (linux_target_ops): Initialize field `supports_agent' with
15808 linux_supports_agent.
15809 * target.h (struct target_ops) <supports_agent>: New.
15810 (target_supports_agent): New macro.
15811 * server.c (handle_general_set): Handle packet 'QAgent'.
15812 (handle_query): Send `QAgent+'.
15813 * Makefile.in (server.o): Depends on agent.h.
15815 2012-03-03 Yao Qi <yao@codesourcery.com>
15817 * Makefile.in (OBS): Add agent.o.
15818 Add new rule for agent.o.
15819 Track dependence of tracepoint.c on agent.h.
15820 * tracepoint.c (run_inferior_command_1):
15821 (run_inferior_command): Call agent_run_command.
15822 (gdb_ust_connect_sync_socket): Deleted. Move it to
15824 (resume_thread, stop_thread): Likewise.
15825 (gdb_ust_socket_init): Renamed to ...
15826 (gdb_agent_socket_init): ... New.
15827 (gdb_ust_thread): Renamed to ...
15828 (gdb_agent_helper_thread): ... New.
15829 (gdb_ust_init): Move some code to ...
15830 (gdb_agent_init): ... here. New.
15831 [HAVE_UST]: Call gdb_ust_init.
15832 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15833 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15834 * config.in, configure: Regenerated.
15836 2012-03-02 Pedro Alves <palves@redhat.com>
15838 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15839 * linux-low.c (struct simple_pid_list): New.
15840 (stopped_pids): New a struct simple_pid_list pointer.
15841 (add_to_pid_list, pull_pid_from_list): New.
15842 (handle_extended_wait): Don't assume the first signal new children
15843 report is SIGSTOP. Adjust call to pull_pid_from_list.
15844 (linux_wait_for_lwp): Adjust.
15846 2012-03-02 Yao Qi <yao@codesourcery.com>
15848 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15851 2012-03-02 Yao Qi <yao@codesourcery.com>
15853 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15854 `stop_pc' and `tpoint'. Update caller.
15856 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15858 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15859 * linux-low.c (use_linux_regsets): New macro.
15860 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15861 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15862 (linux_register_in_regsets): New function.
15863 (usr_fetch_inferior_registers): Skip registers covered by
15865 (usr_store_inferior_registers): Likewise.
15866 (usr_fetch_inferior_registers): New macro.
15867 (usr_store_inferior_registers): Likewise.
15868 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15869 (linux_store_registers): Likewise.
15870 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15872 (init_registers_mips64_dsp_linux): Likewise.
15873 (init_registers_mips_linux): New macro.
15874 (init_registers_mips_dsp_linux): Likewise.
15875 (mips_dsp_num_regs): Likewise.
15876 (DSP_BASE, DSP_CONTROL): New fallback macros.
15877 (mips_base_regs): New macro.
15878 (mips_regmap): Use it. Fix the size.
15879 (mips_dsp_regmap): New variable.
15880 (mips_dsp_regset_bitmap): Likewise.
15881 (mips_arch_setup): New function.
15882 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15884 (mips_cannot_store_register): Likewise.
15885 (the_low_target): Update .arch_setup, .num_regs and .regmap
15886 initializers. Add .regset_bitmap initializer.
15887 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15889 * linux-bfin-low.c (the_low_target): Likewise.
15890 * linux-cris-low.c (the_low_target): Likewise.
15891 * linux-crisv32-low.c (the_low_target): Likewise.
15892 * linux-ia64-low.c (the_low_target): Likewise.
15893 * linux-m32r-low.c (the_low_target): Likewise.
15894 * linux-m68k-low.c (the_low_target): Likewise.
15895 * linux-ppc-low.c (the_low_target): Likewise.
15896 * linux-s390-low.c (the_low_target): Likewise.
15897 * linux-sh-low.c (the_low_target): Likewise.
15898 * linux-sparc-low.c (the_low_target): Likewise.
15899 * linux-tic6x-low.c (the_low_target): Likewise.
15900 * linux-x86-low.c (the_low_target): Likewise.
15901 * linux-xtensa-low.c (the_low_target): Likewise.
15902 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15903 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15904 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15906 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15907 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15909 2012-02-29 Yao Qi <yao@codesourcery.com>
15910 Pedro Alves <palves@redhat.com>
15912 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15913 `step_over_finished' is true.
15915 2012-02-27 Pedro Alves <palves@redhat.com>
15917 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15918 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15920 2012-02-27 Pedro Alves <palves@redhat.com>
15923 * linux-low.c (pid_is_stopped): New.
15924 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15926 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
15928 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15931 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15933 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15935 2012-02-24 Luis Machado <lgustavo@codesourcery>
15937 * server.c (handle_query): Advertise support for target-side
15938 breakpoint condition evaluation.
15939 (process_point_options): New function.
15940 (process_serial_event): When inserting a breakpoint, check for
15941 a target-side condition that should be evaluated.
15943 * mem-break.c: Include regcache.h and ax.h.
15944 (point_cond_list_t): New data structure.
15945 (breakpoint) <cond_list>: New field.
15946 (find_gdb_breakpoint_at): Make non-static.
15947 (delete_gdb_breakpoint_at): Clear any target-side
15949 (clear_gdb_breakpoint_conditions): New function.
15950 (add_condition_to_breakpoint): Likewise.
15951 (add_breakpoint_condition): Likewise.
15952 (gdb_condition_true_at_breakpoint): Likewise.
15953 (gdb_breakpoint_here): Return result directly instead
15954 of going through a local variable.
15956 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15957 (clear_gdb_breakpoint_conditions): Likewise.
15958 (add_breakpoint_condition): Likewise.
15959 (gdb_condition_true_at_breakpoint): Likewise.
15961 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15962 (need_step_over_p): Take target-side breakpoint condition into
15965 2012-02-24 Luis Machado <lgustavo@codesourcery>
15967 * server.h: Include tracepoint.h.
15968 (agent_mem_read, agent_get_trace_state_variable_value,
15969 agent_set_trace_state_variable_value,
15970 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15971 get_set_tsv_func_addr): New prototypes.
15973 * ax.h: New include file.
15974 * ax.c: New source file.
15976 * tracepoint.c: Include ax.h.
15977 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15978 agent_expr, eval_result_type): Move to ax.h.
15979 (parse_agent_expr): Rename to ...
15980 (gdb_parse_agent_expr): ... this, make it non-static and move
15982 (unparse_agent_expr) Rename to ...
15983 (gdb_unparse_agent_expr): ... this, make it non-static and move
15985 (eval_agent_expr): Rename to ...
15986 (eval_tracepoint_agent_expr): ... this.
15987 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15988 forward declarations.
15989 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15990 (agent_get_trace_state_variable_value): New function.
15991 (agent_set_trace_state_variable_value): New function.
15992 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15993 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15994 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15995 (condition_true_at_tracepoint): Likewise.
15996 (parse_agent_expr): Rename to ...
15997 (gdb_parse_agent_expr): ... this and move to ax.c.
15998 (unparse_agent_expr): Rename to ...
15999 (gdb_unparse_agent_expr): ... this and move to ax.c.
16000 (gdb_agent_op_name): Move to ax.c.
16001 (eval_agent_expr): Rename to ...
16002 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
16004 (eval_tracepoint_agent_expr): New function.
16005 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
16007 (current_insn_ptr, emit_error, struct bytecode_address): Move to
16009 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
16010 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
16011 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
16012 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
16013 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
16014 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
16015 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
16016 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
16017 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
16018 (compile_bytecodes): Remove forward declaration.
16019 (is_goto_target): Move to ax.c.
16020 (compile_bytecodes): Move to ax.c and call
16021 agent_get_trace_state_variable_value (...) and
16022 agent_set_trace_state_variable_value (...).
16024 * Makefile.in: Update ax.c and IPA dependencies.
16026 2012-02-24 Pedro Alves <palves@redhat.com>
16028 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
16029 (cmd_bigqtbuffer_circular): ... this. Only handle
16030 'QTBuffer:circular:'.
16031 (handle_tracepoint_general_set): Adjust.
16033 2012-02-16 Yao Qi <yao@codesourcery.com>
16035 * inferiors.c: Move code to ...
16036 * dll.c: .... here. New.
16037 * server.h: Declare clear_dlls.
16038 * Makefile.in (SFILES): Add dll.c.
16042 2012-02-11 Yao Qi <yao@codesourcery.com>
16044 * server.c: (handle_monitor_command): Add a new parameter
16046 (handle_query): Update caller.
16048 2012-02-09 Joel Brobecker <brobecker@adacore.com>
16050 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
16051 * configure, config.in: Regenerate.
16052 * hostio.c: Provide an alternate implementation if HAVE_READLINK
16055 2012-02-02 Pedro Alves <palves@redhat.com>
16057 Try SIGKILL first, then PTRACE_KILL.
16058 * linux-low.c (linux_kill_one_lwp): New.
16059 (linux_kill_one_lwp): Rename to ...
16060 (kill_one_lwp_callback): ... this. Use the new
16061 linux_kill_one_lwp.
16063 2012-02-02 Pedro Alves <palves@redhat.com>
16065 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
16068 2012-01-27 Pedro Alves <palves@redhat.com>
16070 * linux-low.c (linux_child_pid_to_exec_file): Delete.
16071 (elf_64_file_p): Make static.
16072 (linux_pid_exe_is_elf_64_file): New.
16073 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
16074 Delete declarations.
16075 (linux_pid_exe_is_elf_64_file): Declare.
16076 * linux-x86-low.c (x86_arch_setup): Use
16077 linux_pid_exe_is_elf_64_file.
16079 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16081 * linux-low.c (linux_wait_for_event_1): Rename to ...
16082 (linux_wait_for_event): ... here and merge it with former
16083 linux_wait_for_event - new variable wait_ptid, use it.
16084 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
16086 2012-01-23 Pedro Alves <palves@redhat.com>
16088 * server.c (main): Avoid yet another case of infinite loop while
16089 detaching/killing after a longjmp.
16091 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16094 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
16096 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
16098 * hostio.c (handle_readlink): New function.
16099 (handle_vFile): Call it to handle "vFile:readlink" packets.
16101 2012-01-20 Pedro Alves <palves@redhat.com>
16102 Ulrich Weigand <ulrich.weigand@linaro.org>
16104 * server.c (handle_v_requests): Only support vAttach and vRun to
16105 start multiple processes when in extended protocol mode.
16107 2012-01-17 Pedro Alves <palves@redhat.com>
16109 * tracepoint.c (initialize_tracepoint): Use mmap instead of
16110 memalign plus mprotect to allocate the scratch buffer.
16112 2012-01-13 Pedro Alves <palves@redhat.com>
16114 * server.c (attach_inferior): Clear `cont_thread'.
16116 2012-01-13 Pedro Alves <palves@redhat.com>
16118 * server.c (main): Avoid infinite loop while detaching/killing
16121 2012-01-09 Doug Evans <dje@google.com>
16123 * server.c (start_inferior): Set last_ptid in --wrapper case.
16125 2012-01-06 Yao Qi <yao@codesourcery.com>
16127 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
16129 [IN_PROCESS_AGENT] (debug_agent): New global variable.
16131 2012-01-04 Yao Qi <yao@codesourcery.com>
16133 * tracepoint.c (cmd_qtdp): Print debug message
16134 for static tracepoint.
16136 2012-01-04 Yao Qi <yao@codesourcery.com>
16138 * tracepoint.c (trace_vdebug): Differentiate debug message
16139 between gdbserver and IPA.
16141 2012-01-03 Yao Qi <yao@codesourcery.com>
16143 * tracepoint.c (tracepoint_was_hit): Don't collect for
16146 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16148 * terminal.h: Reformat copyright header.
16150 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16152 * server.c (gdbserver_version): Update copyright year.
16153 * gdbreplay.c (gdbreplay_version): Likewise.
16155 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16157 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16160 2011-12-18 Hui Zhu <teawater@gmail.com>
16161 * linux-low.c (linux_create_inferior): Save return value to ret.
16163 2011-12-18 Hui Zhu <teawater@gmail.com>
16165 * linux-low.c (linux_create_inferior): Save return value to ret.
16167 2011-12-16 Doug Evans <dje@google.com>
16169 * linux-low.c (linux_create_inferior): If stdio connection,
16170 redirect stdin from /dev/null, stdout to stderr.
16171 * remote-utils.c (remote_is_stdio): New static global.
16172 (remote_connection_is_stdio): New function.
16173 (remote_prepare): Handle stdio connection.
16174 (remote_open): Ditto.
16175 (remote_close): Don't close stdin for stdio connections.
16176 (read_prim,write_prim): New functions. Replace all calls to
16177 read/write to these.
16178 * server.c (main): Watch for "-" argument. Move call to
16179 remote_prepare before start_inferior.
16180 * server.h (STDIO_CONNECTION_NAME): New macro.
16181 (remote_connection_is_stdio): Declare.
16183 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16184 in debugging output.
16186 2011-12-15 Yao Qi <yao@codesourcery.com>
16188 * tracepoint.c: Include sys/syscall.h.
16189 (gdb_ust_thread): Remove preprocessor conditional.
16191 2011-12-14 Pedro Alves <pedro@codesourcery.com>
16193 * linux-low.c (linux_detach_one_lwp): Call
16194 the_low_target.prepare_to_resume before detaching.
16196 2011-12-14 Yao Qi <yao@codesourcery.com>
16198 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16201 2011-12-14 Yao Qi <yao@codesourcery.com>
16203 * i386-low.c (i386_low_stopped_data_address): Initialize local
16204 variable `control'.
16206 2011-12-13 Pedro Alves <pedro@codesourcery.com>
16210 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16211 DR_CONTROL unless necessary. Extend comments.
16212 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16213 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16215 2011-12-13 Yao Qi <yao@codesourcery.com>
16217 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16219 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16221 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16223 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16224 Print new debug message for such case.
16226 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16228 Fix overlapping memcpy.
16229 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16230 the read_inferior_memory transfer.
16231 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16232 write_inferior_memory transfer.
16233 (set_fast_tracepoint_jump): New variable buf. Use it for the
16234 read_inferior_memory and write_inferior_memory transfers.
16235 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16236 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16237 Use it for the write_inferior_memory transfer.
16238 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16241 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16243 * linux-low.c (fetch_register, store_register): Make code
16244 consistent, fix formatting.
16246 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16248 * linux-low.c (usr_store_inferior_registers): Factor out code
16249 to handle individual registers into...
16250 (store_register): ... this new function.
16252 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16254 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16255 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16256 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16257 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16258 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16259 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16260 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16261 (srv_xmlfiles): Add new XML files.
16263 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16265 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16266 (init_registers_s390_linux32v1): Add prototype.
16267 (init_registers_s390_linux32v2): Likewise.
16268 (init_registers_s390_linux64v1): Likewise.
16269 (init_registers_s390_linux64v2): Likewise.
16270 (init_registers_s390x_linux64v1): Likewise.
16271 (init_registers_s390x_linux64v2): Likewise.
16272 (s390_num_regs): Increment to 52.
16273 (s390_regmap): Add orig_r2 register.
16274 (s390_num_regs_3264): Increment to 68.
16275 (s390_regmap_3264): Add orig_r2 register.
16276 (s390_collect_ptrace_register): Handle orig_r2 register.
16277 (s390_supply_ptrace_register): Likewise.
16278 (s390_fill_last_break): New function.
16279 (s390_store_last_break): Likewise.
16280 (s390_fill_system_call): New function.
16281 (s390_store_system_call): Likewise.
16282 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16284 (s390_check_regset): New function.
16285 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16286 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16287 Update target_regsets for available register sets.
16289 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16290 Jan Kratochvil <jan.kratochvil@redhat.com>
16292 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16293 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16295 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16296 * linux-low.h (struct process_info_private): New member r_debug.
16297 * server.c (handle_qxfer_libraries): Call
16298 the_target->qxfer_libraries_svr4.
16299 (handle_qxfer_libraries_svr4): New function.
16300 (qxfer_packets): New entry "libraries-svr4".
16301 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16302 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16303 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16304 PACKET_qXfer_libraries_svr4.
16306 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16308 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16309 PSW address/mask between 8-byte and 16-byte formats.
16310 (s390_supply_ptrace_register): Likewise.
16311 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16312 basic addressing mode bit.
16314 2011-11-24 Stan Shebs <stan@codesourcery.com>
16316 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16318 2011-11-17 Stan Shebs <stan@codesourcery.com>
16320 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16321 (tracing_start_time): New global.
16322 (tracing_stop_time): New global.
16323 (tracing_user_name): New global.
16324 (tracing_notes): New global.
16325 (tracing_stop_note): New global.
16326 (cmd_qtstart): Set traceframe_usage, start_time.
16327 (stop_tracing): Set stop_time.
16328 (cmd_qtstatus): Report additional status.
16329 (cmd_qtp): New function.
16330 (handle_tracepoint_query): Call it.
16331 (cmd_qtnotes): New function.
16332 (handle_tracepoint_general_set): Call it.
16333 (get_timestamp): Rename from tsv_get_timestamp.
16335 2011-11-14 Stan Shebs <stan@codesourcery.com>
16336 Kwok Cheung Yeung <kcy@codesourcery.com>
16338 * linux-x86-low.c (small_jump_insn): New.
16339 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16340 trampoline and error message, build a trampoline and issue a small
16341 jump instruction to it.
16342 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16343 trampoline and error message.
16344 (x86_get_min_fast_tracepoint_insn_len): New.
16345 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16346 * linux-low.h (struct linux_target_ops): Add arguments to
16347 install_fast_tracepoint_jump_pad operation, add new operation.
16348 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16350 (linux_get_min_fast_tracepoint_insn_len): New function.
16351 (linux_target_op): Add new operation.
16352 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16353 (gdb_trampoline_buffer_end): Ditto.
16354 (gdb_trampoline_buffer_error): Ditto.
16355 (struct ipa_sym_addresses): Add fields for new IPA variables.
16356 (symbol_list): Add entries for new IPA variables.
16357 (struct tracepoint): Add fields to hold the address range of the
16358 trampoline used by the tracepoint.
16359 (trampoline_buffer_head): New static variable.
16360 (trampoline_buffer_tail): Ditto.
16361 (claim_trampoline_space): New function.
16362 (have_fast_tracepoint_trampoline_buffer): New function.
16363 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16365 (install_fast_tracepoint): Ditto, also add error buffer argument.
16366 (cmd_qtminftpilen): New function.
16367 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16368 (fast_tracepoint_from_trampoline_address): New function.
16369 (fast_tracepoint_collecting): Handle trampoline as part of jump
16371 (set_trampoline_buffer_space): New function.
16372 (initialize_tracepoint): Initialize new IPA variables.
16373 * target.h (struct target_ops): Add arguments to
16374 install_fast_tracepoint_jump_pad operation, add new
16375 get_min_fast_tracepoint_insn_len operation.
16376 (target_get_min_fast_tracepoint_insn_len): New.
16377 (install_fast_tracepoint_jump_pad): Add arguments.
16378 * server.h (IPA_BUFSIZ): Define.
16379 * linux-i386-ipa.c: Include extra header files.
16380 (initialize_fast_tracepoint_trampoline_buffer): New function.
16381 (initialize_low_tracepoint): Call it.
16382 * server.h (set_trampoline_buffer_space): Declare.
16383 (claim_trampoline_space): Ditto.
16384 (have_fast_tracepoint_trampoline_buffer): Ditto.
16386 2011-11-14 Yao Qi <yao@codesourcery.com>
16388 * server.c (handle_query): Handle InstallInTrace for qSupported.
16389 * tracepoint.c (add_tracepoint): Sort list.
16390 (install_tracepoint, download_tracepoint): New.
16391 (cmd_qtdp): Call them to install and download tracepoints.
16392 (sort_tracepoints): Removed.
16393 (cmd_qtstart): Update.
16395 2011-11-14 Yao Qi <yao@codesourcery.com>
16397 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16398 * mem-break.h: Declare.
16399 * tracepoint.c (cmd_qtstart): Move some code to ...
16400 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16402 (download_tracepoints): Move some code to ...
16403 (download_tracepoint_1): ... here. New.
16405 2011-11-08 Yao Qi <yao@codesourcery.com>
16407 * remote-utils.c (relocate_instruction): A comment fix.
16409 2011-11-07 Joel Brobecker <brobecker@adacore.com>
16411 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16412 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16413 dr_status_mirror and dr_control_mirror from debug_reg_state.
16414 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16415 (i386_initial_stuff): Remove use of deleted globals.
16416 (i386_get_thread_context, i386_set_thread_context,
16417 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16418 from debug_reg_state.
16420 2011-11-05 Yao Qi <yao@codesourcery.com>
16422 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16423 address as TPOINT's.
16425 2011-11-02 Stan Shebs <stan@codesourcery.com>
16427 * tracepoint.c (agent_mem_read_string): New function.
16428 (eval_agent_expr): Call it for tracenz.
16429 * server.c (handle_query): Report support for tracenz.
16431 2011-11-02 Yao Qi <yao@codesourcery.com>
16433 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16435 2011-11-02 Yao Qi <yao@codesourcery.com>
16437 * target.h: Fix a typo in comment.
16439 2011-10-31 Pedro Alves <pedro@codesourcery.com>
16441 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16442 clobber the breakpoints' shadows with fast tracepoint jumps.
16443 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16444 * target.c (write_inferior_memory): Also pass MYADDR down to
16447 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16449 * configure.ac: Check support for personality routine.
16450 * configure: Regenerate.
16451 * config.in: Likewise.
16452 * linux-low.c: Include <sys/personality.h>.
16453 Define ADDR_NO_RANDOMIZE if necessary.
16454 (linux_create_inferior): Disable address space randomization when
16455 forking inferior, if requested.
16456 (linux_supports_disable_randomization): New function.
16457 (linux_target_ops): Install it.
16458 * server.h (disable_randomization): Declare.
16459 * server.c (disable_randomization): New global variable.
16460 (handle_general_set): Handle QDisableRandomization.
16461 (handle_query): Likewise for qSupported.
16462 (main): Support --disable-randomization and --no-disable-randomization
16463 command line arguments.
16464 * target.h (struct target_ops): Add supports_disable_randomization.
16465 (target_supports_disable_randomization): New macro.
16467 2011-09-29 Mike Frysinger <vapier@gentoo.org>
16469 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16471 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16472 [!PT_GETDSBT] (target_loadmap): New definition.
16473 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16474 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16475 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16476 and PT_GETDSBT to LINUX_LOADMAP.
16477 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16478 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16480 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16482 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16483 (arm_linux_hwbp_cap): New static variable.
16484 (arm_linux_get_hwbp_cap): Replace by ...
16485 (arm_linux_init_hwbp_cap): ... this new function.
16486 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16487 (arm_linux_get_hw_watchpoint_count): Likewise.
16488 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16489 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16490 (arm_prepare_to_resume): Use perror_with_name instead of error.
16492 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16494 * linux-arm-low.c: Include <signal.h>.
16495 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16496 (struct arm_linux_hwbp_cap): New data type.
16497 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16498 (struct arm_linux_hw_breakpoint): New data type.
16499 (MAX_BPTS, MAX_WPTS): Define.
16500 (struct arch_process_info, struct arch_lwp_info): New data types.
16501 (arm_linux_get_hwbp_cap): New function.
16502 (arm_linux_get_hw_breakpoint_count): Likewise.
16503 (arm_linux_get_hw_watchpoint_count): Likewise.
16504 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16505 (arm_hwbp_control_initialize): Likewise.
16506 (arm_hwbp_control_is_enabled): Likewise.
16507 (arm_hwbp_control_is_initialized): Likewise.
16508 (arm_hwbp_control_disable): Likewise.
16509 (arm_linux_hw_breakpoint_equal): Likewise.
16510 (arm_linux_hw_point_initialize): Likewise.
16511 (struct update_registers_data): New data structure.
16512 (update_registers_callback: New function.
16513 (arm_insert_point): Likewise.
16514 (arm_remove_point): Likewise.
16515 (arm_stopped_by_watchpoint): Likewise.
16516 (arm_stopped_data_address): Likewise.
16517 (arm_new_process): Likewise.
16518 (arm_new_thread): Likewise.
16519 (arm_prepare_to_resume): Likewise.
16520 (the_low_target): Register arm_insert_point, arm_remove_point,
16521 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16522 arm_new_thread, and arm_prepare_to_resume.
16524 2011-09-15 Stan Shebs <stan@codesourcery.com>
16526 * server.h (struct emit_ops): Add compare-goto fields.
16527 * tracepoint.c (gdb_agent_op_sizes): New table.
16528 (emit_eq_goto): New function.
16529 (emit_ne_goto): New function.
16530 (emit_lt_goto): New function.
16531 (emit_le_goto): New function.
16532 (emit_gt_goto): New function.
16533 (emit_ge_goto): New function.
16534 (is_goto_target): New function.
16535 (compile_bytecodes): Recognize special cases of compare-goto
16536 combinations and call specialized emitters for them.
16537 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16538 (amd64_emit_ne_goto): New function.
16539 (amd64_emit_lt_goto): New function.
16540 (amd64_emit_le_goto): New function.
16541 (amd64_emit_gt_goto): New function.
16542 (amd64_emit_ge_goto): New function.
16543 (amd64_emit_ops): Add the new functions.
16544 (i386_emit_eq_goto): New function.
16545 (i386_emit_ne_goto): New function.
16546 (i386_emit_lt_goto): New function.
16547 (i386_emit_le_goto): New function.
16548 (i386_emit_gt_goto): New function.
16549 (i386_emit_ge_goto): New function.
16550 (i386_emit_ops): Add the new functions.
16552 2011-09-08 Stan Shebs <stan@codesourcery.com>
16554 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16555 (i386_emit_epilogue): Restore %ebx.
16557 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16559 * server.c (step_thread): Remove definition.
16560 (process_serial_event): Don't handle Hs.
16561 * server.h (step_thread): Remove declaration.
16562 * target.c (set_desired_inferior): Remove use of step_thread.
16564 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16566 * linux-low.c: Include linux-procfs.h.
16567 (linux_attach_lwp_1): Update comments.
16568 (linux_attach): Scan for existing threads when attaching to a
16569 process that is the tgid.
16570 * Makefile.in: Update dependencies.
16572 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16574 * configure.srv: Add linux-procfs.o dependencies.
16576 2011-08-14 Yao Qi <yao@codesourcery.com>
16578 * target.h (struct target_ops): Fix indent.
16579 * win32-low.c (win32_target_ops): Fix comment.
16581 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16582 Yao Qi <yao@codesourcery.com>
16584 * Makefile.in (clean): Remove tic6x-*.c files.
16585 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16586 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16587 (tic6x-c64xp-linux.c): Likewise.
16588 * configure.srv: Add support for tic6x-*-uclinux.
16589 * linux-tic6x-low.c: New.
16590 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16592 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16593 Yao Qi <yao@codesourcery.com>
16595 * target.h (struct target_ops): Add read_loadmap.
16596 * linux-low.c (struct target_loadseg): New type.
16597 (struct target_loadmap): New type.
16598 (linux_read_loadmap): New function.
16599 (linux_target_ops): Add linux_read_loadmap.
16600 * server.c (handle_query): Support qXfer:fdpic:read packet.
16601 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16604 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16606 * win32-low.c: Include <stdint.h>.
16608 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16610 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16611 to the inferior here.
16612 (i386_remove_aligned_watchpoint): Ditto.
16613 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16614 fit part of the watchpoint in the debug registers.
16615 (i386_update_inferior_debug_regs): New.
16616 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16617 registers, and only update the inferior on success.
16618 (i386_low_remove_watchpoint): Ditto.
16620 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16622 * linux-low.c (compare_ints, unique, list_threads, show_process,
16623 linux_core_of_thread): Delete.
16624 (linux_target_ops): Change linux_core_of_thread to
16625 linux_common_core_of_thread.
16626 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16627 * utils.c (malloc_failure): Change type of argument.
16628 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16629 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16630 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16631 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16632 (IPA_OBJS): Add common-utils-ipa.o.
16633 (ptid_h, linux_osdata_h): New macros.
16634 (server_h): Add common/common-utils.h, common/xml-utils.h,
16635 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16637 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16638 ptid.o, buffer.o): New rules.
16639 (linux-low.o): Add common/linux-osdata.h as a dependency.
16640 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16641 * configure.ac: Add AC_HEADER_DIRENT check.
16642 * config.in: Regenerate.
16643 * configure: Regenerate.
16644 * remote-utils.c (xml_escape_text): Delete.
16645 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16646 buffer_xml_printf): Move to common/buffer.c.
16647 * server.c (main): Remove call to initialize_inferiors.
16648 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16649 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16650 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16651 internal_error, gdb_assert, gdb_assert_fail): Delete.
16652 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16653 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16655 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16656 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16657 initialize_inferiors): Delete.
16659 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16661 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16664 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16666 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16668 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16670 2011-05-26 Yao Qi <yao@codesourcery.com>
16672 * Makefile.in (thread-db.o): Track dependence to
16673 common/gdb_thread_db.h.
16674 * thread-db.c: include gdb_thread_db.h from right place.
16676 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16678 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16679 __FILE__ and __LINE__ to internal_error.
16681 2011-05-13 Doug Evans <dje@google.com>
16683 * thread-db.c (try_thread_db_load_from_sdir): New function.
16684 (try_thread_db_load_from_dir): New function.
16685 (thread_db_load_search): Handle $sdir, ignore $pdir.
16686 Remove trying of system directories if search of
16687 libthread-db-search-path fails, that is now done via $sdir.
16689 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16691 * server.c (handle_query): Add EnableDisableTracepoints to the list
16692 of supported features.
16693 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16695 (cmd_qtenable_disable): New.
16696 (cmd_qtstart): Install tracepoints even if disabled.
16697 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16698 receiving a QTEnable or QTDisable packet.
16699 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16700 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16702 (gdb_probe): Skip data collection if static tracepoint is disabled.
16704 2011-05-10 Doug Evans <dje@google.com>
16706 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16708 2011-05-04 Doug Evans <dje@google.com>
16710 * linux-low.c (linux_join): Skip process lookup.
16711 * spu-low.c (spu_join): Ditto.
16712 * server.c (join_inferiors_callback): Delete.
16713 (process_serial_event): For 'D' packet (detach) call join_inferior
16716 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16718 * README: Don't mention xscale*-*-linux*.
16719 * configure.srv (xscale*-*-linux*): Don't handle target.
16721 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16723 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16725 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16726 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16727 (i386_emit_void_call_2): Likewise.
16729 2011-04-26 Yao Qi <yao@codesourcery.com>
16731 * linux-low.c: Move common macros to linux-ptrace.h.
16732 Include linux-ptrace.h.
16733 * Makefile.in (linux_ptrace_h): New.
16734 (linux-low.o): Depends on linux-ptrace.h.
16736 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16738 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16739 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16740 (remote_prepare): New function with most of the TCP code from ...
16741 (remote_open): ... here. Detect PORT here unconditionally. Move also
16742 setting transport_is_reliable.
16743 * server.c (run_once): New variable.
16744 (gdbserver_usage): Document it.
16745 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16746 the first run if RUN_ONCE.
16747 * server.h (run_once, remote_prepare): New declarations.
16749 2011-04-19 Tom Tromey <tromey@redhat.com>
16751 * win32-low.c (handle_load_dll): Remove duplicate "the".
16753 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16755 Remove support for old Cygwin 1.5 versions.
16756 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16757 function to avoid warning.
16758 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16761 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16763 * gdbserver/server.h (Macro _): Define it if not available.
16765 2011-03-14 Michael Snyder <msnyder@vmware.com>
16767 * hostio.c (handle_close): Remove unnecessary null test.
16769 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16771 * Makefile.in (maintainer-clean realclean distclean): Remove
16772 "make ... subdir_do" command.
16774 2011-03-10 Michael Snyder <msnyder@vmware.com>
16776 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16778 * server.c (handle_v_run): Free alloced buffer on early return.
16780 2011-03-09 Yao Qi <yao@codesourcery.com>
16783 2011-03-04 Yao Qi <yao@codesourcery.com>
16785 * Makefile.in: Remove GNU make feature --directory.
16787 2011-03-05 Yao Qi <yao@codesourcery.com>
16789 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16790 (subdir_do): New make target. Copied from gdb/Makefile.
16791 (maintainer-clean, realclean, distclean, clean): Call corresponding
16792 make targets in common/Makefile.
16794 2011-02-11 Yao Qi <yao@codesourcery.com>
16796 * configure.ac: Call AC_PROG_RANLIB.
16797 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16798 * configure: Regenerate.
16800 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16802 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16804 2011-03-06 Yao Qi <yao@codesourcery.com>
16806 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16808 2011-03-05 Yao Qi <yao@codesourcery.com>
16810 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16811 (subdir_do): New make target. Copied from gdb/Makefile.
16812 (maintainer-clean, realclean, distclean, clean): Call corresponding
16813 make targets in common/Makefile.
16815 2011-03-04 Yao Qi <yao@codesourcery.com>
16817 * Makefile.in: Remove GNU make feature --directory.
16819 2011-03-04 Michael Snyder <msnyder@vmware.com>
16821 * server.c (queue_stop_reply): Call xmalloc not malloc.
16823 2011-03-02 Michael Snyder <msnyder@vmware.com>
16825 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16827 2011-02-28 Michael Snyder <msnyder@vmware.com>
16829 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16830 (cmd_qtframe): Ditto.
16831 (cmd_qtbuffer): Ditto.
16832 (cmd_bigqtbuffer): Ditto.
16834 * utils.c (decimal2str): Initialize 'width' to nine, then
16835 don't mess with it.
16837 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16839 * hostio.c (require_data): Free *data, not data.
16841 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16843 * hostio.c (require_data): Use free, not xfree.
16845 2011-02-27 Michael Snyder <msnyder@vmware.com>
16847 * server.c (handle_query): Discard unused value.
16849 * hostio.c (require_data): Free malloc memory before returning
16852 2011-02-26 Michael Snyder <msnyder@vmware.com>
16854 * linux-low.c (list_threads): Call closedir for dirent.
16856 2011-02-27 Michael Snyder <msnyder@vmware.com>
16858 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16859 a case statement falls through.
16861 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16863 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16866 2011-02-26 Michael Snyder <msnyder@vmware.com>
16868 * utils.c (decimal2str): Eliminate dead code and dead param.
16869 (pulongest): Drop dead param from call to decimal2str.
16872 2011-02-24 Joel Brobecker <brobecker@adacore.com>
16874 Revert the following patch (not approved yet):
16875 2011-02-21 Hui Zhu <teawater@gmail.com>
16876 * tracepoint.c (tp_printf): New function.
16877 (eval_agent_expr): Handle gdb_agent_op_printf.
16879 2011-02-21 Hui Zhu <teawater@gmail.com>
16881 * tracepoint.c (tp_printf): New function.
16882 (eval_agent_expr): Handle gdb_agent_op_printf.
16884 2011-02-18 Tom Tromey <tromey@redhat.com>
16886 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16887 (tracepoint.o): Likewise.
16888 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16889 (gdb_agent_op_names): Likewise.
16891 2011-02-18 Tom Tromey <tromey@redhat.com>
16893 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16894 gdb_agent_op_rot>: New constants.
16895 (gdb_agent_op_names): Add pick and roll.
16896 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16899 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16901 * aclocal.m4: Regenerated with aclocal-1.11.1.
16903 2011-02-14 Pedro Alves <pedro@codesourcery.com>
16905 * server.c (handle_qxfer_traceframe_info): New.
16906 (qxfer_packets): Register "traceframe-info".
16907 (handle_query): Report support for qXfer:traceframe-info:read+.
16908 * tracepoint.c (match_blocktype): New.
16909 (traceframe_find_block_type): Rename to ...
16910 (traceframe_walk_blocks): ... this. Add callback filter argument,
16912 (traceframe_find_block_type): New, reimplemented on top of
16913 traceframe_walk_blocks.
16914 (build_traceframe_info_xml): New.
16915 (traceframe_read_info): New.
16916 * server.h (traceframe_read_info): Declare.
16918 2011-02-11 Yao Qi <yao@codesourcery.com>
16920 * configure.ac: Call AC_PROG_RANLIB.
16921 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16922 * configure: Regenerate.
16924 2011-02-07 Pedro Alves <pedro@codesourcery.com>
16926 * server.c (gdb_read_memory): Change return semantics to allow
16928 (handle_search_memory_1): Adjust.
16929 (process_serial_event) <'m' packet>: Handle partial transfers.
16930 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16932 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16934 * regcache.c (init_register_cache): Initialize
16935 regcache->register_status.
16936 (free_register_cache): Release regcache->register_status.
16937 (regcache_cpy): Copy register_status.
16938 (registers_to_string): Print 'x's for unavailable registers.
16939 (supply_register): Mark the register's status valid or
16940 unavailable, depending on whether a buffer was passed in or not.
16941 (supply_register_zeroed): New.
16942 (supply_regblock): Mark the registers' status valid or
16943 unavailable, depending on whether a buffer was passed in or not.
16944 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16945 (struct regcache): New `register_status' field.
16946 (supply_register_zeroed): Declare.
16947 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16948 supply_register_zeroed, rather than passing a NULL buffer to
16950 * tracepoint.c (fetch_traceframe_registers): Update comment.
16952 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16954 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16957 2011-01-25 Pedro Alves <pedro@codesourcery.com>
16959 * server.h (decode_xfer_write): Change prototype.
16960 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16961 and don't extract the annex here.
16962 * server.c (decode_xfer_read): Remove `annex' parameter,
16963 and don't extract the annex here.
16964 (decode_xfer): New.
16965 (struct qxfer): New.
16966 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16967 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16968 (handle_qxfer_statictrace): New functions, abstracted out from
16969 handle_query, and made to use the struct qxfer interface.
16970 (handle_threads_qxfer_proper): Rename to ...
16971 (handle_qxfer_threads_proper): ... this.
16972 (handle_threads_qxfer): Rename to ...
16973 (handle_qxfer_threads): ... this. Adjust.
16974 (qxfer_packets): New array.
16975 (handle_qxfer): New function.
16976 (handle_query): Use handle_qxfer.
16978 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16980 * gdbreplay.c: Shorten lines of >= 80 columns.
16981 * linux-low.c: Ditto.
16982 * linux-ppc-low.c: Ditto.
16983 * linux-s390-low.c: Ditto.
16984 * linux-sparc-low.c: Ditto.
16985 * linux-x86-low.c: Ditto.
16986 * linux-xtensa-low.c: Ditto.
16987 * mem-break.c: Ditto.
16988 * nto-low.c: Ditto.
16989 * regcache.h: Ditto.
16990 * remote-utils.c: Ditto.
16993 * thread-db.c: Ditto.
16994 * tracepoint.c: Ditto.
16996 * win32-low.h: Ditto.
16998 2011-01-05 Joel Brobecker <brobecker@adacore.com>
17000 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
17003 2011-01-01 Joel Brobecker <brobecker@adacore.com>
17005 * server.c (gdbserver_version): Update copyright year in version
17007 * gdbreplay.c (gdbreplay_version): Ditto.
17009 2010-12-29 Jie Zhang <jie.zhang@analog.com>
17011 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
17012 * linux-bfin-low.c: New file.
17013 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
17014 PT_DATA_ADDR for BFIN targets.
17015 * Makefile.in (SFILES): Add linux-bfin-low.c.
17016 (clean): Remove reg-bfin.c.
17017 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
17018 * README: Mention supported Blackfin targets.
17020 2010-12-23 Mike Frysinger <vapier@gentoo.org>
17022 * .gitignore: New file.
17024 2010-11-16 Mike Frysinger <vapier@gentoo.org>
17026 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
17028 2010-10-22 Jie Zhang <jie@codesourcery.com>
17030 * Makefile.in: Add FLAGS_TO_PASS variable.
17031 (install): Remove dependency of install-only and recursively
17032 invoke make for install-only.
17034 2010-10-04 Doug Evans <dje@google.com>
17036 * Makefile.in (uninstall): Use $(DESTDIR).
17038 2010-09-24 Pedro Alves <pedro@codesourcery.com>
17042 * linux-x86-low.c (compat_siginfo_from_siginfo)
17043 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
17044 si_code is < 0. Check for si_code == SI_TIMER before checking for
17047 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17049 * lynx-i386-low.c: New file.
17050 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
17052 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17054 * lynx-low.c (ptrace_request_to_str): Remove handling for
17055 request values that have been removed in LynxOS 5.x.
17057 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17059 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
17062 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
17064 * configure.ac: Add --enable-inprocess-agent option.
17065 * configure: Rebuilt.
17067 2010-09-06 Yao Qi <yao@codesourcery.com>
17069 * linux-low.c (linux_kill): Remove unused variable.
17070 (linux_stabilize_threads): Likewise.
17071 * server.c (start_inferior): Likewise.
17072 (queue_stop_reply_callback): Likewise.
17073 * tracepoint.c (do_action_at_tracepoint): Likewise.
17075 2010-09-06 Yao Qi <yao@codesourcery.com>
17077 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
17080 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
17082 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
17084 2010-09-06 Pedro Alves <pedro@codesourcery.com>
17086 * Makefile.in (install-only): Replace $IPA_DEPFILES with
17089 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17091 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
17092 gdbserver/lynx-ppc-low.c: New files.
17093 * Makefile.in (lynx_low_h): New variable.
17094 (lynx-low.o, lynx-ppc-low.o): New rules.
17095 * configure.ac: On LynxOS, link with -lnetinet.
17096 * configure.srv: Add handling of powerpc-*-lynxos* targets.
17097 * configure: regenerate.
17099 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17101 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
17102 * configure.ac: Add check for vasprintf and vsnprintf.
17103 * configure, config.in: Regenerate.
17104 * server.h (vasprintf, vsnprintf): Add conditional declarations.
17106 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17108 * gdbreplay.c: Move include of alloca.h up, next to include of
17110 * server.h: Add include of malloc.h.
17111 * mem-break.c: Remove include of malloc.h.
17112 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
17114 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17116 * Makefile.in (memmem.o): Build with -Wno-error.
17118 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17120 * utils.c (xsnprintf): Make non-static.
17121 * server.h: Add xsnprintf declaration.
17122 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
17123 replace calls to snprintf by calls to xsnprintf throughout.
17125 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17127 * configure.ac: Add configure check for alloca.
17128 * configure, config.in: Regenerate.
17129 * server.h: Include alloca.h if it exists.
17130 * gdbreplay.c: Include alloca.h if it exists.
17132 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17134 * linux-low.c (__SIGRTMIN): Define if not already defined.
17135 (linux_create_inferior): Check for __ANDROID__ rather than
17137 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
17138 are already deferred.
17139 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
17140 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
17141 stopped and already has a pending signal to report.
17142 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
17143 a pending signal to report or is moving out of a jump pad.
17144 (linux_init_signals): Check for __ANDROID__ rather than
17147 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17149 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17150 debug_threads check. Avoid a linear search when not doing debug
17153 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17155 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17156 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17157 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17158 (process_event): Change local fd's type to gdb_fildes_t.
17159 (create_file_handler): Adjust prototype.
17160 (delete_file_handler): Adjust prototype.
17161 (handle_file_event): Adjust prototype. Use pfildes.
17162 (create_file_event): Adjsut prototype.
17163 * remote-utils.c (remote_desc, listen_desc): Change type to
17165 * server.h: New gdb_fildes_t typedef.
17166 [USE_WIN32API]: Include winsock2.h.
17167 (delete_file_handler, add_file_handler): Adjust prototypes.
17168 (pfildes): Declare.
17169 * utils.c (pfildes): New.
17171 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17173 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17174 * configure: Regenerate.
17176 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17178 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17179 (linux_done_accessing_memory): ... this.
17180 (linux_target_ops): Adjust.
17181 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17182 * nto-low.c (nto_target_ops): Adjust comment.
17183 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17184 * spu-low.c (spu_target_ops): Adjust comment.
17185 * target.h (target_ops): Rename unprepare_to_access_memory field
17186 to done_accessing_memory.
17187 (unprepare_to_access_memory): Rename to ...
17188 (done_accessing_memory): ... this.
17190 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17192 * linux-low.c (linux_prepare_to_access_memory): New.
17193 (linux_unprepare_to_access_memory): New.
17194 (linux_target_ops): Install them.
17195 * server.c (read_memory): Rename to ...
17196 (gdb_read_memory): ... this. Use
17197 prepare_to_access_memory/prepare_to_access_memory.
17198 (write_memory): Rename to ...
17199 (gdb_write_memory): ... this. Use
17200 prepare_to_access_memory/prepare_to_access_memory.
17201 (handle_search_memory_1): Adjust.
17202 (process_serial_event): Adjust.
17203 * target.h (struct target_ops): New fields
17204 prepare_to_access_memory and unprepare_to_access_memory.
17205 (prepare_to_access_memory, unprepare_to_access_memory): New.
17206 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17207 prepare_to_access_memory/prepare_to_access_memory.
17208 * nto-low.c (nto_target_ops): Adjust.
17209 * spu-low.c (spu_target_ops): Adjust.
17210 * win32-low.c (win32_target_ops): Adjust.
17212 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17214 * Makefile.in (WARN_CFLAGS): Get it from configure.
17215 (WERROR_CFLAGS): New.
17216 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17217 * configure.ac: Introduce --enable-werror, which adds -Werror to
17218 the compiler command line. Enabled by default. Disable with
17219 --disable-werror. Add -Wdeclaration-after-statement
17220 Wpointer-arith and -Wformat-nonliteral to warning flags.
17221 * configure: Regenerate.
17223 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17225 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17227 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17229 * gdbreplay.c (remote_error): New.
17231 (expect): Use gdbchar. Check for error reading from GDB.
17232 Clarify sync error output.
17233 (play): Check for errors writing to GDB.
17234 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17235 * remote-utils.c (getpkt): Check for errors writing to the remote
17238 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17240 * linux-low.c (linux_wait_1): Move non-debugging code out of
17241 `debug_threads' control.
17243 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17245 * linux-low.c (linux_wait_1): Don't set last_status here.
17246 * server.c (push_event, queue_stop_reply_callback): Assert we're
17247 not pushing a TARGET_WAITKIND_IGNORE event.
17248 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17249 (myresume, handle_target_event): Set the thread's last_resume_kind
17250 and last_status from the target returned status.
17252 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17256 * linux-x86-low.c (update_debug_registers_callback): New.
17257 (i386_dr_low_set_addr): Use it.
17258 (i386_dr_low_get_addr): New.
17259 (i386_dr_low_set_control): Use update_debug_registers_callback.
17260 (i386_dr_low_get_control): New.
17261 (i386_dr_low_get_status): Adjust.
17262 * linux-low.c (linux_stop_lwp): New.
17263 * linux-low.h (linux_stop_lwp): Declare.
17265 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17266 argument instead of a i386_debug_reg_state.
17267 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17268 a i386_debug_reg_state.
17269 (i386_insert_aligned_watchpoint): Adjust.
17270 (i386_remove_aligned_watchpoint): Adjust.
17271 (i386_low_stopped_data_address): Read the debug registers from the
17272 inferior instead of from the mirrors.
17273 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17274 (i386_dr_low_get_addr): Declare.
17275 (i386_dr_low_get_control): Declare.
17276 (i386_dr_low_get_status): Change prototype.
17278 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17279 (i386_dr_low_get_addr): New.
17280 (i386_dr_low_get_control): New.
17281 (i386_dr_low_get_status): Adjust prototype. Return
17283 (i386_initial_stuff): Clear dr_status_mirror and
17285 (i386_get_thread_context): Adjust.
17286 (i386_set_thread_context): Adjust.
17287 (i386_thread_added): Adjust.
17289 2010-08-24 Pedro Alves <pedro@codesourcery.com>
17291 * linux-low.h (linux_thread_area): Delete declaration.
17293 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17295 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17296 after its termination.
17298 2010-08-09 Pedro Alves <pedro@codesourcery.com>
17300 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17301 (gdb_wants_all_stopped): Delete.
17302 (linux_wait_1): Don't call them.
17303 * server.c (handle_v_cont): Tag all threads as want-stopped.
17304 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17305 stopped as "client-wants-stopped".
17307 2010-07-31 Pedro Alves <pedro@codesourcery.com>
17309 * Makefile.in (signals_h): New.
17310 (server_h): Depend on it.
17311 (server.o): Don't depend on $(signals_def).
17312 (signals.o): Depend on $(signals_def).
17314 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17316 * Makefile.in (signals_def): New.
17317 (server_h): Append include/gdb/signals.h and signals_def.
17318 (server.o): Append signals_def.
17320 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17322 * server.c (handle_target_event): Use target_signal_to_host for
17323 resume_info.sig initialization.
17324 * target.h (struct thread_resume) <sig>: New comment.
17326 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17328 * server.c (handle_query): strcpy() the returned string from paddress()
17329 instead of sprintf().
17330 * utils.c (paddress): Return phex_nz().
17332 2010-07-07 Joel Brobecker <brobecker@adacore.com>
17334 * server.c (handle_v_cont): Call mourn_inferior if process
17336 (myresume): Likewise.
17338 2010-07-01 Pedro Alves <pedro@codesourcery.com>
17340 Static tracepoints, and integration with UST.
17342 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17343 * mem-break.c (uninsert_all_breakpoints)
17344 (reinsert_all_breakpoints): New.
17345 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17346 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17347 (gdb_agent_ust_loaded, helper_thread_id)
17348 (gdb_agent_helper_thread_id): New macros.
17349 (struct ipa_sym_addresses): Add addr_ust_loaded,
17350 addr_helper_thread_id, addr_cmd_buf.
17351 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17352 (in_process_agent_loaded_ust): New.
17353 (write_e_ust_not_loaded): New.
17354 (maybe_write_ipa_ust_not_loaded): New.
17355 (struct collect_static_trace_data_action): New.
17356 (enum tracepoint_type) <static_tracepoint>: New.
17357 (struct tracepoint) <handle>: Mention static tracepoints.
17358 (struct static_tracepoint_ctx): New.
17359 (CMD_BUF_SIZE): New.
17360 (add_tracepoint_action): Handle static tracepoint actions.
17361 (unprobe_marker_at): New.
17362 (clear_installed_tracepoints): Handle static tracepoints.
17363 (cmd_qtdp): Handle static tracepoints.
17364 (probe_marker_at): New.
17365 (cmd_qtstart): Handle static tracepoints.
17366 (response_tracepoint): Handle static tracepoints.
17367 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17368 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17369 (get_context_regcache): Handle static tracepoints.
17370 (do_action_at_tracepoint): Handle static tracepoint actions.
17371 (traceframe_find_block_type): Handle static trace data blocks.
17372 (traceframe_read_sdata): New.
17373 (download_tracepoints): Download static tracepoint actions.
17374 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17375 (GDB_PROBE_NAME): New.
17377 (GET_UST_SYM): New.
17380 (ust_marker_to_static_tracepoint): New.
17382 (collect_ust_data_at_tracepoint): New.
17383 (gdb_ust_probe): New.
17384 (UNIX_PATH_MAX, SOCK_DIR): New.
17385 (gdb_ust_connect_sync_socket): New.
17386 (resume_thread, stop_thread): New.
17387 (run_inferior_command): New.
17388 (init_named_socket): New.
17389 (gdb_ust_socket_init): New.
17390 (cstr_to_hexstr): New.
17392 (first_marker, next_marker): New.
17393 (response_ust_marker): New.
17394 (cmd_qtfstm, cmd_qtsstm): New.
17395 (unprobe_marker_at, probe_marker_at): New.
17396 (cmd_qtstmat, gdb_ust_thread): New.
17397 (gdb_ust_init): New.
17398 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17399 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17400 (ST_REGENTRY): New.
17401 (x86_64_st_collect_regmap): New.
17402 (X86_64_NUM_ST_COLLECT_GREGS): New.
17403 (AMD64_RIP_REGNUM): New.
17404 (supply_static_tracepoint_registers): New.
17405 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17406 (ST_REGENTRY): New.
17407 (i386_st_collect_regmap): New.
17408 (i386_NUM_ST_COLLECT_GREGS): New.
17409 (supply_static_tracepoint_registers): New.
17410 * server.c (handle_query): Handle qXfer:statictrace:read.
17411 <qSupported>: Report support for StaticTracepoints, and
17412 qXfer:statictrace:read features.
17413 * server.h (traceframe_read_sdata)
17414 (supply_static_tracepoint_registers): Declare.
17415 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17416 (unpack_varlen_hex): Include in IPA build.
17417 * Makefile.in (ustlibs, ustinc): New.
17418 (IPA_OBJS): Add remote-utils-ipa.o.
17419 ($(IPA_LIB)): Link -ldl and -lpthread.
17421 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17422 * config.in, configure: Regenerate.
17424 2010-06-20 Ian Lance Taylor <iant@google.com>
17425 Pedro Alves <pedro@codesourcery.com>
17427 * linux-x86-low.c (always_true): Delete.
17428 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17429 trying to fool the compiler with always_true.
17431 2010-06-20 Pedro Alves <pedro@codesourcery.com>
17433 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17434 conditions in gdbserver.
17436 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17438 * spu-low.c (spu_read_memory): Wrap around local store limit.
17439 (spu_write_memory): Likewise.
17441 2010-06-15 Pedro Alves <pedro@codesourcery.com>
17443 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17444 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17446 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17448 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17449 uses with LONGEST uses.
17451 2010-06-14 Stan Shebs <stan@codesourcery.com>
17452 Pedro Alves <pedro@codesourcery.com>
17456 * linux-x86-low.c: Include limits.h.
17458 (always_true): New.
17461 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17462 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17463 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17464 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17465 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17466 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17467 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17468 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17469 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17470 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17471 (amd64_emit_void_call_2): New.
17472 (amd64_emit_ops): New.
17473 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17474 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17475 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17476 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17477 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17478 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17479 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17480 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17481 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17482 (i386_emit_stack_adjust, i386_emit_int_call_1)
17483 (i386_emit_void_call_2): New.
17484 (i386_emit_ops): New.
17485 (x86_emit_ops): New.
17486 (the_low_target): Install x86_emit_ops.
17487 * server.h (struct emit_ops): New.
17488 (get_raw_reg_func_addr): Declare.
17489 (current_insn_ptr, emit_error): Declare.
17490 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17491 (set_trace_state_variable_value): New defines.
17492 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17493 addr_get_trace_state_variable_value and
17494 addr_set_trace_state_variable_value.
17495 (symbol_list): New fields for get_raw_reg,
17496 get_trace_state_variable_value and set_trace_state_variable_value.
17497 (condfn): New typedef.
17498 (struct tracepoint): New field `compiled_cond'.
17499 (do_action_at_tracepoint): Clear compiled_cond.
17500 (get_trace_state_variable_value, set_trace_state_variable_value):
17502 (condition_true_at_tracepoint): If there's a compiled condition,
17504 (current_insn_ptr, emit_error): New globals.
17505 (struct bytecode_address): New.
17506 (get_raw_reg_func_addr): New.
17507 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17508 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17509 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17510 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17511 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17512 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17513 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17514 (compile_tracepoint_condition, compile_bytecodes): New.
17515 * target.h (emit_ops): Forward declare.
17516 (struct target_ops): New field emit_ops.
17517 (target_emit_ops): New.
17518 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17519 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17520 * linux-low.c (linux_emit_ops): New.
17521 (linux_target_ops): Install it.
17522 * linux-low.h (struct linux_target_ops): New field emit_ops.
17524 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17526 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17527 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17529 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17530 Stan Shebs <stan@codesourcery.com>
17532 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17533 (all): Depend on $(extra_libraries).
17534 (install-only): Install the IPA.
17535 (IPA_OBJS, IPA_LIB): New.
17536 (clean): Remove the IPA lib.
17537 (IPAGENT_CFLAGS): New.
17538 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17539 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17540 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17541 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17542 * configure.ac: Check for atomic builtins support in the compiler.
17543 (IPA_DEPFILES, extra_libraries): Define.
17544 * configure.srv (ipa_obj): Add description.
17545 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17546 (i[34567]86-*-linux*): Set ipa_obj.
17547 (x86_64-*-linux*): Set ipa_obj.
17548 * linux-low.c (stabilizing_threads): New.
17549 (supports_fast_tracepoints): New.
17550 (linux_detach): Stabilize threads before detaching.
17551 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17552 the lwp is either not stabilizing, or is moving out of a jump pad.
17553 (linux_fast_tracepoint_collecting): New.
17554 (maybe_move_out_of_jump_pad): New.
17555 (enqueue_one_deferred_signal): New.
17556 (dequeue_one_deferred_signal): New.
17557 (linux_wait_for_event_1): If moving out of a jump pad, defer
17558 pending signals to later.
17559 (linux_stabilize_threads): New.
17560 (linux_wait_1): Check if threads need moving out of jump pads, and
17562 (stuck_in_jump_pad_callback): New.
17563 (move_out_of_jump_pad_callback): New.
17564 (lwp_running): New.
17565 (linux_resume_one_lwp): Handle moving out of jump pads.
17566 (linux_set_resume_request): Dequeue deferred signals.
17567 (need_step_over_p): Also step over fast tracepoint jumps.
17568 (start_step_over): Also uninsert fast tracepoint jumps.
17569 (finish_step_over): Also reinsert fast tracepoint jumps.
17570 (linux_install_fast_tracepoint_jump): New.
17571 (linux_target_ops): Install linux_stabilize_threads and
17572 linux_install_fast_tracepoint_jump_pad.
17573 * linux-low.h (linux_target_ops) <get_thread_area,
17574 install_fast_tracepoint_jump_pad>: New fields.
17575 (struct lwp_info) <collecting_fast_tracepoint,
17576 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17577 (linux_get_thread_area): Declare.
17578 * linux-x86-low.c (jump_insn): New.
17579 (x86_get_thread_area): New.
17580 (append_insns): New.
17581 (push_opcode): New.
17582 (amd64_install_fast_tracepoint_jump_pad): New.
17583 (i386_install_fast_tracepoint_jump_pad): New.
17584 (x86_install_fast_tracepoint_jump_pad): New.
17585 (the_low_target): Install x86_get_thread_area and
17586 x86_install_fast_tracepoint_jump_pad.
17587 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17588 (struct fast_tracepoint_jump): New.
17589 (fast_tracepoint_jump_insn): New.
17590 (fast_tracepoint_jump_shadow): New.
17591 (find_fast_tracepoint_jump_at): New.
17592 (fast_tracepoint_jump_here): New.
17593 (delete_fast_tracepoint_jump): New.
17594 (set_fast_tracepoint_jump): New.
17595 (uninsert_fast_tracepoint_jumps_at): New.
17596 (reinsert_fast_tracepoint_jumps_at): New.
17597 (set_breakpoint_at): Use write_inferior_memory.
17598 (uninsert_raw_breakpoint): Use write_inferior_memory.
17599 (check_mem_read): Mask out fast tracepoint jumps.
17600 (check_mem_write): Mask out fast tracepoint jumps.
17601 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17602 (set_fast_tracepoint_jump): Declare.
17603 (delete_fast_tracepoint_jump)
17604 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17605 (reinsert_fast_tracepoint_jumps_at): Declare.
17606 * regcache.c: Don't compile many functions when building the
17607 in-process agent library.
17608 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17609 the register buffer in the heap.
17610 (free_register_cache): If the register buffer isn't owned by the
17611 regcache, don't free it.
17612 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17613 pre-existing register caches.
17614 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17616 (convert_ascii_to_int): : Constify `from' parameter type.
17617 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17618 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17619 the needed buffer in-place.
17620 (relocate_instruction): New.
17621 * server.c (handle_query) <qSymbols>: If the target supports
17622 tracepoints, give it a chance of looking up symbols. Report
17623 support for fast tracepoints.
17624 (handle_status): Stabilize threads.
17625 (process_serial_event): Adjust.
17626 * server.h (struct fast_tracepoint_jump): Forward declare.
17627 (struct process_info) <fast_tracepoint_jumps>: New field.
17628 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17629 (decode_X_packet, decode_M_packet): Adjust.
17630 (relocate_instruction): Declare.
17631 (in_process_agent_loaded): Declare.
17632 (tracepoint_look_up_symbols): Declare.
17633 (struct fast_tpoint_collect_status): Declare.
17634 (fast_tracepoint_collecting): Declare.
17635 (force_unlock_trace_buffer): Declare.
17636 (handle_tracepoint_bkpts): Declare.
17637 (initialize_low_tracepoint)
17638 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17639 * target.h (struct target_ops) <stabilize_threads,
17640 install_fast_tracepoint_jump_pad>: New fields.
17641 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17642 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17643 [HAVE_STDINT_H]: Include stdint.h.
17644 (trace_debug_1): Rename to ...
17645 (trace_vdebug): ... this.
17646 (trace_debug): Rename to ...
17647 (trace_debug_1): ... this. Add `level' parameter.
17648 (trace_debug): New.
17649 (ATTR_USED, ATTR_NOINLINE): New.
17650 (IP_AGENT_EXPORT): New.
17651 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17652 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17653 (about_to_request_buffer_space, trace_buffer_is_full)
17654 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17655 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17656 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17657 (traceframe_write_count, traceframes_created)
17658 (trace_state_variables)
17659 New renaming defines.
17660 (struct ipa_sym_addresses): New.
17661 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17662 (symbol_list): New.
17663 (ipa_sym_addrs): New.
17664 (all_tracepoint_symbols_looked_up): New.
17665 (in_process_agent_loaded): New.
17666 (write_e_ipa_not_loaded): New.
17667 (maybe_write_ipa_not_loaded): New.
17668 (tracepoint_look_up_symbols): New.
17669 (debug_threads) [IN_PROCESS_AGENT]: New.
17670 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17671 (UNKNOWN_SIDE_EFFECTS): New.
17672 (stop_tracing): New.
17673 (flush_trace_buffer): New.
17674 (stop_tracing_bkpt): New.
17675 (flush_trace_buffer_bkpt): New.
17676 (read_inferior_integer): New.
17677 (read_inferior_uinteger): New.
17678 (read_inferior_data_pointer): New.
17679 (write_inferior_data_pointer): New.
17680 (write_inferior_integer): New.
17681 (write_inferior_uinteger): New.
17682 (struct collect_static_trace_data_action): Delete.
17683 (enum tracepoint_type): New.
17684 (struct tracepoint) <type>: New field `type'.
17685 <actions_str, step_actions, step_actions_str>: Only include in
17687 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17688 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17689 (tracepoints): Use IP_AGENT_EXPORT.
17690 (last_tracepoint): Don't include in the IPA.
17691 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17692 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17693 (alloced_trace_state_variables): New.
17694 (trace_state_variables): Use IP_AGENT_EXPORT.
17695 (traceframe_t): Delete unused variable.
17696 (circular_trace_buffer): Don't include in the IPA.
17697 (trace_buffer_start): Delete.
17698 (struct trace_buffer_control): New.
17699 (trace_buffer_free): Delete.
17700 (struct ipa_trace_buffer_control): New.
17701 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17702 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17704 (trace_buffer_ctrl): New.
17705 (TRACE_BUFFER_CTRL_CURR): New.
17706 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17707 Reimplement as macros.
17708 (trace_buffer_wrap): Delete.
17709 (traceframe_write_count, traceframe_read_count)
17710 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17711 (struct tracepoint_hit_ctx) <type>: New field.
17712 (struct fast_tracepoint_ctx): New.
17713 (memory_barrier): New.
17715 (record_tracepoint_error): Update atomically in the IPA.
17716 (clear_inferior_trace_buffer): New.
17717 (about_to_request_buffer_space): New.
17718 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17719 updating the same buffer.
17720 (add_tracepoint): Default the tracepoint's type to trap
17721 tracepoint, and orig_size to -1.
17722 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17723 internal variables.
17724 (create_trace_state_variable): New parameter `gdb'. Handle it.
17725 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17726 (cmd_qtdp): Handle fast tracepoints.
17727 (cmd_qtdv): Adjust.
17728 (max_jump_pad_size): New.
17729 (gdb_jump_pad_head): New.
17730 (get_jump_space_head): New.
17731 (claim_jump_space): New.
17732 (sort_tracepoints): New.
17733 (MAX_JUMP_SIZE): New.
17734 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17736 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17737 support. Upload fast traceframes, and delete internal IPA
17739 (stop_tracing_handler): New.
17740 (flush_trace_buffer_handler): New.
17741 (cmd_qtstop): Upload fast tracepoints.
17742 (response_tracepoint): Handle fast tracepoints.
17743 (tracepoint_finished_step): Upload fast traceframes. Set the
17744 tracepoint hit context's tracepoint type.
17745 (handle_tracepoint_bkpts): New.
17746 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17747 type. Add comment about fast tracepoints.
17748 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17749 non-existing action_str field.
17750 (get_context_regcache): Handle fast tracepoints.
17751 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17753 (fast_tracepoint_from_jump_pad_address): New.
17754 (fast_tracepoint_from_ipa_tpoint_address): New.
17755 (collecting_t): New.
17756 (force_unlock_trace_buffer): New.
17757 (fast_tracepoint_collecting): New.
17759 (gdb_collect): New.
17760 (write_inferior_data_ptr): New.
17761 (target_tp_heap): New.
17762 (target_malloc): New.
17763 (download_agent_expr): New.
17765 (download_tracepoints): New.
17766 (download_trace_state_variables): New.
17767 (upload_fast_traceframes): New.
17768 (IPA_FIRST_TRACEFRAME): New.
17769 (IPA_NEXT_TRACEFRAME_1): New.
17770 (IPA_NEXT_TRACEFRAME): New.
17771 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17772 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17773 (gdb_jump_pad_buffer_end): New.
17774 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17775 (initialize_tracepoint): Adjust.
17776 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17777 buffer. Initialize the low module.
17778 * utils.c (PREFIX, TOOLNAME): New.
17779 (malloc_failure): Use PREFIX.
17780 (error): In the IPA, an error causes an exit.
17781 (fatal, warning): Use PREFIX.
17782 (internal_error): Use TOOLNAME.
17783 (NUMCELLS): Increase to 10.
17784 * configure, config.in: Regenerate.
17786 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17788 * server.c (handle_query) <qSupported>: Do two passes over the
17789 qSupported string to avoid nesting strtok.
17791 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17793 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17795 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17796 -Wl,--dynamic-list.
17797 * configure: Regenerate.
17798 * proc-service.list: New.
17800 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17802 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17805 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17807 * gdbreplay.c (remote_open): Check error return from socket() call by
17808 its equality to -1 not by it being negative.
17809 * remote-utils.c (remote_open): Likewise.
17811 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17813 * config.h: Regenerate.
17815 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17817 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17818 doesn't provide PTRACE_GET_THREAD_AREA.
17820 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17822 * linux-m68k-low.c: Include <asm/ptrace.h>
17823 (ps_get_thread_area): Implement.
17825 2010-05-03 Doug Evans <dje@google.com>
17827 * event-loop.c (struct callback_event): New struct.
17828 (callback_list): New global.
17829 (append_callback_event, delete_callback_event): New functions.
17830 (process_callback): New function.
17831 (start_event_loop): Call it.
17832 * remote-utils.c (NOT_SCHEDULED): Define.
17833 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17834 moved out of readchar.
17835 (readchar): Rewrite. Call reschedule before returning.
17836 (reset_readchar): New function.
17837 (remote_close): Call it.
17838 (process_remaining, reschedule): New functions.
17839 * server.h (callback_handler_func): New typedef.
17840 (append_callback_event, delete_callback_event): Declare.
17842 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17844 * proc-service.c (ps_pglobal_lookup): Use
17845 thread_db_look_up_one_symbol.
17846 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17847 parameter. Use it instead of all_symbols_looked_up.
17848 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17850 (all_symbols_looked_up): Don't declare.
17851 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17852 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17854 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17855 Set all_symbols_looked_up here.
17856 (thread_db_look_up_one_symbol): New.
17857 (thread_db_get_tls_address): Adjust.
17858 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17859 thread_db object on the heap, and tentatively set it in the
17861 (thread_db_init): Don't set all_symbols_looked_up here.
17862 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17864 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17866 * linux-low.c (linux_kill, linux_detach): Adjust.
17867 (status_pending_p_callback): Remove redundant statement. Check
17868 for !TARGET_WAITIKIND_IGNORE, instead of
17869 TARGET_WAITKIND_STOPPED.
17870 (handle_tracepoints): Make sure LWP is locked. Adjust.
17871 (linux_wait_for_event_1): Adjust.
17872 (linux_cancel_breakpoints): New.
17873 (unsuspend_one_lwp): New.
17874 (unsuspend_all_lwps): New.
17875 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17876 (send_sigstop_callback): Change return type to int, add new
17877 `except' parameter and handle it.
17878 (suspend_and_send_sigstop_callback): New.
17879 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17880 pass them down. If SUSPEND, also increment the lwp's suspend
17882 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17883 (need_step_over_p): Don't consider suspended LWPs.
17884 (start_step_over): Adjust.
17885 (proceed_one_lwp): Change return type to int, add new `except'
17886 parameter and handle it.
17887 (unsuspend_and_proceed_one_lwp): New.
17888 (proceed_all_lwps): Use find_inferior instead of
17890 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17891 also decrement the suspend count of LWPs. Pass `except' down,
17892 instead of hacking its suspend count.
17893 (linux_pause_all): Add `freeze' parameter. Adjust.
17894 (linux_unpause_all): New.
17895 (linux_target_ops): Install linux_unpause_all.
17896 * server.c (handle_status): Adjust.
17897 * target.h (struct target_ops): New fields `unpause_all' and
17898 `cancel_breakpoints'. Add new parameter to `pause_all'.
17899 (pause_all): Add new `freeze' parameter.
17900 (unpause_all): New.
17901 (cancel_breakpoints): New.
17902 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17903 cancel breakpoints.
17904 (cmd_qtstart): Pause threads.
17905 (stop_tracing): Pause threads, and cancel breakpoints.
17906 * win32-low.c (win32_target_ops): Adjust.
17908 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17910 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17911 the inferior right away from here...
17912 (linux_wait_1): ... to here, and adjust to check the thread's
17913 last_resume_kind instead of the lwp's step or stop_expected flags.
17915 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17917 * README: Use consistent `GDB' and `GDBserver' spellings.
17919 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17921 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17922 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17923 (linux_detach_one_lwp): Assume the lwp is stopped.
17924 (any_thread_of): Delete.
17925 (linux_detach): Stop all lwps here. Don't blindly delete all
17927 (delete_lwp_callback): New.
17928 (linux_mourn): Delete all lwps of the process that is gone.
17929 (linux_wait_1): Don't delete the last lwp of the process here.
17930 * mem-break.h (mark_breakpoints_out): Declare.
17931 * mem-break.c (mark_breakpoints_out): New.
17932 (free_all_breakpoints): Use it.
17933 * server.c (handle_target_event): If the process is gone, mark
17935 * thread-db.c (struct thread_db) <create_bp>: New field.
17936 (thread_db_enable_reporting): Fix prototype. Store a thread event
17937 breakpoint reference in the thread_db struct.
17938 (thread_db_load_search): Clear the thread_db object.
17939 (try_thread_db_load_1): Ditto.
17940 (switch_to_process): New.
17941 (disable_thread_event_reporting): Use it.
17942 (remove_thread_event_breakpoints): New.
17943 (thread_db_detach, thread_db_mourn): Use it.
17945 2010-05-01 Pedro Alves <pedro@codesourcery.com>
17947 * linux-low.c (linux_enable_event_reporting): New.
17948 (linux_wait_for_event_1, handle_extended_wait): Use it.
17950 2010-04-30 Pedro Alves <pedro@codesourcery.com>
17952 * linux-low.c (linux_kill_one_lwp, linux_kill)
17953 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17954 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17955 SIGSTOP even if the LWP is stopped.
17956 (send_sigstop_callback): New.
17957 (stop_all_lwps): Use send_sigstop_callback instead.
17958 (linux_resume_one_thread): Adjust.
17959 (proceed_one_lwp): Still proceed an LWP that the client has
17960 requested to stop, if we haven't reported it as stopped yet. Make
17961 sure that LWPs the client want stopped, have a pending SIGSTOP.
17963 2010-04-26 Doug Evans <dje@google.com>
17965 * server.c (handle_general_set): Make static.
17967 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17968 Print received char after testing for error/eof instead of before.
17969 (input_interrupt): Tweak comment.
17971 2010-04-23 Doug Evans <dje@google.com>
17973 * server.c (start_inferior): Print inferior argv if --debug.
17975 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17977 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17978 * nto-x86-low.c: Include server.h
17980 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17982 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17983 be consistent with other sources of this directory.
17984 (init_registers_amd64): Correct name of source file of this function
17987 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17989 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17990 64-bit executables.
17992 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17994 * win32-i386-low.c: Add 64-bit support.
17995 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17996 (init_registers_amd64): Declare.
17997 (mappings): Add 64-bit version of array.
17998 (init_windows_x86): New function.
17999 (the_low_target): Change init_arch field to init_windows_x86.
18001 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18003 * win32-low.c: Adapt to support also 64-bit architecture.
18004 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
18005 (get_image_name): Use SIZE_T type for local variable `done'.
18006 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
18007 (toolhelp_get_dll_name): Idem.
18008 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
18009 Use uintptr_t typecast to avoid warning.
18010 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
18011 (handle_exception): Use phex_nz to avoid warning.
18012 (win32_wait): Remove unused local variable `process'.
18014 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18016 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
18019 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
18021 * configure.ac: Use `ws2_32' library for srv_mingw.
18022 * configure: Regenerate.
18023 * gdbreplay.c: Include winsock2.h instead of winsock.h.
18024 * remote-utils.c: Likewise.
18026 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
18028 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
18029 if __x86_64__ is defined.
18031 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18033 * configure: Regenerate.
18035 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18037 * server.c (handle_query): Handle 'qGetTIBAddr' query.
18038 * target.h (target_ops): New get_tib_address field.
18039 * win32-low.h (win32_thread_info): Add thread_local_base field.
18040 * win32-low.c (child_add_thread): Add tlb argument.
18041 Set thread_local_base field to TLB.
18042 (get_child_debug_event): Adapt to child_add_thread change.
18043 (win32_get_tib_address): New function.
18044 (win32_target_ops): Set get_tib_address field to
18045 win32_get_tib_address.
18046 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
18048 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18050 * linux-low.c (linux_mourn): Also remove the process.
18051 * server.c (handle_target_event): Don't remove the process here.
18052 * nto-low.c (nto_mourn): New.
18053 (nto_target_ops): Install it.
18054 * spu-low.c (spu_mourn): New.
18055 (spu_target_ops): Install it.
18056 * win32-low.c (win32_mourn): New.
18057 (win32_target_ops): Install it.
18059 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18061 * server.h (buffer_xml_printf): Remove redundant `;'.
18063 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18065 * regcache.c (set_register_cache): Invalidate regcaches before
18066 changing the register cache layout.
18067 (regcache_invalidate_one): Allow a NULL regcache.
18068 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
18069 regcaches before changing the register cache layout or the target
18072 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
18074 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
18075 variable warning on Linux/x86-64.
18077 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18079 GDBserver disconnected tracing support.
18081 * linux-low.c (linux_remove_process): Delete.
18082 (add_lwp): Don't set last_resume_kind here.
18083 (linux_kill): Use `mourn'.
18084 (linux_detach): Use `thread_db_detach', and `mourn'.
18085 (linux_mourn): New.
18086 (linux_attach_lwp_1): Adjust comment.
18087 (linux_attach): last_resume_kind moved the thread_info; adjust.
18088 (status_pending_p_callback): Adjust.
18089 (linux_wait_for_event_1): Adjust.
18090 (count_events_callback, select_singlestep_lwp_callback)
18091 (select_event_lwp_callback, cancel_breakpoints_callback)
18092 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
18093 (proceed_one_lwp): Adjust.
18094 (linux_async): Add debug output.
18095 (linux_thread_stopped): New.
18096 (linux_pause_all): New.
18097 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
18099 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
18100 (thread_db_free): Delete declaration.
18101 (thread_db_detach, thread_db_mourn): Declare.
18102 * thread-db.c (thread_db_init): Use thread_db_mourn.
18103 (thread_db_free): Delete, split in two.
18104 (disable_thread_event_reporting): New.
18105 (thread_db_detach): New.
18106 (thread_db_mourn): New.
18108 * server.h (struct thread_info) <last_resume_kind>: New field.
18109 <attached>: Add comment.
18110 <gdb_detached>: New field.
18111 (handler_func): Change return type to int.
18112 (handle_serial_event, handle_target_event): Ditto.
18113 (gdb_connected): Declare.
18115 (disconnected_tracing): Declare.
18116 (stop_tracing): Declare.
18118 * server.c (handle_query) <qSupported>: Report support for
18119 disconnected tracing.
18120 (queue_stop_reply_callback): Account for running threads.
18121 (gdb_wants_thread_stopped): New.
18122 (gdb_wants_all_threads_stopped): New.
18123 (gdb_reattached_process): New.
18124 (handle_status): Clear the `gdb_detached' flag of all processes.
18125 In all-stop, stop all threads.
18126 (main): Be sure to leave tfind mode. Handle disconnected tracing.
18127 (process_serial_event): If the remote connection breaks, or if an
18128 exit was forced with "monitor exit", force an event loop exit.
18129 Handle disconnected tracing on detach.
18130 (handle_serial_event): Adjust.
18131 (handle_target_event): If GDB isn't connected, forward events back
18132 to the inferior, unless the last process exited, in which case,
18133 exit gdbserver. Adjust interface.
18135 * remote-utils.c (remote_open): Don't block in accept. Instead
18136 register an event loop source on the listen socket file
18137 descriptor. Refactor bits into ...
18138 (listen_desc): ... this new global.
18139 (gdb_connected): ... this new function.
18140 (enable_async_notification): ... this new function.
18141 (handle_accept_event): ... this new function.
18142 (remote_close): Clear remote_desc.
18144 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
18146 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
18148 (mourn_inferior): Define.
18149 (target_process_qsupported): Avoid the dangling else problem.
18150 (thread_stopped): Define.
18151 (pause_all): Define.
18152 (target_waitstatus_to_string): Declare.
18153 * target.c (target_waitstatus_to_string): New.
18155 * tracepoint.c (tracing): Make extern.
18156 (disconnected_tracing): New.
18157 (stop_tracing): Make extern. Handle tracing stops due to GDB
18159 (cmd_qtdisconnected): New.
18160 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18161 (handle_tracepoint_general_set): Handle QTDisconnected.
18163 * event-loop.c (event_handler_func): Change return type to int.
18164 (process_event): Bail out if the event handler wants the event
18166 (handle_file_event): Ditto.
18167 (start_event_loop): Bail out if the event handler wants the event
18170 * nto-low.c (nto_target_ops): Adjust.
18171 * spu-low.c (spu_wait): Don't remove the process here.
18172 (spu_target_ops): Adjust.
18173 * win32-low.c (win32_wait): Don't remove the process here.
18174 (win32_target_ops): Adjust.
18176 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18178 * regcache.c (realloc_register_cache): Invalidate inferior's
18179 regcache before recreating it.
18181 2010-04-09 Pedro Alves <pedro@codesourcery.com>
18183 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18185 2010-04-09 Stan Shebs <stan@codesourcery.com>
18186 Pedro Alves <pedro@codesourcery.com>
18188 * server.h (LONGEST): New.
18189 (struct thread_info) <while_stepping>: New field.
18190 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18192 (initialize_tracepoint, handle_tracepoint_general_set)
18193 (handle_tracepoint_query, tracepoint_finished_step)
18194 (tracepoint_was_hit, release_while_stepping_state_list):
18195 (current_traceframe): Declare.
18196 * server.c (handle_general_set): Handle tracepoint packets.
18197 (read_memory): New.
18198 (write_memory): New.
18199 (handle_search_memory_1): Use read_memory.
18200 (handle_query): Report support for conditional tracepoints, trace
18201 state variables, and tracepoint sources. Handle tracepoint
18203 (main): Initialize the tracepoints module.
18204 (process_serial_event): Handle traceframe reads/writes.
18206 * linux-low.c (handle_tracepoints): New.
18207 (linux_wait_1): Call it.
18208 (linux_resume_one_lwp): Handle while-stepping.
18209 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18210 (linux_target_ops): Install them.
18211 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18213 * linux-x86-low.c (x86_supports_tracepoints): New.
18214 (the_low_target). Install it.
18216 * mem-break.h (delete_breakpoint): Declare.
18217 * mem-break.c (delete_breakpoint): Make external.
18219 * target.h (struct target_ops): Add `supports_tracepoints',
18220 `read_pc', and `write_pc' fields.
18221 (target_supports_tracepoints): Define.
18222 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18225 * regcache.h (struct regcache) <registers_owned>: New field.
18226 (init_register_cache, regcache_cpy): Declare.
18227 (regcache_read_pc, regcache_write_pc): Declare.
18228 (register_cache_size): Declare.
18229 (supply_regblock): Declare.
18230 * regcache.c (init_register_cache): New.
18231 (new_register_cache): Use it.
18232 (regcache_cpy): New.
18233 (register_cache_size): New.
18234 (supply_regblock): New.
18235 (regcache_read_pc, regcache_write_pc): New.
18237 * tracepoint.c: New.
18239 * Makefile.in (OBS): Add tracepoint.o.
18240 (tracepoint.o): New rule.
18242 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18244 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18246 (i386-mmx.c): Likewise.
18247 (i386-mmx-linux.o): Likewise.
18248 (i386-mmx-linux.c): Likewise.
18250 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18251 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18252 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18253 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18255 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18256 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18257 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18259 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18261 * Makefile.in (clean): Updated.
18263 (i386-avx.c): Likewise.
18264 (i386-avx-linux.o): Likewise.
18265 (i386-avx-linux.c): Likewise.
18266 (amd64-avx.o): Likewise.
18267 (amd64-avx.c): Likewise.
18268 (amd64-avx-linux.o): Likewise.
18269 (amd64-avx-linux.c): Likewise.
18271 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18272 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18273 (srv_amd64_regobj): Add amd64-avx.o.
18274 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18275 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18276 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18277 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18278 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18279 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18280 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18282 * i387-fp.c: Include "i386-xstate.h".
18284 (i387_cache_to_xsave): Likewise.
18285 (i387_xsave_to_cache): Likewise.
18286 (x86_xcr0): Likewise.
18288 * i387-fp.h (i387_cache_to_xsave): Likewise.
18289 (i387_xsave_to_cache): Likewise.
18290 (x86_xcr0): Likewise.
18292 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18293 * linux-crisv32-low.c (target_regsets): Likewise.
18294 * linux-m68k-low.c (target_regsets): Likewise.
18295 * linux-mips-low.c (target_regsets): Likewise.
18296 * linux-ppc-low.c (target_regsets): Likewise.
18297 * linux-s390-low.c (target_regsets): Likewise.
18298 * linux-sh-low.c (target_regsets): Likewise.
18299 * linux-sparc-low.c (target_regsets): Likewise.
18300 * linux-xtensa-low.c (target_regsets): Likewise.
18302 * linux-low.c: Include <sys/uio.h>.
18303 (regsets_fetch_inferior_registers): Support nt_type.
18304 (regsets_store_inferior_registers): Likewise.
18305 (linux_process_qsupported): New.
18306 (linux_target_ops): Add linux_process_qsupported.
18308 * linux-low.h (regset_info): Add nt_type.
18309 (linux_target_ops): Add process_qsupported.
18311 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18313 (init_registers_i386_avx_linux): New.
18314 (init_registers_amd64_avx_linux): Likewise.
18315 (xmltarget_i386_linux_no_xml): Likewise.
18316 (xmltarget_amd64_linux_no_xml): Likewise.
18317 (PTRACE_GETREGSET): Likewise.
18318 (PTRACE_SETREGSET): Likewise.
18319 (x86_fill_xstateregset): Likewise.
18320 (x86_store_xstateregset): Likewise.
18321 (use_xml): Likewise.
18322 (x86_linux_update_xmltarget): Likewise.
18323 (x86_linux_process_qsupported): Likewise.
18324 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18325 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18326 init_registers_i386_linux here. Call
18327 x86_linux_update_xmltarget.
18328 (the_low_target): Add x86_linux_process_qsupported.
18330 * server.c (handle_query): Call target_process_qsupported.
18332 * target.h (target_ops): Add process_qsupported.
18333 (target_process_qsupported): New.
18335 2010-04-03 Pedro Alves <pedro@codesourcery.com>
18337 * inferiors.c (add_thread): Set last_status kind to
18338 TARGET_WAITKIND_IGNORE.
18339 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18340 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18341 (linux_wait_1): Move `thread' local definition to block that uses
18342 it. Don't NULL initialize `event_child'.
18343 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18344 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18345 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18347 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18349 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18350 an extended waitstatus, or by a watchpoint.
18351 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18352 thread was stepping or has been stopped by a watchpoint.
18354 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18356 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18357 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18358 of another, then delete the previous, and validate all
18360 (validate_inserted_breakpoint): New.
18361 (delete_disabled_breakpoints): New.
18362 (validate_breakpoints): New.
18363 (check_mem_read): Validate breakpoints before trusting their
18364 shadow. Delete disabled breakpoints.
18365 (check_mem_write): Validate breakpoints before trusting they
18366 should be inserted. Delete disabled breakpoints.
18367 * mem-break.h (validate_breakpoints):
18368 * server.c (handle_query): Validate breakpoints when we see a
18371 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18373 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18374 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18375 if we could tell there's a GDB breakpoint at stop_pc.
18376 (need_step_over_p): Don't do a step over if we find a GDB
18377 breakpoint at the resume PC.
18379 * mem-break.c (struct raw_breakpoint): New.
18380 (enum bkpt_type): New type `gdb_breakpoint'.
18381 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18382 fields. New field `raw'.
18383 (find_raw_breakpoint_at): New.
18384 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18385 breakpoint instead.
18386 (set_breakpoint_at): Adjust.
18387 (delete_raw_breakpoint): New.
18388 (release_breakpoint): New.
18389 (delete_breakpoint): Rename to...
18390 (delete_breakpoint_1): ... this. Add proc parameter. Use
18391 release_breakpoint. Return ENOENT.
18392 (delete_breakpoint): Reimplement.
18393 (find_breakpoint_at): Delete.
18394 (find_gdb_breakpoint_at): New.
18395 (delete_breakpoint_at): Delete.
18396 (set_gdb_breakpoint_at): New.
18397 (delete_gdb_breakpoint_at): New.
18398 (gdb_breakpoint_here): New.
18399 (set_reinsert_breakpoint): Use release_breakpoint.
18400 (uninsert_breakpoint): Rename to ...
18401 (uninsert_raw_breakpoint): ... this.
18402 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18403 (reinsert_raw_breakpoint): Change parameter type to
18405 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18407 (check_breakpoints): Adjust. Use release_breakpoint.
18408 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18409 (breakpoint_inserted_here): Ditto.
18410 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18411 Don't trust the breakpoint's shadow if it is not inserted.
18412 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18413 (delete_all_breakpoints): Adjust.
18414 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18415 use delete_breakpoint_1.
18417 * mem-break.h (breakpoints_supported): Delete declaration.
18418 (set_gdb_breakpoint_at): Declare.
18419 (gdb_breakpoint_here): Declare.
18420 (delete_breakpoint_at): Delete.
18421 (delete_gdb_breakpoint_at): Declare.
18423 * server.h (struct raw_breakpoint): Forward declare.
18424 (struct process_info): New field `raw_breakpoints'.
18426 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18429 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18431 * linux-low.c (status_pending_p_callback): Fix comment.
18432 (linux_wait_for_event_1): Move most of the internal breakpoint
18433 handling from here...
18434 (linux_wait_1): ... to here.
18435 (count_events_callback): New.
18436 (select_singlestep_lwp_callback): New.
18437 (select_event_lwp_callback): New.
18438 (cancel_breakpoints_callback): New.
18439 (select_event_lwp): New.
18440 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18441 priority to all LWPs that have had events that should be reported
18442 to the client. Cancel breakpoints when about to reporting the
18443 event to the client, not while stopping lwps. No longer cancel
18444 finished single-steps here.
18445 (cancel_finished_single_step): Delete.
18446 (cancel_finished_single_steps): Delete.
18448 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18450 * mem-break.c (enum bkpt_type): New.
18451 (struct breakpoint): New field `type'.
18452 (set_breakpoint_at): Change return type to struct breakpoint
18453 pointer. Set type to `other_breakpoint' by default.
18454 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18455 in the breakpoint list.
18456 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18457 (reinsert_breakpoint): Rename to ...
18458 (reinsert_raw_breakpoint): ... this.
18459 (reinsert_breakpoints_at): Adjust.
18460 * mem-break.h (struct breakpoint): Declare.
18461 (set_breakpoint_at): Change return type to struct breakpoint
18464 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18466 * server.c (handle_query): Assign, not compare.
18468 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18470 Teach linux gdbserver to step-over-breakpoints.
18472 * linux-low.c (can_hardware_single_step): New.
18473 (supports_breakpoints): New.
18474 (handle_extended_wait): If stopping threads, read the stop pc of
18475 the new cloned LWP.
18477 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18478 low target doesn't support retrieving the PC.
18479 (add_lwp): Set last_resume_kind to resume_continue.
18480 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18481 (linux_attach): Don't clear stop_expected. Set the lwp's
18482 last_resume_kind to resume_stop.
18483 (linux_detach_one_lwp): Don't check for removed breakpoints.
18484 (check_removed_breakpoint): Delete.
18485 (status_pending_p): Rename to ...
18486 (status_pending_p_callback): ... this. Don't check for removed
18487 breakpoints. Don't consider threads that are stopped from GDB's
18489 (linux_wait_for_lwp): Always read the stop_pc here.
18490 (cancel_breakpoint): New.
18491 (step_over_bkpt): New global.
18492 (linux_wait_for_event_1): Implement stepping over breakpoints.
18493 (gdb_wants_lwp_stopped): New.
18494 (gdb_wants_all_stopped): New.
18495 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18496 single-step traps here. Store the thread's last reported target
18498 (send_sigstop): Don't clear stop_expected. Always set it,
18500 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18501 (cancel_finished_single_step): New.
18502 (cancel_finished_single_steps): New.
18503 (wait_for_sigstop): Don't cancel finished single-step traps here.
18504 (linux_resume_one_lwp): Don't check for removed breakpoints.
18505 Don't set `step' on non-hardware step archs.
18506 (linux_set_resume_request): Ignore resume_stop requests if already
18507 stopping or stopped. Set the lwp's last_resume_kind.
18508 (resume_status_pending_p): Don't check for removed breakpoints.
18509 (need_step_over_p): New.
18510 (start_step_over): New.
18511 (finish_step_over): New.
18512 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18513 requests. Clear the thread's last reported target waitstatus.
18514 Don't use the `suspended' flag. Don't consider pending breakpoints.
18515 (linux_resume): Start a step-over if necessary.
18516 (proceed_one_lwp): New.
18517 (proceed_all_lwps): New.
18518 (unstop_all_lwps): New.
18519 * linux-low.h (struct lwp_info): Rewrite comment for the
18520 `suspended' flag. Add the `stop_pc' field. Delete the
18521 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18522 Add `'last_resume_kind' and `need_step_over' fields.
18523 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18524 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18525 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18526 (set_raw_breakpoint_at): New.
18527 (set_breakpoint_at): Rewrite to use it.
18528 (reinsert_breakpoint_handler): Delete.
18529 (set_reinsert_breakpoint): New.
18530 (reinsert_breakpoint_by_bp): Delete.
18531 (delete_reinsert_breakpoints): New.
18532 (uninsert_breakpoint): Rewrite.
18533 (uninsert_breakpoints_at): New.
18534 (reinsert_breakpoint): Rewrite.
18535 (reinsert_breakpoints_at): New.
18536 (check_breakpoints): Rewrite.
18537 (breakpoint_here): New.
18538 (breakpoint_inserted_here): New.
18539 (check_mem_read): Adjust.
18540 * mem-break.h (breakpoints_supported, breakpoint_here)
18541 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18542 (reinsert_breakpoint_by_bp): Delete declaration.
18543 (delete_reinsert_breakpoints): Declare.
18544 (reinsert_breakpoint): Delete declaration.
18545 (reinsert_breakpoints_at): Declare.
18546 (uninsert_breakpoint): Delete declaration.
18547 (uninsert_breakpoints_at): Declare.
18548 (check_breakpoints): Adjust prototype.
18549 * server.h: Adjust include order.
18550 (struct thread_info): Declare here. Add a `last_status' field.
18552 2010-03-23 Michael Snyder <msnyder@vmware.com>
18554 * server.c (crc32): New function.
18555 (handle_query): Add handling for 'qCRC:' request.
18557 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18559 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18560 lwp had been stopped by a watchpoint.
18562 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18564 * server.h (internal_error): Declare.
18565 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18566 * utils.c (internal_error): New function.
18568 2010-03-15 Andreas Schwab <schwab@redhat.com>
18570 * configure.srv: Fix typo setting srv_regobj.
18572 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18574 * linux-low.c (fetch_register): Avoid passing a non string literal
18576 (usr_store_inferior_registers): Ditto.
18578 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18580 * linux-low.c (linux_write_memory): Bail out early if peeking
18583 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18585 * linux-low.h (struct lwp_info): New fields
18586 `stopped_by_watchpoint' and `stopped_data_address'.
18587 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18588 here, and cache them in the lwp object.
18589 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18591 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18593 (linux_stopped_by_watchpoint): Rewrite.
18594 (linux_stopped_data_address): Rewrite.
18596 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18598 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18599 switching the current inferior, not before.
18601 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18603 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18604 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18605 i386-linux.c and amd64-linux.c.
18606 (reg-i386.o): Removed.
18607 (reg-i386.c): Likewise.
18608 (reg-i386-linux.o): Likewise.
18609 (reg-i386-linux.c): Likewise.
18610 (reg-x86-64.o): Likewise.
18611 (reg-x86-64.c): Likewise.
18612 (reg-x86-64-linux.o): Likewise.
18613 (reg-x86-64-linux.c): Likewise.
18615 (i386.c): Likewise.
18616 (i386-linux.o): Likewise.
18617 (i386-linux.c): Likewise.
18618 (amd64.o): Likewise.
18619 (amd64.c): Likewise.
18620 (amd64-linux.o): Likewise.
18621 (amd64-linux.c): Likewise.
18623 * configure.srv (srv_i386_regobj): New.
18624 (srv_i386_linux_regobj): Likewise.
18625 (srv_amd64_regobj): Likewise.
18626 (srv_amd64_linux_regobj): Likewise.
18627 (srv_i386_32bit_xmlfiles): Likewise.
18628 (srv_i386_64bit_xmlfiles): Likewise.
18629 (srv_i386_xmlfiles): Likewise.
18630 (srv_amd64_xmlfiles): Likewise.
18631 (srv_i386_linux_xmlfiles): Likewise.
18632 (srv_amd64_linux_xmlfiles): Likewise.
18633 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18634 srv_xmlfiles to $srv_i386_xmlfiles.
18635 (i[34567]86-*-mingw32ce*): Likewise.
18636 (i[34567]86-*-mingw*): Likewise.
18637 (i[34567]86-*-nto*): Likewise.
18638 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18639 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18640 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18641 (x86_64-*-linux*): Likewise.
18643 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18644 (init_registers_amd64_linux): New.
18645 (x86_arch_setup): Replace init_registers_x86_64_linux with
18646 init_registers_amd64_linux.
18648 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18650 * configure.ac: Check for libdl. If it is not available link against
18651 static libthread_db.
18652 * configure: Regenerate.
18654 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18658 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18659 handing a read watchpoint.
18660 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18662 2010-02-12 Doug Evans <dje@google.com>
18664 * linux-low.c (linux_supports_tracefork_flag): Document.
18665 (linux_look_up_symbols): Add comment.
18667 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18669 * regcache.c (supply_register): Clear regcache if buf is NULL.
18671 2010-02-02 Nicolas Roche <roche@sourceware.org>
18672 Joel Brobecker <brobecker@adacore.com>
18674 * inferiors.c (find_inferior): Add function documentation.
18675 (unloaded_dll): Handle the case where the unloaded dll has not
18676 been previously registered in the dll list.
18678 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18680 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18681 (thumb2_breakpoint): New.
18682 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18684 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18686 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18687 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18690 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18692 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18694 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18696 * linux-s390-low.c (s390_collect_ptrace_register)
18697 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18699 2010-01-21 Doug Evans <dje@google.com>
18701 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18702 (PTRACE_ARG4_TYPE): New macro.
18703 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18704 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18705 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18706 (usr_store_inferior_registers): Ditto.
18707 (linux_read_memory, linux_write_memory): Ditto.
18708 (linux_test_for_tracefork): Ditto.
18710 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18711 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18713 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18715 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18718 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18720 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18721 prototype to take a regcache. Adjust.
18723 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18725 * regcache.h (struct thread_info): Forward declare.
18726 (struct regcache): New.
18727 (new_register_cache): Adjust prototype.
18728 (get_thread_regcache): Declare.
18729 (free_register_cache): Adjust prototype.
18730 (registers_to_string, registers_from_string): Ditto.
18731 (supply_register, supply_register_by_name, collect_register)
18732 (collect_register_as_string, collect_register_by_name): Ditto.
18733 * regcache.c (struct inferior_regcache_data): Delete.
18734 (get_regcache): Rename to ...
18735 (get_thread_regcache): ... this. Adjust. Switch inferior before
18736 fetching registers.
18737 (regcache_invalidate_one): Adjust.
18738 (regcache_invalidate): Fix prototype.
18739 (new_register_cache): Return the new register cache.
18740 (free_register_cache): Change prototype.
18741 (realloc_register_cache): Adjust.
18742 (registers_to_string): Change prototype to take a regcache. Adjust.
18743 (registers_from_string): Ditto.
18744 (register_data): Ditto.
18745 (supply_register): Ditto.
18746 (supply_register_by_name): Ditto.
18747 (collect_register): Ditto.
18748 (collect_register_as_string): Ditto.
18749 (collect_register_by_name): Ditto.
18750 * server.c (process_serial_event): Adjust.
18751 * linux-low.h (regset_fill_func, regset_store_func): Change
18753 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18755 * linux-low.c (get_stop_pc): Adjust.
18756 (check_removed_breakpoint): Adjust.
18757 (linux_wait_for_event): Adjust.
18758 (linux_resume_one_lwp): Adjust.
18759 (fetch_register): Add regcache parameter. Adjust.
18760 (usr_store_inferior_registers): Ditto.
18761 (regsets_fetch_inferior_registers): Ditto.
18762 (regsets_store_inferior_registers): Ditto.
18763 (linux_fetch_registers, linux_store_registers): Ditto.
18764 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18766 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18768 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18769 prototype to take a regcache.
18770 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18771 * remote-utils.c (convert_ascii_to_int, outreg)
18772 (prepare_resume_reply): Change prototype to take a regcache.
18774 * target.h (struct target_ops) <fetch_registers, store_registers>:
18775 Change prototype to take a regcache.
18776 (fetch_inferior_registers, store_inferior_registers): Change
18777 prototype to take a regcache. Adjust.
18778 * proc-service.c (ps_lgetregs): Adjust.
18779 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18780 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18781 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18782 take a regcache. Adjust.
18783 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18784 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18785 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18786 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18787 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18788 (cris_cannot_fetch_register):
18789 (cris_breakpoint_at): Change prototype to take a regcache.
18791 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18792 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18793 to take a regcache. Adjust.
18794 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18796 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18797 take a regcache. Adjust.
18798 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18799 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18800 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18801 * linux-mips-low.c (mips_get_pc):
18802 (mips_set_pc): Change prototype to take a regcache. Adjust.
18803 (mips_reinsert_addr): Adjust.
18804 (mips_collect_register): Change prototype to take a regcache.
18806 (mips_supply_register):
18807 (mips_collect_register_32bit, mips_supply_register_32bit)
18808 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18809 (mips_store_fpregset): Ditto.
18810 * linux-ppc-low.c (ppc_supply_ptrace_register)
18811 (ppc_supply_ptrace_register): Ditto.
18812 (parse_spufs_run): Adjust.
18813 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18814 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18815 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18816 take a regcache. Adjust.
18817 * linux-s390-low.c (s390_collect_ptrace_register)
18818 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18819 (s390_set_pc): Change prototype to take a regcache. Adjust.
18820 (s390_arch_setup): Adjust.
18821 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18822 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18823 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18824 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18825 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18827 (sparc_breakpoint_at): Adjust.
18828 * linux-xtensa-low.c (xtensa_fill_gregset):
18829 (xtensa_store_gregset):
18830 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18831 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18832 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18833 prototype to take a regcache. Adjust.
18834 * win32-arm-low.c (arm_fetch_inferior_register)
18835 (arm_store_inferior_register): Change prototype to take a
18837 * win32-i386-low.c (i386_fetch_inferior_register)
18838 (i386_store_inferior_register): Change prototype to take a
18840 * win32-low.c (child_fetch_inferior_registers)
18841 (child_store_inferior_registers): Change prototype to take a
18843 (win32_wait): Adjust.
18844 (win32_fetch_inferior_registers): Change prototype to take a
18846 (win32_store_inferior_registers): Adjust.
18847 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18848 store_inferior_register>: Change prototype to take a regcache.
18850 2010-01-20 Doug Evans <dje@google.com>
18852 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18854 (linux_wait_for_event1, linux_init_signals): Ditto.
18855 (W_STOPCODE): Provide definition if missing.
18857 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18859 * linux-low.c (linux_core_of_thread): New.
18860 (compare_ints, show_process, list_threads): New.
18861 (linux_qxfer_osdata): Report threads and cores.
18862 (linux_target_op): Register linux_core_of_thread.
18863 * remote-utils.c (prepare_resume_reply): Report the core.
18864 (buffer_xml_printf): Support %d specifier.
18865 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18867 (handle_query): Handle qXfer:threads. Announce availability
18869 * target.h (struct target_ops): New field core_of_thread.
18871 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18873 * Makefile.in (clean): Remove new generated files.
18874 (reg-s390.o, reg-s390.c): Remove rules.
18875 (reg-s390x.o, reg-s390x.c): Likewise.
18876 (s390-linux32.o, s390-linux32.c): Add rules.
18877 (s390-linux64.o, s390-linux64.c): Likewise.
18878 (s390x-linux64.o, s390x-linux64.c): Likewise.
18879 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18880 * linux-s390-low.c: Include <elf.h>.
18881 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18882 (init_registers_s390): Remove prototype.
18883 (init_registers_s390x): Likewise.
18884 (init_registers_s390_linux32): Add prototype.
18885 (init_registers_s390_linux64): Likewise.
18886 (init_registers_s390x_linux64): Likewise.
18887 (s390_num_regs_3264): New define.
18888 (s390_regmap_3264): New global variable.
18889 (s390_cannot_fetch_register): Remove obsolete check.
18890 (s390_cannot_store_register): Likewise.
18891 (s390_collect_ptrace_register): Handle upper/lower register halves.
18892 (s390_supply_ptrace_register): Likewise.
18893 (s390_fill_gregset): Update to register number changes.
18894 (s390_get_hwcap): New routine.
18895 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18896 Install appropriate regmap and register set.
18898 2010-01-01 Joel Brobecker <brobecker@adacore.com>
18900 * server.c (gdbserver_version): Update copyright year to 2010.
18901 * gdbreplay.c (gdbreplay_version): Likewise.
18903 2009-12-28 Doug Evans <dje@google.com>
18905 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18906 elf/external.h. Include <elf.h> instead but only if necessary.
18908 2009-12-28 Pedro Alves <pedro@codesourcery.com>
18910 * linux-low.c (linux_remove_process): Remove `detaching'
18911 parameter. Don't release/detach from thread_db here.
18912 (linux_kill): Release/detach from thread_db here, ...
18913 (linux_detach): ... and here, before actually detaching.
18914 (linux_wait_1): ... and here, when a process exits.
18915 * thread-db.c (any_thread_of): New.
18916 (thread_db_free): Switch the current inferior to a thread of the
18919 2009-12-21 Doug Evans <dje@google.com>
18921 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18923 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18924 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18925 warning ifndef __NR_tkill. Move setting of errno there too.
18926 Delete unnecessary resetting of errno after syscall.
18927 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18929 * configure.ac: Check for dladdr.
18930 * config.in: Regenerate.
18931 * configure: Regenerate.
18932 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18933 (try_thread_db_load): Update.
18935 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18937 2009-12-18 Doug Evans <dje@google.com>
18939 * event-loop.c: Include unistd.h if it exists.
18941 * linux-low.c (my_waitpid): Move definition away from being in
18942 between linux_tracefork_child/linux_test_for_tracefork.
18944 * gdb_proc_service.h (psaddr_t): Fix type.
18945 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18946 signature to match glibc.
18948 2009-12-16 Doug Evans <dje@google.com>
18950 * linux-low.c (linux_read_memory): Fix argument to read.
18952 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18954 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18955 events, don't leave current_inferior pointing at null.
18957 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18959 * win32-low.c (LOG): Delete.
18960 (OUTMSG): Output to stderr.
18961 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18962 on compile time LOG macro.
18963 (win32_wait): Fix debug output.
18965 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18967 * win32-low.c (win32_add_one_solib): If the dll name is
18968 "ntdll.dll", prepend the system directory to the dll path.
18970 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18972 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18974 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18975 Vladimir Prus <vladimir@codesourcery.com>
18977 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18978 * configure.ac: Check for __mcoldfire__ and set
18979 gdb_cv_m68k_is_coldfire.
18980 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18981 reg-cf.o and reg-m68k.o.
18982 * configure: Regenerated.
18984 2009-11-16 Pedro Alves <pedro@codesourcery.com>
18986 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18987 Pass it to thread_db_free.
18988 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18989 proper `detaching' argument to linux_remove_process.
18990 * linux-low.h (thread_db_free): Add `detaching' parameter.
18991 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18993 (thread_db_free): Add `detaching' parameter. Only
18994 call td_ta_clear_event if detaching from process.
18996 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18998 * thread-db.c (thread_db_free): Fix typo.
19000 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
19003 * thread-db.c (thread_db_free): Call td_ta_clear_event.
19005 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
19007 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
19008 with an i686 compiler.
19009 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
19011 * configure: Rebuilt.
19013 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
19017 * server.c (handle_search_memory_1): Correct read_addr initialization
19018 in loop for searching subsequent chunks.
19020 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
19022 * configure.ac: New --with-libthread-db option.
19023 * thread-db.c: Allow direct dependence on libthread_db.
19024 (thread_db_free): Adjust.
19025 * config.in: Regenerate.
19026 * configure: Likewise.
19028 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
19031 * thread-db.c (attach_thread): New function.
19032 (maybe_attach_thread): Return success/failure.
19033 (find_new_threads_callback): Adjust.
19034 (thread_db_find_new_threads): Loop until no new threads.
19036 2009-10-13 Pedro Alves <pedro@codesourcery.com>
19038 * proc-service.c (ps_lgetregs): Formatting.
19040 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
19042 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
19043 * configure.ac: Adjust.
19044 * linux-low.h (struct process_info_private): Move members to struct
19046 (thread_db_free, thread_db_handle_monitor_command): New prototype.
19047 * linux-low.c (linux_remove_process): Adjust.
19048 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
19049 * server.c (handle_query): Move code ...
19050 (handle_monitor_command): ... here. New function.
19051 * target.h (struct target_ops): New member.
19052 * thread-db.c (struct thread_db): New.
19053 (libthread_db_search_path): New variable.
19054 (thread_db_create_event, thread_db_enable_reporting)
19055 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
19056 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
19057 (try_thread_db_load_1, dladdr_to_soname): New functions.
19058 (try_thread_db_load, thread_db_load_search): New functions.
19059 (thread_db_init): Search for libthread_db.
19060 (thread_db_free): New function.
19061 (thread_db_handle_monitor_command): Likewise.
19062 * config.in: Regenerate.
19063 * configure: Regenerate.
19065 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
19067 * spu-low.c (spu_kill): Wait for inferior to terminate.
19068 Call clear_inferiors.
19069 (spu_detach): Call clear_inferiors.
19071 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19073 * aclocal.m4: Regenerate.
19074 * config.in: Likewise.
19075 * configure: Likewise.
19077 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19079 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
19080 (parse_spufs_run): New function.
19081 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
19082 (ppc_breakpoint_at): Handle SPU breakpoints.
19084 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19086 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
19087 (SPUFS_MAGIC): Define.
19088 (spu_enumerate_spu_ids): New function.
19089 (linux_qxfer_spu): New function.
19090 (linux_target_ops): Install linux_qxfer_spu.
19092 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19094 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
19095 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
19096 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
19097 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
19098 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
19099 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
19100 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
19101 (init_registers_powerpc_cell32l): Add prototype.
19102 (init_registers_powerpc_cell64l): Likewise.
19103 (ppc_arch_setup): Detect Cell/B.E. architecture.
19105 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19107 * Makefile.in (datarootdir): New variable.
19109 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19111 * linux-low.c (linux_write_memory): Update debugging output.
19112 * Makefile.in (clean): Add new descriptions.
19113 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
19114 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
19115 * configure.srv: Add new files for arm*-*-linux*.
19116 * linux-arm-low.c: Add new declarations.
19117 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
19118 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
19119 (HWCAP_VFPv3D16): New.
19120 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
19121 instead of __IWMMXT__.
19122 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
19123 (arm_arch_setup): New.
19124 (target_regsets): Remove #ifdef. Add VFP regset.
19125 (the_low_target): Use arm_arch_setup.
19127 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19129 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
19130 the main thread again.
19132 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
19134 Adding Neutrino gdbserver.
19135 * configure: Regenerated.
19136 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
19137 * configure.srv (i[34567]86-*-nto*): New target.
19138 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
19139 * remote-utils.c [__QNX__]: Include sys/iomgr.h
19140 (nto_comctrl) [__QNX__]: New function.
19141 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
19143 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
19145 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
19148 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19149 Pedro Alves <pedro@codesourcery.com>
19151 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19152 don't support CONTEXT_EXTENDED_REGISTERS.
19153 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19154 (the_low_target): Install them.
19155 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19156 failing with ERROR_PIPE_NOT_CONNECTED.
19158 2009-06-30 Doug Evans <dje@google.com>
19159 Pierre Muller <muller@ics.u-strasbg.fr>
19161 Add h/w watchpoint support to x86-linux, win32-i386.
19162 * Makefile.in (SFILES): Add i386-low.c
19163 (i386_low_h): Define.
19164 (i386-low.o): Add dependencies.
19165 (linux-x86-low.o): Add i386-low.h dependency.
19166 (win32-i386-low.o): Ditto.
19167 * i386-low.c: New file.
19168 * i386-low.h: New file.
19169 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19170 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19171 * linux-low.c (linux_add_process): Initialize arch_private.
19172 (linux_remove_process): Free arch_private.
19173 (add_lwp): Initialize arch_private.
19174 (delete_lwp): Free arch_private.
19175 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19177 * linux-low.h (process_info_private): New member arch_private.
19178 (lwp_info): New member arch_private.
19179 (linux_target_ops): New members new_process, new_thread,
19181 (ptid_of): New macro.
19182 * linux-x86-low.c: Include stddef.h, i386-low.h.
19183 (arch_process_info): New struct.
19184 (arch_lwp_info): New struct.
19185 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19186 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19187 (i386_dr_low_get_status): New function.
19188 (x86_insert_point, x86_remove_point): New functions.
19189 (x86_stopped_by_watchpoint): New function.
19190 (x86_stopped_data_address): New function.
19191 (x86_linux_new_process, x86_linux_new_thread): New functions.
19192 (x86_linux_prepare_to_resume): New function.
19193 (the_low_target): Add entries for insert_point, remove_point,
19194 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19196 * server.c (debug_hw_points): New global.
19197 (monitor_show_help): Document set debug-hw-points.
19198 (handle_query): Process "set debug-hw-points".
19199 * server.h (debug_hw_points): Declare.
19200 (paddress): Declare.
19201 * utils.c (NUMCELLS, CELLSIZE): New macros.
19202 (get_sell, xsnprintf, paddress): New functions.
19203 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19204 remove_point, stopped_by_watchpoint, stopped_data_address.
19205 * win32-i386-low.c: Include i386-low.h.
19206 (debug_reg_state): Replaces dr.
19207 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19208 (i386_dr_low_get_status): New function.
19209 (i386_insert_point, i386_remove_point): New functions.
19210 (i386_stopped_by_watchpoint): New function.
19211 (i386_stopped_data_address): New function.
19212 (i386_initial_stuff): Update.
19213 (get_thread_context,set_thread_context,i386_thread_added): Update.
19214 (the_low_target): Add entries for insert_point,
19215 remove_point, stopped_by_watchpoint, stopped_data_address.
19216 * win32-low.c (win32_insert_watchpoint): New function.
19217 (win32_remove_watchpoint): New function.
19218 (win32_stopped_by_watchpoint): New function.
19219 (win32_stopped_data_address): New function.
19220 (win32_target_ops): Add entries for insert_watchpoint,
19221 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19222 * win32-low.h (win32_target_ops): New members insert_point,
19223 remove_point, stopped_by_watchpoint, stopped_data_address.
19225 2009-06-25 Pedro Alves <pedro@codesourcery.com>
19227 * server.c (process_serial_event): Re-return unsupported, not
19228 error, if the type isn't recognized. Re-allow supporting only
19229 insert or remove packets. Also call require_running for
19230 breakpoints. Add missing break statement to default case. Tidy.
19231 * target.h (struct target_ops): Rename insert_watchpoint to
19232 insert_point, and remove_watchpoint to remove_point.
19234 * linux-low.h (struct linux_target_ops): Likewise.
19235 * linux-low.c (linux_insert_watchpoint): Rename to ...
19236 (linux_insert_point): ... this. Adjust.
19237 (linux_remove_watchpoint): Rename to ...
19238 (linux_remove_point): ... this. Adjust.
19239 (linux_target_ops): Adjust.
19240 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19241 (cris_insert_point): ... this.
19242 (cris_remove_watchpoint): Rename to ...
19243 (cris_remove_point): ... this.
19244 (the_low_target): Adjust.
19246 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19248 * server.c (handle_v_kill): Pass signal_pid to
19249 kill_inferior if multi_process is zero.
19251 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19253 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19254 * target.h (target_ops): Comment for *_watchpoint to make it clear
19255 the functions can get types '0' and '1'.
19257 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19259 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19260 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19261 * regcache.c (get_regcache): Likewise.
19262 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19263 * win32-low.c (child_fetch_inferior_registers): Remove check for
19266 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19267 Pedro Alves <pedro@codesourcery.com>
19269 * target.h (struct target_ops) <supports_multi_process>: New
19271 (target_supports_multi_process): New.
19272 * server.c (handle_query): Even if GDB reports support, only
19273 enable multi-process if the target also supports it. Report
19274 multi-process support only if the target backend supports it.
19275 * linux-low.c (linux_supports_multi_process): New function.
19276 (linux_target_ops): Install it as target_supports_multi_process
19279 2009-05-24 Doug Evans <dje@google.com>
19281 Global renaming of find_thread_pid to find_thread_ptid.
19282 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19283 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19284 All callers updated.
19286 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19287 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19290 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19291 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19292 (linux_resume_one_lwp): Ditto.
19294 2009-05-23 Doug Evans <dje@google.com>
19296 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19297 from struct inferior_list_entry * to struct lwp_info *.
19298 All callers updated.
19300 2009-05-13 Doug Evans <dje@google.com>
19302 * linux-x86-low.c: Don't include assert.h.
19303 (x86_siginfo_fixup): Use fatal, not assert.
19304 (x86_arch_setup): Fix comment.
19306 2009-05-12 Doug Evans <dje@google.com>
19308 Biarch support for i386/amd64 gdbserver.
19309 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19310 Add linux-x86-low.c.
19311 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19312 (linux-x86-low.o): Add.
19313 * linux-x86-64-low.c: Delete.
19314 * linux-i386-low.c: Delete.
19315 * linux-x86-low.c: New file.
19316 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19318 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19320 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19321 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19322 (linux_child_pid_to_exec_file): New function.
19323 (elf_64_header_p, elf_64_file_p): New functions.
19324 (siginfo_fixup): New function.
19325 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19326 give target a chance to convert layout.
19327 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19328 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19330 2009-05-07 Doug Evans <dje@google.com>
19332 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19333 (regsets_store_inferior_registers): Ditto.
19335 2009-05-06 Pedro Alves <pedro@codesourcery.com>
19339 * linux-low.c (must_set_ptrace_flags): Delete.
19340 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19342 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19343 `lwp->must_set_ptrace_flags' instead.
19344 (linux_wait_for_event_1): Set ptrace options here.
19345 (linux_wait_1): ... not here.
19347 2009-04-30 Doug Evans <dje@google.com>
19349 * inferiors.c (started_inferior_callback): New function.
19350 (attached_inferior_callback): New function.
19351 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19352 * server.c (print_started_pid, print_attached_pid): New functions.
19353 (detach_or_kill_for_exit): New function.
19354 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19355 * server.h (have_started_inferiors_p): Declare.
19356 (have_attached_inferiors_p): Declare.
19358 * inferiors.c (remove_process): Fix memory leak, free process.
19359 * linux-low.c (linux_remove_process): New function.
19360 (linux_kill): Call it instead of remove_process.
19361 (linux_detach, linux_wait_1): Ditto.
19363 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19365 * configure.srv: Add x86 Windows CE target.
19367 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19369 * inferiors.c (get_thread_process): Make global.
19370 * server.h (get_thread_process): Add prototype.
19371 * thread-db.c (find_one_thread): Use get_thread_process
19372 instead of current_process.
19373 (thread_db_get_tls_address): Do not crash if called when
19374 thread layer is not yet initialized.
19376 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19378 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19379 * spu-low.c (current_tid): Rename to ...
19380 (current_ptid): ... this.
19381 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19382 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19383 ptid_get_lwp (current_ptid) instead of current_tid.
19384 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19385 instead of current_tid. Use find_process_pid to verify pid
19386 argument is valid. Pass proper argument to remove_process.
19387 (spu_thread_alive): Compare current_ptid instead of current_tid.
19388 (spu_resume): Likewise.
19390 2009-04-02 Pedro Alves <pedro@codesourcery.com>
19392 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19395 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19397 Implement the multiprocess extensions, and add linux multiprocess
19400 * server.h (ULONGEST): Declare.
19401 (struct ptid, ptid_t): New.
19402 (minus_one_ptid, null_ptid): Declare.
19403 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19404 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19405 (struct inferior_list_entry): Change `id' type from unsigned from
19407 (struct sym_cache, struct breakpoint, struct
19408 process_info_private): Forward declare.
19409 (struct process_info): Declare.
19410 (current_process): Declare.
19411 (all_processes): Declare.
19412 (initialize_inferiors): Declare.
19413 (add_thread): Adjust to use ptid_t.
19414 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19415 (add_process, remove_process, find_thread_pid): Declare.
19416 (find_inferior_id): Adjust to use ptid_t.
19417 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19418 (multi_process): Declare.
19419 (push_event): Adjust to use ptid_t.
19420 (read_ptid, write_ptid): Declare.
19421 (prepare_resume_reply): Adjust to use ptid_t.
19422 (clear_symbol_cache): Declare.
19423 * inferiors.c (all_processes): New.
19424 (null_ptid, minus_one_ptid): New.
19425 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19426 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19427 (add_thread): Change unsigned long to ptid. Remove gdb_id
19429 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19430 (gdb_id_to_thread): Rename to ...
19431 (find_thread_pid): ... this. Change unsigned long to ptid.
19432 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19433 (loaded_dll, pull_pid_from_list): Adjust.
19434 (add_process, remove_process, find_process_pid)
19435 (get_thread_process, current_process, initialize_inferiors): New.
19436 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19437 (struct target_waitstatus) <related_pid>: Ditto.
19438 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19439 return type to int.
19440 (struct target_ops) <join>: Add `pid' argument.
19441 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19442 (struct target_ops) <wait>: Add `ptid' field. Change return type
19444 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19445 (mywait): Add `ptid' argument. Change return type to ptid_t.
19446 (target_pid_to_str): Declare.
19447 * target.c (set_desired_inferior): Adjust to use ptids.
19448 (mywait): Add new `ptid' argument. Adjust.
19449 (target_pid_to_str): New.
19450 * mem-break.h (free_all_breakpoints): Declare.
19451 * mem-break.c (breakpoints): Delelete.
19452 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19453 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19454 to use per-process breakpoint list.
19455 (free_all_breakpoints): New.
19456 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19457 (symbol_cache, all_symbols_looked_up): Delete.
19459 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19461 (prepare_resume_reply): Change ptid argument's type from unsigned
19462 long to ptid_t. Adjust. Implement W;process and X;process.
19463 (free_sym_cache, clear_symbol_cache): New.
19464 (look_up_one_symbol): Adjust to per-process symbol cache. *
19465 * server.c (cont_thread, general_thread, step_thread): Change type
19467 (attached): Delete.
19468 (multi_process): New.
19469 (last_ptid): Change type to ptid_t.
19470 (struct vstop_notif) <ptid>: Change type to ptid_t.
19471 (queue_stop_reply, push_event): Change `ptid' argument's type to
19473 (discard_queued_stop_replies): Add `pid' argument.
19474 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19475 changes. Don't reference the `attached' global.
19476 (attach_inferior): Adjust to mywait interface changes.
19477 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19478 features. Handle and report "multiprocess+". Handle
19480 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19482 (handle_v_kill): New.
19483 (handle_v_stopped): Adjust to use target_pid_to_str.
19484 (handle_v_requests): Allow multiple attaches and runs when
19485 multiprocess extensions are in effect. Handle "vKill".
19486 (myresume): Adjust to use ptids.
19487 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19488 (handle_status): Adjust to discard_queued_stop_replies interface
19490 (first_thread_of, kill_inferior_callback)
19491 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19492 (main): Call initialize_inferiors. Adjust to use ptids, killing
19493 and detaching from all inferiors. Handle multiprocess packet
19495 * linux-low.h: Include gdb_proc_service.h.
19496 (struct process_info_private): New.
19497 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19498 <lwpid_of>: Use ptid_get_lwp.
19499 (get_lwp_thread): Adjust.
19500 (struct lwp_info): Add `dead' member.
19501 (find_lwp_pid): Declare.
19502 * linux-low.c (thread_db_active): Delete.
19503 (new_inferior): Adjust comment.
19504 (inferior_pid): Delete.
19505 (linux_add_process): New.
19506 (handle_extended_wait): Adjust.
19507 (add_lwp): Change unsigned long to ptid.
19508 (linux_create_inferior): Add process to processes table. Adjust
19509 to use ptids. Don't set new_inferior here.
19510 (linux_attach_lwp): Rename to ...
19511 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19512 it. Adjust to use ptids.
19513 (linux_attach_lwp): New.
19514 (linux_attach): Add process to processes table. Don't set
19516 (struct counter): New.
19517 (second_thread_of_pid_p, last_thread_of_process_p): New.
19518 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19519 multiple processes.
19520 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19521 processes. Remove process from process table.
19522 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19523 to multiple processes.
19524 (any_thread_of): New.
19525 (linux_detach): Add `pid' argument, and handle it. Remove process
19526 from processes table.
19527 (linux_join): Add `pid' argument. Handle it.
19528 (linux_thread_alive): Change unsighed long argument to ptid_t.
19529 Consider dead lwps as not being alive.
19530 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19531 threads we're not interested in.
19532 (same_lwp, find_lwp_pid): New.
19533 (linux_wait_for_lwp): Change `pid' argument's type from int to
19535 (linux_wait_for_event): Rename to ...
19536 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19537 from int to ptid_t. Adjust.
19538 (linux_wait_for_event): New.
19539 (linux_wait_1): Add `ptid' argument. Change return type to
19540 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19541 that exit from the process table.
19542 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19544 (mark_lwp_dead): New.
19545 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19546 stopping all threads, mark its main lwp as dead.
19547 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19549 (fetch_register, usr_store_inferior_registers)
19550 (regsets_fetch_inferior_registers)
19551 (regsets_store_inferior_registers, linux_read_memory)
19552 (linux_write_memory): Inline `inferior_pid'.
19553 (linux_look_up_symbols): Adjust to use per-process
19554 `thread_db_active'.
19555 (linux_request_interrupt): Adjust to use ptids.
19556 (linux_read_auxv): Inline `inferior_pid'.
19557 (initialize_low): Don't reference thread_db_active.
19558 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19559 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19560 (ps_getpid): Return the pid of the current inferior.
19561 * thread-db.c (proc_handle, thread_agent): Delete.
19562 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19564 (find_one_thread): Change argument type to ptid_t. Adjust to
19566 (maybe_attach_thread): Adjust to per-process data and ptids.
19567 (thread_db_find_new_threads): Ditto.
19568 (thread_db_init): Ditto.
19569 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19570 processes table. Adjust to use ptids.
19571 (spu_kill, spu_detach): Adjust interface. Remove process from
19573 (spu_join, spu_thread_alive): Adjust interface.
19574 (spu_wait): Adjust interface. Remove process from processes
19575 table. Adjust to use ptids.
19576 * win32-low.c (current_inferior_tid): Delete.
19577 (current_inferior_ptid): New.
19578 (debug_event_ptid): New.
19579 (thread_rec): Take a ptid. Adjust.
19580 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19581 (child_delete_thread): Ditto.
19582 (do_initial_child_stuff): Add `attached' argument. Add process to
19584 (child_fetch_inferior_registers, child_store_inferior_registers):
19586 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19587 (win32_attach): Pass 1 to do_initial_child_stuff.
19588 (win32_kill): Adjust interface. Remove process from processes
19590 (win32_detach): Ditto.
19591 (win32_join): Adjust interface.
19592 (win32_thread_alive): Take a ptid.
19593 (win32_resume): Adjust to use ptids.
19594 (get_child_debug_event): Ditto.
19595 (win32_wait): Adjust interface. Remove exiting process from
19598 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19600 Non-stop mode support.
19602 * server.h (non_stop): Declare.
19603 (gdb_client_data, handler_func): Declare.
19604 (delete_file_handler, add_file_handler, start_event_loop):
19606 (handle_serial_event, handle_target_event, push_event)
19607 (putpkt_notif): Declare.
19608 * target.h (enum resume_kind): New.
19609 (struct thread_resume): Replace `step' field by `kind' field.
19610 (TARGET_WNOHANG): Define.
19611 (struct target_ops) <wait>: Add `options' argument.
19612 <supports_non_stop, async, start_non_stop>: New fields.
19613 (target_supports_non_stop, target_async): New.
19614 (start_non_stop): Declare.
19615 (mywait): Add `options' argument.
19616 * target.c (mywait): Add `options' argument. Print child exit
19617 notifications here.
19618 (start_non_stop): New.
19619 * server.c (non_stop, own_buf, mem_buf): New globals.
19620 (struct vstop_notif): New.
19621 (notif_queue): New global.
19622 (queue_stop_reply, push_event, discard_queued_stop_replies)
19623 (send_next_stop_reply): New.
19624 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19626 (attach_inferior): In non-stop mode, don't wait for the target
19628 (handle_general_set): Handle QNonStop.
19629 (handle_query): When handling qC, return the current general
19630 thread, instead of the first thread of the list.
19631 (handle_query): If the backend supports non-stop mode, include
19632 QNonStop+ in the qSupported query response.
19633 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19635 (handle_v_attach, handle_v_run): Handle non-stop mode.
19636 (handle_v_stopped): New.
19637 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19638 (myresume): Adjust to use resume_kind. Handle non-stop.
19639 (queue_stop_reply_callback): New.
19640 (handle_status): Handle non-stop mode.
19641 (main): Clear non_stop flag on reconnection. Use the event-loop.
19642 Refactor serial protocol handling from here ...
19643 (process_serial_event): ... to this new function. When GDB
19644 selects any thread, select one here. In non-stop mode, wait until
19645 GDB acks all pending events before exiting.
19646 (handle_serial_event, handle_target_event): New.
19647 * remote-utils.c (remote_open): Install remote_desc in the event
19649 (remote_close): Remove remote_desc from the event loop.
19650 (putpkt_binary): Rename to...
19651 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19652 (putpkt_binary): New as wrapper around putpkt_binary_1.
19653 (putpkt_notif): New.
19654 (prepare_resume_reply): In non-stop mode, don't change the
19656 * event-loop.c: New.
19657 * Makefile.in (OBJ): Add event-loop.o.
19658 (event-loop.o): New rule.
19660 * linux-low.h (pid_of): Moved here.
19662 (get_lwp_thread): Use lwpid_of.
19663 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19664 * linux-low.c (pid_of): Delete.
19665 (inferior_pid): Use lwpid_of.
19666 (linux_event_pipe): New.
19667 (target_is_async_p): New.
19669 (handle_extended_wait): Use lwpid_of.
19670 (add_lwp): Don't set lwpid field.
19671 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19672 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19673 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19674 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19675 first. Adjust to linux_wait_for_event interface changes. Use
19677 (linux_detach): Don't delete the main lwp here.
19678 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19679 (status_pending_p): Don't consider explicitly suspended lwps.
19680 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19681 pointer. Add OPTIONS argument. Change return type to int. Use
19682 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19683 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19684 pointer. Add status pointer argument. Return a pid instead of a
19685 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19686 changes. In non-stop mode, don't switch to a random thread.
19687 (linux_wait): Rename to...
19688 (linux_wait_1): ... this. Add target_options argument, and handle
19689 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19690 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19691 clean exit and signal exit code. Don't stop all threads in
19692 non-stop mode. In all-stop mode, only stop all threads when
19693 reporting a stop to GDB. Handle explicit thread stop requests.
19694 (async_file_flush, async_file_mark): New.
19696 (send_sigstop): Use lwpid_of.
19697 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19698 interface changes. In non-stop mode, don't switch to a random
19700 (linux_resume_one_lwp): Use lwpid_of.
19701 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19702 (linux_resume_one_thread): ... this. Handle resume_stop. In
19703 non-stop mode, don't look for pending flag in all threads.
19704 (resume_status_pending_p): Don't consider explicitly suspended
19706 (my_waitpid): Reimplement. Emulate __WALL.
19707 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19709 (sigchld_handler, linux_supports_non_stop, linux_async)
19710 (linux_start_non_stop): New.
19711 (linux_target_ops): Register linux_supports_non_stop, linux_async
19712 and linux_start_non_stop.
19713 (initialize_low): Install SIGCHLD handler.
19714 * thread-db.c (thread_db_create_event, find_one_thread)
19715 (thread_db_get_tls_address): Use lwpid_of.
19716 * win32-low.c (win32_detach): Adjust to use resume_kind.
19717 (win32_wait): Add `options' argument.
19718 * spu-low.c (spu_resume): Adjust to use resume_kind.
19719 (spu_wait): Add `options' argument.
19721 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19723 Decouple target code from remote protocol.
19725 * target.h (enum target_waitkind): New.
19726 (struct target_waitstatus): New.
19727 (struct target_ops) <wait>: Return an unsigned long. Take a
19728 target_waitstatus pointer instead of a char pointer.
19729 (mywait): Likewise.
19730 * target.c (mywait): Change prototype to return an unsigned long.
19731 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19732 * server.h (thread_from_wait, old_thread_from_wait): Delete
19734 (prepare_resume_reply): Change prototype to take a
19736 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19737 (last_status, last_ptid): New.
19738 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19739 pid instead of a signal.
19740 (attach_inferior): Remove "status" and "signal" parameters.
19742 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19744 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19745 (handle_v_requests, myresume): Remove "status" and "signal"
19746 parameters. Adjust.
19747 (handle_status): New.
19748 (main): Delete local `status'. Adjust.
19749 * remote-utils.c: Include target.h.
19750 (prepare_resume_reply): Change prototype to take a
19751 target_waitstatus. Adjust.
19753 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19755 * spu-low.c (spu_wait): Adjust.
19756 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19758 (win32_wait): Adjust.
19760 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19762 * target.h (struct thread_resume): Delete leave_stopped member.
19763 (struct target_ops): Add a `n' argument to the `resume' callback.
19764 * server.c (start_inferior): Adjust.
19765 (handle_v_cont, myresume): Adjust.
19766 * linux-low.c (check_removed_breakpoint): Adjust to resume
19767 interface change, and to removed leave_stopped field.
19768 (resume_ptr): Delete.
19769 (struct thread_resume_array): New.
19770 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19771 resume interface change.
19772 (linux_continue_one_thread, linux_queue_one_thread)
19773 (resume_status_pending_p): Check if the resume field is NULL
19774 instead of checking the leave_stopped member.
19775 (linux_resume): Adjust to the target resume interface change.
19776 * spu-low.c (spu_resume): Adjust to the target resume interface
19778 * win32-low.c (win32_detach, win32_resume): Ditto.
19780 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19782 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19784 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19786 (linux_continue_one_thread): Only preserve the stepping flag if
19787 there's a pending breakpoint.
19789 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19791 * server.c (main): After the inferior having exited, call
19792 remote_close before exiting gdbserver.
19794 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19796 Fix size of FPSCR in Power 7 processors.
19797 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19798 (PPC_FEATURE_HAS_DFP): New #define.
19799 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19802 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19804 * server.c (handle_query) Whitespace and formatting.
19806 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19808 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19809 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19810 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19811 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19812 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19813 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19814 Makefile.in, configure.ac: Fix whitespace throughout.
19815 * configure: Regenerate.
19817 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19819 * inferiors.c (find_inferior): Make it safe for the callback
19820 function to delete the currently iterated inferior.
19822 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19824 * Makefile.in (linuw_low_h): Move higher.
19825 (thread-db.o): Depend on $(linux_low_h).
19827 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19829 Rename "process" to "lwp" throughout.
19831 * linux-low.c (all_processes): Rename to...
19832 (all_lwps): ... this.
19833 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19834 (add_process): Rename to ...
19835 (add_lwp): ... this. Adjust.
19836 (linux_create_inferior): Adjust.
19837 (linux_attach_lwp): Adjust.
19838 (linux_attach): Adjust.
19839 (linux_kill_one_process): Rename to ...
19840 (linux_kill_one_lwp): ... this. Adjust.
19841 (linux_kill): Adjust.
19842 (linux_detach_one_process): Rename to ...
19843 (linux_detach_one_lwp): ... this. Adjust.
19844 (linux_detach): Adjust.
19845 (check_removed_breakpoint): Adjust.
19846 (status_pending_p): Adjust.
19847 (linux_wait_for_process): Rename to ...
19848 (linux_wait_for_lwp): ... this. Adjust.
19849 (linux_wait_for_event): Adjust.
19850 (send_sigstop): Adjust.
19851 (wait_for_sigstop): Adjust.
19852 (stop_all_processes): Rename to ...
19853 (stop_all_lwps): ... this.
19854 (linux_resume_one_process): Rename to ...
19855 (linux_resume_one_lwp): ... this. Adjust.
19856 (linux_set_resume_request, linux_continue_one_thread)
19857 (linux_queue_one_thread, resume_status_pending_p)
19858 (usr_store_inferior_registers, regsets_store_inferior_registers)
19859 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19861 * linux-low.h (get_process): Rename to ...
19862 (get_lwp): ... this. Adjust.
19863 (get_thread_process): Rename to ...
19864 (get_thread_lwp): ... this. Adjust.
19865 (get_process_thread): Rename to ...
19866 (get_lwp_thread): ... this. Adjust.
19867 (struct process_info): Rename to ...
19868 (struct lwp_info): ... this.
19869 (all_processes): Rename to ...
19870 (all_lwps): ... this.
19871 * proc-service.c (ps_lgetregs): Adjust.
19872 * thread-db.c (thread_db_create_event, find_one_thread)
19873 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19875 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19877 * server.c (handle_query): Handle "qAttached".
19879 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19881 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19882 GPLv3, update license URL.
19884 2009-03-01 Doug Evans <dje@google.com>
19886 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19887 (server_h): Add gdb_signals.h.
19888 (signals.o): Update.
19889 * server.h (target_signal_from_host,target_signal_to_host_p)
19890 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19892 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19894 * remote-utils.c (getpkt): Also generate remote-debug
19895 information if noack_mode is set.
19897 2009-02-06 Pedro Alves <pedro@codesourcery.com>
19899 * server.c (handle_query): Report qXfer:siginfo:read and
19900 qXfer:siginfo:write as supported and handle them.
19901 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19902 * linux-low.c (linux_xfer_siginfo): New.
19903 (linux_target_ops): Set it.
19905 2009-01-26 Pedro Alves <pedro@codesourcery.com>
19907 * server.c (gdbserver_usage): Mention --remote-debug.
19908 (main): Accept '--remote-debug' switch.
19910 2009-01-18 Doug Evans <dje@google.com>
19912 * regcache.c (new_register_cache): No need to check result of xcalloc.
19913 * server.c (handle_search_memory): Back out calls to xmalloc,
19914 result is checked and error is returned to user upon failure.
19915 (handle_query): Ditto. Add more checks for result of malloc.
19916 (handle_v_cont): Check result of malloc, report error back to
19918 (handle_v_run): Ditto. Call freeargv.
19919 * server.h (freeargv): Declare.
19920 * utils.c (freeargv): New fn.
19922 2009-01-15 Doug Evans <dje@google.com>
19924 * gdbreplay.c (perror_with_name): Make arg const char *.
19925 * server.h (target_signal_to_name): Make return type const char *.
19926 * thread-db.c (thread_db_err_str): Make return type const char *.
19927 * utils.c (perror_with_name): Make arg const char *.
19929 2009-01-14 Pedro Alves <pedro@codesourcery.com>
19931 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19932 when handling a EXIT_PROCESS_DEBUG_EVENT.
19934 2009-01-06 Joel Brobecker <brobecker@adacore.com>
19936 * gdbreplay.c (gdbreplay_version): Update copyright year.
19937 * server.c (gdbserver_version): Likewise.
19939 2009-01-05 Doug Evans <dje@google.com>
19941 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19942 (handle_extended_wait): Improve comment.
19944 2008-12-13 Doug Evans <dje@google.com>
19946 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19947 * server.h (ATTR_MALLOC): New macro.
19948 (xmalloc,xcalloc,xstrdup): Declare.
19949 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19950 * inferiors.c: Ditto.
19951 * linux-low.c: Ditto.
19952 * mem-break.c: Ditto.
19953 * regcache.c: Ditto.
19954 * remote-utils.c: Ditto.
19957 * win32-low.c: Ditto.
19959 2008-12-12 Doug Evans <dje@google.com>
19961 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19962 in debugging printf.
19964 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19966 2008-12-09 Doug Evans <dje@google.com>
19968 * linux-low.h (struct process_info): Delete member tid, unused.
19969 * thread-db.c (find_one_thread): Update.
19970 (maybe_attach_thread): Update.
19972 2008-12-02 Pedro Alves <pedro@codesourcery.com>
19974 * target.h (struct target_ops): Add qxfer_osdata member.
19975 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19977 (linux_qxfer_osdata): New functions.
19978 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19980 * server.c (handle_query): Handle "qXfer:osdata:read:".
19981 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19982 (buffer_xml_printf): New functions.
19983 * server.h (struct buffer): New.
19984 (buffer_grow_str, buffer_grow_str0): New macros.
19985 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19986 (buffer_xml_printf): Declare.
19988 2008-11-24 Doug Evans <dje@google.com>
19990 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19992 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19994 * server.c (handle_v_run): Always use the supplied argument list.
19996 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19998 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19999 (xtensa_regmap_table): Add entry for scompare1.
20001 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
20003 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
20004 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
20005 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
20006 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
20007 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
20008 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
20009 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
20010 XML target descriptions.
20011 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
20012 when inferior is running on an ISA 2.05 or later processor. Add
20013 special case to return offset for full 64-bit slot of FPSCR when
20016 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
20018 * Makefile.in (SFILES, clean): Added sparc64 files.
20019 (reg-sparc64.o, reg-sparc64.c): New.
20020 * configure.srv (sparc*-*-linux*): New configuration.
20021 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
20022 syscall arguments for SPARC.
20023 (regsets_store_inferior_registers): Likewise.
20024 * linux-sparc-low.c: New file.
20026 2008-10-21 Doug Evans <dje@google.com>
20028 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
20029 (READLINE_DIR,READLINE_DEP): Delete.
20030 (INTERNAL_CFLAGS): Update.
20031 (LINTFLAGS): Update.
20033 2008-10-10 Pedro Alves <pedro@codesourcery.com>
20035 * server.c (handle_v_run): If GDB didn't specify an argv, use the
20036 whole argv from the last run, not just argv[0].
20038 2008-09-08 Pedro Alves <pedro@codesourcery.com>
20040 * regcache.c (new_register_cache): Return NULL if the register
20041 cache size isn't known yet.
20042 (free_register_cache): Avoid dereferencing a NULL regcache.
20044 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20046 * configure.srv: Merge MIPS and MIPS64.
20048 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
20050 * Makefile.in (uninstall): Apply $(EXEEXT) too.
20052 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
20054 * Makefile.in: Add required vsx dependencies.
20056 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
20057 Declare init_registers_powerpc_vsx32l.
20058 Declare init_registers_powerpc_vsx64l.
20059 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
20060 (ppc_arch_setup): Check for VSX in hwcap.
20061 (ppc_fill_vsxregset): New function.
20062 (ppc_store_vsxregset): New function.
20063 Add new VSX entry in regset_info target_regsets.
20065 * configure.srv: Add new VSX dependencies.
20067 2008-08-12 Pedro Alves <pedro@codesourcery.com>
20069 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
20070 (remote_open): Set or clear transport_is_reliable.
20071 (putpkt_binary): Don't expect acks in noack mode.
20072 (getpkt): Don't send ack/nac in noack mode.
20073 * server.c (handle_general_set): Handle QStartNoAckMode.
20074 (handle_query): If connected by tcp pass QStartNoAckMode+ in
20076 (main): Reset noack_mode on every connection.
20077 * server.h (noack_mode): Declare.
20079 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20081 * Makefile.in (GDBREPLAY_OBS): New variable.
20082 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
20084 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
20085 Daniel Jacobowitz <dan@codesourcery.com>
20087 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
20088 (usr_store_inferior_registers): Likewise.
20089 (regsets_store_inferior_registers): Likewise.
20091 2008-07-31 Rolf Jansen <rj@surtec.com>
20092 Pedro Alves <pedro@codesourcery.com>
20094 * configure.ac: Check for memmem declaration.
20095 * server.c [HAVE_MALLOC_H]: Include malloc.h.
20096 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
20097 (disable_packet_qfThreadInfo): Unconditionally compile.
20098 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
20099 * configure, config.in: Regenerate.
20101 2008-07-28 Doug Kwan <dougkwan@google.com>
20103 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
20104 (linux_write_memory): Remove declaration of errno.
20106 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
20108 * linux-low.c (handle_extended_wait): Do not use "status"
20109 variable uninitialized.
20111 2008-07-07 Pedro Alves <pedro@codesourcery.com>
20113 * server.c (handle_v_attach): Inhibit reporting dll changes.
20115 2008-06-27 Pedro Alves <pedro@codesourcery.com>
20117 * remote-utils.c (prepare_resume_reply): If requested, don't
20118 output "thread:TID" in the T stop reply.
20120 * server.c (disable_packet_vCont, disable_packet_Tthread)
20121 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
20122 (handle_query): If requested, disable support for qC, qfThreadInfo
20124 (handle_v_requests): If requested, disable support for vCont.
20125 (gdbserver_show_disableable): New.
20126 (main): Handle --disable-packet and --disable-packet=LIST.
20128 * server.h (disable_packet_vCont, disable_packet_Tthread)
20129 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
20131 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
20133 * server.c (gdbserver_usage): Mention --version.
20135 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
20137 * Makefile.in (gdbreplay.o): New rule.
20139 2008-06-06 Joseph Myers <joseph@codesourcery.com>
20141 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
20142 message, not gdbserver.
20144 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
20145 Nathan Sidwell <nathan@codesourcery.com>
20146 Joseph Myers <joseph@codesourcery.com>
20148 * acinclude.m4: Include ../../config/acx.m4.
20149 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20150 * configure, config.in: Regenerate.
20151 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20152 * server.c (gdbserver_version): Print PKGVERSION.
20153 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20154 (main): Adjust gdbserver_usage calls.
20155 * gdbreplay.c (version, host_name): Add declarations.
20156 (gdbreplay_version, gdbreplay_usage): New.
20157 (main): Accept --version and --help options.
20159 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20161 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20162 (arm_breakpoint_at): Handle Thumb.
20163 (the_low_target): Add comment.
20165 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20167 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20169 2008-05-09 Doug Evans <dje@google.com>
20171 * server.h (decode_search_memory_packet): Declare.
20172 * remote-utils.c (decode_search_memory_packet): New fn.
20173 * server.c (handle_search_memory_1): New fn.
20174 (handle_search_memory): New fn.
20175 (handle_query): Process qSearch:memory packets.
20177 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20179 * regcache.c (registers_length): Remove.
20180 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20181 full register packet.
20182 * regcache.h (registers_length): Remove prototype.
20183 * server.h (PBUFSIZ): Define to 16384.
20185 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20187 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20188 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20189 powerpc-64l.o, and powerpc-altivec64l.o.
20190 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20191 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20192 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20193 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20194 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20197 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20198 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20199 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20200 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20201 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20202 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20203 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20204 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20205 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20206 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20209 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20210 (init_registers_powerpc_32l): ... this new prototype.
20211 (init_registers_powerpc_32): Remove, replace by ...
20212 (init_registers_powerpc_altivec32l): ... this new prototype.
20213 (init_registers_powerpc_e500): Remove, replace by ...
20214 (init_registers_powerpc_e500l): ... this new prototype.
20215 (init_registers_ppc64): Remove, replace by ...
20216 (init_registers_powerpc_64l): ... this new prototype.
20217 (init_registers_powerpc_64): Remove, replace by ...
20218 (init_registers_powerpc_altivec64l): ... this new prototype.
20219 (ppc_num_regs): Set to 73.
20220 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20221 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20222 (ppc_cannot_store_register): Handle orig_r3 and trap.
20223 (ppc_arch_setup): Update init_registers_... calls.
20224 (ppc_fill_gregset): Handle orig_r3 and trap.
20226 * inferiors.c (clear_inferiors): Reset current_inferior.
20228 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
20230 * acinclude.m4: Add override.m4.
20231 * configure: Regenerate.
20233 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20235 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20236 initial call to init_register_ppc64.
20238 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20240 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20241 single powerpc*-*-linux* case.
20242 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20244 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20246 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
20247 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
20249 * linux-ppc-low.c: Include <elf.h>.
20250 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20251 (ppc_hwcap): New global variable.
20252 (ppc_regmap): Remove __SPE__ #ifdef sections.
20253 (ppc_regmap_e500): New global variable.
20254 (ppc_cannot_store_register): Update __SPE__ special case.
20255 (ppc_get_hwcap): New function.
20256 (ppc_arch_setup): Use it to determine whether inferior supports
20257 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20258 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20259 Do not access registers if target does not support AltiVec.
20260 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20261 Do not access registers if target does not support SPE.
20262 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20264 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20266 * linux-low.c (disabled_regsets, num_regsets): New.
20267 (use_regsets_p): Delete.
20268 (linux_wait_for_process): Clear disabled_regsets.
20269 (regsets_fetch_inferior_registers): Check and set it.
20270 (regsets_store_inferior_registers): Likewise.
20271 (linux_fetch_registers, linux_store_registers): Do not use
20273 (initialize_low): Allocate disabled_regsets.
20275 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20277 * Makefile.in (LIBOBJS): New.
20278 (OBS): Use LIBOBJS.
20279 (memmem.o): New rule.
20280 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20281 * configure: Regenerated.
20283 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20285 * server.c (handle_query): Never return "unsupported" for
20286 qXfer:features:read queries.
20288 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20290 * server.c (get_features_xml): Fix inverted condition.
20291 (handle_query): Always support qXfer:feature:read.
20293 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20295 * server.c (wrapper_argv): New.
20296 (start_inferior): Handle wrapper_argv. If set, expect an extra
20298 (gdbserver_usage): Document --wrapper.
20299 (main): Parse --wrapper.
20301 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20303 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20304 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20305 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20306 (ppc_set_pc): Likewise.
20307 (ppc_arch_setup): New function.
20308 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20309 of collect_register.
20310 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
20312 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20314 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20315 instead of linux-ppc64-low.o.
20316 * linux-ppc64-low.c: Remove file.
20317 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20318 (linux-ppc64-low.o): Remove rule.
20320 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20321 (init_registers_powerpc_64): Likewise.
20322 (ppc_regmap): Conditionally define depending on __powerpc64__.
20323 (ppc_cannot_store_register): Do not special-case "fpscr" when
20324 compiled on __powerpc64__.
20325 (ppc_collect_ptrace_register): New function.
20326 (ppc_supply_ptrace_register): New function.
20327 (ppc_breakpoint): Change type to "unsigned int".
20328 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20329 (the_low_target): Conditionally provide initializers for the
20330 arch_setup member depending on __powerpc64__. Install
20331 collect_ptrace_register and supply_ptrace_register members.
20333 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20335 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20336 * server.c (gdbserver_xmltarget): Define.
20337 (get_features_xml): Use it to replace "target.xml" and arch_string.
20339 * configure.srv: Remove srv_xmltarget. Add XML files that were
20340 mentioned there to srv_xmlfiles instead. Remove conditional tests
20341 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20342 srv_xmlfiles and srv_regobj to include all possible choices.
20343 * configure.ac (srv_xmltarget): Remove.
20344 (srv_xmlfiles): Do not add "target.xml".
20345 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20346 checks for supplementary target information.
20347 * configure: Regenerate.
20348 * Makefile.in (XML_TARGET): Remove.
20349 (target.xml): Remove rule.
20350 (clean): Do not clean up target.xml.
20351 (.PRECIOUS): Do not mention target.xml.
20353 * target.h (struct target_ops): Remove arch_string member.
20354 * linux-low.c (linux_arch_string): Remove.
20355 (linux_target_ops): Remove arch_string initializer.
20356 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20357 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20358 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20359 * spu-low.c (spu_arch_string): Remove.
20360 (spu_target_ops): Remove arch_string initializer.
20361 * win32-low.c (win32_arch_string): Remove.
20362 (win32_target_ops): Remove arch_string initializer.
20363 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20364 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20365 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20367 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20369 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20370 by collect_ptrace_register and supply_ptrace_register hooks.
20371 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20372 instead of checking for the_low_target.left_pad_xfer.
20373 (usr_store_inferior_registers): Use collect_ptrace_register callback
20374 instead of checking for the_low_target.left_pad_xfer.
20376 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20377 (s390_supply_ptrace_register): Likewise.
20378 (s390_fill_gregset): Call s390_collect_ptrace_register.
20379 (the_low_target): Update.
20381 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20382 (ppc_supply_ptrace_register): Likewise.
20383 (the_low_target): Update.
20385 * linux-i386-low.c (the_low_target): Update.
20386 * linux-x86-64-low.c (the_low_target): Update.
20388 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20390 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20391 reg-s390.o and reg-s390x.o.
20393 * linux-low.c (new_inferior): New global variable.
20394 (linux_create_inferior, linux_attach): Set it.
20395 (linux_wait_for_process): Call the_low_target.arch_setup after the
20396 target has stopped for the first time.
20397 (initialize_low): Do not call the_low_target.arch_setup.
20399 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20400 (s390_set_pc): Likewise.
20401 (s390_arch_setup): New function.
20402 (the_low_target): Use s390_arch_setup as arch_setup routine.
20404 * regcache.c (realloc_register_cache): New function.
20405 (set_register_cache): Call it for each existing regcache.
20407 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20409 * server.h (init_registers): Remove prototype.
20411 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20412 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20413 instead of init_registers ().
20414 * linux-arm-low.c (init_registers_arm): Add prototype.
20415 (init_registers_arm_with_iwmmxt): Likewise.
20416 (the_low_target): Add initializer for arch_setup field.
20417 * linux-cris-low.c (init_registers_cris): Add prototype.
20418 (the_low_target): Add initializer for arch_setup field.
20419 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20420 (the_low_target): Add initializer for arch_setup field.
20421 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20422 (the_low_target): Add initializer for arch_setup field.
20423 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20424 (the_low_target): Add initializer for arch_setup field.
20425 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20426 (the_low_target): Add initializer for arch_setup field.
20427 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20428 (the_low_target): Add initializer for arch_setup field.
20429 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20430 (init_registers_mips64_linux): Likewise.
20431 (the_low_target): Add initializer for arch_setup field.
20432 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20433 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20434 (the_low_target): Add initializer for arch_setup field.
20435 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20436 (init_registers_powerpc_64): Likewise.
20437 (the_low_target): Add initializer for arch_setup field.
20438 * linux-s390-low.c (init_registers_s390): Add prototype.
20439 (init_registers_s390x): Likewise.
20440 (the_low_target): Add initializer for arch_setup field.
20441 * linux-sh-low.c (init_registers_sh): Add prototype.
20442 (the_low_target): Add initializer for arch_setup field.
20443 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20444 (the_low_target): Add initializer for arch_setup field.
20445 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20446 (the_low_target): Add initializer for arch_setup field.
20448 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20449 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20450 instead of init_registers ().
20451 * win32-arm-low.c (init_registers_arm): Add prototype.
20452 (the_low_target): Add initializer for arch_setup field.
20453 * win32-i386-low.c (init_registers_i386): Add prototype.
20454 (the_low_target): Add initializer for arch_setup field.
20456 * spu-low.c (init_registers_spu): Add prototype.
20457 (initialize_low): Call initialie_registers_spu () instead of
20458 initialize_registers ().
20460 2008-02-19 Pedro Alves <pedro@codesourcery.com>
20462 * server.c (handle_v_requests): When handling the vRun and vAttach
20463 packets, if already debugging a process, don't kill it. Return an
20466 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20468 * server.c (handle_query): Correct length check.
20470 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20472 * win32-low.c (do_initial_child_stuff): Add process handle
20473 parameter. Set current_process_handle and current_process_id from the
20474 parameters. Clear globals.
20475 (win32_create_inferior): Don't set current_process_handle and
20476 current_process_id here. Instead pass them on the call to
20477 do_initial_child_stuff.
20478 (win32_attach): Likewise.
20479 (win32_clear_inferiors): New.
20480 (win32_kill): Don't close the current process handle or the
20481 current thread handle here. Instead call win32_clear_inferiors.
20482 (win32_detach): Don't open a new handle to the process. Call
20483 win32_clear_inferiors.
20484 (win32_join): Don't rely on current_process_handle; open a new
20485 handle using the process id.
20486 (win32_wait): Call win32_clear_inferiors when the inferior process
20489 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20491 * server.c (monitor_show_help): Add "exit".
20493 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20495 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20496 (clean): Add reg-xtensa.c.
20497 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20498 * configure.srv (xtensa*-*-linux*) New target.
20499 * linux-xtensa-low.c: New.
20500 * xtensa-xtregs.c: New.
20502 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20504 * hostio.c: Don't include errno.h.
20505 (errno_to_fileio_errno): Move to hostio-errno.
20506 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20507 error number outputting to the target->hostio_last_error callback.
20508 (hostio_packet_error): Use FILEIO_EINVAL directly.
20509 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20510 calls to hostio_error.
20511 * hostio-errno.c: New.
20512 * server.h (hostio_last_error_from_errno): Declare.
20513 * target.h (target_ops): Add hostio_last_error member.
20514 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20515 as hostio_last_error handler.
20516 * spu-low.c (spu_target_ops): Likewise.
20517 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20518 (wince_hostio_last_error): New functions.
20519 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20520 as hostio_last_error handler.
20521 (win32_target_ops) [!_WIN32_WCE]: Register
20522 hostio_last_error_from_errno as hostio_last_error handler.
20523 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20524 (hostio-errno.o): New rule.
20525 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20526 * configure.srv (srv_hostio_err_objs): New variable. Default to
20528 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20529 * configure: Regenerate.
20531 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20533 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20534 (linux_kill, linux_detach): Clean up the process list.
20535 * remote-utils.c (remote_open): Improve port number parsing.
20536 (putpkt_binary, input_interrupt): Only send interrupts if the target
20538 * server.c (extended_protocol): Make static.
20539 (attached): Define earlier.
20540 (exit_requested, response_needed, program_argv): New variables.
20541 (target_running): New.
20542 (start_inferior): Clear attached here.
20543 (attach_inferior): Set attached here.
20544 (require_running): Define.
20545 (handle_query): Use require_running and target_running. Implement
20547 (handle_v_attach, handle_v_run): New.
20548 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20549 (gdbserver_usage): Update.
20550 (main): Redo argument parsing. Handle --debug and --multi. Handle
20551 --attach along with other options or after the port. Save
20552 program_argv. Support no initial program. Resynchronize
20553 communication with GDB after an error. Handle "monitor exit".
20554 Use require_running and target_running. Always allow the extended
20555 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20556 restart in extended mode.
20557 * README: Refer to the GDB manual. Update --attach usage.
20559 2007-12-20 Andreas Schwab <schwab@suse.de>
20561 * linux-low.c (STACK_SIZE): Define.
20562 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20563 (linux_test_for_tracefork): Likewise.
20565 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20567 * linux-low.c (linux_wait_for_event): Update messages. Do not
20568 reinsert auto-delete breakpoints.
20569 * mem-break.c (struct breakpoint): Change return type of handler to
20571 (set_breakpoint_at): Update handler type.
20572 (reinsert_breakpoint_handler): Return 1 instead of calling
20574 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20576 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20577 * mem-break.h (set_breakpoint_at): Update handler type.
20578 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20579 * win32-low.c (auto_delete_breakpoint): New.
20580 (get_child_debug_event): Use it.
20582 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20584 * configure.ac: Check for pread and pwrite.
20585 * hostio.c (handle_pread): Fall back to lseek and read.
20586 (handle_pwrite): Fall back to lseek and write.
20587 * config.in, configure: Regenerated.
20589 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20591 * server.c (myresume): Add own_buf argument.
20592 (main): Update calls.
20594 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20596 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20597 * remote-utils.c (remote_open): Do not call disable_async_io.
20598 (block_async_io): Delete.
20599 (unblock_async_io): Make static.
20600 (initialize_async_io): New.
20601 * server.c (handle_v_cont): Handle async I/O here.
20602 (myresume): Likewise. Move other common resume tasks here...
20603 (main): ... from here. Call initialize_async_io. Disable async
20604 I/O before the main loop.
20605 * server.h (initialize_async_io): Declare.
20606 (block_async_io, unblock_async_io): Delete prototypes.
20607 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20609 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20611 * remote-utils.c (readchar): Allow binary data in received messages.
20613 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20615 * win32-low.c (attaching): New global.
20616 (win32_create_inferior): Clear the `attaching' global.
20617 (win32_attach): Set the `attaching' global.
20618 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20619 attaching. Only set a breakpoint at the entry point if not
20622 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20624 * server.c (main): Don't report dll events on the initial
20625 connection on attaches.
20627 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20629 * server.c (main): Relax numerical bases supported for the pid of
20630 the --attach command line argument.
20632 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20634 * win32-low.c (win32_attach): Call OpenProcess before
20635 DebugActiveProcess, not after. Add last error output to error
20638 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20640 * win32-low.c (win32_get_thread_context)
20641 (win32_set_thread_context): New functions.
20642 (thread_rec): Use win32_get_thread_context.
20643 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20644 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20647 2007-12-03 Leo Zayas
20648 Pedro Alves <pedro_alves@portugalmail.pt>
20650 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20652 (child_add_thread): Minor cleanup.
20653 (child_continue): Resume artificially suspended threads before
20654 calling ContinueDebugEvent.
20655 (suspend_one_thread): New.
20656 (fake_breakpoint_event): New.
20657 (get_child_debug_event): Change return type to int. Check here if
20658 gdb sent an interrupt request. If a soft interrupt was requested,
20659 fake a breakpoint event. Return 0 if there is no event to handle,
20661 (win32_wait): Don't check here if gdb sent an interrupt request.
20662 Ensure there is a valid event to handle.
20663 (win32_request_interrupt): Add soft interruption method as last
20666 2007-12-03 Leo Zayas
20667 Pedro Alves <pedro_alves@portugalmail.pt>
20669 * win32-low.h (win32_thread_info): Add descriptions to the
20670 structure members. Replace `suspend_count' counter by a
20672 * win32-low.c (thread_rec): Update condition of when to get the
20673 context from the inferior. Rely on ContextFlags being set if it
20674 has already been retrieved. Only suspend the inferior thread if
20675 we haven't already. Warn if that fails.
20676 (continue_one_thread): s/suspend_count/suspended/. Only call
20677 ResumeThread once. Warn if that fails.
20679 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20681 * win32-low.c (win32_wait): Don't read from the inferior when it
20682 has already exited.
20684 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20686 * Makefile.in (win32_low_h): New variable.
20687 (win32-low.o): Add dependency on $(win32_low_h).
20688 (win32-arm-low.o, win32-i386-low.o): New rules.
20690 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20692 * hostio.c: Correct copyright year.
20694 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20696 * Makefile.in (OBS): Add hostio.o.
20697 (hostio.o): New rule.
20698 * server.h (handle_vFile): Declare.
20699 * hostio.c: New file.
20700 * server.c (handle_v_requests): Take packet_len and new_packet_len
20701 for binary packets. Call handle_vFile.
20702 (main): Update call to handle_v_requests.
20704 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20706 * linux-low.c: Include <sched.h>.
20708 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20710 * linux-low.c (linux_tracefork_grandchild): New.
20711 (linux_tracefork_child): Use clone.
20712 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20714 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20716 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20718 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20720 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20722 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20724 * inferiors.c (change_inferior_id): Delete.
20725 (add_pid_to_list, pull_pid_from_list): New.
20726 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20727 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20728 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20729 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20730 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20731 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20732 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20733 (using_threads): Always set to 1.
20734 (handle_extended_wait): New.
20735 (add_process): Do not set TID.
20736 (linux_create_inferior): Set must_set_ptrace_flags.
20737 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20738 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20739 (linux_thread_alive): Rename TID argument to LWPID.
20740 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20741 (linux_wait_for_event): Do not use TID or check using_threads. Update
20742 call to dead_thread_notify. Call handle_extended_wait.
20743 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20744 (send_sigstop): Delete sigstop_sent.
20745 (wait_for_sigstop): Avoid TID.
20746 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20747 (linux_test_for_tracefork): New.
20748 (linux_lookup_signals): Use thread_db_active and
20749 linux_supports_tracefork_flag.
20750 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20751 * linux-low.h (get_process_thread): Avoid TID.
20752 (struct process_ifo): Move thread_known and tid to the end. Remove
20754 (linux_attach_lwp, thread_db_init): Update prototypes.
20755 * server.h (change_inferior_id): Delete prototype.
20756 (add_pid_to_list, pull_pid_from_list): New prototypes.
20757 * thread-db.c (thread_db_use_events): New.
20758 (find_first_thread): Rename to...
20759 (find_one_thread): ...this. Update callers and messages. Do not
20760 call fatal. Check thread_db_use_events. Do not call
20761 change_inferior_id or new_thread_notify.
20762 (maybe_attach_thread): Update. Do not call new_thread_notify.
20763 (thread_db_init): Set thread_db_use_events. Check use_events.
20764 * utils.c (fatal, warning): Correct message prefix.
20766 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20768 * Makefile.in (clean): Remove new files.
20769 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20770 (powerpc-64.o, powerpc-64.c): New rules.
20771 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20772 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20774 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20776 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20777 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20778 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20779 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20780 (target_regsets): Add AltiVec and SPE register sets.
20781 * configure.ac: Check for AltiVec and SPE.
20782 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20783 (ppc_fill_vrregset, ppc_store_vrregset): New.
20784 (target_regsets): Add AltiVec register set.
20785 * configure: Regenerated.
20787 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20789 * linux-low.c (O_LARGEFILE): Define.
20790 (linux_read_memory): Use /proc/PID/mem.
20791 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20792 * configure, config.in: Regenerated.
20794 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20796 * linux-low.c (linux_wait_for_event): Do not pass signals while
20799 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20801 * win32-low.c (create_process): New.
20802 (win32_create_inferior): Use create_process instead of
20803 CreateProcess. If create_process failed retry appending an ".exe"
20804 suffix. Store the GetLastError result immediatelly after
20805 create_process calls and use it on the call to error.
20807 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20809 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20811 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20813 * configure.ac: Switch license to GPLv3.
20815 2007-08-01 Michael Snyder <msnyder@access-company.com>
20817 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20819 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20821 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20823 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20824 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20825 CloseToolhelp32Snapshot.
20826 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20827 CloseToolhelp32Snapshot.
20829 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20831 * server.c (main): Check for inferior exit before main loop.
20833 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20835 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20836 instead of on tmp_desc.
20838 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20839 Daniel Jacobowitz <dan@codesourcery.com>
20841 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20842 (add_thread): Minor cleanups.
20843 (clear_inferiors): Move lower in the file. Clear the DLL
20845 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20846 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20847 (xml_escape_text): New.
20848 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20850 (handle_v_cont): Report errors.
20851 (gdbserver_version): Update.
20852 (main): Correct size of own_buf. Do not report initial DLL events.
20853 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20854 (unloaded_dll, xml_escape_text): New.
20855 * win32-low.c (enum target_waitkind): Update comments.
20856 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20857 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20858 (win32_EnumProcessModules, win32_GetModuleInformation)
20859 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20860 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20861 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20862 (win32_Module32First, win32_Module32Next, load_toolhelp)
20863 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20864 (get_child_debug_event): Handle DLL events.
20865 (win32_wait): Likewise.
20867 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20869 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20870 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20872 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20874 * win32-low.c (handle_output_debug_string): Ignore event if not
20877 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20879 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20881 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20883 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20885 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20887 * inferiors.c (change_inferior_id): Add comment.
20888 * linux-low.c (check_removed_breakpoint): Add an early
20889 prototype. Improve debug output.
20890 (linux_attach): Doc update.
20891 (linux_detach_one_process, linux_detach): Clean up before releasing
20893 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20894 * linux-low.h (struct process_info): Doc improvement.
20895 * mem-break.c (delete_all_breakpoints): New.
20896 * mem-break.h (delete_all_breakpoints): New prototype.
20897 * thread-db.c (find_first_thread): New.
20898 (thread_db_create_event): Call it instead of
20899 thread_db_find_new_threads. Clean up unused variables.
20900 (maybe_attach_thread): Remove first thread handling.
20901 (thread_db_find_new_threads): Use find_first_thread.
20902 (thread_db_get_tls_address): Likewise.
20904 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20906 * thread-db.c (thread_db_find_new_threads): Add prototype.
20907 (thread_db_create_event): Check for the main thread before adding
20909 (maybe_attach_thread): Only enable event reporting if TID == 0.
20910 (thread_db_get_tls_address): Check for new threads.
20912 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20914 * linux-low.c (linux_create_inferior): Try execv before execvp.
20915 * spu-low.c (spu_create_inferior): Likewise.
20917 2007-06-13 Mike Frysinger <vapier@gentoo.org>
20919 * linux-low.c (linux_create_inferior): Change execv to execvp.
20920 * spu-low.c (spu_create_inferior): Likewies.
20922 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20924 * Makefile.in (clean): Clean new files instead of deleted ones.
20925 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20926 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20928 * configure.srv: Specify XML files and new regformats for MIPS and
20930 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20931 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20932 an entry for the restart register.
20933 (mips_cannot_fetch_register, mips_cannot_store_register)
20934 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20935 register names to match the XML descriptions.
20936 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20937 restart register instead of $0.
20939 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20940 Markus Deuling <deuling@de.ibm.com>
20942 * remote-utils.c (decode_xfer_write): New function.
20943 * server.h (decode_xfer_write): Add prototype.
20944 * server.c (handle_query): Add PACKET_LEN argument. Support
20945 qXfer:spu:read and qXfer:spu:write packets.
20946 (main): Pass packet_len to handle_query.
20947 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20948 * target.h (target_ops): Add qxfer_spu.
20950 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20952 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20953 accessing non-seekable spufs files.
20955 2007-05-16 Markus Deuling <deuling@de.ibm.com>
20957 * server.c (handle_query): Add reply for qC packet.
20959 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20960 Leo Zayas <lerele@champenstudios@com>
20962 * server.h (check_remote_input_interrupt_request): New function.
20963 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20964 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20965 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20966 (check_remote_input_interrupt_request): New function.
20967 * server.h (check_remote_input_interrupt_request): Declare.
20968 * win32-low.c (winapi_DebugBreakProcess,
20969 winapi_GenerateConsoleCtrlEvent): New typedefs.
20970 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20972 (win32_wait): Check for remote interrupt request
20973 with check_remote_input_interrupt_request.
20974 (win32_request_interrupt): New function.
20975 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20977 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20979 * win32-low.c (debug_registers_changed,
20980 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20981 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20982 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20983 (thread_rec): Get context using the low target.
20984 (child_add_thread): Call thread_added on the low target,
20985 which does the same thing.
20987 (do_initial_child_stuff): Remove debug registers references.
20988 Set context using the low target. Resume threads after
20989 setting the contexts.
20990 (child_continue): Remove dead variable. Remove debug
20991 registers references.
20992 (child_fetch_inferior_registers): Go through the low target.
20993 (do_child_store_inferior_registers): Remove.
20994 (child_store_inferior_registers): Go through the low target.
20995 (win32_resume): Remove debug registers references.
20996 Set context using the low target.
20997 (handle_exception): Change return type to void. Don't record
20998 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20999 first chance exception.
21000 (get_child_debug_event): Change return type to void. Remove
21001 goto loop. Always return after waiting for debug event.
21002 (win32_wait): Convert to switch statement. Handle spurious
21005 * win32-i386-low.c (debug_registers_changed,
21006 debug_registers_used): New.
21007 (initial_stuff): Rename to ...
21008 (i386_initial_stuff): ... this. Clear debug registers
21010 (store_debug_registers): Delete.
21011 (i386_get_thread_context): New.
21012 (load_debug_registers): Delete.
21013 (i386_set_thread_context): New.
21014 (i386_thread_added): New.
21015 (single_step): Rename to ...
21016 (i386_single_step): ... this.
21017 (do_fetch_inferior_registers): Rename to ...
21018 (i386_fetch_inferior_register): ... this.
21019 (i386_store_inferior_register): New.
21020 (the_low_target): Adapt to new interface.
21022 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
21023 (arm_get_thread_context): New.
21024 (arm_set_thread_context): New.
21026 (do_fetch_inferior_registers): Rename to ...
21027 (arm_fetch_inferior_register): ... this.
21028 (arm_store_inferior_register): New.
21029 (arm_wince_breakpoint): Reimplement as unsigned long.
21030 (arm_wince_breakpoint_len): Define.
21031 (the_low_target): Adapt to new interface.
21033 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
21034 load_debug_registers. Add get_thread_context, set_thread_context,
21035 thread_added and store_inferior_register. Rename
21036 fetch_inferior_registers to fetch_inferior_register.
21037 (regptr): Remove declaration.
21039 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21041 * linux-low.c (linux_detach): Change return type to int. Return 0.
21042 * spu-low.c (spu_detach): Likewise.
21044 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21046 * target.h (target_ops): Change return type of detach to int.
21048 (join_inferior): New.
21049 * server.c (main): Don't skip detach support on mingw32.
21050 If the inferior doesn't support detaching return error.
21051 Call join_inferior instead of using waitpid.
21052 * linux-low.c (linux_join): New.
21053 (linux_target_op): Add linux_join.
21054 * spu-low.c (spu_join): New.
21055 (spu_target_ops): Add spu_join.
21056 * win32-low.c (win32_detach): Adapt to new interface.
21057 Reopen current_process_handle before detaching. Issue a child
21058 resume before detaching.
21060 (win32_target_op): Add win32_join.
21062 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21064 * win32-low.c (win32-attach): Fix return value.
21065 * target.h (target_ops): Describe ATTACH return values.
21067 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21069 * win32-low.c (GETPROCADDRESS): Define.
21070 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
21071 (winapi_DebugSetProcessKillOnExit): Likewise.
21072 (win32_create_inferior): Force usage of ansi CreateProcessA.
21073 (win32_attach): Use GETPROCADDRESS.
21074 (win32_detach): Likewise.
21076 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21078 * win32-low.c (win32_wait): Don't use WSTOPSIG.
21080 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
21082 * win32-low.c: Commit leftover changes from 2007-03-29.
21084 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21086 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
21087 fields short instead of int. Add explicit padding.
21088 (i387_cache_to_fsave): Remove unnecessary casts.
21089 (i387_fsave_to_cache): Doc fix.
21090 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
21092 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21094 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
21095 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
21097 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21099 * configure.srv (arm*-*-mingw32ce*): Move near the other
21102 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21104 * configure.ac: Add errno checking.
21105 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
21106 sys/file.h and malloc.h.
21107 (AC_CHECK_DECLS): Add perror.
21108 (srv_mingwce): Handle.
21109 * configure.srv (i[34567]86-*-cygwin*): Add
21110 win32-i386-low.o to srv_tgtobj.
21111 (i[34567]86-*-mingw*): Likewise.
21112 (arm*-*-mingw32ce*): Add case.
21113 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21114 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
21115 [__MINGW32CE__] (strerror): New function.
21116 [__MINGW32CE__] (errno): Define to GetLastError.
21117 [__MINGW32CE__] (COUNTOF): New macro.
21118 (remote_open): Remove extra close call.
21119 * mem-break.c (delete_breakpoint_at): New function.
21120 * mem-break.h (delete_breakpoint_at): Declare.
21121 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21122 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
21123 [USE_WIN32API] (read, write): Add char* casts.
21124 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
21125 * server.h: Include wincecompat.h on Windows CE.
21126 [HAVE_ERRNO_H]: Check.
21127 (perror): Declare if not declared.
21128 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
21129 (perror_with_name): Remove errno declaration.
21130 * wincecompat.h: New.
21131 * wincecompat.c: New.
21132 * win32-low.h: New.
21133 * win32-arm-low.c: New.
21134 * win32-i386-low.c: New.
21135 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
21136 (OUTMSG2): Make it safe.
21138 (COUNTOF): New macro.
21139 (NUM_REGS): Get it from the low target.
21140 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
21141 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
21142 (thread_rec): Let low target handle debug registers.
21143 (child_add_thread): Likewise.
21144 (child_init_thread_list): Likewise.
21145 (continue_one_thread): Likewise.
21147 (do_child_fetch_inferior_registers): Move to ...
21148 * win32-i386-low.c: ... here, and rename to ...
21149 (do_fetch_inferior_registers): ... this.
21150 * win32-low.c (child_fetch_inferior_registers):
21151 Go through the low target.
21152 (do_child_store_inferior_registers): Use regptr.
21153 (strwinerror): New function.
21154 (win32_create_inferior): Handle Windows CE.
21155 Use strwinerror instead of strerror on Windows error
21156 codes. Add program to the error output.
21157 Don't close the main thread handle on Windows CE.
21158 (win32_attach): Use coredll.dll on Windows CE.
21159 (win32_kill): Close current process and current
21161 (win32_detach): Use coredll.dll on Windows CE.
21162 (win32_resume): Let low target handle debug registers, and
21164 (handle_exception): Add/Remove initial breakpoint. Avoid
21165 non-existant WSTOPSIG on Windows CE.
21166 (win32_read_inferior_memory): Cast to remove warning.
21167 (win32_arch_string): Go through the low target.
21168 (initialize_low): Call set_breakpoint_data with the low
21169 target's breakpoint.
21170 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21171 FOP_REGNUM, mappings): Move to ...
21172 * win32-i386-low.c: ... here.
21173 * win32-low.c (win32_thread_info): Move to ...
21174 * win32-low.h: ... here.
21175 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21176 win32-arm-low.c and wincecompat.c.
21177 (all:): Add $EXEEXT.
21178 (install-only:): Likewise.
21179 (gdbserver:): Likewise.
21180 (gdbreplay:): Likewise.
21181 * config.in: Regenerate.
21182 * configure: Regenerate.
21184 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21186 * win32-low.c: Rename typedef thread_info to
21187 win32_thread_info throughout.
21189 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21191 * win32-i386-low.c: Rename to ...
21192 * win32-low.c: ... this.
21193 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21194 * Makefile.in: Likewise.
21196 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21198 * remote-utils.c (monitor_output): Constify msg parameter.
21199 * server.h (monitor_output): Likewise.
21200 * win32-i386-low.c (handle_output_debug_string): New.
21201 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21202 handle_output_debug_string.
21203 (get_child_debug_event): Likewise.
21205 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21207 * server.c (main): Correct strtoul check.
21209 2007-03-27 Jon Ringle <jon@ringle.org>
21211 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21213 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21215 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21217 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21219 * terminal.h: Check HAVE_SGTTY_H.
21221 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
21223 * remote-utils.c (remote_open): Print out the assigned port number.
21225 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21227 * remote-utils.c (monitor_output): New function.
21228 * server.c (debug_threads): Define here.
21229 (monitor_show_help): New function.
21230 (handle_query): Handle qRcmd.
21231 (main): Do not handle 'd' packet.
21232 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21233 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21236 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21238 * Makefile.in (EXEEXT): New.
21239 (clean): Use $(EXEEXT).
21241 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21243 * target.h (target_ops): Rename send_signal to request_interrupt,
21244 and remove enum target_signal parameter.
21245 * linux-low.c (linux_request_interrupt): Rename from
21246 linux_send_signal, and always send SIGINT.
21247 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21248 and always send SIGINT.
21249 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21251 (input_interrupt): Likewise.
21253 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21255 * server.c (get_features_xml): Check if target implemented
21257 * win32-i386-low.c (win32_arch_string): New.
21258 (win32_target_ops): Add win32_arch_string as arch_string member.
21260 2007-02-22 Markus Deuling <deuling@de.ibm.com>
21262 * spu-low.c (spu_arch_string): New.
21263 (spu_target_ops): Add spu_arch_string.
21265 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21267 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21268 * configure.ac: Do not check for terminal.h.
21269 * configure, config.in: Regenerated.
21271 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21273 * Makefile.in (OBS): Add $(XML_BUILTIN).
21274 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21276 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21277 (arm-with-iwmmxt.c): New.
21278 * config.in, configure: Regenerate.
21279 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21280 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21281 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21282 (arm*-*-linux*): Add iWMMXt and regset support.
21283 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21284 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21285 (arm_store_wmmxregset, target_regsets): New.
21286 * server.c (get_features_xml): Take annex argument. Check builtin
21288 (handle_query): Handle multiple annexes.
21290 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21292 * remote-utils.c [USE_WIN32API] (read, write): Define.
21293 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21296 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21298 * linux-i386-low.c (the_low_target): Set arch_string.
21299 * linux-x86-64-low.c (the_low_target): Likewise.
21300 * linux-low.c (linux_arch_string): New.
21301 (linux_target_ops): Add it.
21302 * linux-low.h (struct linux_target_ops): Add arch_string.
21303 * server.c (write_qxfer_response): Use const void * for DATA.
21304 (get_features_xml): New.
21305 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21306 * target.h (struct target_ops): Add arch_string method.
21308 2007-01-03 Denis Pilat <denis.pilat@st.com>
21309 Daniel Jacobowitz <dan@codesourcery.com>
21311 * linux-low.c (linux_kill): Handle being called with no threads.
21312 * win32-i386-low.c (win32_kill): Likewise.
21313 (get_child_debug_event): Clear current_process_handle.
21315 2006-12-30 Denis PILAT <denis.pilat@st.com>
21316 Daniel Jacobowitz <dan@codesourcery.com>
21318 * remote-utils.c (remote_open): Check the type of specified
21319 serial port devices before opening them.
21320 * server.c (main): Kill the inferior if an error occurs during
21321 the first remote_open.
21323 2006-12-05 Markus Deuling <deuling@de.ibm.com>
21325 * README: Update supported targets.
21327 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21329 * Makefile.in (clean): Remove reg-mips64.c.
21330 (reg-mips64.c, reg-mips64.o): New rules.
21331 * configure.srv: Handle mips64. Include regset support for mips.
21332 * linux-mips-low.c (union mips_register): New.
21333 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21334 (mips_breakpoint, mips_breakpoint_at): Use int.
21335 (mips_collect_register, mips_supply_register)
21336 (mips_collect_register_32bit, mips_supply_register_32bit)
21337 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21338 (mips_store_fpregset, target_regsets): New.
21339 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21341 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21343 * configure.srv: Add target "spu*-*-*".
21344 * Makefile.in (clean): Remove reg-spu.c.
21345 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21346 * spu-low.c: New file.
21348 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21350 * configure.ac: Correct td_thr_tls_get_addr test.
21351 * configure: Regenerated.
21353 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21355 * linux-low.c (linux_wait_for_event): Reformat. Use the
21356 pass_signals array.
21357 * remote-utils.c (decode_address_to_semicolon): New.
21358 * server.c (pass_signals, handle_general_set): New.
21359 (handle_query): Mention QPassSignals for qSupported.
21360 (main): Call handle_general_set.
21361 * server.h (pass_signals, decode_address_to_semicolon): New.
21363 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21365 * server.c (handle_query): Correct error handling for read_auxv.
21367 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21369 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21370 and srv_linux_thread_db to yes.
21371 * linux-s390-low.c (s390_fill_gregset): New function.
21372 (target_regsets): Define data structure.
21374 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21376 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21377 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21378 * config.in, configure: Regenerated.
21379 * inferiors.c (gdb_id_to_thread): New function.
21380 (gdb_id_to_thread_id): Use it.
21381 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21382 * linux-low.h (struct process_info): Add th member.
21383 (thread_db_get_tls_address): New prototype.
21384 * remote-utils.c (decode_address): Make non-static.
21385 * server.c (handle_query): Handle qGetTLSAddr.
21386 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21387 * target.h (struct target_ops): Add get_tls_address.
21388 * thread-db.c (maybe_attach_thread): Save the thread handle.
21389 (thread_db_get_tls_address): New.
21391 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21393 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21394 (linux_resume_one_process): Take a siginfo_t *. Update all
21395 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21396 (struct pending_signals): Add a siginfo_t.
21397 (linux_wait_for_process): Always set last_status.
21398 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21399 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21400 * linux-low.h (struct process_info): Add last_status.
21402 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21404 * remote-utils.c (try_rle): New function.
21405 (putpkt_binary): Use it.
21407 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21409 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21410 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21411 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21412 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21413 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21416 2006-08-08 Richard Sandiford <richard@codesourcery.com>
21418 * server.c (terminal_fd): New variable.
21419 (old_foreground_pgrp): Likewise.
21420 (restore_old_foreground_pgrp): New function.
21421 (start_inferior): Record the terminal file descriptor in terminal_fd
21422 and its original foreground group in old_foreground_pgrp. Register
21423 restore_old_foreground_pgrp with atexit().
21425 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21427 * server.c (handle_query): Correct qPart to qXfer.
21429 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21431 * configure.ac: Check for more headers which are missing on
21432 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21433 * configure.srv: Add Cygwin and mingw32.
21434 * remote-utils.c: Don't include headers unconditionally which
21435 are missing on mingw32. Include <winsock.h> for mingw32.
21436 (remote_open): Adjust for mingw32 support. Flush
21437 standard error after writing to it.
21438 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21439 (unblock_async_io, enable_async_io, disable_async_io)
21440 (readchar, getpkt): Update for Winsock support.
21441 (prepare_resume_reply): Expect a protocol signal number.
21442 * server.c: Disable <sys/wait.h> on mingw32.
21443 (start_inferior): Adjust for mingw32 support. Flush
21444 standard error after writing to it.
21445 (attach_inferior): Likewise. Use protocol signal
21447 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21449 * win32-i386-low.c: New file.
21450 * Makefile.in (XM_CLIBS): Set.
21451 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21452 (win32-i386-low.o): New dependency rule.
21453 * linux-low.c (linux_wait): Use target signal numbers.
21454 * target.h (struct target_ops): Doc fix.
21455 * server.h (target_signal_to_name): New prototype.
21456 * gdbreplay.c: Don't include headers unconditionally which
21457 are missing on mingw32. Include <winsock.h> for mingw32.
21458 (remote_close, remote_open): Adjust for Winsock support.
21459 * configure, config.in: Regenerated.
21461 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21463 * server.c (decode_xfer_read, write_qxfer_response): New.
21464 (handle_query): Take a packet length argument. Handle
21465 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21466 the qSupported response.
21467 (main): Update call to handle_query.
21469 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21471 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21472 (putpkt_binary): Renamed from putpkt and adjusted for binary
21474 (putpkt): New wrapper for putpkt_binary.
21475 (readchar): Don't mask off the high bit.
21476 (decode_X_packet): New function.
21477 * server.c (main): Call putpkt_binary if a handler sets the packet
21478 length. Save the length of the incoming packet. Handle 'X'.
21479 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21481 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21483 * server.c (handle_query): Handle qSupported.
21485 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21487 * remote-utils.c (all_symbols_looked_up): New variable.
21488 (look_up_one_symbol): Check it.
21489 * server.h (look_up_one_symbol): New declaration.
21490 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21492 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21494 * Makefile.in (linux-arm-low.o): Update dependencies.
21495 * linux-arm-low.c: Include "gdb_proc_service.h".
21496 (PTRACE_GET_THREAD_AREA): Define.
21497 (ps_get_thread_area): New function.
21499 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21501 * configure.srv (m68k*-*-uclinux*): New target.
21502 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21503 (linux_resume_one_process): Remove extraneous cast.
21504 (linux_read_offsets): New.
21505 (linux_target_op): Add linux_read_offsets on mmuless systems.
21506 * server.c (handle_query): Add qOffsets logic.
21507 * target.h (struct target_ops): Add read_offsets.
21509 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21511 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21512 (PTRACE_GET_THREAD_AREA): Define.
21513 (ps_get_thread_area): New function.
21514 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21515 (linux-x86-64-low.o): Update.
21517 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21519 * configure.ac: Remove checks for prfpregset_t.
21520 * gdb_proc_service.h: New file.
21521 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21522 new "gdb_proc_service.h".
21523 * proc-service.c: Likewise.
21524 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21525 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21526 * Makefile.in (gdb_proc_service_h): Updated.
21527 * configure, config.in: Regenerated.
21529 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21531 * remote-utils.c (prepare_resume_reply): Move declaration
21532 of gdb_id_from_wait to the top of the block.
21534 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21536 * linux-low.c (regsets_store_inferior_registers): Read the regset
21537 from the target before filling it.
21539 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21541 * server.c (attach_inferior): Return SIGTRAP for a successful
21544 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21546 * Makefile.in (OBS): Add version.o.
21547 (STAGESTUFF): Delete.
21548 (version.o): Add dependencies.
21549 (version.c): Replace rule.
21550 (clean): Remove version.c.
21551 * server.c (gdbserver_version): New.
21552 (gdbserver_usage): Use printf.
21553 (main): Handle --version and --help.
21554 * server.h (version, host_name): Add declarations.
21556 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21568 * linux-x86-64-low.c:
21570 * linux-s390-low.c:
21571 * linux-ppc64-low.c:
21573 * linux-mips-low.c:
21574 * linux-m68k-low.c:
21575 * linux-m32r-low.c:
21578 * linux-ia64-low.c:
21579 * linux-i386-low.c:
21580 * linux-crisv32-low.c:
21592 * gdbserver.1: Add (C) after Copyright. Update the FSF
21595 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21597 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21598 (arm_breakpoint_at): Recognize both breakpoints.
21599 (the_low_target): Use the correct breakpoint instruction.
21601 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21603 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21604 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21605 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21606 (the_low_target): Update.
21608 2005-10-25 Andreas Schwab <schwab@suse.de>
21610 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21612 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21613 (ia64_num_regs): Reduce to 462.
21615 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21617 * acinclude.m4: Correct quoting.
21618 * aclocal.m4: Regenerated.
21620 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21621 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21622 (thread_db_init): Call thread_db_err_str.
21623 * configure.ac: Check for TD_VERSION.
21624 * config.in, configure: Regenerated.
21626 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21628 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21630 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21632 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21633 is not available. Define HAVE_PTRACE_GETREGS if it is.
21634 * config.in, configure: Regenerated.
21635 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21636 * linux-i386-low.c, linux-m68k-low.c: Update to use
21637 HAVE_PTRACE_GETREGS.
21638 * linux-low.c (regsets_fetch_inferior_registers)
21639 (regsets_store_inferior_registers): Only return 0 if we processed
21641 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21642 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21644 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21646 * inferiors.c (struct thread_info): Add gdb_id.
21647 (add_thread): Add gdb_id argument.
21648 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21649 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21650 calls to add_thread.
21651 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21652 * server.c (handle_query): Use thread_to_gdb_id.
21653 (handle_v_cont, main): Use gdb_id_to_thread_id.
21654 * server.h (add_thread): Update prototype.
21655 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21658 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21660 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21661 left-padded registers.
21662 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21663 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21665 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21667 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21668 * configure: Regenerate.
21669 * config.in: Regenerate.
21670 * server.h (NEED_DECLARATION_STRERROR):
21671 Replace with !HAVE_DECL_STRERROR.
21673 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21675 * linux-low.c (linux_wait, linux_send_signal): Don't test
21676 an unsigned long variable for > 0 if it could be MAX_ULONG.
21677 * server.c (myresume): Likewise.
21678 * target.c (set_desired_inferior): Likewise.
21680 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21682 * configure.ac: Simplify and improve check for socklen_t.
21683 * configure, config.in: Regenerate.
21685 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21687 * acconfig.h: Remove.
21688 * configure.ac: Add a test for socklen_t. Use three-argument
21689 AC_DEFINE throughout.
21690 * config.in: Regenerated using autoheader 2.59.
21691 * configure: Regenerated.
21693 * gdbreplay.c (socklen_t): Provide a default.
21694 (remote_open): Use socklen_t.
21695 * remote-utils.c (socklen_t): Provide a default.
21696 (remote_open): Use socklen_t.
21697 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21700 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21702 * linux-low.c (linux_read_memory, linux_write_memory)
21703 (linux_read_auxv): Likewise.
21704 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21705 (check_mem_write): Likewise.
21706 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21708 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21709 (registers_from_string, register_data): Likewise.
21710 * server.c (handle_query, main): Likewise.
21711 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21712 (decode_M_packet): Likewise.
21713 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21714 * target.h (struct target_ops): Update read_memory, write_memory,
21716 (read_inferior_memory, write_inferior_memory): Update.
21717 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21718 to unsigned char *.
21719 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21720 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21721 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21722 linux-s390-low.c, linux-sh-low.c: Update for changes in
21723 read_inferior_memory and the_low_target->breakpoint.
21725 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21727 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21728 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21729 * configure.srv: Add powerpc64-*-linux*.
21730 * linux-ppc64-low.c: New file.
21732 2005-05-23 Orjan Friberg <orjanf@axis.com>
21734 * linux-cris-low.c: New file with support for CRIS.
21735 * linux-crisv32-low.c: Ditto for CRISv32.
21736 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21737 (clean): Add reg-cris.c and reg-crisv32.c.
21738 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21739 reg-crisv32.o, and reg-crisv32.c to make rules.
21740 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21741 recognized targets.
21743 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21745 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21746 of sizeof (PTRACE_XFER_TYPE).
21747 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21749 2005-05-12 Orjan Friberg <orjanf@axis.com>
21751 * target.h (struct target_ops): Add insert_watchpoint,
21752 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21753 pointers for hardware watchpoint support.
21754 * linux-low.h (struct linux_target_ops): Ditto.
21755 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21756 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21757 to linux_target_ops.
21758 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21760 * server.c (main): Recognize 'Z' and 'z' packets.
21762 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21764 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21765 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21766 (the_low_target): Add new members.
21768 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21770 * proc-service.c (ps_lgetregs): Search all_processes instead of
21773 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21775 * server.c (start_inferior): Change return type to int.
21776 (attach_inferior): Change sigptr to int *.
21777 (handle_v_cont, handle_v_requests): Change signal to int *.
21778 (main): Change signal to int.
21780 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21782 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21783 * configure.srv: Add m32r*-*-linux*.
21784 * linux-m32r-low.c: New file.
21786 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21788 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21790 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21792 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21793 Take unsigned long arguments for PIDs.
21794 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21795 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21796 (wait_for_sigstop, linux_resume_one_process)
21797 (regsets_fetch_inferior_registers, linux_send_signal)
21798 (linux_read_auxv): Likewise. Update the types of variables holding
21799 PIDs. Update format string specifiers.
21800 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21801 * remote-utils.c (prepare_resume_reply): Likewise.
21802 * server.c (cont_thread, general_thread, step_thread)
21803 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21805 (handle_query): Update format specifiers.
21806 (handle_v_cont, main): Use strtoul for thread IDs.
21807 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21808 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21809 (general_thread, step_thread, thread_from_wait)
21810 (old_thread_from_wait): Update.
21811 * target.h (struct thread_resume): Use unsigned long for THREAD.
21812 (struct target_ops): Use unsigned long for arguments to attach and
21815 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21817 * acinclude.m4: Include bfd/bfd.m4 directly.
21818 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21819 <agriffis@toolchain.org>.
21820 * aclocal.m4, configure: Regenerated.
21822 2005-01-07 Andrew Cagney <cagney@gnu.org>
21824 * configure.ac: Rename configure.in, require autoconf 2.59.
21825 * configure: Re-generate.
21827 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21829 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21830 LIBS when finished.
21831 * aclocal.m4: Regenerated.
21832 * configure: Regenerated.
21834 2004-11-21 Andreas Schwab <schwab@suse.de>
21836 * linux-m68k-low.c (m68k_num_gregs): Define.
21837 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21838 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21839 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21840 (m68k_breakpoint_at): New. Add to the_low_target.
21842 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21843 srv_linux_thread_db to yes.
21845 2004-10-20 Joel Brobecker <brobecker@gnat.com>
21847 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21848 (ARCH_SET_FS): Likewise.
21849 (ARCH_GET_FS): Likewise.
21850 (ARCH_GET_GS): Likewise.
21852 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21854 * linux-i386-low.c (ps_get_thread_area): New.
21855 * linux-x86-64-low.c (ps_get_thread_area): New.
21856 * linux-low.c: Include <sys/syscall.h>.
21857 (linux_kill_one_process): Don't kill the first thread here.
21858 (linux_kill): Kill the first thread here.
21859 (kill_lwp): New function.
21860 (send_sigstop, linux_send_signal): Use it.
21861 * proc-service.c: Clean up #ifdefs.
21862 (fpregset_info): Delete.
21863 (ps_lgetregs): Update and enable implementation.
21864 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21866 * remote-utils.c (struct sym_cache, symbol_cache): New.
21867 (input_interrupt): Print a clearer message.
21868 (async_io_enabled): New variable.
21869 (enable_async_io, disable_async_io): Use it. Update comments.
21870 (look_up_one_symbol): Use the symbol cache.
21871 * thread-db.c (thread_db_look_up_symbols): New function.
21872 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21874 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21876 * configure.in: Test for -rdynamic.
21877 * configure: Regenerated.
21878 * Makefile (INTERNAL_LDFLAGS): New.
21879 (gdbserver, gdbreplay): Use it.
21881 2004-09-02 Andrew Cagney <cagney@gnu.org>
21883 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21885 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21887 * linux-low.c (linux_wait): Clear all_processes list also.
21889 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21891 * linux-low.c: Include <errno.h>. Remove extern declaration of
21894 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21896 * gdbreplay.c, server.h, utils.c: Update copyright years.
21898 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21900 * server.c (main): Print child status or termination signal from
21901 variable 'signal', not 'sig'.
21903 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21905 * linux-low.c (linux_read_memory): Change return type to
21906 int. Check for and return error from ptrace().
21907 * target.c (read_inferior_memory): Change return type to int. Pass
21908 back return status from the_target->read_memory().
21909 * target.h (struct target_ops): Adapt *read_memory() prototype.
21911 (read_inferior_memory): Adapt prototype.
21912 * server.c (main): Return an error packet if
21913 read_inferior_memory() returns an error.
21915 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
21917 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21918 Unify with other clean targets.
21920 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21922 * server.c (handle_v_cont): Call set_desired_inferior.
21924 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21926 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21928 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21930 * linux-low.c (linux_wait): Unblock async I/O.
21931 (linux_resume): Block and enable async I/O.
21932 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21933 * server.h (block_async_io, unblock_async_io): Add prototypes.
21935 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21937 * remote-utils.c (remote_open): Print a status notice after
21938 opening a TCP port.
21939 * server.c (attach_inferior): Print a status notice after
21942 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21944 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21946 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
21948 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21950 * server.c, target.h: Update copyright years.
21952 2004-02-25 Roland McGrath <roland@redhat.com>
21954 * target.h (struct target_ops): New member `read_auxv'.
21955 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21956 * linux-low.c (linux_read_auxv): New function.
21957 (linux_target_ops): Initialize `read_auxv' member to that.
21959 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21961 Committed by Jim Blandy <jimb@redhat.com>.
21963 * linux-s390-low.c (s390_num_regs): Update.
21964 (s390_regmap): Remove control registers. Use __s390x__ predefine
21965 instead of GPR_SIZE to distiguish s390 and s390x targets.
21967 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
21969 * linux-low.c: Update copyright year.
21970 (check_removed_breakpoint): Clear pending_is_breakpoint.
21971 (linux_set_resume_request, linux_queue_one_thread)
21972 (resume_status_pending_p): New functions.
21973 (linux_continue_one_thread): Use process->resume.
21974 (linux_resume): Only resume threads if there are no pending events.
21975 * linux-low.h (struct process_info): Add resume request
21978 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
21980 * regcache.c (new_register_cache): Clear the allocated register
21981 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21983 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
21985 * linux-low.c (linux_resume): Take a struct thread_resume *
21987 (linux_wait): Update call.
21988 (resume_ptr): New static variable.
21989 (linux_continue_one_thread): Renamed from
21990 linux_continue_one_process. Use resume_ptr.
21991 (linux_resume): Use linux_continue_one_thread.
21992 * server.c (handle_v_cont, handle_v_requests): New functions.
21993 (myresume): New function.
21994 (main): Handle 'v' case.
21995 * target.h (struct thread_resume): New type.
21996 (struct target_ops): Change argument of "resume" to struct
21998 (myresume): Delete macro.
22000 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
22002 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
22003 (uninstall): Support DESTDIR.
22005 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
22007 * configure.srv: Add xscale*linux copy of arm*linux entry.
22009 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
22011 * linux-arm-low.c (arm_reinsert_addr): New function.
22012 (the_low_target): Add arm_reinsert_addr.
22014 2003-07-08 Mark Kettenis <kettenis@gnu.org>
22016 * mem-break.c: Remove whitespace at end of file.
22018 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
22020 * configure.in: Check whether we need to prototype strerror.
22021 * server.h: Optionally prototype strerror.
22022 * gdbreplay.c (perror_with_name): Use strerror.
22023 * linux-low.c (linux_attach_lwp): Use strerror.
22024 * utils.c (perror_with_name): Use strerror.
22025 * config.in, configure: Regenerated.
22027 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
22029 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
22030 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
22032 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
22034 * Makefile.in (SFILES): Update.
22035 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
22036 low-sun3.c: Remove files.
22038 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
22040 * linux-low.c: Move comment to linux_thread_alive where it belonged.
22041 (linux_detach_one_process, linux_detach): New functions.
22042 (linux_target_ops): Add linux_detach.
22043 * server.c (main): Handle 'D' packet.
22044 * target.h (struct target_ops): Add "detach" member.
22045 (detach_inferior): Define.
22047 2003-06-13 Mark Kettenis <kettenis@gnu.org>
22049 From Kelley Cook <kelleycook@wideopenwest.com>:
22050 * configure.srv: Accept i[34567]86 variants.
22052 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
22054 * linux-low.c (linux_wait_for_event): Correct comment typos.
22055 (linux_resume_one_process): Call check_removed_breakpoint.
22056 (linux_send_signal): New function.
22057 (linux_target_ops): Add linux_send_signal.
22058 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
22060 * target.h (struct target_ops): Add send_signal.
22062 2003-05-29 Jim Blandy <jimb@redhat.com>
22064 * linux-low.c (usr_store_inferior_registers): Transfer buf in
22065 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
22066 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
22067 away part of the register's value.
22069 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
22071 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
22072 (linux_wait_for_event, linux_init_signals): Likewise.
22074 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
22076 * configure.in: Check for stdlib.h.
22077 * configure: Regenerated.
22078 * config.in: Regenerated.
22080 2003-01-04 Andreas Schwab <schwab@suse.de>
22082 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
22084 2003-01-02 Andrew Cagney <ac131313@redhat.com>
22086 * Makefile.in: Remove obsolete code.
22088 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
22090 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
22091 defined(PT_FPR0_HI).
22093 2002-11-17 Stuart Hughes <seh@zee2.com>
22095 * linux-arm-low.c (arm_num_regs): Increase.
22096 (arm_regmap): Include status register.
22098 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
22100 * linux-low.c (register_addr): Remove incorrect -1 check.
22102 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
22104 * linux-low.c (linux_create_inferior): Call setpgid. Return
22106 (unstopped_p, linux_signal_pid): Remove.
22107 (linux_target_ops): Remove linux_signal_pid.
22108 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
22109 global instead of target method.
22110 * target.h (struct target_ops): Remove signal_pid. Update comment
22111 for create_inferior.
22112 * server.c (signal_pid): New variable.
22113 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
22114 gdbserver. Set the child to be the foreground process group.
22115 (attach_inferior): Set signal_pid.
22117 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
22119 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
22121 2002-08-20 Jim Blandy <jimb@redhat.com>
22123 * Makefile.in (LDFLAGS): Allow the configure script to establish a
22126 2002-08-01 Andrew Cagney <cagney@redhat.com>
22128 * Makefile.in: Make chill references obsolete.
22130 2002-07-24 Kevin Buettner <kevinb@redhat.com>
22132 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
22133 * configure: Regenerate.
22134 * config.in: Regenerate.
22136 2002-07-09 David O'Brien <obrien@FreeBSD.org>
22138 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
22139 (perror_with_name, remote_close, remote_open, expect, play): Static.
22141 2002-07-04 Michal Ludvig <mludvig@suse.cz>
22143 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
22144 byte offsets instead of an array of indexes.
22145 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
22147 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
22149 * regcache.c: Add comment.
22151 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
22153 * thread-db.c: New file.
22154 * proc-service.c: New file.
22155 * acinclude.m4: New file.
22156 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22157 proc-service.o, and thread-db.o.
22158 (linux-low.o): Add USE_THREAD_DB.
22159 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22160 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22161 * aclocal.m4: Regenerated.
22162 * config.in: Regenerated.
22163 * configure: Regenerated.
22164 * configure.in: Check for proc_service.h, sys/procfs.h,
22165 thread_db.h, and linux/elf.h headrs.
22166 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22167 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22168 Check for -lthread_db and thread support.
22169 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22170 PowerPC, and SuperH.
22171 * i387-fp.c: Constify arguments.
22172 * i387-fp.h: Likewise.
22173 * inferiors.c: (struct thread_info): Renamed from
22174 `struct inferior_info'. Remove PID member. Use generic inferior
22175 list header. All uses updated.
22176 (inferiors, signal_pid): Removed.
22177 (all_threads): New variable.
22178 (get_thread): Define.
22179 (add_inferior_to_list): New function.
22180 (for_each_inferior): New function.
22181 (change_inferior_id): New function.
22182 (add_inferior): Removed.
22183 (remove_inferior): New function.
22184 (add_thread): New function.
22185 (free_one_thread): New function.
22186 (remove_thread): New function.
22187 (clear_inferiors): Use for_each_inferior and free_one_thread.
22188 (find_inferior): New function.
22189 (find_inferior_id): New function.
22190 (inferior_target_data): Update argument type.
22191 (set_inferior_target_data): Likewise.
22192 (inferior_regcache_data): Likewise.
22193 (set_inferior_regcache_data): Likewise.
22194 * linux-low.c (linux_bp_reinsert): Remove.
22195 (all_processes, stopping_threads, using_thrads)
22196 (struct pending_signals, debug_threads, pid_of): New.
22197 (inferior_pid): Replace with macro.
22198 (struct inferior_linux_data): Remove.
22199 (get_stop_pc, add_process): New functions.
22200 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22201 Use add_process and add_thread.
22202 (linux_attach_lwp): New function, based on old linux_attach. Use
22203 add_process and add_thread. Set stop_expected for new threads.
22204 (linux_attach): New function.
22205 (linux_kill_one_process): New function.
22206 (linux_kill): Kill all LWPs.
22207 (linux_thread_alive): Use find_inferior_id.
22208 (check_removed_breakpoints, status_pending_p): New functions.
22209 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22210 Update. Use WNOHANG. Wait for cloned processes also. Update process
22211 struct for the found process.
22212 (linux_wait_for_event): New function.
22213 (linux_wait): Use it. Support LWPs.
22214 (send_sigstop, wait_for_sigstop, stop_all_processes)
22215 (linux_resume_one_process, linux_continue_one_process): New functions.
22216 (linux_resume): Support LWPs.
22217 (REGISTER_RAW_SIZE): Remove.
22218 (fetch_register): Use register_size instead. Call supply_register.
22219 (usr_store_inferior_registers): Likewise. Call collect_register.
22220 Fix recursive case.
22221 (regsets_fetch_inferior_registers): Improve error message.
22222 (regsets_store_inferior_registers): Add debugging.
22223 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22224 (unstopped_p, linux_signal_pid): New functions.
22225 (linux_target_ops): Add linux_signal_pid.
22226 (linux_init_signals): New function.
22227 (initialize_low): Call it. Initialize using_threads.
22228 * regcache.c (inferior_regcache_data): Add valid
22230 (get_regcache): Fetch registers lazily. Add fetch argument
22231 and update all callers.
22232 (regcache_invalidate_one, regcache_invalidate): New
22234 (new_register_cache): Renamed from create_register_cache.
22235 Return the new regcache.
22236 (free_register_cache): Change argument to a void *.
22237 (registers_to_string, registers_from_string): Call get_regcache
22238 with fetch flag set.
22239 (register_data): Make static. Pass fetch flag to get_regcache.
22240 (supply_register): Call get_regcache with fetch flag clear.
22241 (collect_register): Call get_regcache with fetch flag set.
22242 (collect_register_as_string): New function.
22243 * regcache.h: Update.
22244 * remote-utils.c (putpkt): Flush after debug output and use
22246 Handle input interrupts while waiting for an ACK.
22247 (input_interrupt): Use signal_pid method.
22248 (getpkt): Flush after debug output and use stderr.
22249 (outreg): Use collect_register_as_string.
22250 (new_thread_notify, dead_thread_notify): New functions.
22251 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22252 and general_thread.
22253 (look_up_one_symbol): Flush after debug output.
22254 * server.c (step_thread, server_waiting): New variables.
22255 (start_inferior): Don't use signal_pid. Update call to mywait.
22256 (attach_inferior): Update call to mywait.
22257 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22258 (main): Don't fetch/store registers explicitly. Use
22259 set_desired_inferior. Support proposed ``Hs'' packet. Update
22261 * server.h: Update.
22262 (struct inferior_list, struct_inferior_list_entry): New.
22263 * target.c (set_desired_inferior): New.
22264 (write_inferior_memory): Constify.
22265 (mywait): New function.
22266 * target.h: Update.
22267 (struct target_ops): New signal_pid method.
22268 (mywait): Removed macro, added prototype.
22270 * linux-low.h (regset_func): Removed.
22271 (regset_fill_func, regset_store_func): New.
22272 (enum regset_type): New.
22273 (struct regset_info): Add type field. Use new operation types.
22274 (struct linux_target_ops): stop_pc renamed to get_pc.
22275 Add decr_pc_after_break and breakpoint_at.
22276 (get_process, get_thread_proess, get_process_thread)
22277 (strut process_info, all_processes, linux_attach_lwp)
22278 (thread_db_init): New.
22280 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22281 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22282 (the_low_target): Add new members.
22283 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22284 (i386_store_fpxregset): Constify.
22285 (target_regsets): Add new kind identifier.
22286 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22287 (i386_set_pc): Add debugging.
22288 (i386_breakpoint_at): New function.
22289 (the_low_target): Add new members.
22290 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22291 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22292 (mips_breakpoint_at): New.
22293 (the_low_target): Add new members.
22294 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22295 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22296 (the_low_target): Add new members.
22297 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22298 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22299 (the_low_target): Add new members.
22300 * linux-x86-64-low.c (target_regsets): Add new kind
22303 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
22305 From Martin Pool <mbp@samba.org>:
22306 * server.c (gdbserver_usage): New function.
22309 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
22311 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22312 stop_at -> stop_pc.
22314 2002-05-04 Andrew Cagney <ac131313@redhat.com>
22316 * Makefile.in: Remove obsolete code.
22318 2002-04-24 Michal Ludvig <mludvig@suse.cz>
22320 * linux-low.c (regsets_fetch_inferior_registers),
22321 (regsets_store_inferior_registers): Removed cast to int from
22323 * regcache.h: Added declaration of struct inferior_info.
22325 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22327 * inferiors.c (struct inferior_info): Add regcache_data.
22328 (add_inferior): Call create_register_cache.
22329 (clear_inferiors): Call free_register_cache.
22330 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22331 * regcache.c (struct inferior_regcache_data): New.
22332 (registers): Remove.
22333 (get_regcache): New function.
22334 (create_register_cache, free_register_cache): New functions.
22335 (set_register_cache): Don't initialize the register cache here.
22336 (registers_to_string, registers_from_string, register_data): Call
22338 * regcache.h: Add prototypes.
22339 * server.h: Likewise.
22341 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22343 * mem-break.c: New file.
22344 * mem-break.h: New file.
22345 * Makefile.in: Add mem-break.o rule; update server.h
22347 * inferiors.c (struct inferior_info): Add target_data
22349 (clear_inferiors): Free target_data member if set.
22350 (inferior_target_data, set_inferior_target_data): New functions.
22351 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22352 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22353 * linux-low.c (linux_bp_reinsert): New variable.
22354 (struct inferior_linux_data): New.
22355 (linux_create_inferior): Use set_inferior_target_data.
22356 (linux_attach): Likewise. Call add_inferior.
22357 (linux_wait_for_one_inferior): New function.
22358 (linux_wait): Call it.
22359 (linux_write_memory): Add const.
22360 (initialize_low): Call set_breakpoint_data.
22361 * linux-low.h (struct linux_target_ops): Add breakpoint
22363 * server.c (attach_inferior): Remove extra add_inferior
22365 * server.h: Include mem-break.h. Update inferior.c
22367 * target.c (read_inferior_memory)
22368 (write_inferior_memory): New functions.
22369 * target.h (read_inferior_memory)
22370 (write_inferior_memory): Change macros to prototypes.
22371 (struct target_ops): Update comments. Add const to write_memory
22374 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
22376 * linux-low.c (usr_store_inferior_registers): Support
22377 registers which are allowed to fail to store.
22378 * linux-low.h (linux_target_ops): Likewise.
22379 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22380 (ppc_cannot_store_register): FPSCR may not be storable.
22382 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22384 * server.h: Include <string.h> if HAVE_STRING_H.
22385 * ChangeLog: Correct paths in last ChangeLog entry.
22387 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22389 * linux-low.h: Remove obsolete prototypes.
22390 (struct linux_target_ops): New.
22391 (extern the_low_target): New.
22392 * linux-low.c (num_regs, regmap): Remove declarations.
22393 (register_addr): Use the_low_target explicitly.
22394 (fetch_register): Likewise.
22395 (usr_fetch_inferior_registers): Likewise.
22396 (usr_store_inferior_registers): Likewise.
22397 * linux-arm-low.c (num_regs): Remove.
22398 (arm_num_regs): Define.
22399 (arm_regmap): Renamed from regmap, made static.
22400 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22402 (arm_cannot_store_register): Renamed from cannot_store_register,
22404 (the_low_target): New.
22405 * linux-i386-low.c (num_regs): Remove.
22406 (i386_num_regs): Define.
22407 (i386_regmap): Renamed from regmap, made static.
22408 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22410 (i386_cannot_store_register): Renamed from cannot_store_register,
22412 (the_low_target): New.
22413 * linux-ia64-low.c (num_regs): Remove.
22414 (ia64_num_regs): Define.
22415 (ia64_regmap): Renamed from regmap, made static.
22416 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22418 (ia64_cannot_store_register): Renamed from cannot_store_register,
22420 (the_low_target): New.
22421 * linux-m68k-low.c (num_regs): Remove.
22422 (m68k_num_regs): Define.
22423 (m68k_regmap): Renamed from regmap, made static.
22424 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22426 (m68k_cannot_store_register): Renamed from cannot_store_register,
22428 (the_low_target): New.
22429 * linux-mips-low.c (num_regs): Remove.
22430 (mips_num_regs): Define.
22431 (mips_regmap): Renamed from regmap, made static.
22432 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22434 (mips_cannot_store_register): Renamed from cannot_store_register,
22436 (the_low_target): New.
22437 * linux-ppc-low.c (num_regs): Remove.
22438 (ppc_num_regs): Define.
22439 (ppc_regmap): Renamed from regmap, made static.
22440 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22442 (ppc_cannot_store_register): Renamed from cannot_store_register,
22444 (the_low_target): New.
22445 * linux-s390-low.c (num_regs): Remove.
22446 (s390_num_regs): Define.
22447 (s390_regmap): Renamed from regmap, made static.
22448 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22450 (s390_cannot_store_register): Renamed from cannot_store_register,
22452 (the_low_target): New.
22453 * linux-sh-low.c (num_regs): Remove.
22454 (sh_num_regs): Define.
22455 (sh_regmap): Renamed from regmap, made static.
22456 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22458 (sh_cannot_store_register): Renamed from cannot_store_register,
22460 (the_low_target): New.
22461 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22462 (the_low_target): New.
22464 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22466 * Makefile.in: Add stamp-h target.
22467 * configure.in: Create stamp-h.
22468 * configure: Regenerated.
22470 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22472 * inferiors.c: New file.
22473 * target.c: New file.
22474 * target.h: New file.
22475 * Makefile.in: Add target.o and inferiors.o. Update
22477 * linux-low.c (inferior_pid): New static variable,
22478 moved from server.c.
22479 (linux_create_inferior): Renamed from create_inferior.
22480 Call add_inferior. Return 0 on success instead of a PID.
22481 (linux_attach): Renamed from myattach.
22482 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22483 (linux_thread_alive): Renamed from mythread_alive.
22484 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22486 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22487 (regsets_store_inferior_registers): Correct error message.
22488 Add missing ``return 0''.
22489 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22490 (linux_store_registers): Renamed from store_inferior_registers.
22491 (linux_read_memory): Renamed from read_inferior_memory.
22492 (linux_write_memory): Renamed from write_inferior_memory.
22493 (linux_target_ops): New structure.
22494 (initialize_low): Call set_target_ops ().
22495 * remote-utils.c (unhexify): New function.
22496 (hexify): New function.
22497 (input_interrupt): Send signals to ``signal_pid''.
22498 * server.c (inferior_pid): Remove.
22499 (start_inferior): Update create_inferior call.
22500 (attach_inferior): Call add_inferior.
22501 (handle_query): New function.
22502 (main): Call handle_query for `q' packets.
22503 * server.h: Include "target.h". Remove obsolete prototypes.
22504 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22506 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22508 * Makefile.in: Add WARN_CFLAGS. Update configury
22510 * configure.in: Check for <string.h>
22511 * configure: Regenerate.
22512 * config.in: Regenerate.
22513 * gdbreplay.c: Include needed system headers.
22514 (remote_open): Remove strchr prototype.
22515 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22516 * regcache.c (supply_register): Change buf argument to const void *.
22517 (supply_register_by_name): Likewise.
22518 (collect_register): Change buf argument to void *.
22519 (collect_register_by_name): Likewise.
22520 * regcache.h: Add missing prototypes.
22521 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22522 * server.c (handle_query): New function.
22523 (attached): New static variable, moved out of main.
22524 (main): Quiet longjmp clobber warnings.
22525 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22526 * utils.c (error): Remove NORETURN.