1 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
3 * linux-low.cc (linux_process_target::filter_event): Return
5 * linux-low.h (class linux_process_target) <filter_event>:
8 2021-02-12 Tom Tromey <tromey@adacore.com>
10 * gdbreplay.cc (remote_desc): Remove.
11 (remote_desc_in, remote_desc_out): New globals.
12 (remote_close): Update.
13 (remote_open): Handle "-".
14 (remote_open): Update.
15 (logchar): Log to stderr.
16 (expect, play): Update.
18 2021-02-12 Tom Tromey <tromey@adacore.com>
20 * gdbreplay.cc (remote_open): Constify.
22 2021-02-05 Paul E. Murphy <murphyp@linux.ibm.com>
24 * Makefile.in (UNDO_GNULIB_CFLAGS): Disable
25 gnulib free replacement too.
26 * common-defs.h [USE_WIN32API](read, write): Undefine
27 gnulib versions before defining these macros.
29 2021-02-03 Pedro Alves <pedro@palves.net>
31 * linux-low.cc (linux_process_target::complete_ongoing_step_over):
32 Discard step SIGTRAP, unless GDB wanted the thread to step.
34 2021-02-03 Pedro Alves <pedro@palves.net>
36 * server.cc (discard_queued_stop_replies): Don't ever discard the
37 notification at the head of the list.
39 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
41 * ax.cc (bytecode_address_table): Make static.
42 * debug.cc (debug_file): Make static.
43 * linux-low.cc (stopping_threads): Make static.
44 (step_over_bkpt): Make static.
45 * linux-x86-low.cc (amd64_emit_ops, i386_emit_ops): Make static.
46 * tracepoint.cc (stop_tracing_bkpt, flush_trace_buffer_bkpt,
47 alloced_trace_state_variables, trace_buffer_ctrl,
48 tracing_start_time, tracing_stop_time, tracing_user_name,
49 tracing_notes, tracing_stop_note): Make static.
51 2021-01-20 Tom de Vries <tdevries@suse.de>
53 * linux-x86-low.cc (collect_register_i386): New function.
54 (x86_fill_gregset): Remove memset. Use collect_register_i386.
56 2021-01-07 Tom de Vries <tdevries@suse.de>
58 * Makefile.in (LIBIBERTY_NORMAL, LIBIBERTY_NOASAN, LIBIBERTY_PIC):
59 (LIBIBERTY_FOR_SHLIB): New var.
60 (LIBIBERTY): Set using $(LIBIBERTY_NORMAL).
61 (IPA_LIB): Use LIBIBERTY_FOR_SHLIB instead of LIBIBERTY in target rule.
63 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
65 * debug.cc (debug_print_depth): New.
67 2021-01-01 Joel Brobecker <brobecker@adacore.com>
69 * server.cc (gdbserver_version): Update copyright year.
70 * gdbreplay.cc (gdbreplay_version): Likewise.
72 2020-12-16 Luis Machado <luis.machado@linaro.org>
74 * linux-aarch64-low.cc (address_significant): New function.
75 (aarch64_target::low_stopped_data_address): Handle the TBI.
77 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
79 * Makefile.in (IPA_LIB): Include libiberty library.
81 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
83 * server.cc (gdbserver_usage): Add missing option to usage text.
84 (gdbserver_show_disableable): Likewise.
86 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
88 * ax.cc: Fix indentation.
89 * dll.cc: Fix indentation.
90 * inferiors.h: Fix indentation.
91 * linux-low.cc: Fix indentation.
92 * linux-nios2-low.cc: Fix indentation.
93 * linux-ppc-ipa.cc: Fix indentation.
94 * linux-ppc-low.cc: Fix indentation.
95 * linux-x86-low.cc: Fix indentation.
96 * linux-xtensa-low.cc: Fix indentation.
97 * regcache.cc: Fix indentation.
98 * server.cc: Fix indentation.
99 * tracepoint.cc: Fix indentation.
101 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
103 * acinclude.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
105 * configure: Re-generate.
107 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
109 * configure: Re-generate.
111 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
113 * configure: Re-generate.
115 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
117 * configure: Re-generate.
119 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
121 * configure: Re-generate.
123 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
125 * configure.ac: Modernize.
126 * configure: Re-generate.
128 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
130 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
132 * configure: Re-generate.
134 2020-10-26 Pedro Alves <pedro@palves.net>
136 * netbsd-low.cc (netbsd_waitpid, netbsd_process_target::kill)
137 (netbsd_qxfer_libraries_svr4): Use gdb::handle_eintr without
140 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
142 * acinclude.m4: Update ptrace.m4 path.
144 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
146 * config.in: Re-generate.
147 * configure: Re-generate.
149 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
151 * server.cc (handle_general_set): Don't use sprintf with
152 argument overlapping buffer.
154 2020-10-20 Tom Tromey <tromey@adacore.com>
157 * inferiors.cc (remove_thread): Clear current_thread before
160 2020-10-13 Kamil Rytarowski <n54@gmx.com>x
162 * netbsd-low.cc (netbsd_tdesc): Remove.
163 (netbsd_add_process): Likewise.
164 (netbsd_process_target::create_inferior): Update.
166 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
168 * linux-arc-low.cc (arc_linux_read_description): Release the
169 unique_ptr returned from arc_create_target_description.
171 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
173 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
174 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
176 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
178 * linux-low.cc (linux_process_target::handle_extended_wait):
179 Release the unique_ptr returned from allocate_target_description.
180 * linux-riscv-low.cc (riscv_target::low_arch_setup): Likewise.
181 * linux-x86-low.cc (tdesc_amd64_linux_no_xml): Change type.
182 (tdesc_i386_linux_no_xml): Change type.
183 (x86_linux_read_description): Borrow pointer from unique_ptr
185 (x86_target::get_ipa_tdesc_idx): Likewise.
186 (initialize_low_arch): Likewise.
187 * tdesc.cc (allocate_target_description): Update return type.
189 2020-10-07 Tom Tromey <tromey@adacore.com>
191 * server.cc (handle_search_memory): Remove dead code.
193 2020-10-07 Tom Tromey <tromey@adacore.com>
195 * server.cc (handle_search_memory_1): Remove.
196 (handle_search_memory): Use simple_search_memory.
198 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
200 * Makefile.in (COMPILE): Add CXXFLAGS.
201 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
202 (gdbserver$(EXEEXT)): Add CXXFLAGS.
203 (gdbreplay$(EXEEXT)): Add CXXFLAGS.
204 ($(IPA_LIB)): Add CXXFLAGS.
205 (IPAGENT_COMPILE): Add CXXFLAGS.
207 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
209 * configure.srv: Support ARC architecture.
210 * Makefile.in: Add linux-arc-low.cc and arch/arc.o.
211 * linux-arc-low.cc: New file.
213 2020-10-07 Kamil Rytarowski <n54@gmx.com>
215 * netbsd-low.cc (get_dynamic, get_r_debug, read_one_ptr)
216 (netbsd_qxfer_libraries_svr4): Remove "target" argument and update.
217 (netbsd_process_target::qxfer_libraries_svr4): Update.
219 2020-10-07 Kamil Rytarowski <n54@gmx.com>
221 * netbsd-low.cc: Fix whitespace formatting.
222 * netbsd-amd64-low.cc: Likewise.
224 2020-10-07 Kamil Rytarowski <n54@gmx.com>
226 * netbsd-low.cc (netbsd_process_target::read_memory)
227 (netbsd_process_target::write_memory): Update.
229 2020-10-07 Kamil Rytarowski <n54@gmx.com>
231 * netbsd-aarch64-low.cc: Add.
232 * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
233 * configure.srv: Add aarch64*-*-netbsd*.
235 2020-10-06 Shahab Vahedi <shahab@synopsys.com>
237 * regcache.cc (register_data): Remove unused "fetch" argument.
239 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
241 * server.cc (handle_monitor_command): Handle "set
243 (captured_main): Handle "--debug-event-loop".
244 (monitor_show_help): Mention new setting.
245 (gdbserver_usage): Mention new flag.
247 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
249 * linux-low.cc (linux_process_target::async): Pass name to
251 * remote-utils.cc (handle_accept_event): Likewise.
252 (remote_open): Likewise.
254 2020-10-01 Kamil Rytarowski <n54@gmx.com>
256 * netbsd-i386-low.cc: Add.
257 * Makefile.in (SFILES): Register "netbsd-i386-low.c".
258 * configure.srv: Add i[34567]86-*-netbsd*.
260 2020-10-01 Kamil Rytarowski <n54@gmx.com>
262 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
263 (netbsd_target_regsets): Now const.
264 (the_low_target): Remove.
265 (class netbsd_amd64_target, the_netbsd_amd64_target)
266 (the_netbsd_target): Add.
267 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
269 (netbsd_process_target::fetch_registers)
270 (netbsd_process_target::store_registers, initialize_low): Update.
271 (the_netbsd_target): Remove.
272 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
273 (the_low_target, netbsd_tdesc): Remove.
274 (netbsd_process_target::get_regs_info)
275 (netbsd_process_target::low_arch_setup): Add.
277 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
279 * win32-low.cc: Remove local wow64_process variable.
280 * win32-low.h: Remove local wow64_process variable.
282 2020-09-18 Tom Tromey <tromey@adacore.com>
284 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
285 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
286 (netbsd_process_target::wait): Change type of target_options.
287 * win32-low.h (class win32_process_target) <wait>: Update.
288 * win32-low.cc (win32_process_target::wait): Update.
289 * target.h (class process_stratum_target) <wait>: Update.
291 * target.cc (mywait, target_wait): Change type of "options".
292 * linux-low.h (class linux_process_target) <wait, wait_1>:
294 * linux-low.cc (linux_process_target::wait)
295 (linux_process_target::wait_1): Update.
297 2020-09-15 Tom Tromey <tromey@adacore.com>
299 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
300 (xmltarget_amd64_linux_no_xml): Now arrays.
302 2020-09-14 Tom Tromey <tromey@adacore.com>
304 * tracepoint.cc (eval_result_names): Now const.
305 * ax.cc (gdb_agent_op_names): Now const.
307 2020-09-10 Kamil Rytarowski <n54@gmx.com>
309 * netbsd-low.cc: Add.
310 * netbsd-low.h: Likewise.
311 * netbsd-amd64-low.cc: Likewise.
312 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
313 "netbsd-amd64-low.cc".
314 * configure.srv: Add x86_64-*-netbsd*.
316 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
318 * server.cc (captured_main): Accept multiple `--selftest=`
319 options. Pass all `--selftest=` arguments to run_tests.
321 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
323 * configure, config.in: Regenerate.
325 2020-07-26 Eli Zaretskii <eliz@gnu.org>
327 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
328 When checking whether socklen_t type is defined, use ws2tcpip.h if
329 it is available and sys/socket.h isn't.
330 * configure: Regenerate.
331 * config.in: Regenerate.
333 2020-07-22 Pedro Alves <pedro@palves.net>
335 * inferiors.cc (switch_to_process): New, moved here from
336 thread-db.cc, and made extern.
337 * inferiors.h (switch_to_process): Declare.
338 * server.cc: Include "gdbsupport/scoped_restore.h".
339 (handle_qxfer_threads_proper): Now returns bool. Prepare to
340 access memory around target calls.
341 (handle_qxfer_threads): Handle errors.
342 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
344 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
346 * linux-low.cc (stopped_pids): Make static.
348 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
350 * tdesc.cc (allocate_target_description): Add header comment.
351 (target_desc_deleter::operator()): New function.
352 * tdesc.h (struct target_desc): Declare as final.
354 2020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
356 * server.cc (handle_query): Use std::vector of
357 std::string for `qsupported` vector. Use separate
359 * target.h (class process_stratum_target) <process_qsupported>:
360 Change parameters to array_view of const char *.
361 (target_process_qsupported): Remove `count` parameter.
362 * target.cc (process_stratum_target::process_qsupported): Change
363 parameters to array_view of const char *.
364 * linux-x86-low.cc (class x86_target) <process_qsupported>:
367 2020-06-29 Tom de Vries <tdevries@suse.de>
369 * ax.h: Include gdbsupport/debug_agent.h.
371 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
373 * tdesc.cc (struct tdesc_compatible_info): New struct.
374 (tdesc_compatible_info_list): New function.
375 (tdesc_compatible_info_arch_name): New function.
377 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
379 Use std::list to stop pending signal instead of manually-created
381 * linux-low.h: Include <list>.
382 (struct pending_signal): Move here from linux-low.cc.
383 (struct lwp_info) <pending_signals>
384 <pending_signals_to_report>: Update the type.
385 * linux-low.cc (struct pending_signals): Remove.
386 (linux_process_target::delete_lwp)
387 (linux_process_target::add_lwp)
388 (enqueue_one_deferred_signal)
389 (dequeue_one_deferred_signal)
390 (enqueue_pending_signal)
391 (linux_process_target::resume_one_lwp_throw)
392 (linux_process_target::thread_needs_step_over)
393 (linux_process_target::resume_one_thread)
394 (linux_process_target::proceed_one_lwp): Update the use of pending
397 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
399 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
402 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
404 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
405 * configure.srv: Remove mingw32ce cases.
406 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
407 * win32-low.h (to_back_slashes): Remove.
408 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
410 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
412 * Makefile.in (SFILES): linux-tile-low.cc.
413 * configure.srv: Remove tilegx case.
414 * linux-tile-low.cc: Remove.
416 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
418 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
419 * configure.srv: Remove m32r case.
420 * linux-m32r-low.cc: Remove.
422 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
424 * Makefile.in (SFILES): Remove linux-cris-low.c.
425 * configure.srv: Remove cris cases.
426 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
428 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
430 * Makefile.in (SFILES): Remove linux-bfin-low.c.
431 * configure.srv: Remove bfin case.
432 * linux-bfin-low.cc: Remove.
433 * linux-low.cc: Remove BFIN-conditional code.
435 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
437 * configure: Re-generate.
438 * configure.ac: Remove srv_qnx test.
439 * configure.srv: Remove nto case.
440 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
441 * remote-utils.c: Remove __QNX__-guarded code.
443 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
445 * configure: Re-generate.
446 * configure.ac: Remove srv_lynxos test.
447 * configure.srv: Remove lynxos cases.
448 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
451 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
453 * README: Fix a few outdated or incoherent things.
455 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
457 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
458 (win32_clear_inferiors): Use open_process_used.
459 (get_child_debug_event): Likewise.
461 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
464 * linux-low.cc (linux_process_target::create_inferior),
465 lynx-low.cc (lynx_process_target::create_inferior),
466 win32-low.cc (win32_process_target::create_inferior): Use
467 construct_inferior_arguments instead of stringify_argv
468 to get string representation which properly escapes
470 * server.cc (handle_v_run): Just pass empty program arg
471 as such, since any further processing is now handled via
472 construct_inferior_arguments.
474 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
476 * nto-low.cc (nto_process_target::create_inferior): Pass
477 argv to spawnp function as char **.
479 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
481 * server.cc (captured_main), (handle_v_run): No longer
482 insert extra NULL element to args vector.
484 2020-05-23 Pedro Alves <palves@redhat.com>
486 * gdb-safe-ctype.h: New.
488 2020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
490 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
491 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
492 (ia64_target::low_breakpoint_at): Ditto.
494 2020-05-15 Hannes Domani <ssbssa@yahoo.de>
496 * win32-i386-low.cc (i386_supports_z_point_type): Handle
497 Z_PACKET_HW_BP z_type.
498 (i386_insert_point): Handle raw_bkpt_type type.
499 (i386_remove_point): Likewise.
501 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
503 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
505 * win32-arm-low.cc (arm_num_regs): New function.
506 (struct win32_target_ops): Use arm_num_regs.
507 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
509 (i386_get_thread_context): Likewise.
510 (i386_prepare_to_resume): Likewise.
511 (i386_thread_added): Likewise.
512 (i386_single_step): Likewise.
513 (i386_fetch_inferior_register): Likewise.
514 (i386_store_inferior_register): Likewise.
515 (i386_arch_setup): Likewise.
516 (i386_win32_num_regs): New function.
517 (struct win32_target_ops): Use i386_win32_num_regs.
518 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
520 (win32_require_context): Likewise.
521 (child_add_thread): Likewise.
522 (do_initial_child_stuff): Likewise.
523 (continue_one_thread): Likewise.
524 (win32_process_target::resume): Likewise.
525 (load_psapi): Likewise.
526 (win32_add_all_dlls): Likewise.
527 (maybe_adjust_pc): Likewise.
528 (win32_process_target::qxfer_siginfo): Likewise.
529 (initialize_low): Likewise.
530 * win32-low.h (struct win32_target_ops): Change num_regs to
533 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
535 * configure.ac: Remove check for fs_base/gs_base in
537 * configure: Re-generate.
538 * config.in: Re-generate.
539 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
540 x86_store_gregset): Adjust.
542 2020-04-22 Hannes Domani <ssbssa@yahoo.de>
544 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
547 2020-04-16 Tom Tromey <tromey@adacore.com>
549 * win32-low.cc (windows_nat::handle_access_violation): New
552 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
554 * win32-low.cc (get_child_debug_event): Fix format string warning.
556 2020-04-13 Tom Tromey <tom@tromey.com>
558 * server.h (gdb_fildes_t): Remove typedef.
559 * remote-utils.c (remote_desc, list_desc): Now int.
560 (INVALID_DESCRIPTOR): Remove.
561 (gdb_connected, remote_close)
562 (check_remote_input_interrupt_request): Update.
563 * utils.h (pfildes): Don't declare.
564 * utils.c (pfildes): Remove.
566 2020-04-13 Tom Tromey <tom@tromey.com>
568 * server.h (handle_serial_event, handle_target_event): Update.
569 * server.c: Don't call initialize_event_loop.
570 (keep_processing_events): New global.
571 (handle_serial_event): Return void. Set keep_processing_events.
572 (handle_target_event): Return void.
573 (start_event_loop): Move from event-loop.c. Rewrite.
574 * remote-utils.c (handle_accept_event): Return void.
575 (reset_readchar): Use delete_timer.
576 (process_remaining): Return void.
577 (reschedule): Use create_timer.
578 * event-loop.h: Remove.
579 * event-loop.cc: Remove.
580 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
582 2020-04-13 Tom Tromey <tom@tromey.com>
584 * server.c (invoke_async_signal_handlers)
585 (check_async_event_handlers, flush_streams, gdb_select): New
588 2020-04-13 Tom Tromey <tom@tromey.com>
590 * configure: Rebuild.
591 * config.in: Rebuild.
593 2020-04-08 Tom Tromey <tromey@adacore.com>
596 * win32-low.c (child_continue): Call matching_pending_stop.
597 (get_child_debug_event): Call fetch_pending_stop. Push pending
600 2020-04-08 Tom Tromey <tromey@adacore.com>
602 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
603 (win32_process_target::supports_stopped_by_sw_breakpoint):
605 * win32-low.c (win32_supports_z_point_type): Always handle
607 (win32_insert_point): Call insert_memory_breakpoint when needed.
608 (win32_remove_point): Call remove_memory_breakpoint when needed.
609 (win32_process_target::stopped_by_sw_breakpoint)
610 (win32_process_target::supports_stopped_by_sw_breakpoint): New
612 (win32_target_ops): Update.
613 (maybe_adjust_pc): New function.
614 (win32_wait): Call maybe_adjust_pc.
616 2020-04-08 Tom Tromey <tromey@adacore.com>
618 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
620 * win32-i386-low.c (the_low_target): Update.
621 * win32-arm-low.c (the_low_target): Update.
623 2020-04-08 Tom Tromey <tromey@adacore.com>
625 * win32-low.h (win32_process_target::read_pc)
626 (win32_process_target::write_pc): Declare.
627 * win32-low.c (win32_process_target::read_pc)
628 (win32_process_target::write_pc): New methods.
629 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
631 (the_low_target): Update.
632 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
634 (the_low_target): Update.
636 2020-04-08 Tom Tromey <tromey@adacore.com>
638 * win32-low.c (win32_kill, get_child_debug_event): Use
639 wait_for_debug_event.
641 2020-04-08 Tom Tromey <tromey@adacore.com>
643 * win32-low.c (child_continue): Call continue_last_debug_event.
645 2020-04-08 Tom Tromey <tromey@adacore.com>
647 * win32-low.c (handle_exception): Remove.
648 (windows_nat::handle_ms_vc_exception): New function.
649 (get_child_debug_event): Add "continue_status" parameter.
651 (win32_wait): Update.
653 2020-04-08 Tom Tromey <tromey@adacore.com>
655 * win32-low.c (windows_nat::handle_load_dll): Rename from
656 handle_load_dll. No longer static.
657 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
660 2020-04-08 Tom Tromey <tromey@adacore.com>
662 * win32-low.c (handle_output_debug_string): Add parameter. Change
664 (win32_kill, get_child_debug_event): Update.
666 2020-04-08 Tom Tromey <tromey@adacore.com>
668 * win32-low.c (current_process_handle, current_process_id)
669 (main_thread_id, last_sig, current_event, siginfo_er): Move to
672 2020-04-08 Tom Tromey <tromey@adacore.com>
674 * win32-low.c (get_image_name): Remove.
675 (handle_load_dll): Update.
677 2020-04-08 Tom Tromey <tromey@adacore.com>
679 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
680 No longer static. Change parameters.
681 (child_add_thread, child_fetch_inferior_registers)
682 (child_store_inferior_registers, win32_resume)
683 (win32_get_tib_address): Update.
685 2020-04-08 Tom Tromey <tromey@adacore.com>
687 * win32-low.h (struct win32_target_ops): Use qualified names where
689 * win32-i386-low.c: Add "using namespace".
690 * win32-low.c: Add "using namespace".
691 * win32-arm-low.c: Add "using namespace".
693 2020-04-08 Tom Tromey <tromey@adacore.com>
695 * win32-low.c (delete_thread_info): Don't call CloseHandle.
697 2020-04-08 Tom Tromey <tromey@adacore.com>
699 * win32-low.c (win32_require_context, suspend_one_thread): Use
700 windows_thread_info::suspend.
701 (continue_one_thread): Use windows_thread_info::resume.
702 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
704 2020-04-08 Tom Tromey <tromey@adacore.com>
706 * win32-i386-low.c (update_debug_registers)
707 (i386_prepare_to_resume, i386_thread_added): Update.
709 2020-04-08 Tom Tromey <tromey@adacore.com>
711 * win32-low.c (child_add_thread): Use new.
712 (delete_thread_info): Use delete.
714 2020-04-08 Tom Tromey <tromey@adacore.com>
716 * win32-low.h (struct windows_thread_info): Remove.
718 2020-04-08 Tom Tromey <tromey@adacore.com>
720 * win32-low.h (struct windows_thread_info): Rename from
721 win32_thread_info. Remove typedef.
722 (struct win32_target_ops, win32_require_context): Update.
723 * win32-low.c (win32_get_thread_context)
724 (win32_set_thread_context, win32_prepare_to_resume)
725 (win32_require_context, thread_rec, child_add_thread)
726 (delete_thread_info, continue_one_thread)
727 (child_fetch_inferior_registers, child_store_inferior_registers)
728 (win32_resume, suspend_one_thread, win32_get_tib_address):
730 * win32-i386-low.c (update_debug_registers)
731 (win32_get_current_dr, i386_get_thread_context)
732 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
733 (i386_fetch_inferior_register, i386_store_inferior_register):
735 * win32-arm-low.c (arm_get_thread_context)
736 (arm_fetch_inferior_register, arm_store_inferior_register):
739 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
741 * linux-low.h (struct linux_target_ops): Remove.
742 (the_low_target): Remove.
743 * linux-x86-low.cc (the_low_target): Remove.
744 * linux-aarch64-low.cc (the_low_target): Ditto.
745 * linux-arm-low.cc (the_low_target): Ditto.
746 * linux-bfin-low.cc (the_low_target): Ditto.
747 * linux-cris-low.cc (the_low_target): Ditto.
748 * linux-crisv32-low.cc (the_low_target): Ditto.
749 * linux-ia64-low.cc (the_low_target): Ditto.
750 * linux-m32r-low.cc (the_low_target): Ditto.
751 * linux-m68k-low.cc (the_low_target): Ditto.
752 * linux-mips-low.cc (the_low_target): Ditto.
753 * linux-nios2-low.cc (the_low_target): Ditto.
754 * linux-ppc-low.cc (the_low_target): Ditto.
755 * linux-riscv-low.cc (the_low_target): Ditto.
756 * linux-s390-low.cc (the_low_target): Ditto.
757 * linux-sh-low.cc (the_low_target): Ditto.
758 * linux-sparc-low.cc (the_low_target): Ditto.
759 * linux-tic6x-low.cc (the_low_target): Ditto.
760 * linux-tile-low.cc (the_low_target): Ditto.
761 * linux-xtensa-low.cc (the_low_target): Ditto.
763 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
765 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
766 linux target define the op by overriding the declaration in
767 process_stratum_target.
769 * linux-low.h (struct linux_target_ops): Remove the op.
770 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
771 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
772 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
773 (x86_get_ipa_tdesc_idx): Turn into...
774 (x86_target::get_ipa_tdesc_idx): ...this.
775 (the_low_target): Remove the op field.
776 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
777 (ppc_get_ipa_tdesc_idx): Turn into...
778 (ppc_target::get_ipa_tdesc_idx): ...this.
779 (the_low_target): Remove the op field.
780 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
781 (s390_get_ipa_tdesc_idx): Turn into...
782 (s390_target::get_ipa_tdesc_idx): ...this.
783 (the_low_target): Remove the op field.
785 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
787 Turn the 'get_syscall_trapinfo' linux target op into a method
788 of process_stratum_target.
790 * linux-low.h (struct linux_target_ops): Remove the op.
791 (class linux_process_target) <get_syscall_trapinfo>
792 <gdb_catch_this_syscall>
793 <low_supports_catch_syscall>
794 <low_get_syscall_trapinfo>: Declare.
795 * linux-low.cc (get_syscall_trapinfo): Turn into...
796 (linux_process_target::get_syscall_trapinfo): ...this.
797 (linux_process_target::low_get_syscall_trapinfo): Define.
798 (gdb_catch_this_syscall_p): Turn into...
799 (linux_process_target::gdb_catch_this_syscall): ...this.
800 (linux_process_target::low_supports_catch_syscall): Define.
802 Update the callers below.
804 (linux_process_target::wait_1)
805 (linux_process_target::supports_catch_syscall)
807 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
808 <low_get_syscall_trapinfo>: Declare.
809 (x86_target::low_supports_catch_syscall): Define.
810 (x86_get_syscall_trapinfo): Turn into...
811 (x86_target::low_get_syscall_trapinfo): ...this.
812 (the_low_target): Remove the op field.
813 * linux-aarch64-low.cc (class aarch64_target)
814 <low_supports_catch_syscall>
815 <low_get_syscall_trapinfo>: Declare.
816 (aarch64_target::low_supports_catch_syscall): Define.
817 (aarch64_get_syscall_trapinfo): Turn into...
818 (aarch64_target::low_get_syscall_trapinfo): ...this.
819 (the_low_target): Remove the op field.
820 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
821 <low_get_syscall_trapinfo>: Declare.
822 (arm_target::low_supports_catch_syscall): Define.
823 (arm_get_syscall_trapinfo): Turn into...
824 (arm_target::low_get_syscall_trapinfo): ...this.
825 (the_low_target): Remove the op field.
826 * linux-ppc-low.cc (the_low_target): Remove the op field.
827 * linux-s390-low.cc (the_low_target): Remove the op field.
829 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
831 Remove the 'supports_hardware_single_step' linux target op and
832 override the process_stratum_target's op definition in
833 linux_process_target to return true.
835 * linux-low.h (struct linux_target_ops): Remove the op.
836 (class linux_process_target) <finish_step_over>
837 <maybe_hw_step>: Declare.
838 * linux-low.cc (can_hardware_single_step): Remove.
839 (maybe_hw_step): Turn into...
840 (linux_process_target::maybe_hw_step): ...this.
841 (finish_step_over): Turn into...
842 (linux_process_target::finish_step_over): ...this.
843 (linux_process_target::supports_hardware_single_step): Update
846 Update the callers below.
848 (linux_process_target::single_step)
849 (linux_process_target::resume_one_lwp_throw)
851 * linux-arm-low.cc (class arm_target)
852 <supports_hardware_single_step>: Declare.
853 (arm_supports_hardware_single_step): Turn into...
854 (arm_target::supports_hardware_single_step): ...this.
855 (the_low_target): Remove the op field.
856 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
857 (the_low_target): Remove the op field.
858 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
860 (the_low_target): Remove the op field.
861 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
862 (the_low_target): Remove the op field.
863 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
864 (the_low_target): Remove the op field.
865 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
866 (the_low_target): Remove the op field.
867 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
868 (the_low_target): Remove the op field.
869 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
870 (the_low_target): Remove the op field.
871 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
872 (the_low_target): Remove the op field.
873 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
874 (the_low_target): Remove the op field.
875 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
876 (the_low_target): Remove the op field.
877 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
878 (the_low_target): Remove the op field.
879 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
881 (the_low_target): Remove the op field.
883 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
885 Turn the 'supports_range_stepping' linux target op into a method
886 of linux_process_target.
888 * linux-low.h (struct linux_target_ops): Remove the op.
889 (class linux_process_target) <low_supports_range_stepping>: Declare.
890 * linux-low.cc (linux_process_target::low_supports_range_stepping):
892 (linux_process_target::supports_range_stepping): Update the call
894 * linux-x86-low.cc (class x86_target)
895 <low_supports_range_stepping>: Declare.
896 (x86_supports_range_stepping): Turn into...
897 (x86_target::low_supports_range_stepping): ...this.
898 (the_low_target): Remove the op field.
899 * linux-aarch64-low.cc (class aarch64_target)
900 <low_supports_range_stepping>: Declare.
901 (aarch64_supports_range_stepping): Turn into...
902 (aarch64_target::low_supports_range_stepping): ...this.
903 (the_low_target): Remove the op field.
904 * linux-arm-low.cc (the_low_target): Remove the op field.
905 * linux-bfin-low.cc (the_low_target): Ditto.
906 * linux-crisv32-low.cc (the_low_target): Ditto.
907 * linux-m32r-low.cc (the_low_target): Ditto.
908 * linux-m68k-low.cc (the_low_target): Ditto.
909 * linux-ppc-low.cc (the_low_target): Ditto.
910 * linux-s390-low.cc (the_low_target): Ditto.
911 * linux-sh-low.cc (the_low_target): Ditto.
912 * linux-tic6x-low.cc (the_low_target): Ditto.
913 * linux-tile-low.cc (the_low_target): Ditto.
914 * linux-xtensa-low.cc (the_low_target): Ditto.
916 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
918 Remove the 'emit_ops' linux target ops and let the concrete
919 linux target define the op by overriding the declaration of
920 process_stratum_target.
922 * linux-low.h (struct linux_target_ops): Remove the op.
923 (class linux_process_target) <emit_ops>: Remove.
924 * linux-low.cc (linux_process_target::emit_ops): Remove.
925 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
926 (x86_emit_ops): Turn into...
927 (x86_target::emit_ops): ...this.
928 (the_low_target): Remove the op field.
929 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
930 (aarch64_emit_ops): Turn into...
931 (aarch64_target::emit_ops): ...this.
932 (the_low_target): Remove the op field.
933 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
934 (ppc_emit_ops): Turn into...
935 (ppc_target::emit_ops): ...this.
936 (the_low_target): Remove the op field.
937 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
938 (s390_emit_ops): Turn into...
939 (s390_target::emit_ops): ...this.
940 (the_low_target): Remove the op field.
941 * linux-arm-low.cc (the_low_target): Remove the op field.
942 * linux-bfin-low.cc (the_low_target): Ditto.
943 * linux-crisv32-low.cc (the_low_target): Ditto.
944 * linux-m32r-low.cc (the_low_target): Ditto.
945 * linux-m68k-low.cc (the_low_target): Ditto.
946 * linux-sh-low.cc (the_low_target): Ditto.
947 * linux-tic6x-low.cc (the_low_target): Ditto.
948 * linux-tile-low.cc (the_low_target): Ditto.
949 * linux-xtensa-low.cc (the_low_target): Ditto.
951 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
953 Remove the 'install_fast_tracepoint_jump_pad' and
954 'get_min_fast_tracepoint_insn_len' linux target ops to let the
955 concrete linux target define the ops by overriding the declarations
956 of process_stratum_target.
958 * linux-low.h (struct linux_target_ops): Remove the ops.
959 (class linux_process_target) <supports_fast_tracepoints>
960 <install_fast_tracepoint_jump_pad>
961 <get_min_fast_tracepoint_insn_len>: Remove.
962 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
963 (linux_process_target::install_fast_tracepoint_jump_pad)
964 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
965 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
966 <install_fast_tracepoint_jump_pad>
967 <get_min_fast_tracepoint_insn_len>: Declare.
968 (x86_target::supports_fast_tracepoints): Define.
969 (x86_install_fast_tracepoint_jump_pad): Turn into...
970 (x86_target::install_fast_tracepoint_jump_pad): ...this.
971 (x86_get_min_fast_tracepoint_insn_len): Turn into...
972 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
973 (the_low_target): Remove the op fields.
974 * linux-aarch64-low.cc (class aarch64_target)
975 <supports_fast_tracepoints>
976 <install_fast_tracepoint_jump_pad>
977 <get_min_fast_tracepoint_insn_len>: Declare.
978 (aarch64_target::supports_fast_tracepoints): Define.
979 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
980 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
981 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
982 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
983 (the_low_target): Remove the op fields.
984 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
985 <install_fast_tracepoint_jump_pad>
986 <get_min_fast_tracepoint_insn_len>: Declare.
987 (ppc_target::supports_fast_tracepoints): Define.
988 (ppc_install_fast_tracepoint_jump_pad): Turn into...
989 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
990 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
991 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
992 (the_low_target): Remove the op fields.
993 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
994 <install_fast_tracepoint_jump_pad>
995 <get_min_fast_tracepoint_insn_len>: Declare.
996 (s390_target::supports_fast_tracepoints): Define.
997 (s390_install_fast_tracepoint_jump_pad): Turn into...
998 (s390_target::install_fast_tracepoint_jump_pad): ...this.
999 (s390_get_min_fast_tracepoint_insn_len): Turn into...
1000 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
1001 (the_low_target): Remove the op fields.
1002 * linux-arm-low.cc (the_low_target): Remove the op fields.
1003 * linux-bfin-low.cc (the_low_target): Ditto.
1004 * linux-crisv32-low.cc (the_low_target): Ditto.
1005 * linux-m32r-low.cc (the_low_target): Ditto.
1006 * linux-m68k-low.cc (the_low_target): Ditto.
1007 * linux-sh-low.cc (the_low_target): Ditto.
1008 * linux-tic6x-low.cc (the_low_target): Ditto.
1009 * linux-tile-low.cc (the_low_target): Ditto.
1010 * linux-xtensa-low.cc (the_low_target): Ditto.
1012 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1014 Turn the 'get_thread_area' linux target op into a method of
1015 process_stratum_target.
1017 * linux-low.h (struct linux_target_ops): Remove the op.
1018 (class linux_process_target) <stuck_in_jump_pad>
1019 <linux_fast_tracepoint_collecting>
1020 <low_get_thread_area>: Declare.
1021 * linux-low.cc (supports_fast_tracepoints): Remove.
1022 (linux_fast_tracepoint_collecting): Turn into...
1023 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
1024 (linux_process_target::low_get_thread_area): Define.
1025 (stuck_in_jump_pad_callback): Turn into...
1026 (linux_process_target::stuck_in_jump_pad): ...this.
1028 Update the caller below.
1030 (linux_process_target::stabilize_threads)
1032 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
1034 (x86_get_thread_area): Turn into...
1035 (x86_target::low_get_thread_area): ...this.
1036 (the_low_target): Remove the op field.
1037 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
1039 (aarch64_get_thread_area): Turn into...
1040 (aarch64_target::low_get_thread_area): ...this.
1041 (the_low_target): Remove the op field.
1042 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
1044 (ppc_get_thread_area): Turn into...
1045 (ppc_target::low_get_thread_area): ...this.
1046 (the_low_target): Remove the op field.
1047 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
1049 (s390_get_thread_area): Turn into...
1050 (s390_target::low_get_thread_area): ...this.
1051 (the_low_target): Remove the op field.
1052 * linux-arm-low.cc (the_low_target): Remove the op field.
1053 * linux-bfin-low.cc (the_low_target): Ditto.
1054 * linux-crisv32-low.cc (the_low_target): Ditto.
1055 * linux-m32r-low.cc (the_low_target): Ditto.
1056 * linux-m68k-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 Remote the 'supports_tracepoints' linux target op and let the
1065 concrete linux target define it by overriding the op declared in
1066 process_stratum_target.
1068 * linux-low.h (struct linux_target_ops): Remove the op.
1069 (class linux_process_target) <supports_tracepoints>: Remove.
1070 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
1071 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
1073 (x86_supports_tracepoints): Turn into...
1074 (x86_target::supports_tracepoints): ...this.
1075 (the_low_target): Remove the op field.
1076 * linux-aarch64-low.cc (class aarch64_target)
1077 <supports_tracepoints>: Declare.
1078 (aarch64_supports_tracepoints): Turn into...
1079 (aarch64_target::supports_tracepoints): ...this.
1080 (the_low_target): Remove the op field.
1081 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
1083 (ppc_supports_tracepoints): Turn into...
1084 (ppc_target::supports_tracepoints): ...this.
1085 (the_low_target): Remove the op field.
1086 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
1088 (s390_supports_tracepoints): Turn into...
1089 (s390_target::supports_tracepoints): ...this.
1090 (the_low_target): Remove the op field.
1091 * linux-arm-low.cc (the_low_target): Remove the op field.
1092 * linux-bfin-low.cc (the_low_target): Ditto.
1093 * linux-crisv32-low.cc (the_low_target): Ditto.
1094 * linux-m32r-low.cc (the_low_target): Ditto.
1095 * linux-m68k-low.cc (the_low_target): Ditto.
1096 * linux-sh-low.cc (the_low_target): Ditto.
1097 * linux-tic6x-low.cc (the_low_target): Ditto.
1098 * linux-tile-low.cc (the_low_target): Ditto.
1099 * linux-xtensa-low.cc (the_low_target): Ditto.
1101 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1103 Remove the 'process_qsupported' linux target op and let a concrete
1104 linux target define the op by overriding the op declaration in
1105 process_stratum_target.
1107 * linux-low.h (struct linux_target_ops): Remove the op.
1108 (class linux_process_target) <process_qsupported>: Remove.
1109 * linux-low.cc (linux_process_target::process_qsupported): Remove.
1110 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
1111 (x86_linux_process_qsupported): Turn into...
1112 (x86_target::process_qsupported): ...this.
1113 (the_low_target): Remove the op field.
1114 * linux-aarch64-low.cc (the_low_target): Remove the op
1116 * linux-arm-low.cc (the_low_target): Ditto.
1117 * linux-bfin-low.cc (the_low_target): Ditto.
1118 * linux-crisv32-low.cc (the_low_target): Ditto.
1119 * linux-m32r-low.cc (the_low_target): Ditto.
1120 * linux-m68k-low.cc (the_low_target): Ditto.
1121 * linux-ppc-low.cc (the_low_target): Ditto.
1122 * linux-s390-low.cc (the_low_target): Ditto.
1123 * linux-sh-low.cc (the_low_target): Ditto.
1124 * linux-tic6x-low.cc (the_low_target): Ditto.
1125 * linux-tile-low.cc (the_low_target): Ditto.
1126 * linux-xtensa-low.cc (the_low_target): Ditto.
1128 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1130 Turn the 'prepare_to_resume' linux target op into a method of
1131 linux_process_target.
1133 * linux-low.h (struct linux_target_ops): Remove the op.
1134 (class linux_process_target) <low_prepare_to_resume>: Declare.
1135 * linux-low.cc (linux_process_target::low_prepare_to_resume):
1138 Update the callers below:
1140 (linux_process_target::resume_one_lwp_throw)
1141 (linux_process_target::low_prepare_to_resume)
1143 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
1145 (x86_target::low_prepare_to_resume): Define.
1146 (the_low_target): Remove the op field.
1147 * linux-aarch64-low.cc (class aarch64_target)
1148 <low_prepare_to_resume>: Declare.
1149 (aarch64_target::low_prepare_to_resume): Define.
1150 (the_low_target): Remove the op field.
1151 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
1153 (arm_prepare_to_resume): Turn into...
1154 (arm_target::low_prepare_to_resume): ...this.
1155 (the_low_target): Remove the op field.
1156 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
1158 (mips_linux_prepare_to_resume): Turn into...
1159 (mips_target::low_prepare_to_resume): ...this.
1160 (the_low_target): Remove the op field.
1161 * linux-bfin-low.cc (the_low_target): Remove the op field.
1162 * linux-crisv32-low.cc (the_low_target): Ditto.
1163 * linux-m32r-low.cc (the_low_target): Ditto.
1164 * linux-m68k-low.cc (the_low_target): Ditto.
1165 * linux-ppc-low.cc (the_low_target): Ditto.
1166 * linux-s390-low.cc (the_low_target): Ditto.
1167 * linux-sh-low.cc (the_low_target): Ditto.
1168 * linux-tic6x-low.cc (the_low_target): Ditto.
1169 * linux-tile-low.cc (the_low_target): Ditto.
1170 * linux-xtensa-low.cc (the_low_target): Ditto.
1172 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1174 Turn the 'new_process', 'delete_process', 'new_thread',
1175 'delete_thread', and 'new_fork' linux target ops into methods
1176 of linux_process_target.
1178 * linux-low.h (struct linux_target_ops): Remove the ops.
1179 (class linux_process_target) <add_linux_process>
1184 <check_zombie_leaders>
1187 <low_delete_process>
1190 <low_new_fork>: Declare.
1191 * linux-low.cc (delete_lwp): Turn into...
1192 (linux_process_target::delete_lwp): ...this.
1193 (linux_process_target::low_delete_thread): Define.
1194 (linux_add_process): Turn into...
1195 (linux_process_target::add_linux_process): ...this.
1196 (linux_process_target::low_new_process): Define.
1197 (linux_process_target::low_delete_process): Define.
1198 (linux_process_target::low_new_fork): Define.
1199 (add_lwp): Turn into...
1200 (linux_process_target::add_lwp): ...this.
1201 (linux_process_target::low_new_thread): Define.
1202 (linux_attach_lwp): Turn into...
1203 (linux_process_target::attach_lwp): ...this.
1204 (linux_detach_one_lwp): Turn into...
1205 (linux_process_target::detach_one_lwp): ...this.
1206 (linux_detach_lwp_callback): Remove and inline...
1207 (linux_process_target::detach): ...here.
1208 (check_zombie_leaders): Turn into...
1209 (linux_process_target::check_zombie_leaders): ...this.
1210 (filter_exit_event): Turn into...
1211 (linux_process_target::filter_exit_event): ...this.
1213 Update the callers below.
1215 (linux_process_target::handle_extended_wait)
1216 (linux_process_target::create_inferior)
1217 (attach_proc_task_lwp_callback)
1218 (linux_process_target::attach)
1219 (linux_process_target::detach)
1220 (linux_process_target::mourn)
1221 * thread-db.cc (attach_thread)
1223 * linux-x86-low.cc (class x86_target) <low_new_process>
1224 <low_delete_process>
1227 <low_new_fork>: Declare.
1228 (x86_linux_new_process): Turn into...
1229 (x86_target::low_new_process): ...this.
1230 (x86_linux_delete_process): Turn into...
1231 (x86_target::low_delete_process): ...this.
1232 (x86_target::low_new_thread): Define.
1233 (x86_target::low_delete_thread): Define.
1234 (x86_linux_new_fork): Turn into...
1235 (x86_target::low_new_fork): ...this.
1236 (the_low_target): Remove the op fields.
1237 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
1238 <low_delete_process>
1241 <low_new_fork>: Declare.
1242 (aarch64_linux_new_process): Turn into...
1243 (aarch64_target::low_new_process): ...this.
1244 (aarch64_linux_delete_process): Turn into...
1245 (aarch64_target::low_delete_process): ...this.
1246 (aarch64_target::low_new_thread): Define.
1247 (aarch64_target::low_delete_thread): Define.
1248 (aarch64_linux_new_fork): Turn into...
1249 (aarch64_target::low_new_fork): ...this.
1250 (the_low_target): Remove the op fields.
1251 * linux-arm-low.cc (class arm_target) <low_new_process>
1252 <low_delete_process>
1255 <low_new_fork>: Declare.
1256 (arm_new_process): Turn into...
1257 (arm_target::low_new_process): ...this.
1258 (arm_delete_process): Turn into...
1259 (arm_target::low_delete_process): ...this.
1260 (arm_new_thread): Turn into...
1261 (arm_target::low_new_thread): ...this.
1262 (arm_delete_thread): Turn into...
1263 (arm_target::low_delete_thread): ...this.
1264 (arm_new_fork): Turn into...
1265 (arm_target::low_new_fork): ...this.
1266 (the_low_target): Remove the op fields.
1267 * linux-mips-low.cc (class mips_target) <low_new_process>
1268 <low_delete_process>
1271 <low_new_fork>: Declare.
1272 (mips_linux_new_process): Turn into...
1273 (mips_target::low_new_process): ...this.
1274 (mips_linux_delete_process): Turn into...
1275 (mips_target::low_delete_process): ...this.
1276 (mips_linux_new_thread): Turn into...
1277 (mips_target::low_new_thread): ...this.
1278 (mips_linux_delete_thread): Turn into...
1279 (mips_target::low_delete_thread): ...this.
1280 (mips_linux_new_fork): Turn into...
1281 (mips_target::low_new_fork): ...this.
1282 (the_low_target): Remove the op fields.
1283 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1284 * linux-crisv32-low.cc (the_low_target): Ditto.
1285 * linux-m32r-low.cc (the_low_target): Ditto.
1286 * linux-m68k-low.cc (the_low_target): Ditto.
1287 * linux-ppc-low.cc (the_low_target): Ditto.
1288 * linux-s390-low.cc (the_low_target): Ditto.
1289 * linux-sh-low.cc (the_low_target): Ditto.
1290 * linux-tic6x-low.cc (the_low_target): Ditto.
1291 * linux-tile-low.cc (the_low_target): Ditto.
1292 * linux-xtensa-low.cc (the_low_target): Ditto.
1294 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1296 Turn the 'siginfo_fixup' linux target op into a method of
1297 linux_process_target.
1299 * linux-low.h (struct linux_target_ops): Remove the op.
1300 (class linux_process_target) <siginfo_fixup>
1301 <low_siginfo_fixup>: Declare.
1302 * linux-low.cc (siginfo_fixup): Turn into...
1303 (linux_process_target::siginfo_fixup): ...this.
1304 (linux_process_target::low_siginfo_fixup): Define.
1305 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1306 (x86_siginfo_fixup): Turn into...
1307 (x86_target::low_siginfo_fixup): ...this.
1308 (the_low_target): Remove the op field.
1309 * linux-aarch64-low.cc (class aarch64_target):
1310 <low_siginfo_fixup>: Declare.
1311 (aarch64_linux_siginfo_fixup): Turn into...
1312 (aarch64_target::low_siginfo_fixup): ...this.
1313 (the_low_target): Remove the op field.
1314 * linux-arm-low.cc (the_low_target): Remove the op field.
1315 * linux-bfin-low.cc (the_low_target): Ditto.
1316 * linux-crisv32-low.cc (the_low_target): Ditto.
1317 * linux-m32r-low.cc (the_low_target): Ditto.
1318 * linux-m68k-low.cc (the_low_target): Ditto.
1319 * linux-mips-low.cc (the_low_target): Ditto.
1320 * linux-ppc-low.cc (the_low_target): Ditto.
1321 * linux-s390-low.cc (the_low_target): Ditto.
1322 * linux-sh-low.cc (the_low_target): Ditto.
1323 * linux-tic6x-low.cc (the_low_target): Ditto.
1324 * linux-tile-low.cc (the_low_target): Ditto.
1325 * linux-xtensa-low.cc (the_low_target): Ditto.
1327 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1329 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1330 linux target ops into methods of linux_process_target.
1332 * linux-low.h (struct linux_target_ops): Remove the ops.
1333 (class linux_process_target) <low_collect_ptrace_register>
1334 <low_store_ptrace_register>: Declare.
1335 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1336 (linux_process_target::low_supply_ptrace_register): Define.
1338 Update the callers below.
1340 (linux_process_target::fetch_register)
1341 (linux_process_target::store_register)
1343 * linux-x86-low.cc (the_low_target): Remove the op fields.
1344 * linux-aarch64-low.cc (the_low_target): Ditto.
1345 * linux-arm-low.cc (the_low_target): Ditto.
1346 * linux-bfin-low.cc (the_low_target): Ditto.
1347 * linux-crisv32-low.cc (the_low_target): Ditto.
1348 * linux-m32r-low.cc (the_low_target): Ditto.
1349 * linux-m68k-low.cc (the_low_target): Ditto.
1350 * linux-sh-low.cc (the_low_target): Ditto.
1351 * linux-sparc-low.cc (the_low_target): Ditto.
1352 * linux-tic6x-low.cc (the_low_target): Ditto.
1353 * linux-tile-low.cc (the_low_target): Ditto.
1354 * linux-xtensa-low.cc (the_low_target): Ditto.
1355 * linux-mips-low.cc (class mips_target)
1356 <low_collect_ptrace_register>
1357 <low_supply_ptrace_register>: Declare.
1358 (mips_collect_ptrace_register): Turn into ...
1359 (mips_target::low_collect_ptrace_register): ...this.
1360 (mips_supply_ptrace_register): Turn into...
1361 (mips_target::low_supply_ptrace_register): ...this.
1362 (the_low_target): Remove the op fields.
1363 * linux-ppc-low.cc (class ppc_target)
1364 <low_collect_ptrace_register>
1365 <low_supply_ptrace_register>: Declare.
1366 (ppc_collect_ptrace_register): Turn into ...
1367 (ppc_target::low_collect_ptrace_register): ...this.
1368 (ppc_supply_ptrace_register): Turn into ...
1369 (ppc_target::low_supply_ptrace_register): ...this.
1370 (ppc_fill_gregset): Update for the calls to
1371 low_collect_ptrace_register.
1372 (the_low_target): Remove the op fields.
1373 * linux-s390-low.cc (class s390_target)
1374 <low_collect_ptrace_register>
1375 <low_supply_ptrace_register>: Declare.
1376 (s390_collect_ptrace_register): Turn into ...
1377 (s390_target::low_collect_ptrace_register): ...this.
1378 (s390_supply_ptrace_register): Turn into ...
1379 (s390_target::low_supply_ptrace_register): ...this.
1380 (s390_fill_gregset): Update for the calls to
1381 low_collect_ptrace_register.
1382 (the_low_target): Remove the op fields.
1384 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1386 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1387 target ops into methods of linux_process_target.
1389 * linux-low.h (struct linux_target_ops): Remove the ops.
1390 (class linux_process_target) <check_stopped_by_watchpoint>
1391 <low_stopped_by_watchpoint>
1392 <low_stopped_data_address>: Declare.
1393 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1394 (linux_process_target::check_stopped_by_watchpoint): ...this.
1395 (linux_process_target::low_stopped_by_watchpoint): Define.
1396 (linux_process_target::low_stopped_data_address): Define.
1397 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1398 <low_stopped_data_address>: Declare.
1399 (x86_stopped_by_watchpoint): Turn into...
1400 (x86_target::low_stopped_by_watchpoint): ...this.
1401 (x86_stopped_data_address): Turn into...
1402 (x86_target::low_stopped_data_address): ...this.
1403 (the_low_target): Remove the op fields.
1404 * linux-aarch64-low.cc (class aarch64_target)
1405 <low_stopped_by_watchpoint>
1406 <low_stopped_data_address>: Declare.
1407 (aarch64_stopped_by_watchpoint): Turn into...
1408 (aarch64_target::low_stopped_by_watchpoint): ...this.
1409 (aarch64_stopped_data_address): Turn into...
1410 (aarch64_target::low_stopped_data_address): ...this.
1411 (the_low_target): Remove the op fields.
1412 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1413 <low_stopped_data_address>: Declare.
1414 (arm_stopped_by_watchpoint): Turn into...
1415 (arm_target::low_stopped_by_watchpoint): ...this.
1416 (arm_stopped_data_address): Turn into...
1417 (arm_target::low_stopped_data_address): ...this.
1418 (the_low_target): Remove the op fields.
1419 * linux-crisv32-low.cc (class crisv32_target)
1420 <low_stopped_by_watchpoint>
1421 <low_stopped_data_address>: Declare.
1422 (cris_stopped_by_watchpoint): Turn into...
1423 (crisv32_target::low_stopped_by_watchpoint): ...this.
1424 (cris_stopped_data_address): Turn into...
1425 (crisv32_target::low_stopped_data_address): ...this.
1426 (the_low_target): Remove the op fields.
1427 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1428 <low_stopped_data_address>: Declare.
1429 (mips_stopped_by_watchpoint): Turn into...
1430 (mips_target::low_stopped_by_watchpoint): ...this.
1431 (mips_stopped_data_address): Turn into...
1432 (mips_target::low_stopped_data_address): ...this.
1433 (the_low_target): Remove the op fields.
1434 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1435 * linux-m32r-low.cc (the_low_target): Ditto.
1436 * linux-m68k-low.cc (the_low_target): Ditto.
1437 * linux-ppc-low.cc (the_low_target): Ditto.
1438 * linux-s390-low.cc (the_low_target): Ditto.
1439 * linux-sh-low.cc (the_low_target): Ditto.
1440 * linux-sparc-low.cc (the_low_target): Ditto.
1441 * linux-tic6x-low.cc (the_low_target): Ditto.
1442 * linux-tile-low.cc (the_low_target): Ditto.
1443 * linux-xtensa-low.cc (the_low_target): Ditto.
1445 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1447 Turn the 'insert_point' and 'remove_point' linux target ops into
1448 methods of linux_process_target.
1450 * linux-low.h (struct linux_target_ops): Remove the ops.
1451 (class linux_process_target) <low_insert_point>
1452 <low_remove_point>: Declare.
1453 * linux-low.cc (linux_process_target::low_insert_point)
1454 (linux_process_target::low_remove_point): Define.
1455 (linux_process_target::insert_point)
1456 (linux_process_target::remove_point): Update for calls to
1457 low_insert_point and low_remove_point.
1458 * linux-x86-low.cc (class x86_target) <low_insert_point>
1459 <low_remove_point>: Declare.
1460 (x86_insert_point): Turn into...
1461 (x86_target::low_insert_point): ...this.
1462 (x86_remove_point): Turn into...
1463 (x86_target::low_remove_point): ...this.
1464 (the_low_target): Remove the op fields.
1465 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1466 <low_remove_point>: Declare.
1467 (aarch64_insert_point): Turn into...
1468 (aarch64_target::low_insert_point): ...this.
1469 (aarch64_remove_point): Turn into...
1470 (aarch64_target::low_remove_point): ...this.
1471 (the_low_target): Remove the op fields.
1472 * linux-arm-low.cc (class arm_target) <low_insert_point>
1473 <low_remove_point>: Declare.
1474 (arm_insert_point): Turn into...
1475 (arm_target::low_insert_point): ...this.
1476 (arm_remove_point): Turn into...
1477 (arm_target::low_remove_point): ...this.
1478 (the_low_target): Remove the op fields.
1479 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1480 <low_remove_point>: Declare.
1481 (crisv32_insert_point): Turn into...
1482 (crisv32_target::low_insert_point): ...this.
1483 (crisv32_remove_point): Turn into...
1484 (crisv32_target::low_remove_point): ...this.
1485 (the_low_target): Remove the op fields.
1486 * linux-mips-low.cc (class mips_target) <low_insert_point>
1487 <low_remove_point>: Declare.
1488 (mips_insert_point): Turn into...
1489 (mips_target::low_insert_point): ...this.
1490 (mips_remove_point): Turn into...
1491 (mips_target::low_remove_point): ...this.
1492 (the_low_target): Remove the op fields.
1493 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1494 <low_remove_point>: Declare.
1495 (ppc_insert_point): Turn into...
1496 (ppc_target::low_insert_point): ...this.
1497 (ppc_remove_point): Turn into...
1498 (ppc_target::low_remove_point): ...this.
1499 (the_low_target): Remove the op fields.
1500 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1501 * linux-m32r-low.cc (the_low_target): Ditto.
1502 * linux-m68k-low.cc (the_low_target): Ditto.
1503 * linux-s390-low.cc (the_low_target): Ditto.
1504 * linux-sh-low.cc (the_low_target): Ditto.
1505 * linux-sparc-low.cc (the_low_target): Ditto.
1506 * linux-tic6x-low.cc (the_low_target): Ditto.
1507 * linux-tile-low.cc (the_low_target): Ditto.
1508 * linux-xtensa-low.cc (the_low_target): Ditto.
1510 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1512 Remove the 'supports_z_point_type' linux target op and let the
1513 concrete linux target define it by overriding the op declared in
1514 process_stratum_target.
1516 * linux-low.cc (linux_process_target::supports_z_point_type):
1518 * linux-low.h (struct linux_target_ops): Remove the op.
1519 (class linux_process_target) <supports_z_point_type>: Remove.
1520 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1522 (x86_supports_z_point_type): Turn into...
1523 (x86_target::supports_z_point_type): ...this.
1524 (the_low_target): Remove the op field.
1525 * linux-aarch64-low.cc (class aarch64_target)
1526 <supports_z_point_type>: Declare.
1527 (aarch64_supports_z_point_type): Turn into...
1528 (aarch64_target::supports_z_point_type): ...this.
1529 (the_low_target): Remove the op field.
1530 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1532 (arm_supports_z_point_type): Turn into...
1533 (arm_target::supports_z_point_type): ...this.
1534 (the_low_target): Remove the op field.
1535 * linux-crisv32-low.cc (class crisv32_target)
1536 <supports_z_point_type>: Declare.
1537 (cris_supports_z_point_type): Turn into...
1538 (crisv32_target::supports_z_point_type): ...this.
1539 (the_low_target): Remove the op field.
1540 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1542 (mips_supports_z_point_type): Turn into...
1543 (mips_target::supports_z_point_type): ...this.
1544 (the_low_target): Remove the op field.
1545 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1547 (ppc_supports_z_point_type): Turn into...
1548 (ppc_target::supports_z_point_type): ...this.
1549 (the_low_target): Remove the op field.
1550 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1552 (s390_supports_z_point_type): Turn into...
1553 (s390_target::supports_z_point_type): ...this.
1554 (the_low_target): Remove the op field.
1555 * linux-bfin-low.cc (the_low_target): Remove the op field.
1556 * linux-m32r-low.cc (the_low_target): Ditto.
1557 * linux-m68k-low.cc (the_low_target): Ditto.
1558 * linux-sh-low.cc (the_low_target): Ditto.
1559 * linux-sparc-low.cc (the_low_target): Ditto.
1560 * linux-tic6x-low.cc (the_low_target): Ditto.
1561 * linux-tile-low.cc (the_low_target): Ditto.
1562 * linux-xtensa-low.cc (the_low_target): Ditto.
1564 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1566 Turn the 'breakpoint_at' linux target op into a method of
1567 linux_process_target.
1569 * linux-low.h (struct linux_target_ops): Remove the op.
1570 (class linux_process_target) <low_breakpoint_at>: Declare.
1572 Update the callers below:
1574 * linux-low.cc (linux_process_target::save_stop_reason)
1575 (linux_process_target::thread_still_has_status_pending)
1576 (linux_process_target::wait_1)
1578 * linux-x86-low.cc (class x86_target)
1579 <low_breakpoint_at>: Declare.
1580 (x86_breakpoint_at): Turn into...
1581 (x86_target::low_breakpoint_at): ...this.
1582 (the_low_target): Remove the op field.
1583 * linux-aarch64-low.cc (class aarch64_target)
1584 <low_breakpoint_at>: Declare.
1585 (aarch64_breakpoint_at): Turn into...
1586 (aarch64_target::low_breakpoint_at): ...this.
1587 (the_low_target): Remove the op field.
1588 * linux-arm-low.cc (class arm_target)
1589 <low_breakpoint_at>: Declare.
1590 (arm_target::low_breakpoint_at): Define.
1591 (the_low_target): Remove the op field.
1592 * linux-bfin-low.cc (class bfin_target)
1593 <low_breakpoint_at>: Declare.
1594 (bfin_breakpoint_at): Turn into...
1595 (bfin_target::low_breakpoint_at): ...this.
1596 (the_low_target): Remove the op field.
1597 * linux-cris-low.cc (class cris_target)
1598 <low_breakpoint_at>: Declare.
1599 (cris_breakpoint_at): Turn into...
1600 (cris_target::low_breakpoint_at): ...this.
1601 (the_low_target): Remove the op field.
1602 * linux-crisv32-low.cc (class crisv32_target)
1603 <low_breakpoint_at>: Declare.
1604 (crisv32_breakpoint_at): Turn into...
1605 (crisv32_target::low_breakpoint_at): ...this.
1606 (the_low_target): Remove the op field.
1607 * linux-ia64-low.cc (class ia64_target)
1608 <low_breakpoint_at>: Declare.
1609 (ia64_target::low_breakpoint_at): Define.
1610 * linux-m32r-low.cc (class m32r_target)
1611 <low_breakpoint_at>: Declare.
1612 (m32r_breakpoint_at): Turn into...
1613 (m32r_target::low_breakpoint_at): ...this.
1614 (the_low_target): Remove the op field.
1615 * linux-m68k-low.cc (class m68k_target)
1616 <low_breakpoint_at>: Declare.
1617 (m68k_breakpoint_at): Turn into...
1618 (m68k_target::low_breakpoint_at): ...this.
1619 (the_low_target): Remove the op field.
1620 * linux-mips-low.cc (class mips_target)
1621 <low_breakpoint_at>: Declare.
1622 (mips_breakpoint_at): Turn into...
1623 (mips_target::low_breakpoint_at): ...this.
1624 (the_low_target): Remove the op field.
1625 * linux-nios2-low.cc (class nios2_target)
1626 <low_breakpoint_at>: Declare.
1627 (nios2_breakpoint_at): Turn into...
1628 (nios2_target::low_breakpoint_at): ...this.
1629 (the_low_target): Remove the op field.
1630 * linux-ppc-low.cc (class ppc_target)
1631 <low_breakpoint_at>: Declare.
1632 (ppc_breakpoint_at): Turn into...
1633 (ppc_target::low_breakpoint_at): ...this.
1634 (the_low_target): Remove the op field.
1635 * linux-riscv-low.cc (class riscv_target)
1636 <low_breakpoint_at>: Declare.
1637 (riscv_breakpoint_at): Turn into...
1638 (riscv_target::low_breakpoint_at): ...this.
1639 (the_low_target): Remove the op field.
1640 * linux-s390-low.cc (class s390_target)
1641 <low_breakpoint_at>: Declare.
1642 (s390_breakpoint_at): Turn into...
1643 (s390_target::low_breakpoint_at): ...this.
1644 (the_low_target): Remove the op field.
1645 * linux-sh-low.cc (class sh_target)
1646 <low_breakpoint_at>: Declare.
1647 (sh_breakpoint_at): Turn into...
1648 (sh_target::low_breakpoint_at): ...this.
1649 (the_low_target): Remove the op field.
1650 * linux-sparc-low.cc (class sparc_target)
1651 <low_breakpoint_at>: Declare.
1652 (sparc_breakpoint_at): Turn into...
1653 (sparc_target::low_breakpoint_at): ...this.
1654 (the_low_target): Remove the op field.
1655 * linux-tic6x-low.cc (class tic6x_target)
1656 <low_breakpoint_at>: Declare.
1657 (tic6x_breakpoint_at): Turn into...
1658 (tic6x_target::low_breakpoint_at): ...this.
1659 (the_low_target): Remove the op field.
1660 * linux-tile-low.cc (class tile_target)
1661 <low_breakpoint_at>: Declare.
1662 (tile_breakpoint_at): Turn into...
1663 (tile_target::low_breakpoint_at): ...this.
1664 (the_low_target): Remove the op field.
1665 * linux-xtensa-low.cc (class xtensa_target)
1666 <low_breakpoint_at>: Declare.
1667 (xtensa_breakpoint_at): Turn into...
1668 (xtensa_target::low_breakpoint_at): ...this.
1669 (the_low_target): Remove the op field.
1671 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1673 Turn the 'decr_pc_after_break' linux_target_ops field into
1674 a method of linux_process_target.
1676 * linux-low.h (struct linux_target_ops)
1677 <decr_pc_after_break>: Remove.
1678 (class linux_process_target) <low_decr_pc_after_break>: New method
1680 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1681 New method implementation.
1683 Update the users below.
1685 (linux_process_target::save_stop_reason)
1686 (linux_process_target::wait_1)
1687 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1689 (x86_target::low_decr_pc_after_break): New method implementation.
1690 (the_low_target): Remove the field.
1691 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1693 (bfin_target::low_decr_pc_after_break): New method implementation.
1694 (the_low_target): Remove the field.
1695 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1697 (m68k_target::low_decr_pc_after_break): New method implementation.
1698 (the_low_target): Remove the field.
1699 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1701 (s390_target::low_decr_pc_after_break): New method implementation.
1702 (the_low_target): Remove the field.
1703 * linux-aarch64-low.cc (the_low_target): Remove the field.
1704 * linux-arm-low.cc (the_low_target): Remove the field.
1705 * linux-cris-low.cc (the_low_target): Remove the field.
1706 * linux-crisv32-low.cc (the_low_target): Remove the field.
1707 * linux-m32r-low.cc (the_low_target): Remove the field.
1708 * linux-mips-low.cc (the_low_target): Remove the field.
1709 * linux-nios2-low.cc (the_low_target): Remove the field.
1710 * linux-ppc-low.cc (the_low_target): Remove the field.
1711 * linux-riscv-low.cc (the_low_target): Remove the field.
1712 * linux-sh-low.cc (the_low_target): Remove the field.
1713 * linux-sparc-low.cc (the_low_target): Remove the field.
1714 * linux-tic6x-low.cc (the_low_target): Remove the field.
1715 * linux-tile-low.cc (the_low_target): Remove the field.
1716 * linux-xtensa-low.cc (the_low_target): Remove the field.
1718 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1720 Remove the 'supports_software_single_step' linux target op and let
1721 the concrete linux target define it by overriding the op in
1722 process_stratum_target.
1723 Turn the 'get_next_pcs' linux target op into a method of
1724 linux_process_target.
1726 * linux-low.h (struct linux_target_ops): Remove the ops.
1727 (class linux_process_target) <supports_software_single_step>:
1729 <low_get_next_pcs>: Declare.
1730 * linux-low.cc (can_software_single_step): Remove.
1731 (linux_process_target::low_get_next_pcs): Define.
1732 (linux_process_target::supports_software_single_step): Remove.
1734 Update the callers below.
1736 (linux_process_target::handle_extended_wait)
1737 (linux_process_target::wait_1)
1738 (linux_process_target::install_software_single_step_breakpoints)
1739 (linux_process_target::single_step)
1740 (linux_process_target::thread_needs_step_over)
1741 (linux_process_target::proceed_one_lwp)
1742 (linux_process_target::supports_range_stepping)
1744 * linux-x86-low.cc (the_low_target): Remove the op field.
1745 * linux-aarch64-low.cc (the_low_target): Ditto.
1746 * linux-bfin-low.cc (the_low_target): Ditto.
1747 * linux-cris-low.cc (the_low_target): Ditto.
1748 * linux-crisv32-low.cc (the_low_target): Ditto.
1749 * linux-m32r-low.cc (the_low_target): Ditto.
1750 * linux-m68k-low.cc (the_low_target): Ditto.
1751 * linux-mips-low.cc (the_low_target): Ditto.
1752 * linux-nios2-low.cc (the_low_target): Ditto.
1753 * linux-ppc-low.cc (the_low_target): Ditto.
1754 * linux-riscv-low.cc (the_low_target): Ditto.
1755 * linux-s390-low.cc (the_low_target): Ditto.
1756 * linux-sh-low.cc (the_low_target): Ditto.
1757 * linux-sparc-low.cc (the_low_target): Ditto.
1758 * linux-tic6x-low.cc (the_low_target): Ditto.
1759 * linux-tile-low.cc (the_low_target): Ditto.
1760 * linux-xtensa-low.cc (the_low_target): Ditto.
1761 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1762 <supports_software_single_step>: Declare.
1763 (arm_target::supports_software_single_step): Define.
1764 (arm_gdbserver_get_next_pcs): Turn into...
1765 (arm_target::low_get_next_pcs): ...this.
1766 (the_low_target): Remove the op field.
1768 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1770 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1771 the concrete linux target define it by overriding the op
1772 in process_stratum_target.
1774 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1776 * linux-low.h (struct linux_target_ops): Remove the op.
1777 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1778 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1780 (x86_sw_breakpoint_from_kind): Turn into...
1781 (x86_target::sw_breakpoint_from_kind): ...this.
1782 (the_low_target): Remove the op field.
1783 * linux-aarch64-low.cc (class aarch64_target)
1784 <sw_breakpoint_from_kind>: Declare.
1785 (aarch64_sw_breakpoint_from_kind): Turn into...
1786 (aarch64_target::sw_breakpoint_from_kind): ...this.
1787 (the_low_target): Remove the op field.
1788 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1790 (arm_target::sw_breakpoint_from_kind): Define.
1791 (the_low_target): Remove the op field.
1792 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1794 (bfin_sw_breakpoint_from_kind): Turn into...
1795 (bfin_target::sw_breakpoint_from_kind): ...this.
1796 (the_low_target): Remove the op field.
1797 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1799 (cris_sw_breakpoint_from_kind): Turn into...
1800 (cris_target::sw_breakpoint_from_kind): ...this.
1801 (the_low_target): Remove the op field.
1802 * linux-crisv32-low.cc (class crisv32_target)
1803 <sw_breakpoint_from_kind>: Declare.
1804 (cris_sw_breakpoint_from_kind): Turn into...
1805 (crisv32_target::sw_breakpoint_from_kind): ...this.
1806 (the_low_target): Remove the op field.
1807 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1809 (ia64_target::sw_breakpoint_from_kind): Define.
1810 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1812 (m32r_sw_breakpoint_from_kind): Turn into...
1813 (m32r_target::sw_breakpoint_from_kind): ...this.
1814 (the_low_target): Remove the op field.
1815 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1817 (m68k_sw_breakpoint_from_kind): Turn into...
1818 (m68k_target::sw_breakpoint_from_kind): ...this.
1819 (the_low_target): Remove the op field.
1820 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1822 (mips_sw_breakpoint_from_kind): Turn into...
1823 (mips_target::sw_breakpoint_from_kind): ...this.
1824 (the_low_target): Remove the op field.
1825 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1827 (nios2_sw_breakpoint_from_kind): Turn into...
1828 (nios2_target::sw_breakpoint_from_kind): ...this.
1829 (the_low_target): Remove the op field.
1830 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1832 (ppc_sw_breakpoint_from_kind): Turn into...
1833 (ppc_target::sw_breakpoint_from_kind): ...this.
1834 (the_low_target): Remove the op field.
1835 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1837 (riscv_sw_breakpoint_from_kind): Turn into...
1838 (riscv_target::sw_breakpoint_from_kind): ...this.
1839 (the_low_target): Remove the op field.
1840 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1842 (s390_sw_breakpoint_from_kind): Turn into...
1843 (s390_target::sw_breakpoint_from_kind): ...this.
1844 (the_low_target): Remove the op field.
1845 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1847 (sh_sw_breakpoint_from_kind): Turn into...
1848 (sh_target::sw_breakpoint_from_kind): ...this.
1849 (the_low_target): Remove the op field.
1850 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1852 (sparc_sw_breakpoint_from_kind): Turn into...
1853 (sparc_target::sw_breakpoint_from_kind): ...this.
1854 (the_low_target): Remove the op field.
1855 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1857 (tic6x_sw_breakpoint_from_kind): Turn into...
1858 (tic6x_target::sw_breakpoint_from_kind): ...this.
1859 (the_low_target): Remove the op field.
1860 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1862 (tile_sw_breakpoint_from_kind): Turn into...
1863 (tile_target::sw_breakpoint_from_kind): ...this.
1864 (the_low_target): Remove the op field.
1865 * linux-xtensa-low.cc (class xtensa_target)
1866 <sw_breakpoint_from_kind>: Declare.
1867 (xtensa_sw_breakpoint_from_kind): Turn into...
1868 (xtensa_target::sw_breakpoint_from_kind): ...this.
1869 (the_low_target): Remove the op field.
1871 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1873 Remove the 'breakpoint_kind_from_pc' and
1874 'breakpoint_kind_from_current_state' linux target ops, and let the
1875 concrete linux target define them by overriding the ops of
1876 process_stratum_target.
1878 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1880 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1881 * linux-low.h (struct linux_target_ops): Remove ops.
1882 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1883 <breakpoint_kind_from_current_state>: Remove.
1884 * linux-x86-low.cc (the_low_target): Remove the op fields.
1885 * linux-bfin-low.cc (the_low_target): Ditto.
1886 * linux-cris-low.cc (the_low_target): Ditto.
1887 * linux-crisv32-low.cc (the_low_target): Ditto.
1888 * linux-m32r-low.cc (the_low_target): Ditto.
1889 * linux-m68k-low.cc (the_low_target): Ditto.
1890 * linux-mips-low.cc (the_low_target): Ditto.
1891 * linux-nios2-low.cc (the_low_target): Ditto.
1892 * linux-ppc-low.cc (the_low_target): Ditto.
1893 * linux-s390-low.cc (the_low_target): Ditto.
1894 * linux-sh-low.cc (the_low_target): Ditto.
1895 * linux-sparc-low.cc (the_low_target): Ditto.
1896 * linux-tic6x-low.cc (the_low_target): Ditto.
1897 * linux-tile-low.cc (the_low_target): Ditto.
1898 * linux-xtensa-low.cc (the_low_target): Ditto.
1899 * linux-aarch64-low.cc (class aarch64_target)
1900 <breakpoint_kind_from_pc>
1901 <breakpoint_kind_from_current_state>: Declare.
1902 (aarch64_breakpoint_kind_from_pc): Turn into...
1903 (aarch64_target::breakpoint_kind_from_pc): ...this.
1904 (aarch64_breakpoint_kind_from_current_state): Turn into...
1905 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1906 (the_low_target): Remove the op fields.
1907 * linux-arm-low.cc (class arm_target):
1908 <breakpoint_kind_from_pc>
1909 <breakpoint_kind_from_current_state>: Declare.
1910 (arm_target::breakpoint_kind_from_pc): Define.
1911 (arm_target::breakpoint_kind_from_current_state): Define.
1912 (the_low_target): Remove the op fields.
1913 * linux-riscv-low.cc (class riscv_target):
1914 <breakpoint_kind_from_pc>: Declare.
1915 (riscv_breakpoint_kind_from_pc): Turn into...
1916 (riscv_target::breakpoint_kind_from_pc): ...this.
1917 (the_low_target): Remove the op fields.
1919 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1921 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1922 of linux_process_target.
1924 * linux-low.h (struct linux_target_ops): Remove the ops.
1925 (class linux_process_target) <low_supports_breakpoints>
1927 <low_set_pc>: Declare.
1928 * linux-low.cc (supports_breakpoints): Turn into...
1929 (linux_process_target::low_supports_breakpoints): ...this.
1930 (linux_process_target::low_get_pc): Define.
1931 (linux_process_target::low_set_pc): Define.
1933 Update the callers below.
1935 (linux_process_target::get_pc)
1936 (linux_process_target::save_stop_reason)
1937 (linux_process_target::maybe_move_out_of_jump_pad)
1938 (linux_process_target::wait_1)
1939 (linux_process_target::resume_one_lwp_throw)
1940 (linux_process_target::resume)
1941 (linux_process_target::proceed_all_lwps)
1942 (linux_process_target::read_pc)
1943 (linux_process_target::write_pc)
1945 * linux-x86-low.cc (class linux_process_target)
1946 <low_supports_breakpoints>
1948 <low_set_pc>: Declare.
1949 (x86_target::low_supports_breakpoints): Define.
1950 (x86_get_pc): Turn into...
1951 (x86_target::low_get_pc): ...this.
1952 (x86_set_pc): Turn into...
1953 (x86_target::low_set_pc): ...this.
1954 (the_low_target): Remove the op fields.
1955 * linux-arm-low.cc (class arm_target)
1956 <low_supports_breakpoints>
1958 <low_set_pc>: Declare.
1959 (arm_target::low_supports_breakpoints)
1960 (arm_target::low_get_pc)
1961 (arm_target::low_set_pc): Define.
1962 (the_low_target): Remove the op fields.
1963 * linux-bfin-low.cc (class bfin_target)
1964 <low_supports_breakpoints>
1966 <low_set_pc>: Declare.
1967 (bfin_target::low_supports_breakpoints)
1968 (bfin_target::low_get_pc)
1969 (bfin_target::low_set_pc): Define.
1970 (the_low_target): Remove the op fields.
1971 * linux-cris-low.cc (class cris_target)
1972 <low_supports_breakpoints>
1974 <low_set_pc>: Declare.
1975 (cris_target::low_supports_breakpoints)
1976 (cris_target::low_get_pc)
1977 (cris_target::low_set_pc): Define.
1978 (the_low_target): Remove the op fields.
1979 * linux-crisv32-low.cc (class crisv32_target)
1980 <low_supports_breakpoints>
1982 <low_set_pc>: Declare.
1983 (crisv32_target::low_supports_breakpoints)
1984 (crisv32_target::low_get_pc)
1985 (crisv32_target::low_set_pc): Define.
1986 (the_low_target): Remove the op fields.
1987 * linux-m32r-low.cc (class m32r_target)
1988 <low_supports_breakpoints>
1990 <low_set_pc>: Declare.
1991 (m32r_target::low_supports_breakpoints)
1992 (m32r_target::low_get_pc)
1993 (m32r_target::low_set_pc): Define.
1994 (the_low_target): Remove the op fields.
1995 * linux-m68k-low.cc (class m68k_target)
1996 <low_supports_breakpoints>
1998 <low_set_pc>: Declare.
1999 (m68k_target::low_supports_breakpoints)
2000 (m68k_target::low_get_pc)
2001 (m68k_target::low_set_pc): Define.
2002 (the_low_target): Remove the op fields.
2003 * linux-nios2-low.cc (class nios2_target)
2004 <low_supports_breakpoints>
2006 <low_set_pc>: Declare.
2007 (nios2_target::low_supports_breakpoints)
2008 (nios2_target::low_get_pc)
2009 (nios2_target::low_set_pc): Define.
2010 (the_low_target): Remove the op fields.
2011 * linux-sh-low.cc (class sh_target)
2012 <low_supports_breakpoints>
2014 <low_set_pc>: Declare.
2015 (sh_target::low_supports_breakpoints)
2016 (sh_target::low_get_pc)
2017 (sh_target::low_set_pc): Define.
2018 (the_low_target): Remove the op fields.
2019 * linux-xtensa-low.cc (class xtensa_target)
2020 <low_supports_breakpoints>
2022 <low_set_pc>: Declare.
2023 (xtensa_target::low_supports_breakpoints)
2024 (xtensa_target::low_get_pc)
2025 (xtensa_target::low_set_pc): Define.
2026 (the_low_target): Remove the op fields.
2027 * linux-sparc-low.cc (class sparc_target)
2028 <low_supports_breakpoints>
2029 <low_get_pc>: Declare.
2030 (sparc_target::low_supports_breakpoints)
2031 (sparc_target::low_get_pc): Define.
2032 (the_low_target): Remove the op fields.
2033 * linux-tile-low.cc (class tile_target)
2034 <low_supports_breakpoints>
2036 <low_set_pc>: Declare.
2037 (tile_target::low_supports_breakpoints)
2038 (tile_target::low_get_pc)
2039 (tile_target::low_set_pc): Define.
2040 (the_low_target): Remove the op fields.
2041 * linux-aarch64-low.cc (class aarch64_target)
2042 <low_supports_breakpoints>
2044 <low_set_pc>: Declare.
2045 (aarch64_target::low_supports_breakpoints): Define.
2046 (aarch64_get_pc): Turn into...
2047 (aarch64_target::low_get_pc): ...this.
2048 (aarch64_set_pc): Turn into...
2049 (aarch64_target::low_set_pc): ...this.
2050 (the_low_target): Remove the op fields.
2051 * linux-mips-low.cc (class mips_target)
2052 <low_supports_breakpoints>
2054 <low_set_pc>: Declare.
2055 (mips_target::low_supports_breakpoints): Define.
2056 (mips_get_pc): Turn into...
2057 (mips_target::low_get_pc): ...this.
2058 (mips_set_pc): Turn into...
2059 (mips_target::low_set_pc): ...this.
2060 (the_low_target): Remove the op fields.
2061 * linux-ppc-low.cc (class ppc_target)
2062 <low_supports_breakpoints>
2064 <low_set_pc>: Declare.
2065 (ppc_target::low_supports_breakpoints): Define.
2066 (ppc_get_pc): Turn into...
2067 (ppc_target::low_get_pc): ...this.
2068 (ppc_set_pc): Turn into...
2069 (ppc_target::low_set_pc): ...this.
2070 (the_low_target): Remove the op fields.
2071 * linux-riscv-low.cc (class riscv_target)
2072 <low_supports_breakpoints>
2074 <low_set_pc>: Declare.
2075 (riscv_target::low_supports_breakpoints): Define.
2076 (riscv_get_pc): Turn into...
2077 (riscv_target::low_get_pc): ...this.
2078 (riscv_set_pc): Turn into...
2079 (riscv_target::low_set_pc): ...this.
2080 (the_low_target): Remove the op fields.
2081 * linux-s390-low.cc (class s390_target)
2082 <low_supports_breakpoints>
2084 <low_set_pc>: Declare.
2085 (s390_target::low_supports_breakpoints): Define.
2086 (s390_get_pc): Turn into...
2087 (s390_target::low_get_pc): ...this.
2088 (s390_set_pc): Turn into...
2089 (s390_target::low_set_pc): ...this.
2090 (the_low_target): Remove the op fields.
2091 * linux-tic6x-low.cc (class tic6x_target)
2092 <low_supports_breakpoints>
2094 <low_set_pc>: Declare.
2095 (tic6x_target::low_supports_breakpoints): Define.
2096 (tic6x_get_pc): Turn into...
2097 (tic6x_target::low_get_pc): ...this.
2098 (tic6x_set_pc): Turn into...
2099 (tic6x_target::low_set_pc): ...this.
2100 (the_low_target): Remove the op fields.
2102 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2104 Turn some more static methods in linux-low into private methods
2105 of linux_process_target.
2107 * linux-low.cc (get_pc): Turn into...
2108 (linux_process_target::get_pc): ...this.
2109 (save_stop_reason): Turn into...
2110 (linux_process_target::save_stop_reason): ...this.
2111 (thread_still_has_status_pending_p): Turn into...
2112 (linux_process_target::thread_still_has_status_pending): ...this.
2113 (status_pending_p_callback): Turn into...
2114 (linux_process_target::status_pending_p_callback): ...this.
2115 (resume_stopped_resumed_lwps): Turn into...
2116 (linux_process_target::resume_stopped_resumed_lwps): ...this.
2117 (install_software_single_step_breakpoints): Turn into...
2118 (linux_process_target::install_software_single_step_breakpoints):
2120 (single_step): Turn into...
2121 (linux_process_target::single_step): ...this.
2122 (linux_resume_one_lwp_throw): Turn into...
2123 (linux_process_target::resume_one_lwp_throw): ...this.
2124 (linux_resume_one_lwp): Turn into...
2125 (linux_process_target::resume_one_lwp): ...this.
2126 (resume_status_pending_p): Turn into...
2127 (linux_process_target::resume_status_pending): ...this.
2128 (need_step_over_p): Turn into...
2129 (linux_process_target::thread_needs_step_over): ...this.
2130 (linux_resume_one_thread): Turn into...
2131 (linux_process_target::resume_one_thread): ...this.
2132 (proceed_one_lwp): Turn into...
2133 (linux_process_target::proceed_one_lwp): ...this.
2134 (unsuspend_and_proceed_one_lwp): Turn into...
2135 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
2137 Update the calls/references to the above functions below.
2139 (linux_process_target::handle_extended_wait)
2140 (linux_process_target::filter_event)
2141 (linux_process_target::wait_for_event_filtered)
2142 (linux_process_target::wait_1)
2143 (linux_process_target::move_out_of_jump_pad)
2144 (linux_process_target::start_step_over)
2145 (linux_process_target::resume)
2146 (linux_process_target::proceed_all_lwps)
2147 (regsets_store_inferior_registers)
2148 (linux_process_target::store_register)
2150 * linux-low.h (class linux_process_target)
2153 <thread_still_has_status_pending>
2154 <status_pending_p_callback>
2155 <resume_stopped_resumed_lwps>
2156 <install_software_single_step_breakpoints>
2158 <resume_one_lwp_throw>
2160 <resume_status_pending>
2161 <thread_needs_step_over>
2164 <unsuspend_and_proceed_one_lwp>: Declare.
2166 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2168 Turn the 'fetch_register' linux target op into a method of
2169 linux_process_target.
2171 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
2172 (class linux_process_target) <low_fetch_register>: Declare.
2173 * linux-x86-low.cc (the_low_target)
2174 * linux-aarch64-low.cc (the_low_target)
2175 * linux-arm-low.cc (the_low_target)
2176 * linux-bfin-low.cc (the_low_target)
2177 * linux-cris-low.cc (the_low_target)
2178 * linux-crisv32-low.cc (the_low_target)
2179 * linux-m32r-low.cc (the_low_target)
2180 * linux-m68k-low.cc (the_low_target)
2181 * linux-nios2-low.cc (the_low_target)
2182 * linux-ppc-low.cc (the_low_target)
2183 * linux-s390-low.cc (the_low_target)
2184 * linux-sh-low.cc (the_low_target)
2185 * linux-sparc-low.cc (the_low_target)
2186 * linux-tic6x-low.cc (the_low_target)
2187 * linux-tile-low.cc (the_low_target)
2188 * linux-xtensa-low.cc (the_low_target): Remove the op field.
2189 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
2191 (ia64_fetch_register): Turn into...
2192 (ia64_target::low_fetch_register): ...this.
2193 (the_low_target): Remove the op field.
2194 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
2196 (mips_fetch_register): Turn into...
2197 (mips_target::low_fetch_register): ...this.
2198 (the_low_target): Remove the op field.
2199 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
2201 (riscv_fetch_register): Turn into...
2202 (riscv_target::low_fetch_register): ...this.
2203 (the_low_target): Remove the op field.
2205 Update the callers below.
2207 * linux-low.cc (linux_process_target::fetch_registers)
2208 (linux_process_target::low_fetch_register)
2210 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2212 Turn the 'cannot_fetch_register' and 'cannot_store_register'
2213 linux target ops into methods of linux_process_target.
2215 * linux-low.h (struct linux_target_ops): Remove the low target ops.
2216 (class linux_process_target) <fetch_register>
2218 <usr_fetch_inferior_registers>
2219 <usr_store_inferior_registers>
2220 <low_cannot_fetch_register>
2221 <low_cannot_fetch_register> Declare.
2222 * linux-low.cc (fetch_register): Turn into...
2223 (linux_process_target::fetch_register): ...this.
2224 (store_register): Turn into ...
2225 (linux_process_target::store_register): ...this.
2226 (usr_fetch_inferior_registers): Turn into...
2227 (linux_process_target::usr_fetch_inferior_registers): ...this.
2228 (usr_store_inferior_registers): Turn into...
2229 (linux_process_target::usr_store_inferior_registers): ...this.
2230 * linux-x86-low.cc (class x86_target)
2231 <low_cannot_fetch_register>
2232 <low_cannot_store_register>: Declare.
2233 (x86_cannot_store_register): Turn into...
2234 (x86_target::low_cannot_store_register): ...this.
2235 (x86_cannot_fetch_register): Turn into...
2236 (x86_target::low_cannot_fetch_register): ...this.
2237 (the_low_target): Remove the target op fields.
2238 * linux-aarch64-low.cc (class aarch64_target)
2239 <low_cannot_fetch_register>
2240 <low_cannot_store_register>: Declare.
2241 (aarch64_target::low_cannot_fetch_register)
2242 (aarch64_target::low_cannot_store_register): Define.
2243 (the_low_target): Remove the op fields.
2244 * linux-arm-low.cc (class arm_target)
2245 <low_cannot_fetch_register>
2246 <low_cannot_store_register>: Declare.
2247 (arm_cannot_fetch_register): Turn into...
2248 (arm_target::low_cannot_fetch_register): ...this.
2249 (arm_cannot_store_register): Turn into...
2250 (arm_target::low_cannot_store_register): ...this.
2251 (the_low_target): Remove the op fields.
2252 * linux-bfin-low.cc (class bfin_target)
2253 <low_cannot_fetch_register>
2254 <low_cannot_store_register>: Declare.
2255 (bfin_cannot_fetch_register): Turn into...
2256 (bfin_target::low_cannot_fetch_register): ...this.
2257 (bfin_cannot_store_register): Turn into...
2258 (bfin_target::low_cannot_store_register): ...this.
2259 (the_low_target): Remove the op fields.
2260 * linux-cris-low.cc (class cris_target)
2261 <low_cannot_fetch_register>
2262 <low_cannot_store_register>: Declare.
2263 (cris_cannot_fetch_register): Turn into...
2264 (cris_target::low_cannot_fetch_register): ...this.
2265 (cris_cannot_store_register): Turn into...
2266 (cris_target::low_cannot_store_register): ...this.
2267 (the_low_target): Remove the op fields.
2268 * linux-crisv32-low.cc (class crisv32_target)
2269 <low_cannot_fetch_register>
2270 <low_cannot_store_register>: Declare.
2271 (crisv32_target::low_cannot_fetch_register)
2272 (crisv32_target::low_cannot_store_register): Define.
2273 (the_low_target): Remove the op fields.
2274 * linux-ia64-low.cc (class ia64_target)
2275 <low_cannot_fetch_register>
2276 <low_cannot_store_register>: Declare.
2277 (ia64_cannot_fetch_register): Turn into...
2278 (ia64_target::low_cannot_fetch_register): ...this.
2279 (ia64_cannot_store_register): Turn into...
2280 (ia64_target::low_cannot_store_register): ...this.
2281 (the_low_target): Remove the op fields.
2282 * linux-m32r-low.cc (class m32r_target)
2283 <low_cannot_fetch_register>
2284 <low_cannot_store_register>: Declare.
2285 (m32r_cannot_fetch_register): Turn into...
2286 (m32r_target::low_cannot_fetch_register): ...this.
2287 (m32r_cannot_store_register): Turn into...
2288 (m32r_target::low_cannot_store_register): ...this.
2289 (the_low_target): Remove the op fields.
2290 * linux-m68k-low.cc (class m68k_target)
2291 <low_cannot_fetch_register>
2292 <low_cannot_store_register>: Declare.
2293 (m68k_cannot_fetch_register): Turn into...
2294 (m68k_target::low_cannot_fetch_register): ...this.
2295 (m68k_cannot_store_register): Turn into...
2296 (m68k_target::low_cannot_store_register): ...this.
2297 (the_low_target): Remove the op fields.
2298 * linux-mips-low.cc (class mips_target)
2299 <low_cannot_fetch_register>
2300 <low_cannot_store_register>: Declare.
2301 (mips_cannot_fetch_register): Turn into...
2302 (mips_target::low_cannot_fetch_register): ...this.
2303 (mips_cannot_store_register): Turn into...
2304 (mips_target::low_cannot_store_register): ...this.
2305 (get_usrregs_info): Inline at the call sites in
2306 low_cannot_fetch_register and low_cannot_store_register,
2308 (the_low_target): Remove the op fields.
2309 * linux-nios2-low.cc (class nios2_target)
2310 <low_cannot_fetch_register>
2311 <low_cannot_store_register>: Declare.
2312 (nios2_cannot_fetch_register): Turn into...
2313 (nios2_target::low_cannot_fetch_register): ...this.
2314 (nios2_cannot_store_register): Turn into...
2315 (nios2_target::low_cannot_store_register): ...this.
2316 (the_low_target): Remove the op fields.
2317 * linux-ppc-low.cc (class ppc_target)
2318 <low_cannot_fetch_register>
2319 <low_cannot_store_register>: Declare.
2320 (ppc_cannot_fetch_register): Turn into...
2321 (ppc_target::low_cannot_fetch_register): ...this.
2322 (ppc_cannot_store_register): Turn into...
2323 (ppc_target::low_cannot_store_register): ...this.
2324 (the_low_target): Remove the op fields.
2325 * linux-riscv-low.cc (class riscv_target)
2326 <low_cannot_fetch_register>
2327 <low_cannot_store_register>: Declare.
2328 (riscv_target::low_cannot_fetch_register)
2329 (riscv_target::low_cannot_store_register): Define.
2330 (the_low_target): Remove the op fields.
2331 * linux-s390-low.cc (class s390_target)
2332 <low_cannot_fetch_register>
2333 <low_cannot_store_register>: Declare.
2334 (s390_cannot_fetch_register): Turn into...
2335 (s390_target::low_cannot_fetch_register): ...this.
2336 (s390_cannot_store_register): Turn into...
2337 (s390_target::low_cannot_store_register): ...this.
2338 (the_low_target): Remove the op fields.
2339 * linux-sh-low.cc (class sh_target)
2340 <low_cannot_fetch_register>
2341 <low_cannot_store_register>: Declare.
2342 (sh_cannot_fetch_register): Turn into...
2343 (sh_target::low_cannot_fetch_register): ...this.
2344 (sh_cannot_store_register): Turn into...
2345 (sh_target::low_cannot_store_register): ...this.
2346 (the_low_target): Remove the op fields.
2347 * linux-sparc-low.cc (class sparc_target)
2348 <low_cannot_fetch_register>
2349 <low_cannot_store_register>: Declare.
2350 (sparc_cannot_fetch_register): Turn into...
2351 (sparc_target::low_cannot_fetch_register): ...this.
2352 (sparc_cannot_store_register): Turn into...
2353 (sparc_target::low_cannot_store_register): ...this.
2354 (the_low_target): Remove the op fields.
2355 * linux-tic6x-low.cc (class tic6x_target)
2356 <low_cannot_fetch_register>
2357 <low_cannot_store_register>: Declare.
2358 (tic6x_cannot_fetch_register): Turn into...
2359 (tic6x_target::low_cannot_fetch_register): ...this.
2360 (tic6x_cannot_store_register): Turn into...
2361 (tic6x_target::low_cannot_store_register): ...this.
2362 (the_low_target): Remove the op fields.
2363 * linux-tile-low.cc (class tile_target)
2364 <low_cannot_fetch_register>
2365 <low_cannot_store_register>: Declare.
2366 (tile_cannot_fetch_register): Turn into...
2367 (tile_target::low_cannot_fetch_register): ...this.
2368 (tile_cannot_store_register): Turn into...
2369 (tile_target::low_cannot_store_register): ...this.
2370 (the_low_target): Remove the op fields.
2371 * linux-xtensa-low.cc (class xtensa_target)
2372 <low_cannot_fetch_register>
2373 <low_cannot_store_register>: Declare.
2374 (xtensa_target::low_cannot_fetch_register)
2375 (xtensa_target::low_cannot_store_register): Define.
2376 (the_low_target): Remove the op fields.
2378 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2380 Turn the 'regs_info' linux target op into a method of
2381 linux_process_target.
2383 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2384 (class linux_process_target) <get_regs_info>: Define.
2386 Update the callers below.
2388 * linux-low.cc (linux_process_target::fetch_registers)
2389 (linux_process_target::store_registers)
2390 * proc-service.cc (gregset_info)
2392 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2393 (x86_linux_regs_info): Turn into ...
2394 (x86_target::get_regs_info): ...this.
2395 (the_low_target): Remove the op field.
2396 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2398 (aarch64_regs_info): Turn into ...
2399 (aarch64_target::get_regs_info): ...this.
2400 (the_low_target): Remove the op field.
2401 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2402 (arm_regs_info): Turn into ...
2403 (arm_target::get_regs_info): ...this.
2404 (the_low_target): Remove the op field.
2405 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2406 (bfin_regs_info): Turn into ...
2407 (bfin_target::get_regs_info): ...this.
2408 (the_low_target): Remove the op field.
2409 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2410 (cris_regs_info): Turn into ...
2411 (cris_target::get_regs_info): ...this.
2412 (the_low_target): Remove the op field.
2413 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2415 (crisv32_regs_info): Turn into ...
2416 (crisv32_target::get_regs_info): ...this.
2417 (the_low_target): Remove the op field.
2418 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2419 (ia64_regs_info): Turn into ...
2420 (ia64_target::get_regs_info): ...this.
2421 (the_low_target): Remove the op field.
2422 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2423 (m32r_regs_info): Turn into ...
2424 (m32r_target::get_regs_info): ...this.
2425 (the_low_target): Remove the op field.
2426 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2427 (m68k_regs_info): Turn into ...
2428 (m68k_target::get_regs_info): ...this.
2429 (the_low_target): Remove the op field.
2430 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2431 (mips_regs_info): Turn into ...
2432 (mips_target::get_regs_info): ...this.
2433 (the_low_target): Remove the op field.
2434 (get_usrregs_info): Update the call to the op.
2435 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2436 (nios2_regs_info): Turn into ...
2437 (nios2_target::get_regs_info): ...this.
2438 (the_low_target): Remove the op field.
2439 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2440 (ppc_regs_info): Turn into ...
2441 (ppc_target::get_regs_info): ...this.
2442 (the_low_target): Remove the op field.
2443 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2444 (riscv_regs_info): Turn into ...
2445 (riscv_target::get_regs_info): ...this.
2446 (the_low_target): Remove the op field.
2447 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2448 (s390_regs_info): Turn into ...
2449 (s390_target::get_regs_info): ...this.
2450 (the_low_target): Remove the op field.
2451 (s390_collect_ptrace_register)
2452 (s390_supply_ptrace_register)
2453 (s390_fill_gregset): Update the call to the op.
2454 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2455 (sh_regs_info): Turn into ...
2456 (sh_target::get_regs_info): ...this.
2457 (the_low_target): Remove the op field.
2458 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2459 (sparc_regs_info): Turn into ...
2460 (sparc_target::get_regs_info): ...this.
2461 (the_low_target): Remove the op field.
2462 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2463 (tic6x_regs_info): Turn into ...
2464 (tic6x_target::get_regs_info): ...this.
2465 (the_low_target): Remove the op field.
2466 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2467 (tile_regs_info): Turn into ...
2468 (tile_target::get_regs_info): ...this.
2469 (the_low_target): Remove the op field.
2470 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2472 (xtensa_regs_info): Turn into ...
2473 (xtensa_target::get_regs_info): ...this.
2474 (the_low_target): Remove the op field.
2476 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2478 Turn the 'arch_setup' linux target op into a method of
2479 linux_process_target.
2481 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2482 (class linux_process_target) <arch_setup_thread>
2483 <low_arch_setup>: New declarations.
2484 * linux-low.cc (linux_arch_setup): Delete.
2485 (linux_arch_setup_thread): Turn into...
2486 (linux_process_target::arch_setup_thread): ... this.
2488 Update the callers below.
2490 (linux_process_target::handle_extended_wait)
2491 (linux_process_target::post_create_inferior)
2492 (linux_process_target::filter_event)
2494 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2496 (x86_linux_update_xmltarget): Turn into...
2497 (x86_target::update_xmltarget): ...this.
2498 (x86_linux_process_qsupported): Update the call to
2499 x86_linux_update_xmltarget.
2500 (x86_arch_setup): Turn into ...
2501 (x86_target::low_arch_setup): ...this.
2502 (the_low_target): Remove the op field.
2503 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2505 (aarch64_arch_setup): Turn into ...
2506 (aarch64_target::low_arch_setup): ...this.
2507 (the_low_target): Remove the op field.
2508 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2510 (arm_arch_setup): Turn into ...
2511 (arm_target::low_arch_setup): ...this.
2512 (the_low_target): Remove the op field.
2513 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2515 (bfin_arch_setup): Turn into ...
2516 (bfin_target::low_arch_setup): ...this.
2517 (the_low_target): Remove the op field.
2518 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2520 (cris_arch_setup): Turn into ...
2521 (cris_target::low_arch_setup): ...this.
2522 (the_low_target): Remove the op field.
2523 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2525 (crisv32_arch_setup): Turn into ...
2526 (crisv32_target::low_arch_setup): ...this.
2527 (the_low_target): Remove the op field.
2528 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2530 (ia64_arch_setup): Turn into ...
2531 (ia64_target::low_arch_setup): ...this.
2532 (the_low_target): Remove the op field.
2533 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2535 (m32r_arch_setup): Turn into ...
2536 (m32r_target::low_arch_setup): ...this.
2537 (the_low_target): Remove the op field.
2538 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2540 (m68k_arch_setup): Turn into ...
2541 (m68k_target::low_arch_setup): ...this.
2542 (the_low_target): Remove the op field.
2543 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2545 (mips_arch_setup): Turn into ...
2546 (mips_target::low_arch_setup): ...this.
2547 (the_low_target): Remove the op field.
2548 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2550 (nios2_arch_setup): Turn into ...
2551 (nios2_target::low_arch_setup): ...this.
2552 (the_low_target): Remove the op field.
2553 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2555 (ppc_arch_setup): Turn into ...
2556 (ppc_target::low_arch_setup): ...this.
2557 (the_low_target): Remove the op field.
2558 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2560 (riscv_arch_setup): Turn into ...
2561 (riscv_target::low_arch_setup): ...this.
2562 (the_low_target): Remove the op field.
2563 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2565 (s390_arch_setup): Turn into ...
2566 (s390_target::low_arch_setup): ...this.
2567 (the_low_target): Remove the op field.
2568 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2570 (sh_arch_setup): Turn into ...
2571 (sh_target::low_arch_setup): ...this.
2572 (the_low_target): Remove the op field.
2573 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2575 (sparc_arch_setup): Turn into ...
2576 (sparc_target::low_arch_setup): ...this.
2577 (the_low_target): Remove the op field.
2578 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2580 (tic6x_arch_setup): Turn into ...
2581 (tic6x_target::low_arch_setup): ...this.
2582 (the_low_target): Remove the op field.
2583 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2585 (tile_arch_setup): Turn into ...
2586 (tile_target::low_arch_setup): ...this.
2587 (the_low_target): Remove the op field.
2588 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2590 (xtensa_arch_setup): Turn into ...
2591 (xtensa_target::low_arch_setup): ...this.
2592 (the_low_target): Remove the op field.
2594 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2596 * linux-low.h (the_linux_target): New extern declaration.
2597 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2599 (the_linux_target): Remove.
2600 * linux-x86-low.cc (class x86_target): New class.
2601 (the_x86_target): New static object.
2602 (the_linux_target): Define as pointer to the_x86_target.
2603 * linux-aarch64-low.cc (class aarch64_target): New class.
2604 (the_aarch64_target): New static object.
2605 (the_linux_target): Define as pointer to the_aarch64_target.
2606 * linux-arm-low.cc (class arm_target): New class.
2607 (the_arm_target): New static object.
2608 (the_linux_target): Define as pointer to the_arm_target.
2609 * linux-bfin-low.cc (class bfin_target): New class.
2610 (the_bfin_target): New static object.
2611 (the_linux_target): Define as pointer to the_bfin_target.
2612 * linux-cris-low.cc (class cris_target): New class.
2613 (the_cris_target): New static object.
2614 (the_linux_target): Define as pointer to the_cris_target.
2615 * linux-crisv32-low.cc (class crisv32_target): New class.
2616 (the_crisv32_target): New static object.
2617 (the_linux_target): Define as pointer to the_crisv32_target.
2618 * linux-ia64-low.cc (class ia64_target): New class.
2619 (the_ia64_target): New static object.
2620 (the_linux_target): Define as pointer to the_ia64_target.
2621 * linux-m32r-low.cc (class m32r_target): New class.
2622 (the_m32r_target): New static object.
2623 (the_linux_target): Define as pointer to the_m32r_target.
2624 * linux-m68k-low.cc (class m68k_target): New class.
2625 (the_m68k_target): New static object.
2626 (the_linux_target): Define as pointer to the_m68k_target.
2627 * linux-mips-low.cc (class mips_target): New class.
2628 (the_mips_target): New static object.
2629 (the_linux_target): Define as pointer to the_mips_target.
2630 * linux-nios2-low.cc (class nios2_target): New class.
2631 (the_nios2_target): New static object.
2632 (the_linux_target): Define as pointer to the_nios2_target.
2633 * linux-ppc-low.cc (class ppc_target): New class.
2634 (the_ppc_target): New static object.
2635 (the_linux_target): Define as pointer to the_ppc_target.
2636 * linux-riscv-low.cc (class riscv_target): New class.
2637 (the_riscv_target): New static object.
2638 (the_linux_target): Define as pointer to the_riscv_target.
2639 * linux-s390-low.cc (class s390_target): New class.
2640 (the_s390_target): New static object.
2641 (the_linux_target): Define as pointer to the_s390_target.
2642 * linux-sh-low.cc (class sh_target): New class.
2643 (the_sh_target): New static object.
2644 (the_linux_target): Define as pointer to the_sh_target.
2645 * linux-sparc-low.cc (class sparc_target): New class.
2646 (the_sparc_target): New static object.
2647 (the_linux_target): Define as pointer to the_sparc_target.
2648 * linux-tic6x-low.cc (class tic6x_target): New class.
2649 (the_tic6x_target): New static object.
2650 (the_linux_target): Define as pointer to the_tic6x_target.
2651 * linux-tile-low.cc (class tile_target): New class.
2652 (the_tile_target): New static object.
2653 (the_linux_target): Define as pointer to the_tile_target.
2654 * linux-xtensa-low.cc (class xtensa_target): New class.
2655 (the_xtensa_target): New static object.
2656 (the_linux_target): Define as pointer to the_xtensa_target.
2658 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2660 Turn some static functions in linux-low.cc into private methods of
2661 linux_process_target.
2663 * linux-low.cc (handle_extended_wait): Turn into ...
2664 (linux_process_target::handle_extended_wait): ...this. Call
2665 'mourn' on 'this' object instead of 'the_target'.
2666 (maybe_move_out_of_jump_pad): Turn into...
2667 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2668 (linux_low_filter_event): Turn into...
2669 (linux_process_target::filter_event): ...this.
2670 (linux_wait_for_event_filtered): Turn into...
2671 (linux_process_target::wait_for_event_filtered): ...this.
2672 (linux_wait_for_event): Turn into...
2673 (linux_process_target::wait_for_event): ...this.
2674 (linux_wait_1): Turn into...
2675 (linux_process_target::wait_1): ...this.
2676 (wait_for_sigstop): Turn into...
2677 (linux_process_target::wait_for_sigstop): ...this.
2678 (move_out_of_jump_pad_callback): Turn into...
2679 (linux_process_target::move_out_of_jump_pad): ...this.
2680 (stop_all_lwps): Turn into...
2681 (linux_process_target::stop_all_lwps): ...this.
2682 (start_step_over): Turn into...
2683 (linux_process_target::start_step_over): ...this.
2684 (complete_ongoing_step_over): Turn into...
2685 (linux_process_target::complete_ongoing_step_over): ...this.
2686 (proceed_all_lwps): Turn into...
2687 (linux_process_target::proceed_all_lwps): ...this.
2688 (unstop_all_lwps): Turn into...
2689 (linux_process_target::unstop_all_lwps): ...this.
2691 * linux-low.h (class linux_process_target)
2692 <handle_extended_wait>
2693 <maybe_move_out_of_jump_pad>
2695 <wait_for_event_filtered>
2699 <move_out_of_jump_pad>
2702 <complete_ongoing_step_over>
2704 <unstop_all_lwps>: Declare.
2706 Update the callers below.
2708 * linux-low.cc (linux_process_target::attach): Update.
2709 (linux_process_target::stabilize_threads): Ditto.
2710 (linux_process_target::wait): Ditto.
2712 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2714 * linux-low.h (struct linux_target_ops): Update the comment for
2715 'cannot_store_register' to return 0 or 1.
2716 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2719 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2721 * config.in: Re-generate.
2722 * configure: Re-generate.
2724 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2726 * regcache.cc (find_register_by_number): Update.
2727 * tdesc.cc (init_target_desc): Likewise.
2728 * tdesc.h (target_desc::reg_defs): Likewise.
2730 2020-03-12 Tom Tromey <tom@tromey.com>
2732 * configure: Rebuild.
2733 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2734 (WIN32APILIBS): New subst.
2735 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2737 (gdbsupport/%.o): Remove target.
2738 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2739 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2740 (WIN32APILIBS): New variable.
2741 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2742 (gdbreplay$(EXEEXT)): Likewise.
2744 2020-03-12 Tom Tromey <tom@tromey.com>
2746 * config.in, configure: Rebuild.
2747 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2748 * acinclude.m4: Include gettext-sister.m4.
2749 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2751 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2752 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2754 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2756 * acinclude.m4: Update path to selftest.m4.
2758 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2760 * configure.ac: Don't source bfd/development.sh, move
2761 GDB_AC_COMMON higher.
2762 * configure: Re-generate.
2764 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2766 * configure: Re-generate.
2768 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2770 * configure: Re-generate.
2772 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2774 * .dir-locals.el: New file.
2776 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2778 * .gitattributes: New file.
2780 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2782 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2783 reply into an S reply.
2784 * server.cc (disable_packet_T): New global.
2785 (captured_main): Set new global when appropriate.
2786 * server.h (disable_packet_T): Declare.
2788 2020-02-21 Tom Tromey <tom@tromey.com>
2790 * Makefile.in (mostlyclean): New target.
2792 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2794 * target.h (struct process_stratum_target): Remove.
2795 (class process_target): Rename to ...
2796 (class process_stratum_target): ... this.
2797 * linux-low.h (class linux_process_target): Derive from
2798 'process_stratum_target'.
2799 * linux-low.cc (linux_target_ops): Remove.
2800 (initialize_low): Set the_target to the singleton instance of
2801 linux_process_target.
2802 * lynx-low.h (class lynx_process_target): Derive from
2803 'process_stratum_target'.
2804 * lynx-low.cc (lynx_target_ops): Remove.
2805 (initialize_low): Set the_target to the singleton instance of
2806 lynx_process_target.
2807 * nto-low.h (class nto_process_target): Derive from
2808 'process_stratum_target'.
2809 * nto-low.cc (nto_target_ops): Remove.
2810 (initialize_low): Set the_target to the singleton instance of
2812 * win32-low.h (class win32_process_target): Derive from
2813 'process_stratum_target'.
2814 * win32-low.cc (win32_target_ops): Remove.
2815 (initialize_low): Set the_target to the singleton instance of
2816 win32_process_target.
2818 Replace 'the_target->pt' with 'the_target' in the uses below.
2820 * hostio.cc (hostio_error)
2825 * linux-aarch32-low.cc (arm_breakpoint_at)
2826 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2827 * linux-arm-low.cc (arm_sigreturn_next_pc)
2829 (arm_get_syscall_trapinfo)
2830 * linux-cris-low.cc (cris_breakpoint_at)
2831 * linux-crisv32-low.cc (cris_breakpoint_at)
2832 * linux-low.cc (handle_extended_wait)
2835 (linux_process_target::breakpoint_kind_from_pc)
2837 * linux-m32r-low.cc (m32r_breakpoint_at)
2838 * linux-mips-low.cc (mips_breakpoint_at)
2839 * linux-nios2-low.cc (nios2_breakpoint_at)
2840 * linux-ppc-low.cc (ppc_breakpoint_at)
2841 * linux-s390-low.cc (s390_get_hwcap)
2842 * linux-sh-low.cc (sh_breakpoint_at)
2843 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2844 (sparc_store_gregset_from_stack)
2845 (sparc_breakpoint_at)
2846 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2847 * linux-tile-low.cc (tile_breakpoint_at)
2848 * linux-x86-low.cc (x86_breakpoint_at)
2849 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2850 * mem-break.cc (bp_size)
2852 (insert_memory_breakpoint)
2853 (set_raw_breakpoint_at)
2854 (delete_raw_breakpoint)
2856 (uninsert_raw_breakpoint)
2857 (reinsert_raw_breakpoint)
2858 (validate_inserted_breakpoint)
2859 * regcache.cc (regcache_read_pc)
2861 * remote-utils.cc (putpkt_binary_1)
2864 (prepare_resume_reply)
2865 * server.cc (handle_general_set)
2868 (handle_qxfer_exec_file)
2869 (handle_qxfer_libraries_svr4)
2870 (handle_qxfer_osdata)
2871 (handle_qxfer_siginfo)
2872 (handle_qxfer_fdpic)
2876 (queue_stop_reply_callback)
2878 * target.cc (prepare_to_access_memory)
2879 (done_accessing_memory)
2880 (read_inferior_memory)
2881 (target_write_memory)
2882 (target_stop_and_wait)
2884 (target_mourn_inferior)
2885 (target_continue_no_signal)
2887 (target_supports_multi_process)
2890 (target_create_inferior)
2891 (target_post_create_inferior)
2893 (target_supports_fork_events)
2894 (target_supports_vfork_events)
2895 (target_supports_exec_events)
2896 (target_handle_new_gdb_connection)
2899 (fetch_inferior_registers)
2900 (store_inferior_registers)
2902 (target_supports_non_stop)
2904 (target_process_qsupported)
2905 (target_supports_catch_syscall)
2906 (target_get_ipa_tdesc_idx)
2907 (target_supports_tracepoints)
2908 (target_supports_fast_tracepoints)
2909 (target_get_min_fast_tracepoint_insn_len)
2910 (target_thread_stopped)
2912 (target_unpause_all)
2913 (target_stabilize_threads)
2914 (target_install_fast_tracepoint_jump_pad)
2916 (target_supports_disable_randomization)
2917 (target_supports_agent)
2918 (target_enable_btrace)
2919 (target_disable_btrace)
2920 (target_read_btrace)
2921 (target_read_btrace_conf)
2922 (target_supports_range_stepping)
2923 (target_supports_stopped_by_sw_breakpoint)
2924 (target_stopped_by_sw_breakpoint)
2925 (target_supports_stopped_by_hw_breakpoint)
2926 (target_supports_hardware_single_step)
2927 (target_stopped_by_hw_breakpoint)
2928 (target_breakpoint_kind_from_pc)
2929 (target_breakpoint_kind_from_current_state)
2930 (target_supports_software_single_step)
2931 (target_core_of_thread)
2932 (target_thread_name)
2933 (target_thread_handle)
2934 * win32-low.cc (do_initial_child_stuff)
2936 Rename target op default definitions listed below.
2938 * target.cc (process_target::post_create_inferior): Rename as ...
2939 (process_stratum_target::post_create_inferior): ... this.
2940 (process_target::prepare_to_access_memory): Rename as ...
2941 (process_stratum_target::prepare_to_access_memory): ... this.
2942 (process_target::done_accessing_memory): Rename as ...
2943 (process_stratum_target::done_accessing_memory): ... this.
2944 (process_target::look_up_symbols): Rename as ...
2945 (process_stratum_target::look_up_symbols): ... this.
2946 (process_target::supports_read_auxv): Rename as ...
2947 (process_stratum_target::supports_read_auxv): ... this.
2948 (process_target::read_auxv): Rename as ...
2949 (process_stratum_target::read_auxv): ... this.
2950 (process_target::supports_z_point_type): Rename as ...
2951 (process_stratum_target::supports_z_point_type): ... this.
2952 (process_target::insert_point): Rename as ...
2953 (process_stratum_target::insert_point): ... this.
2954 (process_target::remove_point): Rename as ...
2955 (process_stratum_target::remove_point): ... this.
2956 (process_target::stopped_by_sw_breakpoint): Rename as ...
2957 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2958 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2959 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2960 (process_target::stopped_by_hw_breakpoint): Rename as ...
2961 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2962 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2963 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2964 (process_target::supports_hardware_single_step): Rename as ...
2965 (process_stratum_target::supports_hardware_single_step): ... this.
2966 (process_target::stopped_by_watchpoint): Rename as ...
2967 (process_stratum_target::stopped_by_watchpoint): ... this.
2968 (process_target::stopped_data_address): Rename as ...
2969 (process_stratum_target::stopped_data_address): ... this.
2970 (process_target::supports_read_offsets): Rename as ...
2971 (process_stratum_target::supports_read_offsets): ... this.
2972 (process_target::read_offsets): Rename as ...
2973 (process_stratum_target::read_offsets): ... this.
2974 (process_target::supports_get_tls_address): Rename as ...
2975 (process_stratum_target::supports_get_tls_address): ... this.
2976 (process_target::get_tls_address): Rename as ...
2977 (process_stratum_target::get_tls_address): ... this.
2978 (process_target::hostio_last_error): Rename as ...
2979 (process_stratum_target::hostio_last_error): ... this.
2980 (process_target::supports_qxfer_osdata): Rename as ...
2981 (process_stratum_target::supports_qxfer_osdata): ... this.
2982 (process_target::qxfer_osdata): Rename as ...
2983 (process_stratum_target::qxfer_osdata): ... this.
2984 (process_target::supports_qxfer_siginfo): Rename as ...
2985 (process_stratum_target::supports_qxfer_siginfo): ... this.
2986 (process_target::qxfer_siginfo): Rename as ...
2987 (process_stratum_target::qxfer_siginfo): ... this.
2988 (process_target::supports_non_stop): Rename as ...
2989 (process_stratum_target::supports_non_stop): ... this.
2990 (process_target::async): Rename as ...
2991 (process_stratum_target::async): ... this.
2992 (process_target::start_non_stop): Rename as ...
2993 (process_stratum_target::start_non_stop): ... this.
2994 (process_target::supports_multi_process): Rename as ...
2995 (process_stratum_target::supports_multi_process): ... this.
2996 (process_target::supports_fork_events): Rename as ...
2997 (process_stratum_target::supports_fork_events): ... this.
2998 (process_target::supports_vfork_events): Rename as ...
2999 (process_stratum_target::supports_vfork_events): ... this.
3000 (process_target::supports_exec_events): Rename as ...
3001 (process_stratum_target::supports_exec_events): ... this.
3002 (process_target::handle_new_gdb_connection): Rename as ...
3003 (process_stratum_target::handle_new_gdb_connection): ... this.
3004 (process_target::handle_monitor_command): Rename as ...
3005 (process_stratum_target::handle_monitor_command): ... this.
3006 (process_target::core_of_thread): Rename as ...
3007 (process_stratum_target::core_of_thread): ... this.
3008 (process_target::supports_read_loadmap): Rename as ...
3009 (process_stratum_target::supports_read_loadmap): ... this.
3010 (process_target::read_loadmap): Rename as ...
3011 (process_stratum_target::read_loadmap): ... this.
3012 (process_target::process_qsupported): Rename as ...
3013 (process_stratum_target::process_qsupported): ... this.
3014 (process_target::supports_tracepoints): Rename as ...
3015 (process_stratum_target::supports_tracepoints): ... this.
3016 (process_target::read_pc): Rename as ...
3017 (process_stratum_target::read_pc): ... this.
3018 (process_target::write_pc): Rename as ...
3019 (process_stratum_target::write_pc): ... this.
3020 (process_target::supports_thread_stopped): Rename as ...
3021 (process_stratum_target::supports_thread_stopped): ... this.
3022 (process_target::thread_stopped): Rename as ...
3023 (process_stratum_target::thread_stopped): ... this.
3024 (process_target::supports_get_tib_address): Rename as ...
3025 (process_stratum_target::supports_get_tib_address): ... this.
3026 (process_target::get_tib_address): Rename as ...
3027 (process_stratum_target::get_tib_address): ... this.
3028 (process_target::pause_all): Rename as ...
3029 (process_stratum_target::pause_all): ... this.
3030 (process_target::unpause_all): Rename as ...
3031 (process_stratum_target::unpause_all): ... this.
3032 (process_target::stabilize_threads): Rename as ...
3033 (process_stratum_target::stabilize_threads): ... this.
3034 (process_target::supports_fast_tracepoints): Rename as ...
3035 (process_stratum_target::supports_fast_tracepoints): ... this.
3036 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
3037 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
3038 (process_target::emit_ops): Rename as ...
3039 (process_stratum_target::emit_ops): ... this.
3040 (process_target::supports_disable_randomization): Rename as ...
3041 (process_stratum_target::supports_disable_randomization): ... this.
3042 (process_target::supports_qxfer_libraries_svr4): Rename as ...
3043 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
3044 (process_target::qxfer_libraries_svr4): Rename as ...
3045 (process_stratum_target::qxfer_libraries_svr4): ... this.
3046 (process_target::supports_agent): Rename as ...
3047 (process_stratum_target::supports_agent): ... this.
3048 (process_target::enable_btrace): Rename as ...
3049 (process_stratum_target::enable_btrace): ... this.
3050 (process_target::disable_btrace): Rename as ...
3051 (process_stratum_target::disable_btrace): ... this.
3052 (process_target::read_btrace): Rename as ...
3053 (process_stratum_target::read_btrace): ... this.
3054 (process_target::read_btrace_conf): Rename as ...
3055 (process_stratum_target::read_btrace_conf): ... this.
3056 (process_target::supports_range_stepping): Rename as ...
3057 (process_stratum_target::supports_range_stepping): ... this.
3058 (process_target::supports_pid_to_exec_file): Rename as ...
3059 (process_stratum_target::supports_pid_to_exec_file): ... this.
3060 (process_target::pid_to_exec_file): Rename as ...
3061 (process_stratum_target::pid_to_exec_file): ... this.
3062 (process_target::supports_multifs): Rename as ...
3063 (process_stratum_target::supports_multifs): ... this.
3064 (process_target::multifs_open): Rename as ...
3065 (process_stratum_target::multifs_open): ... this.
3066 (process_target::multifs_unlink): Rename as ...
3067 (process_stratum_target::multifs_unlink): ... this.
3068 (process_target::multifs_readlink): Rename as ...
3069 (process_stratum_target::multifs_readlink): ... this.
3070 (process_target::breakpoint_kind_from_pc): Rename as ...
3071 (process_stratum_target::breakpoint_kind_from_pc): ... this.
3072 (process_target::breakpoint_kind_from_current_state): Rename as ...
3073 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
3074 (process_target::thread_name): Rename as ...
3075 (process_stratum_target::thread_name): ... this.
3076 (process_target::thread_handle): Rename as ...
3077 (process_stratum_target::thread_handle): ... this.
3078 (process_target::supports_software_single_step): Rename as ...
3079 (process_stratum_target::supports_software_single_step): ... this.
3080 (process_target::supports_catch_syscall): Rename as ...
3081 (process_stratum_target::supports_catch_syscall): ... this.
3082 (process_target::get_ipa_tdesc_idx): Rename as ...
3083 (process_stratum_target::get_ipa_tdesc_idx): ... this.
3085 2020-02-20 Pedro Alves <palves@redhat.com>
3087 * target.cc (set_target_ops): Simply copy the given target pointer
3088 instead of creating a copy of the pointed object.
3090 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3092 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
3095 * target.h (struct process_stratum_target): Remove the target op.
3096 (class process_target): Add the target op.
3097 (target_get_ipa_tdesc_idx): Update the macro.
3098 * target.cc (process_target::get_ipa_tdesc_idx): Define.
3100 Update the derived classes and callers below.
3102 * linux-low.cc (linux_target_ops): Update.
3103 (linux_get_ipa_tdesc_idx): Turn into ...
3104 (linux_process_target::get_ipa_tdesc_idx): ... this.
3105 * linux-low.h (class linux_process_target): Update.
3106 * lynx-low.cc (lynx_target_ops): Update.
3107 * nto-low.cc (nto_target_ops): Update.
3108 * win32-low.cc (win32_target_ops): Update.
3110 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3112 Turn process_stratum_target's supports_catch_syscall op into a
3113 method of process_target.
3115 * target.h (struct process_stratum_target): Remove the target op.
3116 (class process_target): Add the target op.
3117 (target_supports_catch_syscall): Update the macro.
3118 * target.cc (process_target::supports_catch_syscall): Define.
3120 Update the derived classes and callers below.
3122 * linux-low.cc (linux_target_ops): Update.
3123 (linux_supports_catch_syscall): Turn into ...
3124 (linux_process_target::supports_catch_syscall): ... this.
3125 * linux-low.h (class linux_process_target): Update.
3126 * lynx-low.cc (lynx_target_ops): Update.
3127 * nto-low.cc (nto_target_ops): Update.
3128 * win32-low.cc (win32_target_ops): Update.
3130 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3132 Turn process_stratum_target's supports_software_single_step op
3133 into a method of process_target.
3135 * target.h (struct process_stratum_target): Remove the target op.
3136 (class process_target): Add the target op.
3137 (target_supports_software_single_step): Update the macro.
3138 * target.cc (process_target::supports_software_single_step): Define.
3140 Update the derived classes and callers below.
3142 * linux-low.cc (linux_target_ops): Update.
3143 (linux_supports_software_single_step): Turn into ...
3144 (linux_process_target::supports_software_single_step): ... this.
3145 * linux-low.h (class linux_process_target): Update.
3146 * lynx-low.cc (lynx_target_ops): Update.
3147 * nto-low.cc (nto_target_ops): Update.
3148 * win32-low.cc (win32_target_ops): Update.
3150 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3152 Turn process_stratum_target's thread_name and thread_handle ops
3153 into methods of process_target.
3155 * target.h (struct process_stratum_target): Remove the target ops.
3156 (class process_target): Add the target ops.
3157 (target_thread_name): Update the macro.
3158 (target_thread_handle): Update the macro.
3159 * target.cc (process_target::thread_name): Define.
3160 (process_target::thread_handle): Define.
3162 Update the derived classes and callers below.
3164 * linux-low.cc (linux_target_ops): Update.
3165 (linux_process_target::thread_name): Define.
3166 (linux_process_target::thread_handle): Define.
3167 * linux-low.h (class linux_process_target): Update.
3168 * lynx-low.cc (lynx_target_ops): Update.
3169 * nto-low.cc (nto_target_ops): Update.
3170 * win32-low.cc (win32_target_ops): Update.
3172 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3174 Turn process_stratum_target's breakpoint_kind_from_pc,
3175 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
3176 ops into methods of process_target.
3178 * target.h (struct process_stratum_target): Remove the target op.
3179 (class process_target): Add the target op.
3180 (target_breakpoint_kind_from_pc): Update the macro.
3181 (target_breakpoint_kind_from_current_state): Update the macro.
3182 (default_breakpoint_kind_from_pc): Remove declaration.
3183 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
3184 (process_target::breakpoint_kind_from_pc): ... this.
3185 (process_target::breakpoint_kind_from_current_state): Define.
3187 Update the derived classes and callers below.
3189 * mem-break.cc (bp_size): Update.
3190 (bp_opcode): Update.
3191 * linux-low.cc (linux_target_ops): Update.
3192 (linux_wait_1): Update.
3193 (linux_breakpoint_kind_from_pc): Turn into ...
3194 (linux_process_target::breakpoint_kind_from_pc): ... this.
3195 (linux_sw_breakpoint_from_kind): Turn into ...
3196 (linux_process_target::sw_breakpoint_from_kind): ... this.
3197 (linux_breakpoint_kind_from_current_state): Turn into ...
3198 (linux_process_target::breakpoint_kind_from_current_state): ... this.
3199 * linux-low.h (class linux_process_target): Update.
3200 * lynx-low.cc (lynx_target_ops): Update.
3201 (lynx_process_target::sw_breakpoint_from_kind): Define.
3202 * lynx-low.h (class lynx_process_target): Update.
3203 * nto-low.cc (nto_target_ops): Update.
3204 (nto_sw_breakpoint_from_kind): Turn into ...
3205 (nto_process_target::sw_breakpoint_from_kind): ... this.
3206 * nto-low.h (class nto_process_target): Update.
3207 * win32-low.cc (win32_target_ops): Update.
3208 (win32_sw_breakpoint_from_kind): Turn into ...
3209 (win32_process_target::sw_breakpoint_from_kind): ... this.
3210 * win32-low.h (class win32_process_target): Update.
3212 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3214 Turn process_stratum_target's multifs_open, multifs_readlink,
3215 multifs_unlink ops into methods of process_target.
3217 * target.h (struct process_stratum_target): Remove the target ops.
3218 (class process_target): Add the target ops. Also add
3220 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
3222 (process_target::supports_multifs): Define.
3223 (process_target::multifs_open): Define.
3224 (process_target::multifs_readlink): Define.
3225 (process_target::multifs_unlink): Define.
3227 Update the derived classes and callers below.
3229 * hostio.cc (handle_setfs): Update.
3230 (handle_open): Update.
3231 (handle_unlink): Update.
3232 (handle_readlink): Update.
3233 * linux-low.cc (linux_target_ops): Update.
3234 (linux_process_target::supports_multifs): Define.
3235 (linux_process_target::multifs_open): Define.
3236 (linux_process_target::multifs_readlink): Define.
3237 (linux_process_target::multifs_unlink): Define.
3238 * linux-low.h (class linux_process_target): Update.
3239 * lynx-low.cc (lynx_target_ops): Update.
3240 * nto-low.cc (nto_target_ops): Update.
3241 * win32-low.cc (win32_target_ops): Update.
3243 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3245 Turn process_stratum_target's pid_to_exec_file op into a method
3248 * target.h (struct process_stratum_target): Remove the target op.
3249 (class process_target): Add the target op. Also add
3250 'supports_pid_to_exec_file'.
3251 * target.cc (process_target::pid_to_exec_file): Define.
3252 (process_target::supports_pid_to_exec_file): Define.
3254 Update the derived classes and callers below.
3256 * server.cc (handle_qxfer_exec_file): Update.
3257 (handle_query): Update.
3258 * linux-low.cc (linux_target_ops): Update.
3259 (linux_process_target::supports_pid_to_exec_file): Define.
3260 (linux_process_target::pid_to_exec_file): Define.
3261 * linux-low.h (class linux_process_target): Update.
3262 * lynx-low.cc (lynx_target_ops): Update.
3263 * nto-low.cc (nto_target_ops): Update.
3264 * win32-low.cc (win32_target_ops): Update.
3266 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3268 Turn process_stratum_target's supports_range_stepping op into a
3269 method of process_target.
3271 * target.h (struct process_stratum_target): Remove the target op.
3272 (class process_target): Add the target op.
3273 (target_supports_range_stepping): Update the macro.
3274 * target.cc (process_target::supports_range_stepping): Define.
3276 Update the derived classes and callers below.
3278 * linux-low.cc (linux_target_ops): Update.
3279 (linux_supports_range_stepping): Turn into ...
3280 (linux_process_target::supports_range_stepping): ... this.
3281 * linux-low.h (class linux_process_target): Update.
3282 * lynx-low.cc (lynx_target_ops): Update.
3283 * nto-low.cc (nto_target_ops): Update.
3284 * win32-low.cc (win32_target_ops): Update.
3286 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3288 Turn process_stratum_target's btrace-related ops (enable_btrace,
3289 disable_btrace, read_btrace, read_btrace_conf) into methods of
3292 * target.h (struct process_stratum_target): Remove the target ops.
3293 (class process_target): Add the target ops.
3294 (target_enable_btrace): Update.
3295 (target_disable_btrace): Update.
3296 (target_read_btrace): Update.
3297 (target_read_btrace_conf): Update.
3298 * target.cc (process_target::enable_btrace): Define.
3299 (process_target::disable_btrace): Define.
3300 (process_target::read_btrace): Define.
3301 (process_target::read_btrace_conf): Define.
3303 Update the derived classes and callers below.
3305 * linux-low.cc (linux_target_ops): Update.
3306 (linux_process_target:enable_btrace): Define as a wrapper around
3307 linux_enable_btrace.
3308 (linux_low_disable_btrace): Turn into ...
3309 (linux_process_target::disable_btrace): ... this.
3310 (linux_low_read_btrace): Turn into ...
3311 (linux_process_target::read_btrace): ... this.
3312 (linux_low_btrace_conf): Turn into ...
3313 (linux_process_target::read_btrace_conf): ... this.
3314 * linux-low.h (class linux_process_target): Update.
3315 * lynx-low.cc (lynx_target_ops): Update.
3316 * nto-low.cc (nto_target_ops): Update.
3317 * win32-low.cc (win32_target_ops): Update.
3319 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3321 Turn process_stratum_target's supports_agent op into a method of
3324 * target.h (struct process_stratum_target): Remove the target op.
3325 (class process_target): Add the target op.
3326 (target_supports_agent): Update the macro.
3327 * target.cc (process_target::supports_agent): Define.
3329 Update the derived classes and callers below.
3331 * linux-low.cc (linux_target_ops): Update.
3332 (linux_supports_agent): Turn into ...
3333 (linux_process_target::supports_agent): ... this.
3334 * linux-low.h (class linux_process_target): Update.
3335 * lynx-low.cc (lynx_target_ops): Update.
3336 * nto-low.cc (nto_target_ops): Update.
3337 * win32-low.cc (win32_target_ops): Update.
3339 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3341 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3342 method of process_target.
3344 * target.h (struct process_stratum_target): Remove the target op.
3345 (class process_target): Add the target op. Also add
3346 'supports_qxfer_libraries_svr4'.
3347 * target.cc (process_target::qxfer_libraries_svr4): Define.
3348 (process_target::supports_qxfer_libraries_svr4): Define.
3350 Update the derived classes and callers below.
3352 * server.cc (handle_qxfer_libraries_svr4): Update.
3353 (handle_query): Update.
3354 * linux-low.cc (linux_target_ops): Update.
3355 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3356 (linux_qxfer_libraries_svr4): Turn into ...
3357 (linux_process_target::qxfer_libraries_svr4): ... this.
3358 * linux-low.h (class linux_process_target): Update.
3359 * lynx-low.cc (lynx_target_ops): Update.
3360 * nto-low.cc (nto_target_ops): Update.
3361 * win32-low.cc (win32_target_ops): Update.
3363 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3365 Turn process_stratum_target's supports_disable_randomization op
3366 into a method of process_target.
3368 * target.h (struct process_stratum_target): Remove the target op.
3369 (class process_target): Add the target op.
3370 (target_supports_disable_randomization): Update the macro.
3371 * target.cc (process_target::supports_disable_randomization): Define.
3373 Update the derived classes and callers below.
3375 * linux-low.cc (linux_target_ops): Update.
3376 (linux_supports_disable_randomization): Turn into ...
3377 (linux_process_target::supports_disable_randomization): ... this.
3378 * linux-low.h (class linux_process_target): Update.
3379 * lynx-low.cc (lynx_target_ops): Update.
3380 * nto-low.cc (nto_target_ops): Update.
3381 * win32-low.cc (win32_target_ops): Update.
3383 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3385 Turn process_stratum_target's emit_ops op into a method of
3388 * target.h (struct process_stratum_target): Remove the target op.
3389 (class process_target): Add the target op.
3390 (target_emit_ops): Update the macro.
3391 * target.cc (process_target::emit_ops): Define.
3393 Update the derived classes and callers below.
3395 * linux-low.cc (linux_target_ops): Update.
3396 (linux_emit_ops): Turn into ...
3397 (linux_process_target::emit_ops): ... this.
3398 * linux-low.h (class linux_process_target): Update.
3399 * lynx-low.cc (lynx_target_ops): Update.
3400 * nto-low.cc (nto_target_ops): Update.
3401 * win32-low.cc (win32_target_ops): Update.
3403 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3405 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3406 and get_min_fast_tracepoint_insn_len ops into methods of
3409 * target.h (struct process_stratum_target): Remove the target ops.
3410 (class process_target): Add the target ops. Also add
3411 'supports_fast_tracepoints'.
3412 (target_supports_fast_tracepoints): Update the macro.
3413 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3414 (install_fast_tracepoint_jump_pad): Update and rename the macro
3416 (target_install_fast_tracepoint_jump_pad): ... this.
3417 * target.cc (process_target::supports_fast_tracepoints): Define.
3418 (process_target::install_fast_tracepoint_jump_pad): Define.
3419 (process_target::get_min_fast_tracepoint_insn_len): Define.
3421 Update the derived classes and callers below.
3423 * tracepoint.cc (install_fast_tracepoint): Update.
3424 * linux-low.cc (linux_target_ops): Update.
3425 (linux_process_target::supports_fast_tracepoints): Define.
3426 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3427 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3428 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3429 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3430 * linux-low.h (class linux_process_target): Update.
3431 * lynx-low.cc (lynx_target_ops): Update.
3432 * nto-low.cc (nto_target_ops): Update.
3433 * win32-low.cc (win32_target_ops): Update.
3435 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3437 Turn process_stratum_target's stabilize_threads op into a
3438 method of process_target.
3440 * target.h (struct process_stratum_target): Remove the target op.
3441 (class process_target): Add the target op.
3442 (target_stabilize_threads): Update the macro.
3443 * target.cc (process_target::stabilize_threads): Define.
3445 Update the derived classes and callers below.
3447 * server.cc (handle_status): Update.
3448 * tracepoint.cc (cmd_qtdp): Update.
3449 (cmd_qtstart): Update.
3450 * linux-low.cc (linux_target_ops): Update.
3451 (linux_stabilize_threads): Turn into ...
3452 (linux_process_target::stabilize_threads): ... this.
3453 (linux_wait_1): Update.
3454 * linux-low.h (class linux_process_target): Update.
3455 * lynx-low.cc (lynx_target_ops): Update.
3456 * nto-low.cc (nto_target_ops): Update.
3457 * win32-low.cc (win32_target_ops): Update.
3459 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3461 Turn process_stratum_target's pause_all and unpause_all ops
3462 into methods of process_target.
3464 * target.h (struct process_stratum_target): Remove the target ops.
3465 (class process_target): Add the target ops.
3466 (pause_all): Update the macro and rename to...
3467 (target_pause_all): ... this.
3468 (unpause_all): Update the macro and rename to...
3469 (target_unpause_all): ... this.
3470 * target.cc (process_target::pause_all): Define.
3471 (process_target::unpause_all): Define.
3473 Update the derived classes and callers below.
3475 * server.cc (handle_status): Update.
3476 * tracepoint.cc (clear_installed_tracepoints): Update.
3478 (cmd_qtstart): Update.
3479 (stop_tracing): Update.
3480 (cmd_qtstatus): Update.
3481 (upload_fast_traceframes): Update.
3482 (run_inferior_command): Update.
3483 * linux-low.cc (linux_target_ops): Update.
3484 (linux_pause_all): Turn into ...
3485 (linux_process_target::pause_all): ... this.
3486 (linux_unpause_all): Turn into ...
3487 (linux_process_target::unpause_all): ... this.
3488 (linux_process_target::prepare_to_access_memory): Update.
3489 (linux_process_target::done_accessing_memory): Update.
3490 * linux-low.h (class linux_process_target): Update.
3491 * lynx-low.cc (lynx_target_ops): Update.
3492 * nto-low.cc (nto_target_ops): Update.
3493 * win32-low.cc (win32_target_ops): Update.
3495 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3497 Turn process_stratum_target's get_tib_address op into a method of
3500 * target.h (struct process_stratum_target): Remove the target op.
3501 (class process_target): Add the target op. Also add
3502 'supports_get_tib_address'.
3503 * target.cc (process_target::get_tib_address): Define.
3504 (process_target::supports_get_tib_address): Define.
3506 Update the derived classes and callers below.
3508 * server.cc (handle_query): Update.
3509 * linux-low.cc (win32_target_ops): Update.
3510 * lynx-low.cc (lynx_target_ops): Update.
3511 * nto-low.cc (nto_target_ops): Update.
3512 * win32-low.cc (win32_target_ops): Update.
3513 (win32_process_target::supports_get_tib_address): Define.
3514 (win32_get_tib_address): Turn into ...
3515 (win32_process_target::get_tib_address): ... this.
3516 * win32-low.h (class win32_process_target): Update.
3518 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3520 Turn process_stratum_target's thread_stopped op into a method of
3523 * target.h (struct process_stratum_target): Remove the target op.
3524 (class process_target): Add the target op. Also add
3525 'supports_thread_stopped'.
3526 (target_thread_stopped): Update the macro.
3527 * target.cc (process_target::thread_stopped): Define.
3528 (process_target::supports_thread_stopped): Define.
3529 (prepare_to_access_memory): Update.
3531 Update the derived classes and callers below.
3533 * server.cc (queue_stop_reply_callback): Update.
3534 * linux-low.cc (linux_target_ops): Update.
3535 (linux_process_target::supports_thread_stopped): Define.
3536 (linux_thread_stopped): Turn into ...
3537 (linux_process_target::thread_stopped): ... this.
3538 * linux-low.h (class linux_process_target): Update.
3539 * lynx-low.cc (lynx_target_ops): Update.
3540 * nto-low.cc (nto_target_ops): Update.
3541 * win32-low.cc (win32_target_ops): Update.
3543 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3545 Turn process_stratum_target's read_pc and write_pc ops into
3546 methods of process_target.
3548 * target.h (struct process_stratum_target): Remove the target ops.
3549 (class process_target): Add the target ops.
3550 * target.cc (process_target::read_pc): Define.
3551 (process_target::write_pc): Define.
3553 Update the derived classes and callers below.
3555 * regcache.cc (regcache_read_pc): Update.
3556 (regcache_write_pc): Update.
3557 * linux-low.cc (linux_target_ops): Update.
3558 (linux_read_pc): Turn into ...
3559 (linux_process_target::read_pc): ... this.
3560 (linux_write_pc): Turn into ...
3561 (linux_process_target::write_pc): ... this.
3562 * linux-low.h (class linux_process_target): Update.
3563 * lynx-low.cc (lynx_target_ops): Update.
3564 * nto-low.cc (nto_target_ops): Update.
3565 * win32-low.cc (win32_target_ops): Update.
3567 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3569 Turn process_stratum_target's supports_tracepoints op into a
3570 method of process_target.
3572 * target.h (struct process_stratum_target): Remove the target op.
3573 (class process_target): Add the target op.
3574 (target_supports_tracepoints): Update the macro.
3575 * target.cc (process_target::supports_tracepoints): Define.
3577 Update the derived classes and callers below.
3579 * linux-low.cc (linux_target_ops): Update.
3580 (linux_supports_tracepoints): Turn into ...
3581 (linux_process_target::supports_tracepoints): ... this.
3582 * linux-low.h (class linux_process_target): Update.
3583 * lynx-low.cc (lynx_target_ops): Update.
3584 * nto-low.cc (nto_target_ops): Update.
3585 * win32-low.cc (win32_target_ops): Update.
3587 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3589 Turn process_stratum_target's process_qsupported op into a method
3592 * target.h (struct process_stratum_target): Remove the target op.
3593 (class process_target): Add the target op.
3594 (target_process_qsupported): Update the macro.
3595 * target.cc (process_target::process_qsupported): Define.
3597 Update the derived classes and callers below.
3599 * linux-low.cc (linux_target_ops): Update.
3600 (linux_process_qsupported): Turn into ...
3601 (linux_process_target::process_qsupported): ... this.
3602 * linux-low.h (class linux_process_target): Update.
3603 * lynx-low.cc (lynx_target_ops): Update.
3604 * nto-low.cc (nto_target_ops): Update.
3605 * win32-low.cc (win32_target_ops): Update.
3607 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3609 Turn process_stratum_target's read_loadmap op into a method of
3612 * target.h (struct process_stratum_target): Remove the target op.
3613 (class process_target): Add the target op. Also add
3614 'supports_read_loadmap'.
3615 * target.cc (process_target::read_loadmap): Define.
3616 (process_target::supports_read_loadmap): Define.
3618 Update the derived classes and callers below.
3620 * server.cc (handle_qxfer_fdpic): Update.
3621 (handle_query): Update.
3622 * linux-low.cc (linux_target_ops): Update.
3623 (linux_process_target::supports_read_loadmap): Define.
3624 (linux_read_loadmap): Turn into ...
3625 (linux_process_target::read_loadmap): ... this.
3626 * linux-low.h (class linux_process_target): Update.
3627 * lynx-low.cc (lynx_target_ops): Update.
3628 * nto-low.cc (nto_target_ops): Update.
3629 * win32-low.cc (win32_target_ops): Update.
3631 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3633 Turn process_stratum_target's core_of_thread op into a method of
3636 * target.h (struct process_stratum_target): Remove the target op.
3637 (class process_target): Add the target op.
3638 (target_core_of_thread): Update the macro.
3639 * target.cc (process_target::core_of_thread): Define.
3641 Update the derived classes and callers below.
3643 * linux-low.cc (linux_target_ops): Update.
3644 (linux_process_target::core_of_thread): Define.
3645 * linux-low.h (class linux_process_target): Update.
3646 * lynx-low.cc (lynx_target_ops): Update.
3647 * nto-low.cc (nto_target_ops): Update.
3648 * win32-low.cc (win32_target_ops): Update.
3650 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3652 Turn process_stratum_target's handle_monitor_command op into a
3653 method of process_target.
3655 * target.h (struct process_stratum_target): Remove the target op.
3656 (class process_target): Add the target op.
3657 (target_handle_monitor_command): Update the macro.
3658 * target.cc (process_target::handle_monitor_command): Define.
3660 Update the derived classes and callers below.
3662 * server.cc (handle_query): Update.
3663 * linux-low.cc (linux_target_ops): Update.
3664 (linux_process_target::handle_monitor_command): Define.
3665 * linux-low.h (class linux_process_target): Update.
3666 * lynx-low.cc (lynx_target_ops): Update.
3667 * nto-low.cc (nto_target_ops): Update.
3668 * win32-low.cc (win32_target_ops): Update.
3670 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3672 Turn process_stratum_target's handle_new_gdb_connection op into a
3673 method of process_target.
3675 * target.h (struct process_stratum_target): Remove the target op.
3676 (class process_target): Add the target op.
3677 (target_handle_new_gdb_connection): Update the macro.
3678 * target.cc (process_target::handle_new_gdb_connection): Define.
3680 Update the derived classes and callers below.
3682 * linux-low.cc (linux_target_ops): Update.
3683 (linux_handle_new_gdb_connection): Turn into ...
3684 (linux_process_target::handle_new_gdb_connection): ... this.
3685 * linux-low.h (class linux_process_target): Update.
3686 * lynx-low.cc (lynx_target_ops): Update.
3687 * nto-low.cc (nto_target_ops): Update.
3688 * win32-low.cc (win32_target_ops): Update.
3690 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3692 Turn process_stratum_target's supports_fork_events,
3693 supports_vfork_events, and supports_exec_events ops into methods
3696 * target.h (struct process_stratum_target): Remove the target ops.
3697 (class process_target): Add the target ops.
3698 (target_supports_fork_events): Update the macro.
3699 (target_supports_vfork_events): Update the macro.
3700 (target_supports_exec_events): Update the macro.
3701 * target.cc (process_target::supports_fork_events): Define.
3702 (process_target::supports_vfork_events): Define.
3703 (process_target::supports_exec_events): Define.
3705 Update the derived classes and callers below.
3707 * linux-low.cc (linux_target_ops): Update.
3708 (linux_supports_fork_events): Turn into ...
3709 (linux_process_target::supports_fork_events): ... this.
3710 (linux_supports_vfork_events): Turn into ...
3711 (linux_process_target::supports_vfork_events): ... this.
3712 (linux_supports_exec_events): Turn into ...
3713 (linux_process_target::supports_exec_events): ... this.
3714 * linux-low.h (class linux_process_target): Update.
3715 * lynx-low.cc (lynx_target_ops): Update.
3716 * nto-low.cc (nto_target_ops): Update.
3717 * win32-low.cc (win32_target_ops): Update.
3719 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3721 Turn process_stratum_target's supports_multi_process op into a
3722 method of process_target.
3724 * target.h (struct process_stratum_target): Remove the target op.
3725 (class process_target): Add the target op.
3726 * target.cc (process_target::supports_multi_process): Define.
3727 (target_supports_multi_process): Update.
3729 Update the derived classes and callers below.
3731 * linux-low.cc (linux_target_ops): Update.
3732 (linux_supports_multi_process): Turn into ...
3733 (linux_process_target::supports_multi_process): ... this.
3734 * linux-low.h (class linux_process_target): Update.
3735 * lynx-low.cc (lynx_target_ops): Update.
3736 * nto-low.cc (nto_target_ops): Update.
3737 * win32-low.cc (win32_target_ops): Update.
3739 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3741 Turn process_stratum_target's supports_non_stop, async, and
3742 start_non_stop ops into methods of process_target.
3744 * target.h (struct process_stratum_target): Remove the target ops.
3745 (class process_target): Add the target ops.
3746 (target_supports_non_stop): Update the macro.
3747 (target_async): Update the macro.
3748 (start_non_stop): Remove declaration.
3749 * target.cc (process_target::supports_non_stop): Define.
3750 (process_target::async): Define.
3751 (process_target::start_non_stop): Define.
3752 (start_non_stop): Remove.
3754 Update the derived classes and callers below.
3756 * server.cc (handle_qxfer_siginfo): Update.
3757 (handle_query): Update.
3758 * linux-low.cc (linux_target_ops): Update.
3759 (linux_supports_non_stop): Turn into ...
3760 (linux_process_target::supports_non_stop): ... this.
3761 (linux_async): Turn into ...
3762 (linux_process_target::async): ... this.
3763 (linux_start_non_stop): Turn into ...
3764 (linux_process_target::start_non_stop): ... this.
3765 * linux-low.h (class linux_process_target): Update.
3766 * lynx-low.cc (lynx_target_ops): Update.
3767 * nto-low.cc (nto_target_ops): Update.
3768 (nto_supports_non_stop): Remove; rely on the default behavior
3770 * win32-low.cc (win32_target_ops): Update.
3772 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3774 Turn process_stratum_target's qxfer_siginfo op into a method of
3777 * target.h (struct process_stratum_target): Remove the target op.
3778 (class process_target): Add the target op. Also add
3779 'supports_qxfer_siginfo'.
3780 * target.cc (process_target::qxfer_siginfo): Define.
3781 (process_target::supports_qxfer_siginfo): Define.
3783 Update the derived classes and callers below.
3785 * server.cc (handle_qxfer_siginfo): Update.
3786 (handle_query): Update.
3787 * linux-low.cc (linux_target_ops): Update.
3788 (linux_process_target::supports_qxfer_siginfo): Define.
3789 (linux_xfer_siginfo): Turn into ...
3790 (linux_process_target::qxfer_siginfo): ... this.
3791 * linux-low.h (class linux_process_target): Update.
3792 * lynx-low.cc (lynx_target_ops): Update.
3793 * nto-low.cc (nto_target_ops): Update.
3794 * win32-low.cc (win32_target_ops): Update.
3796 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3798 Turn process_stratum_target's qxfer_osdata op into a method of
3801 * target.h (struct process_stratum_target): Remove the target op.
3802 (class process_target): Add the target op. Also add
3803 'supports_qxfer_osdata'.
3804 * target.cc (process_target::qxfer_osdata): Define.
3805 (process_target::supports_qxfer_osdata): Define.
3807 Update the derived classes and callers below.
3809 * server.cc (handle_qxfer_osdata): Update.
3810 (handle_query): Update.
3811 * linux-low.cc (linux_target_ops): Update.
3812 (linux_process_target::supports_qxfer_osdata): Define.
3813 (linux_qxfer_osdata): Turn into ...
3814 (linux_process_target::qxfer_osdata): ... this.
3815 * linux-low.h (class linux_process_target): Update.
3816 * lynx-low.cc (lynx_target_ops): Update.
3817 * nto-low.cc (nto_target_ops): Update.
3818 * win32-low.cc (win32_target_ops): Update.
3820 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3822 Turn process_stratum_target's hostio_last_error op into a
3823 method of process_target.
3825 * target.h (struct process_stratum_target): Remove the target op.
3826 (class process_target): Add the target op.
3827 * target.cc: Add "hostio.h" to includes.
3828 (process_target::hostio_last_error): Define.
3830 Update the derived classes and callers below.
3832 * hostio.cc (hostio_error): Update.
3833 * linux-low.cc: Remove "hostio.h" from includes.
3834 (linux_target_ops): Update.
3835 * lynx-low.cc (lynx_target_ops): Update.
3836 * nto-low.cc (nto_target_ops): Update.
3837 * win32-low.h (class win32_process_target): Update.
3838 * win32-low.cc (win32_target_ops): Update.
3839 (wince_hostio_last_error): Turn into ...
3840 (win32_process_target::hostio_last_error): ... this.
3842 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3844 Turn process_stratum_target's get_tls_address op into a method of
3847 * target.h (struct process_stratum_target): Remove the target op.
3848 (class process_target): Add the target op. Also add
3849 'supports_get_tls_address'.
3850 * target.cc (process_target::get_tls_address): Define.
3851 (process_target::supports_get_tls_address): Define.
3853 Update the derived classes and callers below.
3855 * server.cc (handle_query): Update.
3856 * linux-low.cc (linux_target_ops): Update.
3857 (linux_process_target::supports_get_tls_address): Define.
3858 (linux_process_target::get_tls_address): Define.
3859 * linux-low.h (class linux_process_target): Update.
3860 * lynx-low.cc (lynx_target_ops): Update.
3861 * nto-low.cc (nto_target_ops): Update.
3862 * win32-low.cc (win32_target_ops): Update.
3864 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3866 Turn process_stratum_target's read_offsets op into a method of
3869 * target.h (struct process_stratum_target): Remove the target op.
3870 (class process_target): Add the target op. Also add
3871 'supports_read_offsets'.
3872 * target.cc (process_target::read_offsets): Define.
3873 (process_target::supports_read_offsets): Define.
3875 Update the derived classes and callers below.
3877 * server.cc (handle_query): Update.
3878 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3879 (linux_target_ops): Update.
3880 (linux_process_target::supports_read_offsets): Define.
3881 (linux_read_offsets): Turn into ...
3882 (linux_process_target::read_offsets): ... this.
3883 * linux-low.h (class linux_process_target): Update.
3884 * lynx-low.cc (lynx_target_ops): Update.
3885 * nto-low.cc (nto_target_ops): Update.
3886 * win32-low.cc (win32_target_ops): Update.
3888 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3890 Turn process_stratum_target's stopped_by_watchpoint and
3891 stopped_data_address ops into methods of process_target.
3893 * target.h (struct process_stratum_target): Remove the target ops.
3894 (class process_target): Add the target ops.
3895 * target.cc (process_target::stopped_by_watchpoint): Define.
3896 (process_target::stopped_data_address): Define.
3898 Update the derived classes and callers below.
3900 * remote-utils.cc (prepare_resume_reply): Update.
3901 * linux-low.cc (linux_target_ops): Update.
3902 (linux_stopped_by_watchpoint): Turn into ...
3903 (linux_process_target::stopped_by_watchpoint): ... this.
3904 (linux_stopped_data_address): Turn into ...
3905 (linux_process_target::stopped_data_address): ... this.
3906 * linux-low.h (class linux_process_target): Update.
3907 * lynx-low.cc (lynx_target_ops): Update.
3908 * nto-low.cc (nto_target_ops): Update.
3909 (nto_stopped_by_watchpoint): Turn into ...
3910 (nto_process_target::stopped_by_watchpoint): ... this.
3911 (nto_stopped_data_address): Turn into ...
3912 (nto_process_target::stopped_data_address): ... this.
3913 * nto-low.h (class nto_process_target): Update.
3914 * win32-low.cc (win32_target_ops): Update.
3915 (win32_stopped_by_watchpoint): Turn into ...
3916 (win32_process_target::stopped_by_watchpoint): ... this.
3917 (win32_stopped_data_address): Turn into ...
3918 (win32_process_target::stopped_data_address): ... this.
3919 * win32-low.h (class win32_process_target): Update.
3921 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3923 Turn process_stratum_target's supports_hardware_single_step op into
3924 a method of process_target.
3926 * target.h (struct process_stratum_target): Remove the target op.
3927 (class process_target): Add the target op.
3928 (target_supports_hardware_single_step): Update the macro.
3929 (target_can_do_hardware_single_step): Remove declaration.
3930 * target.cc (process_target::supports_hardware_single_step): Define.
3931 (target_can_do_hardware_single_step): Remove.
3933 Update the derived classes and callers below.
3935 * linux-low.h (class linux_process_target): Update.
3936 * linux-low.cc (linux_target_ops): Update.
3937 (linux_supports_hardware_single_step): Turn into ...
3938 (linux_process_target::supports_hardware_single_step): ... this.
3939 * lynx-low.h (class lynx_process_target): Update.
3940 * lynx-low.cc (lynx_target_ops): Update.
3941 (lynx_process_target::supports_hardware_single_step): Define.
3942 * nto-low.h (class nto_process_target): Update.
3943 * nto-low.cc (nto_target_ops): Update.
3944 (nto_process_target::supports_hardware_single_step): Define.
3945 * win32-low.h (class win32_process_target): Update.
3946 * win32-low.cc (win32_target_ops): Update.
3947 (win32_process_target::supports_hardware_single_step): Define.
3949 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3951 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3952 ops into methods of process_target.
3954 * target.h (struct process_stratum_target): Remove the target ops.
3955 (class process_target): Add the target ops.
3956 (target_stopped_by_hw_breakpoint): Update the macro.
3957 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3958 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3959 (process_target::supports_stopped_by_hw_breakpoint): Define.
3961 Update the derived classes and callers below.
3963 * linux-low.cc (linux_target_ops): Update.
3964 (linux_stopped_by_hw_breakpoint): Turn into ...
3965 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3966 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3967 (linux_process_target::supports_stopped_by_hw_breakpoint): ... 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 * win32-low.cc (win32_target_ops): Update.
3973 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3975 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3976 ops into methods of process_target.
3978 * target.h (struct process_stratum_target): Remove the target ops.
3979 (class process_target): Add the target ops.
3980 (target_stopped_by_sw_breakpoint): Update the macro.
3981 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3982 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3983 (process_target::supports_stopped_by_sw_breakpoint): Define.
3985 Update the derived classes and callers below.
3987 * linux-low.cc (linux_target_ops): Update.
3988 (linux_stopped_by_sw_breakpoint): Turn into ...
3989 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3990 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3991 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3992 * linux-low.h (class linux_process_target): Update.
3993 * lynx-low.cc (lynx_target_ops): Update.
3994 * nto-low.cc (nto_target_ops): Update.
3995 * win32-low.cc (win32_target_ops): Update.
3997 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3999 Turn process_stratum_target's insert_point and remove_point ops
4000 into methods of process_target.
4002 * target.h (struct process_stratum_target): Remove the target ops.
4003 (class process_target): Add the target ops.
4004 * target.cc (process_target::insert_point): Define.
4005 (process_target::remove_point): Define.
4007 Update the derived classes and callers below.
4009 * mem-break.cc (set_raw_breakpoint_at): Update.
4010 (delete_raw_breakpoint): Update.
4011 (uninsert_raw_breakpoint): Update.
4012 (reinsert_raw_breakpoint): Update.
4013 * linux-low.cc (linux_target_ops): Update.
4014 (linux_insert_point): Turn into ...
4015 (linux_process_target::insert_point): ... this.
4016 (linux_remove_point): Turn into ...
4017 (linux_process_target::remove_point): ... this.
4018 * linux-low.h (class linux_process_target): Update.
4019 * lynx-low.cc (lynx_target_ops): Update.
4020 * nto-low.cc (nto_target_ops): Update.
4021 (nto_insert_point): Turn into ...
4022 (nto_process_target::insert_point): ... this.
4023 (nto_remove_point): Turn into ...
4024 (nto_process_target::remove_point): ... this.
4025 * nto-low.h (class nto_process_target): Update.
4026 * win32-low.cc (win32_target_ops): Update.
4027 (win32_insert_point): Turn into ...
4028 (win32_process_target::insert_point): ... this.
4029 (win32_remove_point): Turn into ...
4030 (win32_process_target::remove_point): ... this.
4031 * win32-low.h (class win32_process_target): Update.
4033 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4035 Turn process_stratum_target's supports_z_point_type op into a
4036 method of process_target.
4038 * target.h (struct process_stratum_target): Remove the target op.
4039 (class process_target): Add the target op.
4040 * target.cc (process_target::supports_z_point_type): Define.
4042 Update the derived classes and callers below.
4044 * mem-break.cc (z_type_supported): Update.
4045 * linux-low.cc (linux_target_ops): Update.
4046 (linux_supports_z_point_type): Turn into ...
4047 (linux_process_target::supports_z_point_type): ... this.
4048 * linux-low.h (class linux_process_target): Update.
4049 * lynx-low.cc (lynx_target_ops): Update.
4050 * nto-low.cc (nto_target_ops): Update.
4051 (nto_supports_z_point_type): Turn into ...
4052 (nto_process_target::supports_z_point_type): ... this.
4053 * nto-low.h (class nto_process_target): Update.
4054 * win32-low.cc (win32_target_ops): Update.
4055 (win32_supports_z_point_type): Turn into ...
4056 (win32_process_target::supports_z_point_type): ... this.
4057 * win32-low.h (class win32_process_target): Update.
4059 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4061 Turn process_stratum_target's read_auxv op into a method of
4064 * target.h (class process_stratum_target): Remove the target op.
4065 (struct process_target): Add the target op. Also add
4066 'supports_read_auxv'.
4067 * target.cc (process_target::read_auxv): Define.
4068 (process_target::supports_read_auxv): Define.
4070 Update the derived classes and callers below.
4072 * server.cc (handle_qxfer_auxv): Update.
4073 (handle_query): Update.
4074 * linux-low.cc (linux_target_ops): Update.
4075 (linux_process_target::supports_read_auxv): Define.
4076 (linux_read_auxv): Turn into ...
4077 (linux_process_target::read_auxv): ... this.
4078 * linux-low.h (class linux_process_target): Update.
4079 * lynx-low.cc (lynx_target_ops): Update.
4080 * nto-low.cc (nto_target_ops): Update.
4081 (nto_process_target::supports_read_auxv): Define.
4082 (nto_read_auxv): Turn into ...
4083 (nto_process_target::read_auxv): ... this.
4084 * nto-low.h (class nto_process_target): Update.
4085 * win32-low.cc (win32_target_ops): Update.
4087 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4089 Turn process_stratum_target's request_interrupt op into a method of
4092 * target.h (struct process_stratum_target): Remove the target op.
4093 (class process_target): Add the target op.
4095 Update the derived classes and callers below.
4097 * remote-utils.cc (putpkt_binary_1): Update.
4098 (input_interrupt): Update.
4100 * server.cc (handle_v_requests): Update.
4101 * linux-low.cc (linux_target_ops): Update.
4102 (linux_request_interrupt): Turn into ...
4103 (linux_process_target::request_interrupt): ... this.
4104 * linux-low.h (class linux_process_target): Update.
4105 * lynx-low.cc (lynx_target_ops): Update.
4106 (lynx_request_interrupt): Turn into ...
4107 (lynx_process_target::request_interrupt): ... this.
4108 * lynx-low.h (class lynx_process_target): Update.
4109 * nto-low.cc (nto_target_ops): Update.
4110 (nto_request_interrupt): Turn into ...
4111 (nto_process_target::request_interrupt): ... this.
4112 * nto-low.h (class nto_process_target): Update.
4113 * win32-low.cc (win32_target_ops): Update.
4114 (win32_request_interrupt): Turn into ...
4115 (win32_process_target::request_interrupt): ... this.
4116 * win32-low.h (class win32_process_target): Update.
4118 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4120 Turn process_stratum_target's look_up_symbols op into a method of
4123 * target.h (struct process_stratum_target): Remove the target op.
4124 (class process_target): Add the target op.
4125 * target.cc (process_target::look_up_symbols): Define.
4127 Update the derived classes and callers below.
4129 * server.cc (handle_query): Update.
4130 * linux-low.cc (linux_target_ops): Update.
4131 (linux_look_up_symbols): Turn into ...
4132 (linux_process_target::look_up_symbols): ... this.
4133 * linux-low.h (class linux_process_target): Update.
4134 * lynx-low.cc (lynx_target_ops): Update.
4135 * nto-low.cc (nto_target_ops): Update.
4136 * win32-low.cc (win32_target_ops): Update.
4138 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4140 Turn process_stratum_target's read_memory and write_memory
4141 ops into methods of process_target.
4143 * target.h (struct process_stratum_target): Remove the target ops.
4144 (class process_target): Add the target ops.
4146 Update the derived classes and callers below.
4148 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
4149 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
4150 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
4151 (arm_get_syscall_trapinfo): Update.
4152 * linux-cris-low.cc (cris_breakpoint_at): Update.
4153 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
4154 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
4155 * linux-mips-low.cc (mips_breakpoint_at): Update.
4156 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
4157 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
4158 * linux-sh-low.cc (sh_breakpoint_at): Update.
4159 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
4160 (sparc_store_gregset_from_stack): Update.
4161 (sparc_breakpoint_at): Update.
4162 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
4163 * linux-tile-low.cc (tile_breakpoint_at): Update.
4164 * linux-x86-low.cc (x86_breakpoint_at): Update.
4165 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
4166 * mem-brea.cc (insert_memory_breakpoint): Update.
4167 (validate_inserted_breakpoint): Update.
4168 * target.cc (read_inferior_memory): Update.
4169 (target_write_memory): Update.
4170 * linux-low.cc (linux_target_ops): Update.
4171 (linux_read_memory): Make a wrapper around the read_memory target
4173 (linux_process_target::read_memory): Rename from linux_read_memory.
4174 (linux_write_memory): Turn into ...
4175 (linux_process_target::write_memory): ... this.
4176 * linux-low.h (class linux_process_target): Update.
4177 * lynx-low.cc (lynx_target_ops): Update.
4178 (lynx_read_memory): Turn into ...
4179 (lynx_process_target::read_memory): ... this.
4180 (lynx_write_memory): Turn into ...
4181 (lynx_process_target::write_memory): ... this.
4182 * lynx-low.h (class lynx_process_target): Update.
4183 * nto-low.cc (nto_target_ops): Update.
4184 (nto_read_memory): Turn into ...
4185 (nto_process_target::read_memory): ... this.
4186 (nto_write_memory): Turn into ...
4187 (nto_process_target::write_memory): ... this.
4188 * nto-low.h (class nto_process_target): Update.
4189 * win32-low.cc (win32_target_ops): Update.
4190 (win32_read_inferior_memory): Turn into ...
4191 (win32_process_target::read_memory): ... this.
4192 (win32_write_inferior_memory): Turn into ...
4193 (win32_process_target::write_memory): ... this.
4194 * win32-low.h (class win32_process_target): Update.
4196 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4198 Turn process_stratum_target's prepare_to_access_memory and
4199 done_accessing_memory ops into methods of process_target.
4201 * target.h (struct process_stratum_target): Remove the target ops.
4202 (class process_target): Add the target ops.
4203 * target.cc (process_target::prepare_to_access_memory): Define.
4204 (process_target::done_accessing_memory): Define.
4205 (prepare_to_access_memory): Update.
4206 (done_accessing_memory): Update.
4208 Update the derived classes and callers below.
4210 * linux-low.cc (linux_target_ops): Update.
4211 (linux_prepare_to_access_memory): Turn into ...
4212 (linux_process_target::prepare_to_access_memory): ... this.
4213 (linux_done_accessing_memory): Turn into ...
4214 (linux_process_target::done_accessing_memory): ... this.
4215 * linux-low.h (class linux_process_target): Update.
4216 * lynx-low.cc (lynx_target_ops): Update.
4217 * nto-low.cc (nto_target_ops): Update.
4218 * win32-low.cc (win32_target_ops): Update.
4220 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4222 Turn process_stratum_target's fetch_registers and store_registers
4223 ops into methods of process_target.
4225 * target.h (struct process_stratum_target): Remove the target ops.
4226 (class process_target): Add the target ops.
4227 (fetch_inferior_registers): Update the macro.
4228 (store_inferior_registers): Update the macro.
4230 Update the derived classes and callers below.
4232 * linux-low.cc (linux_target_ops): Update.
4233 (linux_fetch_registers): Turn into ...
4234 (linux_process_target::fetch_registers): ... this.
4235 (linux_store_registers): Turn into ...
4236 (linux_process_target::store_registers): ... this.
4237 * linux-low.h (class linux_process_target): Update.
4238 * lynx-low.cc (lynx_target_ops): Update.
4239 (lynx_fetch_registers): Turn into ...
4240 (lynx_process_target::fetch_registers): ... this.
4241 (lynx_store_registers): Turn into ...
4242 (lynx_process_target::store_registers): ... this.
4243 * lynx-low.h (class lynx_process_target): Update.
4244 * nto-low.cc (nto_target_ops): Update.
4245 (nto_fetch_registers): Turn into ...
4246 (nto_process_target::fetch_registers): ... this.
4247 (nto_store_registers): Turn into ...
4248 (nto_process_target::store_registers): ... this.
4249 * nto-low.h (class nto_process_target): Update.
4250 * win32-low.cc (win32_target_ops): Update.
4251 (win32_fetch_inferior_registers): Turn into ...
4252 (win32_process_target::fetch_registers): ... this.
4253 (win32_store_inferior_registers): Turn into ...
4254 (win32_process_target::store_registers): ... this.
4255 * win32-low.h (class win32_process_target): Update.
4257 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4259 Turn process_stratum_target's wait op into a method of
4262 * target.h (struct process_stratum_target): Remove the target op.
4263 (class process_target): Add the target op.
4265 Update the derived classes and callers below.
4267 * target.cc (target_wait): Update.
4268 * linux-low.cc (linux_target_ops): Update.
4269 (linux_wait): Turn into ...
4270 (linux_process_target::wait): ... this.
4271 * linux-low.h (class linux_process_target): Update.
4272 * lynx-low.cc (lynx_target_ops): Update.
4273 (lynx_wait): Turn into ...
4274 (lynx_process_target::wait): ... this.
4275 * lynx-low.h (class lynx_process_target): Update.
4276 * nto-low.cc (nto_target_ops): Update.
4277 (nto_wait): Turn into ...
4278 (nto_process_target::wait): ... this.
4279 * nto-low.h (class nto_process_target): Update.
4280 * win32-low.cc (win32_target_ops): Update.
4281 (win32_wait): Turn into ...
4282 (win32_process_target::wait): ... this.
4283 (do_initial_child_stuff): Update.
4284 * win32-low.h (class win32_process_target): Update.
4286 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4288 Turn process_stratum_target's resume op into a method of
4291 * target.h (struct process_stratum_target): Remove the target op.
4292 (class process_target): Add the target op.
4294 Update the derived classes and callers below.
4296 * server.cc (resume): Update.
4297 * target.cc (target_stop_and_wait): Update.
4298 (target_continue_no_signal): Update.
4299 (target_continue): Update.
4300 * linux-low.cc (linux_target_ops): Update.
4301 (linux_resume): Turn into ...
4302 (linux_process_target::resume): ... this.
4303 * linux-low.h (class linux_process_target): Update.
4304 * lynx-low.cc (lynx_target_ops): Update.
4305 (lynx_resume): Turn into ...
4306 (lynx_process_target::resume): ... this.
4307 * lynx-low.h (class lynx_process_target): Update.
4308 * nto-low.cc (nto_target_ops): Update.
4309 (nto_resume): Turn into ...
4310 (nto_process_target::resume): ... this.
4311 * nto-low.h (class nto_process_target): Update.
4312 * win32-low.cc (win32_target_ops): Update.
4313 (win32_resume): Turn into ...
4314 (win32_process_target::resume): ... this.
4315 (win32_process_target::detach): Update.
4316 (do_initial_child_stuff): Update.
4317 * win32-low.h (class win32_process_target): Update.
4319 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4321 Turn process_stratum_target's thread_alive op into a method of
4324 * target.h (struct process_stratum_target): Remove the target op.
4325 (class process_target): Add the target op.
4326 (mythread_alive): Update the macro.
4328 Update the derived classes and callers below.
4330 * linux-low.cc (linux_target_ops): Update.
4331 (linux_thread_alive): Turn into ...
4332 (linux_process_target::thread_alive): ... this.
4333 (wait_for_sigstop): Update.
4334 * linux-low.h (class linux_process_target): Update.
4335 * lynx-low.cc (lynx_target_ops): Update.
4336 (lynx_thread_alive): Turn into ...
4337 (lynx_process_target::thread_alive): ... this.
4338 * lynx-low.h (class lynx_process_target): Update.
4339 * nto-low.cc (nto_target_ops): Update.
4340 (nto_thread_alive): Turn into ...
4341 (nto_process_target::thread_alive): ... this.
4342 * nto-low.h (class nto_process_target): Update.
4343 * win32-low.cc (win32_target_ops): Update.
4344 (win32_thread_alive): Turn into ...
4345 (win32_process_target::thread_alive): ... this.
4346 * win32-low.h (class win32_process_target): Update.
4348 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4350 Turn process_stratum_target's join op into a method of
4353 * target.h (struct process_stratum_target): Remove the target op.
4354 (class process_target): Add the target op.
4355 (join_inferior): Update the macro.
4357 Update the derived classes and callers below.
4359 * linux-low.cc (linux_target_ops): Update.
4360 (linux_join): Turn into ...
4361 (linux_process_target::join): ... this.
4362 * linux-low.h (class linux_process_target): Update.
4363 * lynx-low.cc (lynx_target_ops): Update.
4364 (lynx_join): Turn into ...
4365 (lynx_process_target::join): ... this.
4366 * lynx-low.h (class lynx_process_target): Update.
4367 * nto-low.cc (nto_target_ops): Update.
4368 (nto_process_target::join): Define.
4369 * nto-low.h (class nto_process_target): Update.
4370 * win32-low.cc (win32_target_ops): Update.
4371 (win32_join): Turn into ...
4372 (win32_process_target::join): ... this.
4373 * win32-low.h (class win32_process_target): Update.
4375 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4377 Turn process_stratum_target's mourn op into a method of
4380 * target.h (struct process_stratum_target): Remove the target op.
4381 (class process_target): Add the target op.
4383 Update the derived classes and callers below.
4385 * target.cc (target_mourn_inferior): Update.
4386 * linux-low.cc (linux_target_ops): Update.
4387 (linux_mourn): Turn into ...
4388 (linux_process_target::mourn): ... this.
4389 (handle_extended_wait): Update.
4390 (linux_process_target::kill): Update.
4391 (linux_process_target::detach): Update.
4392 * linux-low.h (class linux_process_target): Update.
4393 * lynx-low.cc (lynx_target_ops): Update.
4394 (lynx_mourn): Turn into ...
4395 (lynx_process_target::mourn): ... this.
4396 * lynx-low.h (class lynx_process_target): Update.
4397 * nto-low.cc (nto_target_ops): Update.
4398 (nto_mourn): Turn into ...
4399 (nto_process_target::mourn): ... this.
4400 * nto-low.h (class nto_process_target): Update.
4401 * win32-low.cc (win32_target_ops): Update.
4402 (win32_mourn): Turn into ...
4403 (win32_process_target::mourn): ... this.
4404 * win32-low.h (class win32_process_target): Update.
4406 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4408 Turn process_stratum_target's detach op into a method of
4411 * target.h (struct process_stratum_target): Remove the target op.
4412 (class process_target): Add the target op.
4413 (detach_inferior): Update the macro.
4415 Update the derived classes and callers below.
4417 * linux-low.cc (linux_target_ops): Update.
4418 (linux_detach): Turn into ...
4419 (linux_process_target::detach): ... this.
4420 * linux-low.h (class linux_process_target): Update.
4421 * lynx-low.cc (lynx_target_ops): Update.
4422 (lynx_detach): Turn into ...
4423 (lynx_process_target::detach): ... this.
4424 * lynx-low.h (class lynx_process_target): Update.
4425 * nto-low.cc (nto_target_ops): Update.
4426 (nto_detach): Turn into ...
4427 (nto_process_target::detach): ... this.
4428 * nto-low.h (class nto_process_target): Update.
4429 * win32-low.cc (win32_target_ops): Update.
4430 (win32_detach): Turn into ...
4431 (win32_process_target::detach): ... this.
4432 * win32-low.h (class win32_process_target): Update.
4434 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4436 Turn process_stratum_target's kill op into a method of
4439 * target.h (struct process_stratum_target): Remove the target op.
4440 (class process_target): Add the target op.
4442 Update the derived classes and callers below.
4444 * target.cc (kill_inferior): Update.
4445 * linux-low.cc (linux_target_ops): Update.
4446 (linux_kill): Turn into ...
4447 (linux_process_target::kill): ... this.
4448 * linux-low.h (class linux_process_target): Update.
4449 * lynx-low.cc (lynx_target_ops): Update.
4450 (lynx_kill): Turn into ...
4451 (lynx_process_target::kill): ... this.
4452 * lynx-low.h (class lynx_process_target): Update.
4453 * nto-low.cc (nto_target_ops): Update.
4454 (nto_kill): Turn into ...
4455 (nto_process_target::kill): ... this.
4456 * nto-low.h (class nto_process_target): Update.
4457 * win32-low.cc (win32_target_ops): Update.
4458 (win32_kill): Turn into ...
4459 (win32_process_target::kill): ... this.
4460 * win32-low.h (class win32_process_target): Update.
4462 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4464 Turn process_stratum_target's attach op into a method of
4467 * target.h (struct process_stratum_target): Remove the target op.
4468 (class process_target): Add the target op.
4469 (myattach): Update the macro.
4471 Update the derived classes and callers below.
4473 * linux-low.cc (linux_target_ops): Update.
4474 (linux_attach): Turn into ...
4475 (linux_process_target::attach): ... this.
4476 * linux-low.h (class linux_process_target): Update.
4477 * lynx-low.cc (lynx_target_ops): Update.
4478 (lynx_attach): Turn into ...
4479 (lynx_process_target::attach): ... this.
4480 * lynx-low.h (class lynx_process_target): Update.
4481 * nto-low.cc (nto_target_ops): Update.
4482 (nto_attach): Turn into ...
4483 (nto_process_target::attach): ... this.
4484 * nto-low.h (class nto_process_target): Update.
4485 * win32-low.cc (win32_target_ops): Update.
4486 (win32_attach): Turn into ...
4487 (win32_process_target::attach): ... this.
4488 * win32-low.h (class win32_process_target): Update.
4490 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4492 Turn process_stratum_target's post_create_inferior op into a method
4495 * target.h (struct process_stratum_target): Remove the target op.
4496 (class process_target): Add the target op.
4497 (target_post_create_inferior): Update the macro.
4498 * target.cc (process_target::post_create_inferior): Define.
4500 Update the derived classes and callers below.
4502 * linux-low.cc (linux_target_ops): Update.
4503 (linux_post_create_inferior): Turn into ...
4504 (linux_process_target::post_create_inferior): ... this.
4505 * linux-low.h (class linux_process_target): Update.
4506 * lynx-low.cc (lynx_target_ops): Update.
4507 * nto-low.cc (nto_target_ops): Update.
4508 * win32-low.cc (win32_target_ops): Update.
4510 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4512 Turn process_stratum_target's create_inferior op into a method of
4515 * target.h (struct process_stratum_target): Remove the target op.
4516 (class process_target): Add the target op.
4517 (create_inferior): Rename the macro to ...
4518 (target_create_inferior): ... this.
4520 Update the derived classes and callers below.
4522 * server.cc (handle_v_run): Update.
4523 (captured_main): Update.
4524 (process_serial_event): Update.
4525 * linux-low.cc (linux_target_ops): Update.
4526 (linux_create_inferior): Turn into ...
4527 (linux_process_target::create_inferior): ... this.
4528 * linux-low.h (class linux_process_target): Update.
4529 * lynx-low.cc (lynx_target_ops): Update.
4530 (lynx_create_inferior): Turn into ...
4531 (lynx_process_target::create_inferior): ... this.
4532 * lynx-low.h (class lynx_process_target): Update.
4533 * nto-low.cc (nto_target_ops): Update.
4534 (nto_create_inferior): Turn into ...
4535 (nto_process_target::create_inferior): ... this.
4536 * nto-low.h (class nto_process_target): Update.
4537 * win32-low.cc (win32_target_ops): Update.
4538 (win32_create_inferior): Turn into ...
4539 (win32_process_target::create_inferior): ... this.
4540 * win32-low.h (class win32_process_target): Update.
4542 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4544 * target.h (class process_target): New class definition.
4545 (struct process_stratum_target) <pt>: New field with type
4547 * linux-low.h (class linux_process_target): Define as a derived
4548 class of 'process_target'.
4549 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4551 * lynx-low.h (class lynx_process_target): Define as a derived
4552 class of 'process_target'.
4553 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4555 * nto-low.h (class nto_process_target): Define as a derived
4556 class of 'process_target'.
4557 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4559 * win32-low.h (class win32_process_target): Define as a derived
4560 class of 'process_target'.
4561 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4564 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4566 * configure: Regenerate.
4568 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4569 Andrew Burgess <andrew.burgess@embecosm.com>
4571 * linux-riscv-low.cc: New file.
4572 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4573 and nat/riscv-linux-tdesc.c.
4574 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4575 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4578 2020-02-14 Tom Tromey <tom@tromey.com>
4580 * acinclude.m4: Don't include acx_configure_dir.m4.
4581 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4582 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4583 (all, install-only, uninstall, clean-info, clean)
4584 (maintainer-clean): Don't recurse.
4585 (subdir_do, all-lib): Remove.
4586 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4588 (generated_files): Update.
4589 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4590 * configure: Rebuild.
4591 * configure.ac: Don't configure gnulib or libiberty.
4594 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4596 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4597 preparing the command line for CreateProcess.
4598 (win32_create_inferior): Reflect the program name in debugging
4599 output that shows the process and its command line.
4601 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4603 * Makefile.in: Rename source files from .c to .cc.
4604 * %.c: Rename to %.cc.
4605 * configure.ac: Rename server.c to server.cc.
4606 * configure: Re-generate.
4608 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4610 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4612 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4614 * win32-low.c (win32_create_inferior): Set signal_pid.
4616 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4617 Pedro Alves <palves@redhat.com>
4619 Skip building gdbserver in a cross-configuration.
4620 * configure.srv: Set $gdbserver_host depending on whether $target
4621 is $host. Use $gdbserver_host instead of $host.
4623 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4625 * configure: Re-generate.
4627 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4629 * configure: Re-generate.
4631 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4633 * acinclude.m4: Update warning.m4 path.
4635 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4637 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4638 (handle_exception): Set siginfo_er.
4639 (win32_xfer_siginfo): New function.
4641 2020-02-07 Tom Tromey <tom@tromey.com>
4642 Pedro Alves <palves@redhat.com>
4644 * README: Update build documentation.
4645 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4647 * configure.ac: Update paths.
4648 * configure: Rebuild.
4649 * acinclude.m4: Update paths.
4650 * Makefile.in: Update include paths.
4651 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4652 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4653 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4654 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4655 (%-generated.c): Update paths.
4656 * Move entire directory from ../gdb/gdbserver.
4658 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4660 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4662 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4664 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4665 assignment instead of srv_linux_obj.
4667 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4669 * server.c (handle_qxfer_libraries): Write segment-address with
4672 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4674 * Makefile.in (install-strip): New target.
4675 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4676 * aclocal.m4: Regenerate.
4677 * configure: Regenerate.
4678 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4680 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4682 * Makefile.in (SFILES): Adjust paths to point to real files.
4683 (OBS): Move waitstatus.o to target/waitstatus.o.
4684 (TAGS): Transform paths appropriately.
4686 (nat/%.o): ... this pattern rule.
4688 (target/%.o): ... this pattern rule.
4689 * configure.srv: Adjust paths throughout to include nat/ prefix
4690 with the revant files.
4691 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4692 * configure: Regenerate.
4694 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4696 * Makefile.in (TAGS): Remove config files from the recipe.
4698 2020-01-14 Tom Tromey <tom@tromey.com>
4700 * configure: Rebuild.
4701 * configure.ac: Remove any checks that were added to common.m4.
4702 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4705 2020-01-14 Tom Tromey <tom@tromey.com>
4707 * server.h: Include config.h.
4708 * gdbreplay.c: Include config.h.
4709 * configure: Rebuild.
4710 * configure.ac: Don't source common.host.
4711 * acinclude.m4: Update path.
4712 * Makefile.in (INCSUPPORT): New variable.
4713 (INCLUDE_CFLAGS): Add INCSUPPORT.
4714 (SFILES): Update paths.
4715 (version-generated.c): Update path to create-version.sh.
4716 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4718 2020-01-14 Tom Tromey <tom@tromey.com>
4720 * configure.ac (LIBS): Use WIN32APILIBS.
4721 (USE_WIN32API): Don't define.
4722 * configure: Rebuild.
4724 2020-01-14 Tom Tromey <tom@tromey.com>
4726 * configure: Rebuild.
4728 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4730 * Makefile.in (%-generated.c): Remove rule for files from
4733 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4735 * configure: Re-generate.
4737 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4739 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4741 * tracepoint.c (stop_tracing, flush_trace_buffer,
4742 about_to_request_buffer_space, get_trace_state_variable_value,
4743 set_trace_state_variable_value, gdb_collect): Add declaration.
4745 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4747 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4748 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4749 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4750 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4751 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4754 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4756 * inferiors.c: Include gdbsupport/common-inferior.h.
4758 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4760 * hostio-errno.c: Include hostio.h.
4762 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4764 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4767 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4769 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4770 * linux-arm-tdesc.h: Include arch/arm.h.
4772 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4774 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4776 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4778 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4779 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4781 2020-01-10 Pedro Alves <palves@redhat.com>
4783 * fork-child.c (post_fork_inferior): Pass target down to
4785 * inferiors.c (switch_to_thread): Add process_stratum_target
4787 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4788 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4789 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4790 * remote-utils.c (prepare_resume_reply): Pass the target to
4792 * target.c (the_target): Now a process_stratum_target.
4793 (done_accessing_memory): Pass the target to switch_to_thread.
4794 (set_target_ops): Ajust to use process_stratum_target.
4795 * target.h (struct target_ops): Rename to ...
4796 (struct process_stratum_target): ... this.
4797 (the_target, set_target_ops): Adjust.
4798 (prepare_to_access_memory): Adjust comment.
4799 * win32-low.c (child_xfer_memory): Adjust to use
4800 process_stratum_target.
4801 (win32_target_ops): Now a process_stratum_target.
4803 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4804 Pedro Alves <palves@redhat.com>
4806 * win32-low.c (get_child_debug_event): Extract the fatal exception
4807 from the exit status and convert to the equivalent Posix signal
4809 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4810 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4812 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4814 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4816 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4818 * server.c (gdbserver_version): Change copyright year to 2020.
4819 * gdbreplay.c (gdbreplay_version): Likewise.
4821 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4823 * configure: Regenerate.
4824 * configure.ac: Quote variable arguments of test.
4826 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4828 * Makefile.in: Fix build with GNU Make 3.81
4830 2019-12-16 Tom Tromey <tromey@adacore.com>
4832 * server.c (get_exec_file): Constify result.
4834 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4836 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4837 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4838 * config.in: Regenerate.
4839 * configure: Regenerate.
4840 * configure.ac: Don't check for strerror.
4841 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4842 Call safe_strerror instead of strerror.
4843 * server.h (strerror): Remove this now-unnecessary declaration.
4844 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4846 (gdb_agent_helper_thread): Likewise.
4847 * utils.c (perror_with_name): Likewise.
4849 2019-11-26 Tom Tromey <tom@tromey.com>
4851 * configure, config.in: Rebuild.
4853 2019-11-26 Tom Tromey <tom@tromey.com>
4855 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4856 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4858 * configure, config.in: Rebuild.
4860 2019-11-26 Tom Tromey <tom@tromey.com>
4862 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4863 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4864 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4865 * acinclude.m4: Include ax_pthread.m4.
4866 * config.in, configure: Rebuild.
4868 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4870 * debug.c (debug_set_output): Call safe_strerror instead of
4872 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4873 (linux_kill_one_lwp): Likewise.
4874 (linux_detach_one_lwp): Likewise.
4875 (linux_wait_for_event_filtered): Likewise.
4876 (store_register): Likewise.
4877 * lynx-low.c (lynx_attach): Likewise.
4878 * mem-break.c (insert_memory_breakpoint): Likewise.
4879 (remove_memory_breakpoint): Likewise.
4880 (delete_fast_tracepoint_jump): Likewise.
4881 (set_fast_tracepoint_jump): Likewise.
4882 (uninsert_fast_tracepoint_jumps_at): Likewise.
4883 (reinsert_fast_tracepoint_jumps_at): Likewise.
4884 * nto-low.c (nto_xfer_memory): Likewise.
4885 (nto_resume): Likewise.
4887 2019-11-20 Luis Machado <luis.machado@linaro.org>
4889 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4890 instead of register count.
4891 * tdesc.c (tdesc_contains_feature): New function.
4892 * tdesc.h (tdesc_contains_feature): New prototype.
4894 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4896 * Makefile.in: Add safe-strerror.c.
4897 * configure: Regenerate.
4898 * configure.ac: Don't source common.host.
4900 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4902 * config.in: Regenerate.
4903 * configure: Regenerate.
4905 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4907 * ax.c (ax_printf): Handle size_t_arg.
4909 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4911 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4912 * mi/mi-main.c (output_cores): Likewise.
4913 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4914 (linux_xfer_osdata_modules): Likewise.
4915 * remote.c (register_remote_support_xml): Likewise.
4916 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4917 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4919 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4921 * configure: Regenerate.
4922 * configure.ac: Remove check for strerror_r.
4924 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4926 * config.in: Regenerate.
4927 * configure: Regenerate.
4928 * configure.ac: Also check for strerror_r.
4930 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4932 * ax.h (debug_agent): Remove duplicate declaration.
4934 2019-10-26 Tom de Vries <tdevries@suse.de>
4936 * linux-aarch64-low.c: Fix typos in comments.
4937 * linux-arm-low.c: Same.
4938 * linux-low.c: Same.
4939 * linux-ppc-low.c: Same.
4940 * proc-service.c: Same.
4943 * tracepoint.c: Same.
4944 * win32-low.c: Same.
4946 2019-10-25 Tom Tromey <tromey@adacore.com>
4948 * utils.c (xstrdup): Remove.
4950 2019-10-23 Tom Tromey <tom@tromey.com>
4952 * configure, config.in: Rebuild.
4954 2019-10-23 Tom Tromey <tom@tromey.com>
4956 * configure: Rebuild.
4957 * acinclude.m4: Use m4_include, not sinclude.
4959 2019-10-17 Tom Tromey <tromey@adacore.com>
4961 * configure: Rebuild.
4962 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4963 in AC_CONFIG_FILES invocation.
4964 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4967 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4969 * server.c: Include xml-builtin.h.
4970 (get_xml_features): Don't declare xml_builtins here.
4972 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4974 * Makefile.in: Remove references to vec-ipa.o.
4976 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4978 * Makefile.in: Remove references to vec.c.
4980 2019-10-02 Christian Biesinger <cbiesinger@google.com>
4982 * server.c (server_waiting): Change to bool.
4983 (extended_protocol): Likewise.
4984 (response_needed): Likewise.
4985 (exit_requested): Likewise.
4986 (run_once): Likewise.
4987 (report_no_resumed): Likewise.
4988 (non_stop): Likewise.
4989 (disable_packet_vCont): Likewise.
4990 (disable_packet_Tthread): Likewise.
4991 (disable_packet_qC): Likewise.
4992 (disable_packet_qfThreadInfo): Likewise.
4993 (handle_general_set): Update.
4994 (handle_detach): Update.
4995 (handle_monitor_command): Update.
4996 (handle_query): Update.
4997 (captured_main): Update.
4998 (process_serial_event): Update.
4999 * server.h (server_waiting): Change to bool.
5000 (disable_packet_vCont): Likewise.
5001 (disable_packet_Tthread): Likewise.
5002 (disable_packet_qC): Likewise.
5003 (disable_packet_qfThreadInfo): Likewise.
5004 (run_once): Likewise.
5005 (non_stop): Likewise.
5006 * target.c (target_stop_and_wait): Update.
5008 2019-10-02 Tom Tromey <tromey@adacore.com>
5010 * Makefile.in (SFILES): Add common-inferior.c.
5011 (OBS): Add common-inferior.o.
5012 * server.c (startup_with_shell): Don't define.
5014 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
5016 * linux-low.c (linux_low_read_btrace): Update for change to
5019 2019-09-20 Christian Biesinger <cbiesinger@google.com>
5021 * debug.c (debug_threads): Remove comment in favor of the header.
5022 * debug.h (using_threads): Add declaration.
5023 (debug_threads): Add comment.
5024 * linux-aarch64-low.c: Include debug.h and remove declaration of
5026 * nto-low.c: Likewise.
5027 * remote-utils.c: Likewise.
5028 * thread-db.c: Likewise.
5030 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
5032 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
5033 and powerpc-cell64l-ipa.o.
5034 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
5035 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
5036 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
5039 * spu-low.c: Remove file.
5041 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
5042 (parse_spufs_run): Remove.
5043 (ppc_get_pc): Remove Cell/B.E. support.
5044 (ppc_set_pc): Likewise.
5045 (ppc_breakpoint_at): Likewise.
5046 (ppc_arch_setup): Likewise.
5047 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
5048 tdesc_powerpc_cell32l.
5049 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
5050 or init_registers_powerpc_cell32l.
5051 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
5052 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
5053 or init_registers_powerpc_cell32l.
5054 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
5055 (init_registers_powerpc_cell32l): Remove prototype.
5056 (init_registers_powerpc_cell64l): Likewise.
5058 * target.h (struct target_ops): Remove qxfer_spu member.
5059 * server.c (handle_qxfer_spu): Remove.
5060 (qxfer_packets): Remove entry for "spu".
5061 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
5062 * linux-low.c (SPUFS_MAGIC): Remove.
5063 (spu_enumerate_spu_ids): Remove.
5064 (linux_qxfer_spu): Remove.
5065 (linux_target_ops): Remove qxfer_spu member.
5066 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
5067 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
5068 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
5070 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5072 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
5073 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
5074 * config.in: Regenerate.
5075 * configure: Regenerate.
5077 2019-08-15 Tom Tromey <tromey@adacore.com>
5079 * target.c (target_write_memory): Use gdb::byte_vector.
5081 2019-08-15 Tom Tromey <tromey@adacore.com>
5083 * tracepoint.c (write_inferior_data_pointer)
5084 (write_inferior_integer, write_inferior_int8)
5085 (write_inferior_uinteger, m_tracepoint_action_download)
5086 (r_tracepoint_action_download, x_tracepoint_action_download)
5087 (l_tracepoint_action_download, clear_inferior_trace_buffer)
5088 (download_agent_expr, download_tracepoint_1)
5089 (download_trace_state_variables, upload_fast_traceframes): Update.
5090 * server.c (gdb_write_memory): Update.
5091 * remote-utils.c (relocate_instruction): Update.
5092 * proc-service.c (ps_pdwrite): Update.
5093 * mem-break.c (remove_memory_breakpoint)
5094 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
5095 (uninsert_fast_tracepoint_jumps_at)
5096 (reinsert_fast_tracepoint_jumps_at): Update.
5097 * linux-x86-low.c (append_insns)
5098 (i386_install_fast_tracepoint_jump_pad)
5099 (amd64_write_goto_address, i386_write_goto_address): Update.
5100 * linux-s390-low.c (append_insns, s390_write_goto_address):
5102 * linux-ppc-low.c (ppc_relocate_instruction)
5103 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
5104 (ppc_write_goto_address): Update.
5105 * linux-aarch64-low.c (append_insns): Update.
5106 * target.h (struct target_ops): Update.
5107 (write_inferior_memory): Don't declare.
5108 * target.c (target_write_memory): Rename from
5109 write_inferior_memory. Remove old target_write_memory.
5111 2019-08-15 Tom Tromey <tromey@adacore.com>
5113 * target.c (write_inferior_memory): Use std::vector.
5115 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5118 * configure.ac: Drop enable-libmcheck support.
5119 * configure, config.in: Rebuild.
5120 * acinclude.m4: Don't include it.
5122 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5124 * configure.srv: Remove Arm xml files.
5126 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5128 * configure.srv: Add new files. Remove xml generated files.
5129 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
5131 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
5132 * linux-aarch32-tdesc.c: New file.
5133 * linux-aarch32-tdesc.h: New file.
5134 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
5135 * linux-arm-low.c (init_registers_arm, tdesc_arm)
5136 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
5137 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
5138 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
5139 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
5140 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
5141 (arm_read_description): Call arm_linux_read_description.
5142 (initialize_low_arch): Don't init registers.
5143 * linux-arm-tdesc.c: New file.
5144 * linux-arm-tdesc.h: New file.
5146 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5148 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
5149 Move counter inside for.
5150 (arm_read_description): Check ptrace earlier.
5151 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
5153 2019-07-09 Tom Tromey <tom@tromey.com>
5155 * configure: Rebuild.
5156 * configure.ac: Change common to gdbsupport.
5157 * acinclude.m4: Change common to gdbsupport.
5158 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
5159 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
5160 common to gdbsupport.
5161 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
5162 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
5163 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
5164 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
5165 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
5166 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
5167 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
5168 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
5169 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
5170 common to gdbsupport.
5172 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5174 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
5176 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
5178 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5180 * configure.srv: Remove legacy xml.
5181 * linux-aarch64-low.c (initialize_low_arch): Remove
5182 initialize_low_tdesc call.
5183 * linux-aarch64-tdesc-selftest.c: Remove file.
5184 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
5185 * linux-x86-low.c (initialize_low_arch): Remove
5186 initialize_low_tdesc call.
5187 * linux-x86-tdesc-selftest.c: Remove file.
5188 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
5190 2019-06-20 Tom de Vries <tdevries@suse.de>
5192 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
5193 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
5195 2019-06-19 Tom de Vries <tdevries@suse.de>
5197 * debug.h (debug_write): Change return type to ssize_t.
5198 * debug.c (debug_write): Same.
5200 2019-06-14 Tom Tromey <tom@tromey.com>
5202 * configure.ac: Use new path to gnulib.
5203 * configure: Rebuild.
5204 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
5207 2019-06-11 Tom Tromey <tom@tromey.com>
5209 * Makefile.in (SFILES): Add alloc.c.
5211 (IPA_OBJS): Add alloc-ipa.o.
5212 (alloc-ipa.o): New target.
5213 (%.o: ../%.c): New pattern rule.
5215 2019-06-10 Tom Tromey <tromey@adacore.com>
5217 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
5218 end warning with a newline.
5219 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
5221 * thread-db.c (attach_thread): Don't end warning with a newline.
5222 (thread_db_notice_clone): Likewise.
5223 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
5225 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
5226 end warning with a newline.
5228 2019-06-04 Pedro Alves <palves@redhat.com>
5230 * server.c (captured_main): Use make_unique_xstrdup.
5232 2019-06-02 Tom Tromey <tom@tromey.com>
5234 * gdbreplay.c (fromhex): Remove.
5235 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
5237 2019-05-29 Tom Tromey <tromey@adacore.com>
5239 * configure: Rebuild.
5241 2019-05-06 Kevin Buettner <kevinb@redhat.com>
5243 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
5244 sign extension code on 32-bit builds.
5246 2019-05-03 Eli Zaretskii <eliz@gnu.org>
5249 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
5251 2019-04-19 Tom Tromey <tom@tromey.com>
5253 * server.c (struct vstop_notif): Derive from notif_event.
5255 (queue_stop_reply): Update.
5256 (remove_all_on_match_ptid): Change type. Rewrite.
5257 (discard_queued_stop_replies): Rewrite.
5258 (in_queued_stop_replies_ptid): Change type.
5259 (in_queued_stop_replies): Rewrite.
5260 (notif_stop): Update.
5261 (queue_stop_reply_callback): Update.
5262 (captured_main): Don't call initialize_notif.
5263 (push_stop_notification): Update.
5264 * notif.c (notif_write_event, handle_notif_ack)
5265 (notif_event_enque, notif_push): Update.
5266 (notif_event_xfree, initialize_notif): Remove.
5267 * notif.h (struct notif_event): Include <list>, not
5269 (struct notif_server) <queue>: Now a std::list.
5270 (notif_event_p): Remove typedef.
5271 (initialize_notif): Don't declare.
5272 (struct notif_event): Add virtual destructor.
5274 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5276 * ax.c (ax_vdebug): Call debug_printf.
5277 * debug.c (debug_write): New function.
5278 * debug.h (debug_write): New declaration.
5279 * linux-low.c (sigchld_handler): Call debug_write.
5281 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5283 * debug.c (debug_set_output): New function.
5284 (debug_vprintf): Send output to debug_file.
5285 (debug_flush): Likewise.
5286 * debug.h (debug_set_output): New declaration.
5287 * server.c (handle_monitor_command): Add debug-file option.
5288 (captured_main): Likewise.
5290 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5292 * debug.c (remote_debug): Add definition.
5293 * debug.h (remote_debug): Add declaration.
5294 * hostio.c (remote_debug): Remove declaration.
5295 * remote-utils.c (struct ui_file): Likewise.
5296 (remote_debug): Likewise.
5297 * remote-utils.h (remote_debug): Likewise,
5298 * server.c (remote_debug): Remove definition.
5300 2019-04-10 Kevin Buettner <kevinb@redhat.com>
5302 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5303 when using a 64-bit gdbserver.
5305 2019-04-09 Tom Tromey <tromey@adacore.com>
5307 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5309 2019-04-08 Tom Tromey <tom@tromey.com>
5311 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5313 (linux_resume_one_lwp): Likewise.
5315 2019-04-08 Tom Tromey <tom@tromey.com>
5317 * gdbreplay.c: Update.
5318 * linux-low.c: Update.
5321 2019-04-08 Tom Tromey <tom@tromey.com>
5323 * server.c: Use C++ exception handling.
5324 * linux-low.c: Use C++ exception handling.
5325 * gdbreplay.c: Use C++ exception handling.
5327 2019-04-08 Tom Tromey <tom@tromey.com>
5329 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5330 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5331 (captured_main, main): Update.
5332 * gdbreplay.c (main): Update.
5334 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5336 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5337 value in argument pointer, return 1 if the entry is found and 0
5338 otherwise. Move comment.
5339 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5340 * linux-low.h (linux_get_auxv): Declare.
5341 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5343 2019-04-05 Tom Tromey <tromey@adacore.com>
5345 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5348 2019-03-28 Alan Hayward <alan.hayward@arm.com>
5350 * linux-low.c (AT_HWCAP2): Add define if not already included.
5352 2019-03-26 Alan Hayward <alan.hayward@arm.com>
5354 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5355 (aarch64_arch_setup): Call linux_get_hwcap.
5356 * linux-arm-low.c (arm_get_hwcap): Remove function.
5357 (arm_read_description): Call linux_get_hwcap.
5358 * linux-low.c (linux_get_auxv): New function.
5359 (linux_get_hwcap): Likewise.
5360 (linux_get_hwcap2): Likewise.
5361 * linux-low.h (linux_get_hwcap): New declaration.
5362 (linux_get_hwcap2): Likewise.
5363 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5364 (ppc_arch_setup): Call linux_get_hwcap.
5365 * linux-s390-low.c (s390_get_hwcap): Remove function.
5366 (s390_arch_setup): Call linux_get_hwcap.
5368 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5369 Jiong Wang <jiong.wang@arm.com>
5371 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5372 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5374 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5376 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5377 Jiong Wang <jiong.wang@arm.com>
5379 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5380 (aarch64_get_hwcap): New function.
5381 (aarch64_arch_setup): Read APIA hwcap.
5383 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5384 Jiong Wang <jiong.wang@arm.com>
5386 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5387 (initialize_low_tracepoint): Likewise.
5388 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5389 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5390 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5391 (aarch64_linux_read_description): Likewise.
5392 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5394 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5396 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5397 i386_create_target_description for 'segments' parameter.
5398 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5399 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5400 * win32-i386-low.c (i386_arch_setup): Likewise.
5402 2019-03-12 Tom Tromey <tromey@adacore.com>
5404 * linux-low.c (iterate_over_lwps): Update.
5406 2019-03-06 Tom Tromey <tom@tromey.com>
5408 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5409 (captured_main): Use SCOPE_EXIT.
5411 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5413 * configure.srv: Use '$enable_unittest' instead of '$development'
5414 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5417 2019-02-27 Tom Tromey <tromey@adacore.com>
5419 * gdbreplay.c (logchar): Handle \r\n.
5421 2019-02-07 Alan Hayward <alan.hayward@arm.com>
5423 * linux-low.c (linux_attach): Add process before lwp.
5424 * server.c (attach_inferior): Check if already attached.
5426 2019-02-07 Tom Tromey <tom@tromey.com>
5428 * x86-tdesc.h: Rename include guard.
5429 * x86-low.h: Add include guard.
5430 * wincecompat.h: Rename include guard.
5431 * win32-low.h: Add include guard.
5432 * utils.h: Rename include guard.
5433 * tracepoint.h: Rename include guard.
5434 * tdesc.h: Rename include guard.
5435 * target.h: Rename include guard.
5436 * server.h: Rename include guard.
5437 * remote-utils.h: Rename include guard.
5438 * regcache.h: Rename include guard.
5439 * nto-low.h: Rename include guard.
5440 * notif.h: Add include guard.
5441 * mem-break.h: Rename include guard.
5442 * lynx-low.h: Add include guard.
5443 * linux-x86-tdesc.h: Add include guard.
5444 * linux-s390-tdesc.h: Add include guard.
5445 * linux-ppc-tdesc-init.h: Add include guard.
5446 * linux-low.h: Add include guard.
5447 * linux-aarch64-tdesc.h: Add include guard.
5448 * linux-aarch32-low.h: Add include guard.
5449 * inferiors.h: Rename include guard.
5450 * i387-fp.h: Rename include guard.
5451 * hostio.h: Rename include guard.
5452 * gdbthread.h: Rename include guard.
5453 * gdb_proc_service.h: Rename include guard.
5454 * event-loop.h: Rename include guard.
5455 * dll.h: Rename include guard.
5456 * debug.h: Rename include guard.
5457 * ax.h: Rename include guard.
5459 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5462 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5463 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5465 2019-01-25 Tom Tromey <tom@tromey.com>
5467 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5469 2019-01-25 Tom Tromey <tom@tromey.com>
5471 * win32-low.c: Fix common/ includes.
5472 * win32-i386-low.c: Fix common/ includes.
5473 * tracepoint.c: Fix common/ includes.
5474 * thread-db.c: Fix common/ includes.
5475 * target.h: Fix common/ includes.
5476 * symbol.c: Fix common/ includes.
5477 * spu-low.c: Fix common/ includes.
5478 * server.h: Fix common/ includes.
5479 * server.c: Fix common/ includes.
5480 * remote-utils.c: Fix common/ includes.
5481 * regcache.h: Fix common/ includes.
5482 * regcache.c: Fix common/ includes.
5483 * nto-x86-low.c: Fix common/ includes.
5484 * notif.h: Fix common/ includes.
5485 * mem-break.h: Fix common/ includes.
5486 * lynx-low.c: Fix common/ includes.
5487 * lynx-i386-low.c: Fix common/ includes.
5488 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5489 * linux-x86-low.c: Fix common/ includes.
5490 * linux-low.c: Fix common/ includes.
5491 * inferiors.h: Fix common/ includes.
5492 * i387-fp.c: Fix common/ includes.
5493 * hostio.c: Fix common/ includes.
5494 * hostio-errno.c: Fix common/ includes.
5495 * gdbthread.h: Fix common/ includes.
5496 * gdbreplay.c: Fix common/ includes.
5497 * fork-child.c: Fix common/ includes.
5498 * event-loop.c: Fix common/ includes.
5500 (enum gdb_agent_op): Fix common/ includes.
5502 2019-01-21 Tom Tromey <tom@tromey.com>
5504 * tracepoint.c: Fix includes.
5505 * remote-utils.c: Fix includes.
5506 * linux-x86-low.c: Fix includes.
5508 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5510 * gdbreplay.c (gdbreplay_version): Update copyright year in
5512 * server.c (gdbserver_version): Likewise.
5514 2018-12-05 Alan Hayward <alan.hayward@arm.com>
5516 * linux-low.c (add_lwp): Switch ordering.
5518 2018-11-29 Tom Tromey <tom@tromey.com>
5520 * win32-low.c (win32_join): Take pid, not process.
5521 * target.h (struct target_ops) <join>: Change argument type.
5522 (join_inferior): Change argument name.
5523 * spu-low.c (spu_join): Take pid, not process.
5524 * server.c (handle_detach): Preserve pid before destroying
5526 * lynx-low.c (lynx_join): Take pid, not process.
5527 * linux-low.c (linux_join): Take pid, not process.
5529 2018-11-23 Alan Hayward <alan.hayward@arm.com>
5531 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5532 (aarch64_cannot_fetch_register): Likewise.
5533 (struct linux_target_ops): Update references.
5535 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5537 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5539 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5541 * configure.srv (ipa_ppc_linux_regobj): Add
5542 powerpc-isa207-htm-vsx32l-ipa.o and
5543 powerpc-isa207-htm-vsx64l-ipa.o.
5544 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5545 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5546 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5547 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5548 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5549 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5550 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5551 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5552 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5553 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5554 (init_registers_powerpc_isa207_htm_vsx32l)
5555 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5556 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5557 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5558 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5559 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5560 (ppc_store_tm_ctarregset): New functions.
5561 (ppc_regsets): Add entries for HTM regsets.
5562 (ppc_arch_setup): Set htm in features struct when needed. Set
5563 sizes for the HTM regsets.
5564 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5565 (initialize_low_arch): Call
5566 init_registers_powerpc_isa207_htm_vsx32l and
5567 init_registers_powerpc_isa207_htm_vsx64l.
5568 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5569 PPC_TDESC_ISA207_HTM_VSX.
5570 (initialize_low_tracepoint): Call
5571 init_registers_powerpc_isa207_htm_vsx32l and
5572 init_registers_powerpc_isa207_htm_vsx64l.
5574 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5576 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5577 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5578 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5579 (ppc_store_pmuregset): New functions.
5580 (ppc_regsets): Add entries for ebb and pmu regsets.
5581 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5582 pmu regsets are available. Set sizes for these regsets.
5584 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5586 * configure.srv (ipa_ppc_linux_regobj): Add
5587 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5588 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5589 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5590 rs6000/powerpc-isa207-vsx32l.xml, and
5591 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5592 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5593 <PPC_TDESC_ISA207_VSX>: New enum value.
5594 (init_registers_powerpc_isa207_vsx32l): Declare.
5595 (init_registers_powerpc_isa207_vsx64l): Declare.
5596 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5597 (ppc_store_tarregset): New function.
5598 (ppc_regsets): Add entry for the TAR regset.
5599 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5600 size for the TAR regsets.
5601 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5602 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5603 and init_registers_powerpc_isa207_vsx64l.
5604 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5605 (initialize_low_tracepoint): Call
5606 init_registers_powerpc_isa207_vsx32l and
5607 init_registers_powerpc_isa207_vsx64l.
5609 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5610 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5612 * configure.srv (ipa_ppc_linux_regobj): Add
5613 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5614 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5615 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5616 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5617 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5618 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5619 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5620 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5621 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5622 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5623 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5624 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5625 (ppc_hwcap): Add comment.
5626 (ppc_hwcap2): New global.
5627 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5628 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5629 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5630 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5631 when needed. Set sizes for the the DSCR and PPR regsets.
5632 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5633 (initialize_low_arch): Call
5634 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5635 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5636 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5637 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5638 (initialize_low_tracepoint): Call
5639 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5640 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5642 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5644 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5646 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5647 Simon Marchi <simark@simark.ca>
5649 * acinclude.m4: Include "../selftest.m4".
5650 * configure: Regenerate.
5651 * configure.ac: Use "GDB_AC_SELFTEST".
5652 * configure.srv: Use "$enable_unittests" instead of
5653 "$development" when checking whether unit tests have been
5655 * server.c (captured_main): Update message informing that
5656 selftests have been disabled.
5658 2018-10-04 Tom Tromey <tom@tromey.com>
5660 * configure: Rebuild.
5662 2018-10-04 Tom Tromey <tom@tromey.com>
5664 * server.c (handle_status): Rename inner "thread".
5665 (process_serial_event): Declare "res" in 'm' case.
5666 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5667 (iterate_over_lwps): Rename inner "thread".
5668 (linux_qxfer_libraries_svr4): Rename inner "len".
5669 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5671 2018-10-01 Gary Benson <gbenson@redhat.com>
5673 * gdb_proc_service.h: Moved common code to
5674 common/gdb_proc_service.h.
5676 2018-10-01 Gary Benson <gbenson@redhat.com>
5678 * gdb_proc_service.h: Synchronize comments and whitespace with
5679 GDB's version of this file.
5681 2018-09-25 Tom Tromey <tom@tromey.com>
5683 * configure: Rebuild.
5684 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5686 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5688 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5689 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5690 ($(IPA_LIB)): Sort IPA_OBJS.
5692 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5694 * Makefile.in: Remove references to $(ADD_DEPS).
5696 2018-09-16 Tom Tromey <tom@tromey.com>
5698 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5700 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5703 2018-09-05 Tom Tromey <tom@tromey.com>
5705 * configure: Rebuild.
5707 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5710 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5712 2018-08-27 Tom Tromey <tom@tromey.com>
5715 * configure: Rebuild.
5717 2018-08-27 Tom Tromey <tom@tromey.com>
5719 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5720 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5721 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5722 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5723 (s390x_emit_stack_adjust): Add casts to unsigned char.
5725 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5729 * server.h (struct client_state) <disable_randomization>:
5732 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5734 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5736 (mips_supply_ptrace_register): Likewise.
5738 2018-07-22 Tom Tromey <tom@tromey.com>
5740 * configure: Rebuild.
5742 2018-07-22 Tom Tromey <tom@tromey.com>
5744 * win32-low.c (win32_create_inferior): Remove unused variables.
5745 * gdbreplay.c (remote_open): Remove unused variable.
5746 * remote-utils.c (remote_prepare): Remove unused variable.
5747 * x86-tdesc.h (X86_TDESC_H): Define.
5748 (amd64_expedite_regs): Define conditionally.
5749 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5750 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5751 * remote-utils.c (readchar): Remove unused variable.
5753 2018-07-13 Pedro Alves <palves@redhat.com>
5755 * linux-low.c (linux_kill): Change parameter to process_info
5756 pointer instead of pid. Adjust.
5757 * lynx-low.c (lynx_kill): Likewise.
5758 * nto-low.c (nto_kill): Likewise.
5759 * spu-low.c (spu_kill): Likewise.
5760 * win32-low.c (win32_kill): Likewise.
5761 * server.c (handle_v_kill, kill_inferior_callback)
5762 (detach_or_kill_for_exit): Adjust.
5763 * target.c (kill_inferior): Change parameter to process_info
5764 pointer instead of pid. Adjust.
5765 * target.h (struct target_ops) <kill>: Change parameter to
5766 process_info pointer instead of pid. Adjust all implementations
5768 (kill_inferior): Likewise.
5770 2018-07-13 Pedro Alves <palves@redhat.com>
5772 * linux-low.c (linux_detach, linux_join): Change parameter to
5773 process_info pointer instead of pid. Adjust.
5774 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5775 * nto-low.c (nto_detach): Likewise.
5776 * spu-low.c (spu_detach, spu_join): Likewise.
5777 * win32-low.c (win32_detach, win32_join): Likewise.
5778 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5779 * target.h (struct target_ops) <detach, join>: Change parameter to
5780 process_info pointer instead of pid. Adjust all implementations
5782 (detach_inferior, join_inferior): Rename 'pid' parameter to
5785 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5786 Jan Kratochvil <jan.kratochvil@redhat.com>
5787 Paul Fertser <fercerpav@gmail.com>
5788 Tsutomu Seki <sekiriki@gmail.com>
5790 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5791 (OBS): Add 'common/netstuff.o'.
5792 (GDBREPLAY_OBS): Likewise.
5793 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5794 (remote_open): Implement support for IPv6
5796 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5798 (handle_accept_event): Accept connections from IPv6 sources.
5799 (remote_prepare): Handle IPv6-style hostnames; implement
5800 support for IPv6 connections.
5801 (remote_open): Implement support for printing connections from
5804 2018-07-11 Pedro Alves <palves@redhat.com>
5807 * mem-break.c (any_persistent_commands): Add process_info
5808 parameter and use it instead of relying on the current process.
5809 Change return type to bool.
5810 * mem-break.h (any_persistent_commands): Add process_info
5811 parameter and change return type to bool.
5812 * server.c (handle_detach): Remove require_running_or_return call.
5813 Look up the process_info for the process we're about to detach.
5814 If not found, return back error to GDB. Adjust
5815 any_persistent_commands call to pass down a process pointer.
5817 2018-07-11 Pedro Alves <palves@redhat.com>
5819 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5820 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5821 instead of collect_register_by_name.
5822 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5823 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5825 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5826 Pedro Alves <palves@redhat.com>
5828 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5830 2018-07-03 Tom Tromey <tom@tromey.com>
5832 * linux-low.c: Update.
5833 * lynx-low.c: Update.
5834 * mem-break.c: Update.
5835 * nto-low.c: Update.
5836 * remote-utils.c: Update.
5838 * spu-low.c: Update.
5840 * win32-low.c: Update.
5842 2018-07-03 Tom Tromey <tom@tromey.com>
5846 2018-07-03 Tom Tromey <tom@tromey.com>
5848 * linux-low.c: Update.
5850 2018-07-03 Tom Tromey <tom@tromey.com>
5854 2018-07-03 Tom Tromey <tom@tromey.com>
5856 * linux-low.c: Update.
5857 * linux-mips-low.c: Update.
5858 * lynx-low.c: Update.
5859 * nto-low.c: Update.
5860 * remote-utils.c: Update.
5862 * spu-low.c: Update.
5864 * thread-db.c: Update.
5866 2018-07-03 Tom Tromey <tom@tromey.com>
5868 * linux-low.c: Update.
5869 * linux-mips-low.c: Update.
5870 * lynx-low.c: Update.
5871 * mem-break.c: Update.
5872 * nto-low.c: Update.
5873 * remote-utils.c: Update.
5875 * spu-low.c: Update.
5877 * tracepoint.c: Update.
5879 2018-07-03 Tom Tromey <tom@tromey.com>
5881 * linux-low.c: Update.
5882 * linux-ppc-low.c: Update.
5883 * linux-x86-low.c: Update.
5884 * proc-service.c: Update.
5886 * spu-low.c: Update.
5887 * thread-db.c: Update.
5888 * win32-low.c: Update.
5890 2018-07-03 Tom Tromey <tom@tromey.com>
5892 * linux-low.c: Update.
5893 * lynx-low.c: Update.
5894 * nto-low.c: Update.
5895 * remote-utils.c: Update.
5896 * spu-low.c: Update.
5897 * thread-db.c: Update.
5898 * win32-low.c: Update.
5900 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5902 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5903 parameter in call to 'amd64_create_target_description'.
5905 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5907 * x86-tdesc.h: Remove executable permission flag.
5909 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5911 * configure.ac: Remove AC_PREREQ, add missing quoting.
5912 * configure: Re-generate.
5913 * config.in: Re-generate.
5914 * aclocal.m4: Re-generate.
5916 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5918 * tracepoint.h (current_traceframe): Remove declaration.
5920 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5922 * linux-aarch64-low.c (is_sve_tdesc): New function.
5923 (aarch64_sve_regs_copy_to_regcache): Likewise.
5924 (aarch64_sve_regs_copy_from_regcache): Likewise.
5925 (aarch64_regs_info): Add SVE checks.
5926 (initialize_low_arch): Initialize SVE.
5928 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5930 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5932 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5934 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5935 (initialize_low_tracepoint): Likewise
5936 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5937 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5939 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5941 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5943 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5945 * server.h (PBUFSIZ): Increase size
5947 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5949 * regcache.c (regcache::raw_compare): New function.
5950 * regcache.h (regcache::raw_compare): New declaration.
5952 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5954 * regcache.c (new_register_cache): Use new.
5955 (free_register_cache): Use delete.
5956 (register_data): Use const.
5957 (supply_register): Move body inside regcache.
5958 (regcache::raw_supply): New override function.
5959 (collect_register): Move body inside regcache.
5960 (regcache::raw_collect): New override function.
5961 (regcache::get_register_status): New override function.
5962 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5964 2018-06-09 Tom Tromey <tom@tromey.com>
5966 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5968 (event_queue): Use std::queue.
5969 (gdb_event_xfree): Remove.
5970 (initialize_event_loop, process_event, wait_for_event): Update.
5972 2018-06-08 Stan Cox <scox@redhat.com>
5974 * win32-low.c (win32_create_inferior): last_ptid and last_status
5975 moved to client_state.
5977 2018-06-08 Pedro Alves <palves@redhat.com>
5979 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5980 common/common-exceptions.o, common/common-utils.o,
5981 common/errors.o, common/print-utils.o and utils.o.
5982 * gdbreplay.c: Include "common-defs.h" instead of the two
5983 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5984 string.h or alloca.h.
5985 (perror_with_name): Delete.
5986 (remote_open): Use xstrdup instead of strdup.
5987 (main): Rename to ...
5988 (captured_main): ... this.
5991 2018-06-08 Tom Tromey <tom@tromey.com>
5993 * linux-low.c (linux_low_read_btrace): Update.
5995 2018-06-04 Stan Cox <scox@redhat.com>
5997 * server.h (struct client_state): New.
5998 * server.c (cont_thread, general_thread, multi_process)
5999 (report_fork_events, report_vfork_events, report_exec_events)
6000 (report_thread_events, swbreak_feature, hwbreak_feature)
6001 (vCont_supported, disable_randomization, pass_signals)
6002 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
6003 Moved to client_state.
6004 * remote-utils.c (remote_debug, noack_mode)
6005 (transport_is_reliable): Moved to client_state.
6006 * tracepoint.c (current_traceframe): Moved to client_state.
6009 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
6010 linux-low.c, remote-utils.h, target.c: Use client_state.
6012 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6014 * configure.srv: Add new c/h file.
6016 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6018 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
6021 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6023 * gdb.arch/mips-fpregset-core.exp: New test.
6024 * gdb.arch/mips-fpregset-core.c: New test source.
6026 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
6029 * hostio.c (require_int): Do not report overflow for integers
6030 between 0xfffffff and 0x7fffffff.
6032 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6034 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
6035 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
6036 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
6038 (the_low_target): Wire them.
6040 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6042 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
6043 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
6044 mode. Call collect_register_by_name with vscr using
6045 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
6046 (ppc_store_vrregset): Add and set vscr_offset variable as in
6047 ppc_fill_vrregset. Call supply_register_by_name with vscr using
6050 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6052 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6053 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
6054 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
6056 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6058 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
6059 (ppc_store_vsxregset): Likewise.
6060 (ppc_fill_vrregset): Likewise.
6061 (ppc_store_vrregset): Likewise.
6062 (ppc_fill_evrregset): Likewise.
6063 (ppc_store_evrregset): Likewise.
6064 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
6065 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
6068 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6070 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
6071 wordsize of the inferior. Call ppc_linux_target_wordsize.
6073 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6075 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
6076 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
6077 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
6078 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6079 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6080 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6081 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6082 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6083 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6084 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6085 (tdesc_powerpc_e500l): Remove.
6086 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
6087 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
6088 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
6089 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
6091 (ppc_arch_setup): Remove target description matching code. Fill a
6092 ppc_linux_features struct and call ppc_linux_match_description
6095 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6097 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
6098 width of the requested register exceeds the width of the
6100 (mips_cannot_store_register): Likewise.
6102 2018-05-21 Maciej W. Rozycki <macro@mips.com>
6104 * linux-mips-low.c (mips_fetch_register): New function. Update
6106 (mips_store_gregset): Supply 0 rather than $restart for $zero.
6107 (the_low_target): Wire `mips_fetch_register'.
6109 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6111 * lynx-i386-low.c (LYNXOS_178): New macro.
6112 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
6113 the layout on LynxOS-178.
6114 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
6115 handle floating point registers that are not supported by
6118 2018-05-10 Tom Tromey <tom@tromey.com>
6120 * configure: Rebuild.
6122 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6125 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
6126 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
6127 Use it to set the expedite_regs field in the given tdesc.
6128 * x86-tdesc.h: New file.
6129 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
6130 Adjust following the addition of the new expedite_regs parameter
6131 to init_target_desc.
6132 * linux-tic6x-low.c (tic6x_read_description): Likewise.
6133 * linux-x86-tdesc.c: #include "x86-tdesc.h".
6134 (i386_linux_read_description, amd64_linux_read_description):
6135 Adjust following the addition of the new expedite_regs parameter
6136 to init_target_desc.
6137 * lynx-i386-low.c: #include "x86-tdesc.h".
6138 (lynx_i386_arch_setup): Adjust following the addition of the new
6139 expedite_regs parameter to init_target_desc.
6140 * nto-x86-low.c: #include "x86-tdesc.h".
6141 (nto_x86_arch_setup): Adjust following the addition of the new
6142 expedite_regs parameter to init_target_desc.
6143 * win32-i386-low.c: #include "x86-tdesc.h".
6144 (i386_arch_setup): Adjust following the addition of the new
6145 expedite_regs parameter to init_target_desc.
6147 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6150 * win32-low.c (win32_create_inferior): Add call to my_wait
6151 setting last_status global.
6153 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6156 * win32-low.c (create_process): Only call gdb_tilde_expand if
6157 inferior_cwd is not NULL.
6159 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6161 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
6162 registers to the cache if their values have changed.
6163 (i387_xsave_to_cache): Provide default values for x87 control
6164 registers when these features are available, but disabled.
6165 * regcache.c (supply_register_by_name_zeroed): New function.
6166 * regcache.h (supply_register_by_name_zeroed): Declare new
6169 2018-05-07 Tom Tromey <tom@tromey.com>
6171 * configure: Rebuild.
6173 2018-05-04 Tom Tromey <tom@tromey.com>
6175 * configure: Rebuild.
6177 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6178 Pedro Alves <palves@redhat.com>
6180 * linux-aarch64-low.c (aarch64_stopped_data_address):
6183 2018-04-27 Tom Tromey <tom@tromey.com>
6185 * configure: Rebuild.
6187 2018-04-23 Tom Tromey <tom@tromey.com>
6189 * configure: Rebuild.
6191 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
6193 * Makefile.in (depcomp): Add "..".
6194 (all_deps_files): New and use it.
6196 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6198 * configure.srv (aarch64*-*-linux*): Don't include xml.
6199 (i[34567]86-*-cygwin*): Likewise.
6200 (i[34567]86-*-linux*): Likewise.
6201 (i[34567]86-*-lynxos*): Likewise.
6202 (i[34567]86-*-mingw32ce*): Likewise.
6203 (i[34567]86-*-mingw*): Likewise.
6204 (i[34567]86-*-nto*): Likewise.
6205 (tic6x-*-uclinux): Likewise.
6206 (x86_64-*-linux*): Likewise.
6207 (x86_64-*-mingw*): Likewise.
6208 (x86_64-*-cygwin*): Likewise.
6210 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6212 * tdesc.c: Remove xml parameter.
6214 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6216 * server.c (get_features_xml): Remove cast.
6217 * tdesc.c (void target_desc::accept): Fill in function.
6218 (tdesc_get_features_xml): Remove old xml creation.
6219 (print_xml_feature::visit_pre): Add xml vistor.
6220 * tdesc.h (struct target_desc): Make xmltarget mutable.
6221 (tdesc_get_features_xml): Remove declaration.
6223 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6225 * tdesc.c (tdesc_architecture_name): Add new function.
6226 (tdesc_osabi_name): Likewise.
6227 (tdesc_get_features_xml): Use new functions.
6229 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6231 * tdesc.c (tdesc_create_flags): Remove.
6232 (tdesc_add_flag): Likewise.
6233 (tdesc_named_type): Likewise.
6234 (tdesc_create_union): Likewise.
6235 (tdesc_create_struct): Likewise.
6236 (tdesc_create_vector): Likewise.
6237 (tdesc_add_bitfield): Likewise.
6238 (tdesc_add_field): Likewise.
6239 (tdesc_set_struct_size): Likewise.
6241 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6243 * tdesc.c (~target_desc): Remove implictly deleted items.
6244 (init_target_desc): Iterate all features.
6245 (tdesc_get_features_xml): Use vector.
6246 (tdesc_create_feature): Create feature.
6247 * tdesc.h (tdesc_feature) Remove
6248 (target_desc): Add features.
6250 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6252 * Makefile.in: Add common/tdesc.c
6253 * tdesc.c (init_target_desc): init all reg_defs from register
6255 (tdesc_create_reg): Create tdesc_reg.
6256 * tdesc.h (tdesc_feature): Add register vector.
6258 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6260 * tdesc.h (struct target_desc) <features>: Change type to
6261 std::vector<std::string>.
6262 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6264 (tdesc_get_features_xml): Likewise.
6265 (tdesc_create_feature): Likewise.
6267 2018-03-26 Alan Hayward <alan.hayward@arm.com>
6269 * regcache.c (find_register_by_number): Return a ref.
6270 (find_regno): Use references.
6271 (register_size): Likewise.
6272 (register_data): Likewise.
6273 * tdesc.c (target_desc::~target_desc): Remove free calls.
6274 (target_desc::operator==): Use std::vector compare.
6275 (init_target_desc): Use reference.
6276 (tdesc_create_reg): Use reg constructors.
6277 * tdesc.h (struct target_desc): Replace pointer with object.
6279 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6281 * regcache.c (find_register_by_number): Make static.
6282 (find_regno): Use find_register_by_number
6283 * regcache.h (struct reg): Remove declaration.
6285 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6287 * tdesc.c (target_desc::~target_desc): Move to here.
6288 (target_desc::operator==): Likewise.
6289 * tdesc.h (target_desc::~target_desc): Move from here.
6290 (target_desc::operator==): Likewise.
6292 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6294 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6296 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6298 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6300 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6301 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6302 and init_registers_s390_gs_linux64.
6304 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6306 * linux-s390-low.c (s390_fill_gs): Remove function.
6307 (s390_fill_gsbc): Remove function.
6308 (s390_regsets): Set fill functions for the guarded storage regsets
6311 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6313 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6314 the word size. Add comment.
6315 (s390_get_wordsize): New function.
6316 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6317 pswm with it. Instead, use s390_get_wordsize to determine the
6318 word size first and derive the correct tdesc from that directly.
6320 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6322 * Makefile.in: Include silent-rules.mk.
6323 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6324 (COMPILE): Add ECHO_CXX.
6325 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6326 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6327 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6328 (version-generated.c): Add ECHO_GEN.
6329 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6330 (IPAGENT_COMPILE): Add ECHO_CXX.
6331 (%-generated.c): Add ECHO_REGDAT.
6333 2018-03-14 Tom Tromey <tom@tromey.com>
6336 * ax.c (ax_printf): Special case for NULL.
6338 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6340 * linux-low.c (linux_qxfer_libraries_svr4): Use
6341 xml_escape_text_append.
6343 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6345 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6347 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6349 * server.c (handle_general_set): Remove unnecessary xstrdup.
6351 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6353 * server.c (parse_debug_format_options): Adjust to
6354 delim_string_to_char_ptr_vec changes.
6355 * thread-db.c (thread_db_load_search): Adjust to
6356 dirnames_to_char_ptr_vec changes.
6358 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6360 * target.h (target_enable_btrace, target_disable_btrace)
6361 (target_read_btrace, target_read_btrace_conf): Turn macro into
6362 inline function. Throw error if target method is not defined.
6363 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6364 check for btrace target method. Be prepared to handle exceptions
6365 from btrace target methods.
6367 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6369 * server.c (captured_main): Change order of error message printed
6370 when the current working directory cannot be found.
6372 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6374 * server.c: Include "filenames.h" and "pathstuff.h".
6375 (program_name): Delete variable.
6376 (program_path): New anonymous class.
6377 (get_exec_wrapper): Use "program_path" instead of
6379 (handle_v_run): Likewise.
6380 (captured_main): Likewise.
6381 (process_serial_event): Likewise.
6383 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6385 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6386 (OBJS): Add "pathstuff.o".
6387 * server.c (current_directory): New global variable.
6388 (captured_main): Initialize "current_directory".
6390 2018-02-26 Alan Hayward <alan.hayward@arm.com>
6392 * tdesc.c: Use common/tdesc.h.
6393 * tdesc.h: Likewise.
6395 2018-02-20 Alan Hayward <alan.hayward@arm.com>
6396 Simon Marchi <simon.marchi@ericsson.com>
6398 * Makefile.in: Switch order of make rules.
6400 2018-02-19 Alan Hayward <alan.hayward@arm.com>
6402 * Makefile.in: Add common directory in build.
6403 * configure.ac: Add common reference.
6404 * configure: Regenerate.
6406 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6408 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6409 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6410 * spu-low.c (spu_target_ops): Likewise.
6411 * win32-low.c (win32_target_ops): Likewise.
6412 * server.c (supported_btrace_packets): Report packets unconditionally.
6413 * target.h (target_ops) <supports_btrace>: Remove.
6414 (target_supports_btrace): Remove.
6416 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6418 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6419 (handle_btrace_disable): Change return type to void. Use exceptions
6421 (handle_btrace_general_set): Catch exception and copy message to
6424 2018-02-08 Tom Tromey <tom@tromey.com>
6426 * linux-low.c (install_software_single_step_breakpoints): Use
6427 make_scoped_restore.
6428 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6429 (do_restore_current_thread_cleanup): Remove.
6430 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6433 2018-02-08 Tom Tromey <tom@tromey.com>
6435 * mem-break.c (set_raw_breakpoint_at): Use
6436 gdb::unique_xmalloc_ptr.
6438 2018-01-30 Pedro Alves <palves@redhat.com>
6441 * target.c (target_terminal::terminal_state): Rename to ...
6442 (target_terminal::m_terminal_state): ... this.
6444 2018-01-19 James Clarke <jrtc27@jrtc27.com>
6446 * linux-low.c (handle_extended_wait): Surround call to
6447 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6449 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6451 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6452 linux_ptrace_attach_fail_reason_string now returning an
6454 (linux_attach): Likewise.
6455 * thread-db.c (attach_thread): Likewise.
6457 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6460 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6461 checking for fs_base/gs_base fields in struct user_regs_struct.
6462 * configure: Regenerate.
6464 2018-01-16 Yao Qi <yao.qi@linaro.org>
6467 * linux-low.c (fetch_register): Call supply_register instead of
6470 2018-01-08 Yao Qi <yao.qi@linaro.org>
6471 Simon Marchi <simon.marchi@ericsson.com>
6473 * Makefile.in (OBS): Remove selftest.o.
6474 * configure.ac: Set srv_selftest_objs if $development is true.
6475 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6476 * configure: Re-generated.
6477 * server.c (captured_main): Wrap variable selftest_filter with
6480 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6482 * server.c (parse_debug_format_options): Return std::string.
6483 (handle_monitor_command, captured_main): Adjust.
6485 2018-01-05 Pedro Alves <palves@redhat.com>
6488 * server.c (captured_main): Pass quiet=false to
6489 save_original_signals_state.
6491 2018-01-01 Joel Brobecker <brobecker@adacore.com>
6493 * gdbreplay.c (gdbreplay_version): Update copyright year in
6495 * server.c (gdbserver_version): Likewise.
6497 2017-12-08 Tom Tromey <tom@tromey.com>
6499 * ax.c (ax_printf): Update.
6501 2017-12-07 Yao Qi <yao.qi@linaro.org>
6503 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6504 aarch64_linux_read_description.
6505 * linux-amd64-ipa.c (idx2mask): New array.
6506 (get_ipa_tdesc): Move idx2mask out.
6507 (initialize_low_tracepoint): Initialize target descriptions.
6508 * linux-i386-ipa.c (idx2mask): New array.
6509 (get_ipa_tdesc): Move idx2mask out.
6510 (initialize_low_tracepoint): Initialize target descriptions.
6512 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6514 * tdesc.c (struct tdesc_type): Change return type.
6515 (tdesc_add_flag): Change parameter type.
6516 (tdesc_add_bitfield): Likewise.
6517 (tdesc_add_field): Likewise.
6518 (tdesc_set_struct_size): Likewise.
6520 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6522 * regcache.c (registers_to_string): Remove unused variable.
6524 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6526 * inferiors.c (for_each_inferior_with_data): Remove.
6527 * inferiors.h (for_each_inferior_with_data): Remove.
6528 * server.c (handle_qxfer_threads_worker): Change parameter type.
6529 (handle_qxfer_threads_proper): Use for_each_thread.
6531 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6533 * inferiors.c (for_each_inferior): Remove.
6534 (clear_inferiors): Use for_each_thread.
6535 * inferiors.h (for_each_inferior): Remove.
6536 * linux-low.c (linux_wait_for_event_filtered): Use
6538 (linux_stabilize_threads): Likewise.
6539 * regcache.c (regcache_release): Likewise.
6540 * server.c (gdb_wants_all_threads_stopped): Likewise.
6541 (clear_pending_status_callback): Remove.
6542 (handle_status): Use for_each_thread.
6543 (captured_main): Likewise.
6544 * win32-low.c (child_init_thread_list): Likewise.
6545 (win32_clear_inferiors): Likewise.
6546 (fake_breakpoint_event): Likewise.
6548 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6550 * inferiors.h (find_inferior): Remove.
6551 * inferiors.c (find_inferior): Remove.
6553 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6555 * linux-low.c (resume_status_pending_p): Update comment.
6556 (need_step_over_p): Update comment.
6558 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6560 * linux-low.c (proceed_one_lwp): Return void, change parameter
6562 (unsuspend_and_proceed_one_lwp): Likewise.
6563 (proceed_all_lwps): Use for_each_thread.
6564 (unstop_all_lwps): Likewise.
6566 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6568 * linux-low.c (linux_resume_one_thread): Return void, take
6570 (linux_resume): Use for_each_thread.
6572 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6574 * linux-low.c (send_sigstop_callback): Return void, change
6575 parameter type. Rename to...
6576 (send_sigstop): ... this.
6577 (suspend_and_send_sigstop_callback): Return void, change parameter
6579 (suspend_and_send_sigstop): ... this.
6580 (stop_all_lwps): Use for_each_thread.
6582 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6584 * linux-low.c (lwp_running): Return bool, remove unused
6586 (linux_stabilize_threads): Use find_thread.
6588 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6590 * linux-low.c (select_singlestep_lwp_callback): Remove.
6591 (count_events_callback): Remove.
6592 (select_event_lwp_callback): Remove.
6593 (select_event_lwp): Use find_thread/for_each_thread.
6595 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6597 * linux-low.c (not_stopped_callback): Return bool, take filter
6599 (linux_wait_for_event_filtered): Use find_thread.
6600 (linux_wait_1): Likewise.
6602 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6604 * linux-low.c (same_lwp): Remove.
6605 (find_lwp_pid): Use find_thread.
6607 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6609 * linux-low.c (delete_lwp_callback): Remove.
6610 (linux_mourn): Use for_each_thread.
6612 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6614 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6615 args parameter, don't check for pid.
6616 (linux_detach): Use for_each_thread.
6618 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6620 * linux-low.c (struct counter): Remove.
6621 (second_thread_of_pid_p): Remove.
6622 (last_thread_of_process_p): Use find_thread.
6624 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6626 * inferiors.c (find_inferior_in_random): Remove.
6627 * inferiors.h (find_inferior_in_random): Remove.
6628 * linux-low.c (status_pending_p_callback): Return bool, accept
6629 parameter ptid directly.
6630 (linux_wait_for_event_filtered): Use find_thread_in_random.
6631 (linux_wait_1): Likewise.
6633 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6635 * inferiors.c (find_inferior_id): Remove.
6636 (find_thread_ptid): Move implemention from find_inferior_id to
6638 * inferiors.h (find_inferior_id): Remove.
6639 * server.c (handle_status): Use find_thread_ptid.
6640 (process_serial_event): Likewise.
6641 * thread-db.c (find_one_thread): Likewise.
6642 (thread_db_thread_handle): Likewise.
6643 * win32-low.c (thread_rec): Likewise.
6644 (child_delete_thread): Likewise.
6645 (win32_thread_alive): Likewise.
6646 (get_child_debug_event): Likewise.
6648 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6650 * linux-mips-low.c (update_watch_registers_callback): Return
6651 void, remove pid_p parameter, don't check for pid.
6652 (mips_insert_point, mips_remove_point): Use for_each_thread.
6654 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6656 * lynx.low (lynx_delete_thread_callback): Remove.
6657 (lynx_mourn): Use for_each_thread.
6659 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6661 * regcache.c (regcache_invalidate_one): Remove.
6662 (regcache_invalidate_pid): use for_each_thread.
6664 2017-11-26 Tom Tromey <tom@tromey.com>
6666 * linux-low.c (linux_create_inferior): Update.
6668 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6670 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6672 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6674 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6675 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6676 * linux-aarch64-tdesc-selftest.c: New file.
6677 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6679 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6681 * configure.srv: Add new file.
6682 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6683 * linux-aarch64-tdesc-selftest.c: New file.
6684 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6686 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6688 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6689 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6690 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6692 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6694 * configure.srv: Add new files.
6695 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6696 aarch64_linux_read_description.
6697 * linux-aarch64-low.c (aarch64_linux_read_description):
6698 Merge with aarch64_arch_setup.
6699 (aarch64_arch_setup): Call aarch64_linux_read_description.
6700 * linux-aarch64-tdesc.c: New file.
6701 * linux-aarch64-tdesc.h: New file.
6703 2017-11-24 Yao Qi <yao.qi@linaro.org>
6705 * configure.srv: Set $srv_regobj for tic6x-linux.
6706 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6707 (tic6x_read_description): Move some code to tic6x_arch_setup.
6708 (tic6x_tdesc_test): New function.
6709 (initialize_low_arch): Call selftests::register_test.
6711 2017-11-22 Yao Qi <yao.qi@linaro.org>
6713 * remote-utils.c (prepare_resume_reply): Use memcpy.
6715 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6717 * linux-low.c (kill_one_lwp_callback): Return void, take
6718 argument directly, don't filter on pid.
6719 (linux_kill): Use for_each_thread.
6721 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6723 * linux-low.c (need_step_over_p): Return bool, remove dummy
6725 (linux_resume, proceed_all_lwps): Use find_thread.
6727 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6729 * linux-low.c (resume_status_pending_p): Return bool, remove
6731 (linux_resume): Use find_thread.
6733 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6735 * linux-low.c (struct thread_resume_array): Remove.
6736 (linux_set_resume_request): Return void, take arguments
6738 (linux_resume): Use for_each_thread.
6740 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6742 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6743 return bool, remove data argument.
6744 (linux_stabilize_threads): Use find_thread.
6746 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6748 * linux-low.c (unsuspend_one_lwp): Remove.
6749 (unsuspend_all_lwps): Use for_each_thread, inline code from
6752 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6754 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6755 * linux-low.c (struct iterate_over_lwps_args): Remove.
6756 (iterate_over_lwps_filter): Remove.
6757 (iterate_over_lwps): Use find_thread.
6759 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6761 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6762 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6763 code from reset_lwp_ptrace_options_callback.
6765 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6767 * linux-arm-low.c (struct update_registers_data): Remove.
6768 (update_registers_callback): Return void, take arguments
6769 directly, don't check thread's pid.
6770 (arm_insert_point, arm_remove_point): Use for_each_thread.
6772 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6774 * win32-low.c (continue_one_thread): Return void, take argument
6776 (child_continue): Use for_each_thread.
6778 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6780 * win32-i386-low.c (update_debug_registers_callback): Rename
6782 (update_debug_registers): ... this, return void, remove pid_p arg.
6783 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6785 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6787 * inferiors.h (struct process_info): Add constructor, initialize
6789 <syscalls_to_catch>: Change type to std::vector<int>.
6790 * inferiors.c (add_process): Allocate process_info with new.
6791 (remove_process): Free process_info with delete.
6792 * linux-low.c (handle_extended_wait): Adjust.
6793 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6794 * server.c (handle_general_set): Adjust.
6796 2017-11-16 Pedro Alves <palves@redhat.com>
6798 * remote-utils.c (remote_close): Block SIGIO signals instead of
6799 uninstalling the SIGIO handler.
6801 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6803 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6805 2017-11-16 Yao Qi <yao.qi@linaro.org>
6807 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6808 (tic6x_store_gregset): Likewise.
6809 (tic6x_usrregs_info): Move it up.
6811 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6813 * Makefile.in: Update arch rules.
6814 * configure.srv: Explicitly mark arch/ files.
6816 2017-11-13 Andreas Schwab <schwab@suse.de>
6818 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6820 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6822 2017-11-06 Pedro Alves <palves@redhat.com>
6824 * config.in, configure: Regenerate.
6826 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6828 * target.c (struct thread_search): Remove.
6829 (thread_search_callback): Remove.
6830 (prepare_to_access_memory): Use for_each_thread instead of
6831 find_inferior. Inline code from thread_search_callback.
6833 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6835 * server.c (struct visit_actioned_threads_data): Remove.
6836 (visit_actioned_threads): Change prototype to take arguments
6838 (resume): Use find_thread instead of find_inferior.
6840 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6842 * server.c (queue_stop_reply_callback): Change prototype, return
6844 (find_status_pending_thread_callback): Remove.
6845 (handle_status): Replace find_inferior with find_thread and
6848 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6850 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6852 (aarch64_store_gregset): Likewise.
6853 (aarch64_fill_fpregset): Likewise.
6854 (aarch64_store_fpregset): Likewise.
6856 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6858 * gdbthread.h (find_thread, for_each_thread): New functions.
6859 * inferiors.c (thread_of_pid): Remove.
6860 (find_any_thread_of_pid): Use find_thread.
6861 * linux-low.c (num_lwps): Use for_each_thread.
6863 2017-10-17 Yao Qi <yao.qi@linaro.org>
6865 * Makefile.in: Remove one rule.
6866 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6868 2017-10-17 Yao Qi <yao.qi@linaro.org>
6870 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6871 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6873 2017-10-17 Yao Qi <yao.qi@linaro.org>
6875 * configure.srv: Rename arm.o with arch/arm.o.
6877 2017-10-17 Yao Qi <yao.qi@linaro.org>
6879 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6880 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6881 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6882 (arch-i386.o, arch-amd64.o): Remove rules.
6883 (arch/%.o): New rule.
6884 Update POSTCOMPILE and COMPILE.pre.
6885 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6886 * configure: Re-generated.
6887 * configure.srv: Replace arch-i386.o with arch/i386.o.
6888 Replace arch-amd64.o with arch/amd64.o.
6890 2017-10-16 Yao Qi <yao.qi@linaro.org>
6892 * configure: Regenerated.
6894 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6896 * inferiors.h: (struct inferior_list): Remove.
6897 (struct inferior_list_entry); Remove.
6898 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6899 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6900 get_first_inferior): Remove.
6901 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6902 find_inferior_id, find_inferior_in_random): Change signature.
6903 * inferiors.c (all_threads): Change type to
6904 std::list<thread_info *>.
6905 (get_thread): Remove macro.
6906 (find_inferior, find_inferior_id): Change signature, implement
6908 (find_inferior_in_random): Change signature, implement using
6909 find_thread_in_random.
6910 (for_each_inferior, for_each_inferior_with_data): Change
6911 signature, implement using for_each_thread.
6912 (add_inferior_to_list, remove_inferior): Remove.
6913 (add_thread, get_first_thread, thread_of_pid,
6914 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6915 (get_first_inferior, one_inferior_p, clear_inferior_list):
6917 (clear_inferiors, get_thread_process): Update.
6918 * gdbthread.h: Include <list>.
6919 (struct thread_info) <entry>: Remove field.
6921 (all_threads): Change type to std::list<thread_info *>.
6922 (get_first_inferior): Add doc.
6923 (find_thread, for_each_thread, find_thread_in_random): New
6925 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6926 * linux-arm-low.c (update_registers_callback): Update.
6927 * linux-low.c (second_thread_of_pid_p): Update.
6928 (kill_one_lwp_callback, linux_detach_lwp_callback,
6929 delete_lwp_callback, status_pending_p_callback, same_lwp,
6930 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6931 iterate_over_lwps, not_stopped_callback,
6932 resume_stopped_resumed_lwps, count_events_callback,
6933 select_singlestep_lwp_callback, select_event_lwp_callback,
6934 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6935 suspend_and_send_sigstop_callback, wait_for_sigstop,
6936 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6937 lwp_running, linux_set_resume_request, resume_status_pending_p,
6938 need_step_over_p, start_step_over, linux_resume_one_thread,
6939 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6940 reset_lwp_ptrace_options_callback): Update.
6941 * linux-mips-low.c (update_watch_registers_callback): Update.
6942 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6944 (free_register_cache_thread_one): Remove.
6945 (regcache_release): Update.
6946 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6947 handle_qxfer_threads_worker): Update.
6948 (handle_query): Update, use list iterator.
6949 (visit_actioned_threads, handle_pending_status,
6950 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6951 clear_pending_status_callback, set_pending_status_callback,
6952 find_status_pending_thread_callback, handle_status,
6953 process_serial_event): Update.
6954 * target.c (thread_search_callback): Update.
6955 * thread-db.c (thread_db_get_tls_address): Update.
6956 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6958 * win32-i386-low.c (update_debug_registers_callback): Update.
6959 * win32-low.c (delete_thread_info, child_delete_thread,
6960 continue_one_thread, suspend_one_thread,
6961 get_child_debug_event): Adjust.
6963 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6965 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6966 * inferiors.h: Include <list>.
6967 (struct process_info) <entry>: Remove field.
6969 (pid_of): Change macro to function.
6970 (ptid_of, lwpid_of): Remove macro.
6971 (all_processes): Change type to std::list<process_info *>.
6972 (ALL_PROCESSES): Remove macro.
6973 (for_each_process, find_process): New function.
6974 * inferiors.c (all_processes): Change type to
6975 std::list<process_info *>.
6976 (find_thread_process): Adjust.
6977 (add_process): Likewise.
6978 (remove_process): Likewise.
6979 (find_process_pid): Likewise.
6980 (get_first_process): Likewise.
6981 (started_inferior_callback): Remove.
6982 (have_started_inferiors_p): Adjust.
6983 (attached_inferior_callback): Remove.
6984 (have_attached_inferiors_p): Adjust.
6985 * linux-low.c (check_zombie_leaders): Likewise.
6986 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6987 (x86_linux_update_xmltarget): Adjust.
6988 * server.c (handle_query): Likewise.
6989 (gdb_reattached_process): Remove.
6990 (handle_status): Adjust.
6991 (kill_inferior_callback): Likewise.
6992 (detach_or_kill_inferior): Remove.
6993 (print_started_pid): Likewise.
6994 (print_attached_pid): Likewise.
6995 (detach_or_kill_for_exit): Update.
6996 (process_serial_event): Likewise.
6997 * linux-arm-low.c (arm_new_fork): Likewise.
6999 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7001 * dll.h: Include <list>.
7002 (struct dll_info): Add constructor.
7003 <entry>: Remove field.
7004 (all_dlls): Change type to std::list<dll_info>.
7005 * dll.c: Include <algorithm>.
7006 (get_dll): Remove macro.
7007 (all_dlls): Change type to std::list<dll_info *>.
7008 (free_one_dll): Remove.
7009 (match_dll): Likewise.
7010 (loaded_dll): Adjust.
7011 (unloaded_dll): Adjust to all_dlls type change, use
7012 std::find_if. Inline code from match_dll.
7013 (clear_dlls): Adjust to all_dlls type change.
7014 * server.c (emit_dll_description): Remove.
7015 (handle_qxfer_libraries): Adjust to all_dlls type change,
7016 integrate emit_dll_description's functionality.
7018 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7020 * linux-low.h (struct linux_target_ops) <delete_process>: New
7022 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
7023 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
7024 (struct linux_target_ops): Add delete_process callback.
7025 * linux-arm-low.c (arm_delete_process): New.
7026 (struct linux_target_ops): Add delete_process callback.
7027 * linux-bfin-low.c (struct linux_target_ops): Likewise.
7028 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
7029 * linux-m32r-low.c (struct linux_target_ops): Likewise.
7030 * linux-mips-low.c (mips_linux_delete_process): New.
7031 (struct linux_target_ops): Add delete_process callback.
7032 * linux-ppc-low.c (struct linux_target_ops): Likewise.
7033 * linux-s390-low.c (struct linux_target_ops): Likewise.
7034 * linux-sh-low.c (struct linux_target_ops): Likewise.
7035 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
7036 * linux-tile-low.c (struct linux_target_ops): Likewise.
7037 * linux-x86-low.c (x86_linux_delete_process): New.
7038 (struct linux_target_ops): Add delete_process callback.
7039 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
7041 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7043 * linux-aarch64-low.c (the_low_target): Add thread delete
7045 * linux-arm-low.c (arm_delete_thread): New function.
7046 (the_low_target): Add thread delete callback.
7047 * linux-bfin-low.c (the_low_target): Likewise.
7048 * linux-crisv32-low.c (the_low_target): Likewise.
7049 * linux-low.c (delete_lwp): Invoke delete_thread callback if
7051 * linux-low.h (struct linux_target_ops) <delete_thread>: New
7053 * linux-m32r-low.c (the_low_target): Add thread delete callback.
7054 * linux-mips-low.c (mips_linux_delete_thread): New function.
7055 (the_low_target): Add thread delete callback.
7056 * linux-ppc-low.c (the_low_target): Likewise.
7057 * linux-s390-low.c (the_low_target): Likewise.
7058 * linux-sh-low.c (the_low_target): Likewise.
7059 * linux-tic6x-low.c (the_low_target): Likewise.
7060 * linux-tile-low.c (the_low_target): Likewise.
7061 * linux-x86-low.c (the_low_target): Likewise.
7062 * linux-xtensa-low.c (the_low_target): Likewise.
7064 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
7066 * win32-low.c: Include "common-inferior.h".
7068 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7070 * inferiors.c (set_inferior_cwd): New function.
7071 * server.c (handle_general_set): Handle QSetWorkingDir packet.
7072 (handle_query): Inform that QSetWorkingDir is supported.
7073 * win32-low.c (create_process): Pass the inferior's cwd to
7076 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7078 * inferiors.c (current_inferior_cwd): New global variable.
7079 (get_inferior_cwd): New function.
7080 * inferiors.h (struct process_info) <cwd>: New field.
7082 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7084 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
7085 (OBS): Add gdb_tilde_expand.o.
7087 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
7089 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
7090 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
7092 2017-09-29 Pedro Alves <palves@redhat.com>
7094 * ax.c (gdb_parse_agent_expr): Constify.
7095 * ax.h (gdb_parse_agent_expr): Constify.
7096 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7098 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
7099 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
7100 * remote-utils.h (read_ptid): Constify.
7101 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
7102 (process_point_options, process_serial_event): Constify.
7103 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
7104 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
7105 (cmd_qtbuffer): Constify.
7107 2017-09-29 Pedro Alves <palves@redhat.com>
7109 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
7112 2017-09-29 Pedro Alves <palves@redhat.com>
7114 * linux-low.c (handle_extended_wait): Pass parent thread instead
7115 of process to thread_db_notice_clone.
7116 * linux-low.h (thread_db_notice_clone): Replace parent process
7117 parameter with parent thread parameter.
7118 * thread-db.c (find_one_thread): Add comment.
7119 (thread_db_notice_clone): Replace parent process parameter with
7120 parent thread parameter. Temporarily switch to the parent thread.
7122 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
7124 * gdbthread.h: Include "common-gdbthread.h".
7125 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
7126 "if" when validating the ptid.
7127 * remote-utils.c: Include "gdbthread.h".
7128 (prepare_resume_reply): Use "switch_to_thread".
7129 * target.c (done_accessing_memory): Likewise.
7131 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7133 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
7134 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
7135 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
7136 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
7137 s390x-gs-linux64-ipa.o to ipa_obj.
7138 * linux-s390-low.c (HWCAP_S390_GS): New define.
7139 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
7141 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
7142 (s390_arch_setup): Check for guarded-storage support and choose
7144 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
7145 init_registers_s390x_gs_linux64.
7146 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
7148 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
7149 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
7151 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
7153 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
7155 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7157 * linux-low.h (struct lwp_info): Add new field, thread_handle.
7158 (thread_db_thread_handle): Declare.
7159 * linux-low.c (linux_target_ops): Initialize thread_handle.
7160 * server.c (handle_qxfer_threads_worker): Add support for
7162 * target.h (struct target_ops): Add new function pointer,
7164 (target_thread_handle): Define.
7165 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
7167 (thread_db_thread_handle): New function.
7169 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7171 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
7172 * linux-low.h (thread_db_notice_clone): Declare.
7173 * thread-db.c (thread_db_notice_clone): New function.
7175 2017-09-21 Pedro Alves <palves@redhat.com>
7177 * server.c (gdb_read_memory, handle_status, process_serial_event)
7178 (handle_serial_event, handle_target_event): Adjust to
7179 set_desired_thread prototype change.
7180 * target.c (set_desired_thread): Remove 'use_general' parameter
7182 * target.h (set_desired_thread): Remove 'use_general' parameter.
7184 2017-09-20 Tom Tromey <tom@tromey.com>
7186 * target.c (target_terminal::terminal_state): Define.
7187 (target_terminal::init): Rename from target_terminal_init.
7188 (target_terminal::inferior): Rename from
7189 target_terminal_inferior.
7190 (target_terminal::ours): Rename from target_terminal_ours.
7191 (target_terminal::ours_for_output, target_terminal::info): New.
7193 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7195 * server.c (accumulate_file_name_length): Remove.
7196 (emit_dll_description): Adjust to std::string change.
7197 (handle_qxfer_libraries): Use std::string to hold document.
7199 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7201 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
7202 return type of xml_escape_text.
7203 * server.c (emit_dll_description): Likewise.
7205 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7207 * server.c (captured_main): Accept argument for --selftest.
7208 Update run_tests call.
7209 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
7210 when registering selftests.
7212 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
7214 * regcache.c (get_thread_regcache): Update code to use "std::vector"
7215 instead of "VEC" for "target_desc.reg_defs".
7216 (regcache_cpy): Likewise.
7217 (registers_to_string): Likewise.
7218 (registers_from_string): Likewise.
7219 (find_regno): Likewise.
7220 (supply_regblock): Likewise.
7221 (regcache_raw_read_unsigned): Likewise.
7222 * tdesc.c (init_target_desc): Likewise.
7223 (tdesc_create_reg): Likewise.
7224 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
7225 (struct target_desc) <reg_defs>: Convert to "std::vector".
7226 (target_desc): Do not initialize "reg_defs".
7227 (~target_desc): Update code to use "std::vector" instead of "VEC"
7228 for "target_desc.reg_defs".
7229 (operator==): Likewise.
7231 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7233 * inferiors.h (thread_to_gdb_id): Remove.
7234 * inferiors.c (thread_to_gdb_id): Remove.
7235 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
7236 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
7237 lynx_store_registers, lynx_read_memory, lynx_write_memory):
7239 * nto-low.c (nto_fetch_registers, nto_store_registers,
7240 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
7242 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7244 * inferiors.h (gdb_id_to_thread_id): Remove.
7245 * inferiors.c (gdb_id_to_thread_id): Remove.
7246 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
7247 removal. Move pid declaration closer to where it's used.
7249 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7251 * server.c (handle_detach): New function.
7252 (process_serial_event): Move code out, call handle_detach.
7254 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7256 * server.c (require_running): Rename to ...
7257 (require_running_or_return): ... this ...
7258 (require_running_or_break): ... and this.
7259 (handle_query, process_serial_event): Adjust.
7261 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7263 * linux-low.c (linux_set_resume_request): Remove unused
7266 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7268 * server.c (first_thread_of): Remove.
7269 (process_serial_event): Replace usage of first_thread_of with
7270 find_any_thread_of_pid.
7271 * tracepoint.c (same_process_p): Remove.
7272 (gdb_agent_about_to_close): Replace usage of same_process_p with
7273 find_any_thread_of_pid.
7274 * linux-x86-low.c (same_process_callback): Remove.
7275 (x86_arch_setup_process_callback): Replace usage of
7276 same_process_callback with find_any_thread_of_pid.
7277 * thread-db.c (any_thread_of): Remove.
7278 (switch_to_process): Replace usage of any_thread_of with
7279 find_any_thread_of_pid.
7280 * inferiors.c (thread_pid_matches_callback): Remove.
7281 (find_thread_process): Adjust to use find_any_thread_of_pid.
7283 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7285 * regcache.c (get_thread_regcache): Guard calls to "memset"
7288 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7290 * linux-low.c (handle_extended_wait): Use
7291 "allocate_target_description" instead of "XNEW".
7292 * linux-x86-low.c (initialize_low_arch): Likewise.
7294 2017-09-05 Yao Qi <yao.qi@linaro.org>
7296 * configure.srv (srv_i386_regobj): Remove.
7297 (srv_amd64_regobj): Remove.
7298 (srv_regobj): Set it to "" for x86 non-linux targets.
7299 * linux-x86-tdesc.c (i386_linux_read_description):
7300 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7301 (init_registers_i386): Remove the declaration.
7302 (tdesc_i386): Remove the declaration.
7303 (lynx_i386_arch_setup): Call i386_create_target_description.
7304 * nto-x86-low.c: Likewise.
7305 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7306 [!__x86_64__]: include arch/i386.h.
7307 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7309 2017-09-05 Yao Qi <yao.qi@linaro.org>
7311 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7312 i386/amd64-XXX-linux from it.
7314 2017-09-05 Yao Qi <yao.qi@linaro.org>
7316 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7318 (ipa_amd64_linux_regobj): Remove.
7319 (ipa_x32_linux_regobj): Remove.
7321 2017-09-05 Yao Qi <yao.qi@linaro.org>
7323 * Makefile.in (arch-amd64.o): New rule.
7324 * configure.srv: Append arch-amd64.o.
7325 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7326 (get_ipa_tdesc): Call amd64_linux_read_description.
7327 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7328 and init_registers_amd64_XXX.
7329 * linux-x86-low.c (x86_linux_read_description): Call
7330 amd64_linux_read_description.
7331 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7332 (initialize_low_arch): Don't call init_registers_x32_XXX and
7333 init_registers_amd64_XXX.
7334 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7335 and tdesc_amd64_XXX.
7336 [__x86_64__] (amd64_tdesc_test): New function.
7337 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7338 and init_registers_amd64_XXX.
7339 * linux-x86-tdesc.c: Include arch/amd64.h.
7340 (xcr0_to_tdesc_idx): New function.
7341 (i386_linux_read_description): New function.
7342 (amd64_get_ipa_tdesc_idx): New function.
7343 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7344 (amd64_get_ipa_tdesc): Declare.
7346 2017-09-05 Yao Qi <yao.qi@linaro.org>
7348 * configure.srv (srv_i386_linux_xmlfiles): Remove
7349 i386/i386-XXX-linux.xml from it.
7351 2017-09-05 Yao Qi <yao.qi@linaro.org>
7353 * configure.srv: Set srv_i386_linux_regobj empty if $development
7355 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7356 initialize_low_tdesc.
7357 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7358 with #if initialize_low_tdesc.
7359 * linux-x86-tdesc-selftest.c: New file.
7360 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7362 2017-09-05 Yao Qi <yao.qi@linaro.org>
7364 * Makefile.in (arch-i386.o): New rule.
7365 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7366 (x86_64-*-linux*): Likewise.
7367 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7368 include arch/i386.h.
7369 (i386_linux_read_description): Remove code and call
7370 i386_create_target_description.
7371 * tdesc.c (allocate_target_description): New function.
7372 * tdesc.h (set_tdesc_architecture): Remove declaration.
7373 (set_tdesc_osabi): Likewise.
7375 2017-09-05 Yao Qi <yao.qi@linaro.org>
7377 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7378 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7379 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7381 * server.c (get_features_xml): Call tdesc_get_features_xml.
7382 * tdesc.c (set_tdesc_architecture): New function.
7383 (set_tdesc_osabi): New function.
7384 (tdesc_get_features_xml): New function.
7385 (tdesc_create_feature): Add an argument.
7386 * tdesc.h (struct target_desc) <features>: New field.
7387 <arch, osabi>: New field.
7388 (~target_desc): xfree features, arch, and osabi.
7389 (target_desc::oerator==): Don't compare .xmltarget.
7390 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7391 (set_tdesc_osabi): Likewise.
7392 (tdesc_get_features_xml): Likewise.
7394 2017-09-05 Yao Qi <yao.qi@linaro.org>
7396 * linux-x86-tdesc.c: Include selftest.h.
7397 (i386_tdesc_test): New function.
7398 (initialize_low_tdesc): Call selftests::register_test.
7399 * tdesc.h: Include regdef.h.
7400 (target_desc): Override operator == and !=.
7402 2017-09-05 Yao Qi <yao.qi@linaro.org>
7404 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7405 (ipa_obj): Likewise.
7406 * linux-i386-ipa.c: Include common/x86-xstate.h
7407 (get_ipa_tdesc): Call i386_linux_read_description.
7408 (initialize_low_tracepoint): Don't call init_registers_XXX
7409 functions, call initialize_low_tdesc instead.
7410 * linux-x86-low.c (x86_linux_read_description): Call
7411 i386_linux_read_description.
7412 (initialize_low_arch): Don't call init_registers_i386_XXX
7413 functions, call initialize_low_tdesc.
7414 * linux-x86-tdesc.c: New file.
7415 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7416 (i386_get_ipa_tdesc_idx): Declare.
7417 (i386_get_ipa_tdesc): Declare.
7418 (initialize_low_tdesc): Declare.
7420 2017-09-05 Yao Qi <yao.qi@linaro.org>
7422 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7425 2017-09-05 Yao Qi <yao.qi@linaro.org>
7427 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7428 * regcache.c (get_thread_regcache): Use VEC_length.
7429 (init_register_cache): Likewise.
7430 (regcache_cpy): Likewise.
7431 (registers_to_string): Iterate reg_defs via VEC_iterate.
7432 (find_regno): Likewise.
7433 (find_register_by_number): Use VEC_index.
7434 (register_size): Call find_register_by_number.
7435 (register_data): Call find_register_by_number.
7436 (supply_regblock): Use VEC_length.
7437 (regcache_raw_read_unsigned): Likewise.
7438 * tdesc.c (init_target_desc): Iterate reg_defs via
7440 (default_description): Update initializer.
7441 (copy_target_description): Don't update field num_registers.
7442 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7443 <num_registers>: Remove.
7445 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7447 * Makefile.in (.SECONDARY): Define target.
7449 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7451 * linux-low.c (linux_wait_1): Adjust.
7452 * server.c (queue_stop_reply_callback): Adjust.
7454 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7456 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7457 QEnvironmentUnset and QEnvironmentReset packets.
7458 (handle_query): Inform remote that QEnvironmentHexEncoded,
7459 QEnvironmentUnset and QEnvironmentReset are supported.
7461 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7463 * inferiors.h (inferior_target_data): Rename to ...
7464 (thread_target_data): ... this.
7465 (inferior_regcache_data): Rename to ...
7466 (thread_regcache_data): ... this.
7467 (set_inferior_regcache_data): Rename to ...
7468 (set_thread_regcache_data): ... this.
7469 * inferiors.c (inferior_target_data): Rename to ...
7470 (thread_target_data): ... this.
7471 (inferior_regcache_data): Rename to ...
7472 (thread_regcache_data): ... this.
7473 (set_inferior_regcache_data): Rename to ...
7474 (set_thread_regcache_data): ... this.
7475 (free_one_thread): Update.
7476 * linux-low.h (get_thread_lwp): Update.
7477 * regcache.c (get_thread_regcache): Update.
7478 (regcache_invalidate_thread): Update.
7479 (free_register_cache_thread): Update.
7480 * win32-i386-low.c (update_debug_registers_callback): Update.
7481 (win32_get_current_dr): Update.
7482 * win32-low.c (thread_rec): Update.
7483 (delete_thread_info): Update.
7484 (continue_one_thread): Update.
7485 (suspend_one_thread): Update.
7487 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7489 * inferiors.c (set_inferior_target_data): Remove.
7490 * inferiors.h (set_inferior_target_data): Remove.
7492 2017-08-18 Yao Qi <yao.qi@linaro.org>
7494 * Makefile.in (OBS): Add selftest.o.
7495 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7496 * configure, config.in: Re-generated.
7497 * server.c: Include common/sefltest.h.
7498 (captured_main): Handle option --selftest.
7500 2017-08-09 Yao Qi <yao.qi@linaro.org>
7502 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7503 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7504 i386-avx-mpx.o and i386-mmx.o.
7505 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7506 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7507 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7508 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7509 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7510 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7511 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7512 i386/amd64-avx-mpx.xml.
7514 2017-08-09 Yao Qi <yao.qi@linaro.org>
7516 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7517 and x32-avx-avx512.o.
7518 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7519 i386/x32-avx-avx512.xml.
7521 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7523 * tracepoint.h (enum class fast_tpoint_collect_result): New
7525 (fast_tracepoint_collecting): Change return type to
7526 fast_tpoint_collect_result.
7527 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7528 * linux-low.h: Include tracepoint.h.
7529 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7530 fast_tpoint_collect_result.
7531 * linux-low.c (handle_tracepoints): Adjust.
7532 (linux_fast_tracepoint_collecting): Change return type to
7533 fast_tpoint_collect_result.
7534 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7535 linux_wait_1, stuck_in_jump_pad_callback,
7536 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7537 proceed_one_lwp): Adjust to type change.
7539 2017-07-10 Yao Qi <yao.qi@linaro.org>
7541 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7543 2017-06-29 Yao Qi <yao.qi@linaro.org>
7545 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7547 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7549 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7551 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7553 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7555 * linux-low.c (linux_create_inferior): Adjust code to access the
7556 environment information via 'gdb_environ' class.
7557 * lynx-low.c (lynx_create_inferior): Likewise.
7558 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7559 (get_environ): Return a pointer to 'our_environ'.
7560 (captured_main): Initialize 'our_environ'.
7561 * server.h (get_environ): Adjust prototype.
7562 * spu-low.c (spu_create_inferior): Adjust code to access the
7563 environment information via 'gdb_environ' class.
7565 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7567 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7568 usage of "register" keyword.
7570 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7572 * configure: Re-generate.
7574 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7576 * configure: Re-generate.
7578 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7580 * Makefile.in (COMPILE.pre): Add "-x c++".
7582 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7584 * fork-child.c: Conditionally include <signal.h>.
7586 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7588 * server.c (handle_general_set): Handle new packet
7589 "QStartupWithShell".
7590 (handle_query): Add "QStartupWithShell" to the list of supported
7592 (gdbserver_usage): Add help text explaining the
7593 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7595 (captured_main): Recognize and act upon the presence of the new
7598 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7599 Pedro Alves <palves@redhat.com>
7601 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7602 * configure: Regenerate.
7603 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7605 (i[34567]86-*-lynxos*): Likewise.
7606 (spu*-*-*): Likewise.
7607 * fork-child.c: New file.
7608 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7610 (linux_ptrace_fun): New function.
7611 (linux_create_inferior): Adjust function prototype to reflect
7612 change on "target.h". Adjust function code to use
7614 (linux_request_interrupt): Delete "signal_pid".
7615 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7616 (lynx_ptrace_fun): New function.
7617 (lynx_create_inferior): Adjust function prototype to reflect
7618 change on "target.h". Adjust function code to use
7620 * nto-low.c (nto_create_inferior): Adjust function prototype and
7621 code to reflect change on "target.h". Update comments.
7622 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7623 "common-terminal.h" and "environ.h".
7624 (terminal_fd): Moved to fork-child.c.
7625 (old_foreground_pgrp): Likewise.
7626 (restore_old_foreground_pgrp): Likewise.
7627 (last_status): Make it global.
7628 (last_ptid): Likewise.
7629 (our_environ): New variable.
7630 (startup_with_shell): Likewise.
7631 (program_name): Likewise.
7632 (program_argv): Rename to...
7633 (program_args): ...this.
7634 (wrapper_argv): New variable.
7635 (start_inferior): Delete function.
7636 (get_exec_wrapper): New function.
7637 (get_exec_file): Likewise.
7638 (get_environ): Likewise.
7639 (prefork_hook): Likewise.
7640 (post_fork_inferior): Likewise.
7641 (postfork_hook): Likewise.
7642 (postfork_child_hook): Likewise.
7643 (handle_v_run): Update code to deal with arguments coming from the
7644 remote host. Update calls from "start_inferior" to
7646 (captured_main): Likewise. Initialize environment variable. Call
7648 * server.h (post_fork_inferior): New prototype.
7649 (get_environ): Likewise.
7650 (last_status): Declare.
7651 (last_ptid): Likewise.
7652 (signal_pid): Likewise.
7653 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7654 (spu_ptrace_fun): New function.
7655 (spu_create_inferior): Adjust function prototype to reflect change
7656 on "target.h". Adjust function code to use "fork_inferior".
7657 * target.c (target_terminal_init): New function.
7658 (target_terminal_inferior): Likewise.
7659 (target_terminal_ours): Likewise.
7660 * target.h: Include <vector>.
7661 (struct target_ops) <create_inferior>: Update prototype.
7662 (create_inferior): Update macro.
7663 * utils.c (gdb_flush_out_err): New function.
7664 * win32-low.c (win32_create_inferior): Adjust function prototype
7665 and code to reflect change on "target.h".
7667 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7669 * inferiors.c (switch_to_thread): New function.
7671 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7673 * Makefile.in (SFILE): Add "common/job-control.c".
7674 (OBS): Add "job-control.o".
7676 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7678 * Makefile: Remove "@host_makefile_frag@".
7680 2017-05-05 Pedro Alves <palves@redhat.com>
7682 * configure: Regenerate.
7684 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7686 * configure: Regenerate.
7688 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7690 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7691 software_single_step change of return type to
7692 std::vector<CORE_ADDR>.
7693 * linux-low.c (install_software_single_step_breakpoints):
7695 * linux-low.h (install_software_single_step_breakpoints):
7698 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7700 * remote-utils.c: Include "gdb_termios.h" instead of
7702 * terminal.h: Delete file.
7704 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7706 * server.c: Include <vector>.
7707 <program_argv, wrapper_argv>: Convert to std::vector.
7708 (start_inferior): Rewrite function to use C++.
7709 (handle_v_run): Likewise. Update code that calculates the argv
7710 based on the vRun packet; use C++.
7711 (captured_main): Likewise.
7713 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7715 * server.c (handle_v_cont): Initialize thread_resume::thread
7718 2017-04-05 Pedro Alves <palves@redhat.com>
7720 * configure: Regenerate.
7722 2017-04-05 Pedro Alves <palves@redhat.com>
7724 * gdbreplay.c (sync_error): Constify.
7725 * linux-x86-low.c (push_opcode): Constify.
7727 2017-04-05 Pedro Alves <palves@redhat.com>
7729 * win32-low.c (get_child_debug_event)
7730 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7731 Report TARGET_WAITKIND_SPURIOUS instead.
7733 2017-04-05 Pedro Alves <palves@redhat.com>
7735 * remote-utils.c (remote_prepare, remote_open): Constify.
7736 * remote-utils.h (remote_prepare, remote_open): Constify.
7737 * server.c (captured_main): Constify 'port' handling.
7739 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7741 * Makefile.in (clean): Clear .deps.
7743 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7745 * .gitignore: Remove generated files, replace with wildcard.
7746 * (clean): Replace removal of generated files with wildcard.
7747 (version.c): Replace with...
7748 (version-generated.c): ...this.
7749 (xml-builtin.c): Replace with...
7750 (xml-builtin-generated.c): ...this.
7751 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7752 (%.c: *regformats*): Replace with...
7753 (%-generated.c: *regformats*): ...this.
7755 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7757 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7758 (xtensa_fill_gregset): Call collect_register_by_name for
7760 (xtensa_store_gregset): Call supply_register_by_name for
7763 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7765 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7766 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7767 (xtensa_store_gregset): Call supply_register for all registers in
7768 a0_regnum..a0_regnum + C0_NREGS range.
7770 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7772 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7773 (ax-ipa.o: ax.c): Remove.
7774 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7775 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7776 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7777 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7778 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7780 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7782 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7783 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7784 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7785 (errors-ipa.o: ../common/errors.c): Remove.
7786 (format-ipa.o: ../common/format.c): Remove.
7787 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7789 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7791 * Makefile.in (%-ipa.o: %.c): New rule.
7792 (tracepoint-ipa.o: tracepoint.c): Remove.
7793 (utils-ipa.o: utils.c): Remove.
7794 (remote-utils-ipa.o: remote-utils.c): Remove.
7795 (regcache-ipa.o: regcache.c): Remove.
7796 (i386-linux-ipa.o: i386-linux.c): Remove.
7797 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7798 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7799 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7800 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7801 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7802 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7803 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7804 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7805 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7806 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7807 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7808 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7809 (aarch64-ipa.o: aarch64.c): Remove.
7810 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7811 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7812 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7813 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7814 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7815 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7816 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7817 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7818 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7819 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7820 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7821 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7822 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7823 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7824 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7825 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7826 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7827 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7828 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7829 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7830 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7831 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7832 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7833 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7834 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7835 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7836 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7837 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7838 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7839 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7840 (tdesc-ipa.o: tdesc.c): Remove.
7841 (x32-linux-ipa.o: x32-linux.c): Remove.
7842 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7843 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7845 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7847 * Makefile.in (%.o: ../arch/%.c): New rule.
7848 (arm.o: ../arch/arm.c): Remove.
7849 (arm-linux.o: ../arch/arm-linux.c): Remove.
7850 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7851 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7853 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7855 * Makefile.in (%.o: ../nat/%.c): New rule.
7856 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7857 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7858 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7859 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7860 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7861 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7862 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7863 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7864 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7865 (linux-personality.o: ../nat/linux-personality.c): Remove.
7866 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7867 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7868 (x86-linux.o: ../nat/x86-linux.c): Remove.
7869 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7870 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7872 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7874 * Makefile.in (%.o: ../common/%.c): New rule.
7875 (signals.o: ../common/signals.c): Remove.
7876 (print-utils.o: ../common/print-utils.c): Remove.
7877 (rsp-low.o: ../common/rsp-low.c): Remove.
7878 (common-utils.o: ../common/common-utils.c): Remove.
7879 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7880 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7881 (vec.o: ../common/vec.c): Remove.
7882 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7883 (xml-utils.o: ../common/xml-utils.c): Remove.
7884 (ptid.o: ../common/ptid.c): Remove.
7885 (buffer.o: ../common/buffer.c): Remove.
7886 (format.o: ../common/format.c): Remove.
7887 (filestuff.o: ../common/filestuff.c): Remove.
7888 (agent.o: ../common/agent.c): Remove.
7889 (errors.o: ../common/errors.c): Remove.
7890 (environ.o: ../common/environ.c): Remove.
7891 (common-debug.o: ../common/common-debug.c): Remove.
7892 (cleanups.o: ../common/cleanups.c): Remove.
7893 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7894 (fileio.o: ../common/fileio.c): Remove.
7895 (common-regcache.o: ../common/common-regcache.c): Remove.
7896 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7897 (new-op.o: ../common/new-op.c): Remove.
7898 (btrace-common.o: ../common/btrace-common.c): Remove.
7900 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7902 * Makefile.in (%.o: ../target/%.c): New rule.
7903 (waitstatus.o: ../target/waitstatus.c): Remove.
7905 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7908 (%.c: ../regformats/%.dat,
7909 (%.c: ../regformats/arm/%.dat,
7910 (%.c: ../regformats/i386/%.dat,
7911 (%.c: ../regformats/rs6000/%.dat): New rules.
7912 (aarch64.c): Remove.
7913 (reg-arm.c): Remove.
7914 (arm-with-iwmmxt.c): Remove.
7915 (arm-with-vfpv2.c): Remove.
7916 (arm-with-vfpv3.c): Remove.
7917 (arm-with-neon.c): Remove.
7918 (reg-bfin.c): Remove.
7919 (reg-cris.c): Remove.
7920 (reg-crisv32.c): Remove.
7922 (i386-linux.c): Remove.
7923 (i386-avx.c): Remove.
7924 (i386-avx-linux.c): Remove.
7925 (i386-avx-avx512.c): Remove.
7926 (i386-avx-avx512-linux.c): Remove.
7927 (i386-mpx.c): Remove.
7928 (i386-mpx-linux.c): Remove.
7929 (i386-avx-mpx-avx512-pku.c): Remove.
7930 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7931 (i386-avx-mpx.c): Remove.
7932 (i386-avx-mpx-linux.c): Remove.
7933 (i386-mmx.c): Remove.
7934 (i386-mmx-linux.c): Remove.
7935 (reg-ia64.c): Remove.
7936 (reg-m32r.c): Remove.
7937 (reg-m68k.c): Remove.
7939 (mips-linux.c): Remove.
7940 (mips-dsp-linux.c): Remove.
7941 (mips64-linux.c): Remove.
7942 (mips64-dsp-linux.c): Remove.
7943 (nios2-linux.c): Remove.
7944 (powerpc-32.c): Remove.
7945 (powerpc-32l.c): Remove.
7946 (powerpc-altivec32l.c): Remove.
7947 (powerpc-cell32l.c): Remove.
7948 (powerpc-vsx32l.c): Remove.
7949 (powerpc-isa205-32l.c): Remove.
7950 (powerpc-isa205-altivec32l.c): Remove.
7951 (powerpc-isa205-vsx32l.c): Remove.
7952 (powerpc-e500l.c): Remove.
7953 (powerpc-64l.c): Remove.
7954 (powerpc-altivec64l.c): Remove.
7955 (powerpc-cell64l.c): Remove.
7956 (powerpc-vsx64l.c): Remove.
7957 (powerpc-isa205-64l.c): Remove.
7958 (powerpc-isa205-altivec64l.c): Remove.
7959 (powerpc-isa205-vsx64l.c): Remove.
7960 (s390-linux32.c): Remove.
7961 (s390-linux32v1.c): Remove.
7962 (s390-linux32v2.c): Remove.
7963 (s390-linux64.c): Remove.
7964 (s390-linux64v1.c): Remove.
7965 (s390-linux64v2.c): Remove.
7966 (s390-te-linux64.c): Remove.
7967 (s390-vx-linux64.c): Remove.
7968 (s390-tevx-linux64.c): Remove.
7969 (s390x-linux64.c): Remove.
7970 (s390x-linux64v1.c): Remove.
7971 (s390x-linux64v2.c): Remove.
7972 (s390x-te-linux64.c): Remove.
7973 (s390x-vx-linux64.c): Remove.
7974 (s390x-tevx-linux64.c): Remove.
7975 (tic6x-c64xp-linux.c): Remove.
7976 (tic6x-c64x-linux.c): Remove.
7977 (tic6x-c62x-linux.c): Remove.
7979 (reg-sparc64.c): Remove.
7980 (reg-spu.c): Remove.
7982 (amd64-linux.c): Remove.
7983 (amd64-avx.c): Remove.
7984 (amd64-avx-linux.c): Remove.
7985 (amd64-avx-avx512.c): Remove.
7986 (amd64-avx-avx512-linux.c): Remove.
7987 (amd64-mpx.c): Remove.
7988 (amd64-mpx-linux.c): Remove.
7989 (amd64-avx-mpx-avx512-pku.c): Remove.
7990 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7991 (amd64-avx-mpx.c): Remove.
7992 (amd64-avx-mpx-linux.c): Remove.
7994 (x32-linux.c): Remove.
7995 (x32-avx.c): Remove.
7996 (x32-avx-linux.c): Remove.
7997 (x32-avx-avx512.c): Remove.
7998 (x32-avx-avx512-linux.c): Remove.
7999 (reg-xtensa.c): Remove.
8000 (reg-tilegx.c): Remove.
8001 (reg-tilegx32.c): Remove.
8003 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
8005 * Makefile.in (SFILES): Add "common/environ.c".
8006 (OBJS): Add "common/environ.h".
8008 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8010 * configure.ac: Check if the fs_base and gs_base members of
8011 `struct user_regs_struct' exist.
8012 * config.in: Regenerated.
8013 * configure: Likewise.
8015 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
8017 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
8019 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
8020 (get_next_pcs_syscall_next_pc): Likewise.
8022 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
8024 * win32-i386-low.c: Fix incorrect reference to a couple source files.
8025 * nto-x86-low.c: Likewise.
8027 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
8029 * Makefile.in: Include disable-implicit-rules.mk.
8031 2016-11-23 Pedro Alves <palves@redhat.com>
8033 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
8034 (debug_vprintf): Use std::chrono::steady_clock instead of
8035 gettimeofday. Use '.' instead of ':'.
8036 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
8037 (get_timestamp): Use std::chrono::steady_clock instead of
8040 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8042 * Makefile.in: Fix whitespace formatting.
8044 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8046 * Makefile.in (SFILES, OBS): Flatten list and order
8049 2016-11-23 Pedro Alves <palves@redhat.com>
8051 * event-loop.c (handle_file_event): Use warning.
8052 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
8053 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
8056 2016-11-23 Pedro Alves <palves@redhat.com>
8058 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
8060 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
8061 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
8062 debug_printf and debug_flush for debug output.
8063 * server.c (handle_general_set): Likewise.
8064 * thread-db.c (try_thread_db_load): Use debug_printf for debug
8067 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8069 * Makefile.in (.c.o): Replace rule with ...
8070 (%.o: %.c): ... this one.
8072 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8074 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
8075 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
8077 * configure.ac: Remove checks for the make program.
8078 * configure: Re-generate.
8080 2016-10-28 Pedro Alves <palves@redhat.com>
8082 * Makefile.in (CXX_DIALECT): Get from configure.
8083 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
8084 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
8085 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
8086 * config.in: Regenerate.
8087 * configure: Regenerate.
8089 2016-10-27 Yao Qi <yao.qi@linaro.org>
8091 * linux-low.c (linux_supports_range_stepping): Return true if
8092 can_software_single_step return true.
8094 2016-10-27 Yao Qi <yao.qi@linaro.org>
8096 * inferiors.c (find_inferior_in_random): New function.
8097 * inferiors.h (find_inferior_in_random): Declare.
8098 * linux-low.c (linux_wait_for_event_filtered): Call
8099 find_inferior_in_random instead of find_inferior.
8101 2016-10-27 Yao Qi <yao.qi@linaro.org>
8103 * linux-low.c (linux_wait_1): If single-step breakpoints are
8104 inserted, remove them.
8106 2016-10-26 Pedro Alves <palves@redhat.com>
8108 * linux-low.c (handle_extended_wait): Link parent/child fork
8110 (linux_wait_1): Unlink them.
8111 (linux_set_resume_request): Ignore resume requests for
8112 already-resumed and unhandled fork child threads.
8113 * linux-low.h (struct lwp_info) <fork_relative>: New field.
8114 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
8116 (handle_v_requests) <vCont>: Don't call require_running.
8117 * server.h (in_queued_stop_replies): New declaration.
8119 2016-10-24 Yao Qi <yao.qi@linaro.org>
8122 * linux-aarch64-low.c (append_insns): Cast the return value to
8125 2016-10-10 Yao Qi <yao.qi@linaro.org>
8127 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
8129 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
8131 * target.c (target_supports_multi_process): New function, moved
8133 * target.h (target_supports_multi_process): ... here. Remove
8136 2016-10-05 Tom Tromey <tom@tromey.com>
8139 * tracepoint.c (handle_tracepoint_bkpts): Check
8140 ipa_error_tracepoint, not ipa_stopping_tracepoint.
8142 2016-10-05 Yao Qi <yao.qi@linaro.org>
8144 * configure.srv: Update the path of arm-*.xml files.
8146 2016-10-05 Terry Guo <terry.guo@arm.com>
8147 Yao Qi <yao.qi@linaro.org>
8149 * Makefile.in: Adjust the path of rules.
8150 * configure.srv: Update the path of xml files.
8151 * regformats/arm-with-iwmmxt.dat: Regenerated.
8152 * regformats/arm-with-neon.dat: Likewise.
8153 * regformats/arm-with-vfpv2.dat: Likewise.
8154 * regformats/arm-with-vfpv3.dat Likewise.
8156 2016-09-30 Yao Qi <yao.qi@linaro.org>
8159 * target.c (target_stop_and_wait): Don't call
8160 target_continue_no_signal, use resume_stop instead.
8162 2016-09-26 Yao Qi <yao.qi@linaro.org>
8164 * linux-low.c (linux_wait_1): Call debug_exit.
8166 2016-09-23 Pedro Alves <palves@redhat.com>
8168 * Makefile.in (SFILES): Add common/new-op.c.
8169 (OBS): Add common/new-op.o.
8170 (new-op.o): New rule.
8172 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
8174 * .gitinore: Ignore more files.
8176 2016-09-21 Yao Qi <yao.qi@linaro.org>
8178 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
8181 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
8183 * server.c (start_inferior): Call target_mourn_inferior instead of
8184 mourn_inferior; pass ptid_t argument to it.
8186 (handle_target_event): Likewise.
8187 * target.c (target_mourn_inferior): New function.
8188 * target.h (mourn_inferior): Delete macro.
8190 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
8192 * linux-low.c (lwp_is_stepping): New function.
8194 2016-09-06 Carl Love <cel@us.ibm.com>
8196 * server.c (start_inferior): Fixed comment, requested comment change
8197 didn't get updated correctly. Removed reference to ptrace () call as
8198 it is only true on Linux systems.
8200 2016-09-06 Carl Love <cel@us.ibm.com>
8202 * server.c (start_inferior): Do not call
8203 function target_post_create_inferior () if the
8204 inferior process has already exited.
8206 2016-09-05 Pedro Alves <palves@redhat.com>
8208 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
8209 (COMPILE.pre, CC_LD): Use CXX directly.
8210 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
8211 * acinclude.m4: Don't include build-with-cxx.m4.
8212 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
8213 * configure: Regenerate.
8215 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
8218 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
8219 call writing data to own_buf.
8221 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8223 * target.c (mywait): Call target_wait instead of
8225 (target_wait): New function.
8227 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8229 * server.c (start_inferior): New variable 'ptid'. Replace calls
8230 to the_target->resume by target_continue{,_no_signal}, depending
8232 * target.c (target_stop_and_wait): Call target_continue_no_signal
8233 instead of the_target->resume.
8234 (target_continue): New function.
8236 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8238 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
8240 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8243 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
8245 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
8246 * linux-arm-low.c (ps_get_thread_area): Likewise.
8247 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
8248 * linux-m68k-low.c (ps_get_thread_area): Likewise.
8249 * linux-mips-low.c (ps_get_thread_area): Likewise.
8250 * linux-nios2-low.c (ps_get_thread_area): Likewise.
8251 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
8252 * linux-x86-low.c (ps_get_thread_area): Likewise.
8253 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
8255 2016-08-19 Pedro Alves <palves@redhat.com>
8257 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
8259 2016-08-19 Pedro Alves <palves@redhat.com>
8261 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8262 comment. Use memcpy instead of casting through unsigned long.
8264 2016-08-19 Pedro Alves <palves@redhat.com>
8266 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8267 allocating around 0x80000000.
8269 2016-08-19 Pedro Alves <palves@redhat.com>
8272 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8273 (x32-avx512-linux-ipa.o): New rules.
8274 * configure.ac (x86_64-*-linux*): New x32 check.
8275 * configure.srv (ipa_x32_linux_regobj): New.
8276 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8277 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8279 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8281 * configure: Regenerate.
8283 2016-08-09 Pedro Alves <palves@redhat.com>
8286 * Makefile.in (OBS): Add signals-state-save-restore.o.
8287 (signals-state-save-restore.o): New rule.
8288 * config.in: Regenerate.
8289 * configure: Regenerate.
8290 * linux-low.c: Include "signals-state-save-restore.h".
8291 (linux_create_inferior): Call
8292 restore_original_signals_state.
8293 * server.c: Include "dispositions-save-restore.h".
8294 (captured_main): Call save_original_signals_state.
8296 2016-08-05 Pedro Alves <palves@redhat.com>
8298 * configure: Regenerate.
8300 2016-08-04 Yao Qi <yao.qi@linaro.org>
8302 * linux-low.c (regsets_fetch_inferior_registers): Check
8303 errno is ESRCH or not.
8305 2016-08-02 Yao Qi <yao.qi@linaro.org>
8307 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8308 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8309 (thread_db_load_search): Update.
8310 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8311 td_ta_set_event and td_ta_event_getmsg.
8313 2016-07-26 Pedro Alves <palves@redhat.com>
8316 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8317 of unsigned long for 64-bit registers and use uint32_t instead of
8318 unsigned int for 32-bit registers.
8320 2016-07-26 Pedro Alves <palves@redhat.com>
8322 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8325 2016-07-21 Tom Tromey <tom@tromey.com>
8327 * configure: Rebuild.
8329 2016-07-21 Yao Qi <yao.qi@linaro.org>
8331 * mem-break.c (find_gdb_breakpoint): Cast bp to
8332 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8334 2016-07-21 Yao Qi <yao.qi@linaro.org>
8336 * server.c (handle_v_requests): Support s and S actions
8337 if target_supports_software_single_step return true.
8339 2016-07-21 Yao Qi <yao.qi@linaro.org>
8341 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8342 is resume_step, call maybe_hw_step.
8343 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8345 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8347 (proceed_one_lwp): If resume request is resume_step, install
8348 reinsert breakpoints and call maybe_hw_step.
8350 2016-07-21 Yao Qi <yao.qi@linaro.org>
8352 * linux-low.c (proceed_one_lwp): Declare.
8353 (linux_resume_one_thread): Remove local variable 'step'.
8354 Lift code enqueue signal. Call proceed_one_lwp instead of
8355 linux_resume_one_lwp.
8357 2016-07-21 Yao Qi <yao.qi@linaro.org>
8359 * linux-low.c (linux_resume_one_thread): Call
8360 enqueue_pending_signal.
8362 2016-07-21 Yao Qi <yao.qi@linaro.org>
8364 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8365 * inferiors.c (do_restore_current_thread_cleanup): New function.
8366 (make_cleanup_restore_current_thread): Likewise.
8367 * linux-low.c (install_software_single_step_breakpoints): Call
8368 make_cleanup_restore_current_thread. Switch current_thread to
8371 2016-07-21 Yao Qi <yao.qi@linaro.org>
8373 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8374 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8375 (clone_one_breakpoint): Likewise.
8376 (delete_reinsert_breakpoints): Change parameter to thread.
8378 (has_reinsert_breakpoints): Likewise.
8379 (uninsert_reinsert_breakpoints): Likewise.
8380 (reinsert_reinsert_breakpoints): Likewise.
8381 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8382 (delete_reinsert_breakpoints): Likewise.
8383 (reinsert_reinsert_breakpoints): Likewise.
8384 (uninsert_reinsert_breakpoints): Likewise.
8385 (has_reinsert_breakpoints): Likewise.
8387 2016-07-21 Yao Qi <yao.qi@linaro.org>
8389 * inferiors.c (get_thread_process): Make parameter const.
8390 * inferiors.h (get_thread_process): Update declaration.
8391 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8392 Add new parameters child_thread and parent_thread. Callers
8394 * mem-break.h (clone_all_breakpoints): Update declaration.
8396 2016-07-21 Yao Qi <yao.qi@linaro.org>
8398 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8399 <command_list, handler>: Remove.
8400 (struct gdb_breakpoint): New.
8401 (struct other_breakpoint): New.
8402 (struct reinsert_breakpoint): New.
8403 (is_gdb_breakpoint): New function.
8404 (any_persistent_commands): Update command_list if
8405 is_gdb_breakpoint returns true.
8406 (set_breakpoint): Create breakpoints according to their types.
8407 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8408 (set_gdb_breakpoint_1): Likewise.
8409 (set_gdb_breakpoint): Likewise.
8410 (clear_breakpoint_conditions): Change parameter type to
8411 'struct gdb_breakpoint *'.
8412 (clear_breakpoint_commands): Likewise.
8413 (clear_breakpoint_conditions_and_commands): Likewise.
8414 (add_condition_to_breakpoint): Likewise.
8415 (add_breakpoint_condition): Likewise.
8416 (add_commands_to_breakpoint): Likewise.
8417 (check_breakpoints): Check other_breakpoint.
8418 (clone_one_breakpoint): Clone breakpopint according to its type.
8419 * mem-break.h (struct gdb_breakpoint): Declare.
8420 (set_gdb_breakpoint): Update declaration.
8421 (clear_breakpoint_conditions_and_commands): Likewise.
8422 (add_breakpoint_condition): Likewise.
8423 (add_breakpoint_commands): Likewise.
8424 * server.c (process_point_options): Change parameter type to
8425 'struct gdb_breakpoint *'.
8427 2016-07-21 Yao Qi <yao.qi@linaro.org>
8429 * mem-break.c (set_breakpoint_at): Rename it to ...
8430 (set_breakpoint_type_at): ... it.
8431 (set_breakpoint_at): Call set_breakpoint_type_at.
8432 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8433 * mem-break.h (set_breakpoint_at): Update comments.
8435 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8437 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8439 (nios2_store_gregset): Likewise.
8441 2016-07-01 Pedro Alves <palves@redhat.com>
8442 Antoine Tremblay <antoine.tremblay@ericsson.com>
8444 * linux-low.c: Change interface to take the target lwp_info
8445 pointer directly and return void. Handle detaching from a zombie
8447 (linux_detach_lwp_callback): New function.
8448 (linux_detach): Detach from the leader thread after detaching from
8451 2016-06-28 Yao Qi <yao.qi@linaro.org>
8453 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8454 for variable new_offset.
8455 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8456 (aarch64_ftrace_insn_reloc_cb): Likewise.
8457 (aarch64_ftrace_insn_reloc_tb): Likewise.
8458 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8459 PRIx64 instead of PRIx32.
8461 2016-06-28 Yao Qi <yao.qi@linaro.org>
8463 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8464 (the_low_target): Install arm_get_syscall_trapinfo.
8466 2016-06-28 Yao Qi <yao.qi@linaro.org>
8468 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8470 (the_low_target): Install aarch64_get_syscall_trapinfo.
8472 2016-06-28 Yao Qi <yao.qi@linaro.org>
8474 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8476 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8477 Remove parameter sysno.
8478 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8481 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8483 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8484 (s390_emit_ne_goto): Likewise.
8485 (s390_emit_lt_goto): Likewise.
8486 (s390_emit_le_goto): Likewise.
8487 (s390_emit_gt_goto): Likewise.
8488 (s390_emit_ge_goto): Likewise.
8489 (s390x_emit_eq_goto): Likewise.
8490 (s390x_emit_ne_goto): Likewise.
8491 (s390x_emit_lt_goto): Likewise.
8492 (s390x_emit_le_goto): Likewise.
8493 (s390x_emit_gt_goto): Likewise.
8494 (s390x_emit_ge_goto): Likewise.
8495 (s390_emit_ops_impl): Mark variable static.
8496 (s390x_emit_ops): Likewise.
8498 2016-06-17 Yao Qi <yao.qi@linaro.org>
8500 * linux-low.c (handle_extended_wait): Call
8501 uninsert_reinsert_breakpoints for the parent process. Remove
8502 reinsert breakpoints from the child process. Reinsert them to
8503 the parent process when vfork is done.
8504 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8505 (reinsert_reinsert_breakpoints): New function.
8506 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8507 (reinsert_reinsert_breakpoints): Declare.
8509 2016-06-17 Yao Qi <yao.qi@linaro.org>
8511 * linux-low.c (handle_extended_wait): If the parent is doing
8512 step-over, remove the reinsert breakpoints from the forked child.
8514 2016-06-17 Yao Qi <yao.qi@linaro.org>
8516 * linux-low.c (unsuspend_all_lwps): Declare.
8517 (linux_low_filter_event): If thread exited, call finish_step_over.
8518 If step-over is finished, unsuspend other threads.
8520 2016-06-17 Yao Qi <yao.qi@linaro.org>
8522 * linux-low.c (linux_resume_one_lwp_throw): Assert
8523 has_reinsert_breakpoints returns false.
8524 * mem-break.c (delete_disabled_breakpoints): Assert
8525 bp type isn't reinsert_breakpoint.
8527 2016-06-17 Yao Qi <yao.qi@linaro.org>
8529 * linux-low.c (maybe_hw_step): New function.
8530 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8531 (finish_step_over): Switch current_thread to lwp temporarily,
8532 and assert has_reinsert_breakpoints returns true.
8533 (proceed_one_lwp): Call maybe_hw_step.
8534 * mem-break.c (has_reinsert_breakpoints): New function.
8535 * mem-break.h (has_reinsert_breakpoints): Declare.
8537 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8539 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8541 2016-05-17 Yao Qi <yao.qi@linaro.org>
8543 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8544 instead of find_inferior.
8546 2016-05-05 Yao Qi <yao.qi@linaro.org>
8548 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8549 Initialize res to zero.
8551 2016-05-05 Yao Qi <yao.qi@linaro.org>
8553 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8556 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8558 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8559 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8560 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8562 2016-04-28 Par Olsson <par.olsson@windriver.com>
8563 Simon Marchi <simon.marchi@ericsson.com>
8565 * tracepoint.c (write_inferior_int8): New function.
8566 (cmd_qtenable_disable): Write enable flag using
8567 write_inferior_int8.
8569 2016-04-25 Yao Qi <yao.qi@linaro.org>
8571 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8572 (need_step_over_p): Return zero if the LWP has pending signals
8573 can be delivered on software single step target.
8575 2016-04-25 Yao Qi <yao.qi@linaro.org>
8577 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8578 return instead of error.
8580 2016-04-22 Yao Qi <yao.qi@linaro.org>
8582 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8585 2016-04-22 Yao Qi <yao.qi@linaro.org>
8587 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8588 signal when stepping over breakpoint with software single
8591 2016-04-21 Pedro Alves <palves@redhat.com>
8593 * linux-s390-low.c (s390_collect_ptrace_register)
8594 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8596 (s390_check_regset): Use void * instead of gdb_byte *.
8598 2016-04-20 Pedro Alves <palves@redhat.com>
8600 * configure: Renegerate.
8602 2016-04-20 Yao Qi <yao.qi@linaro.org>
8604 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8605 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8607 (arm_store_gregset): Likewise.
8609 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8611 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8612 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8613 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8614 (amd64-avx-mpx-linux.c): New rules.
8615 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8616 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8617 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8618 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8619 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8620 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8621 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8622 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8623 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8624 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8625 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8626 * linux-x86-low.c (x86_linux_read_description): Add case for
8627 X86_XSTATE_AVX_MPX_MASK.
8628 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8629 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8630 init_registers_i386_avx_mpx_linux.
8631 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8632 (initialize_low_tracepoint): Call
8633 init_registers_i386_avx_mpx_linux.
8634 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8635 (initialize_low_tracepoint): Call
8636 init_registers_amd64_avx_mpx_linux.
8637 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8638 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8639 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8642 2016-04-18 Pedro Alves <palves@redhat.com>
8644 * configure: Regenerate.
8646 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8648 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8649 (aarch64_emit_sub): Likewise.
8651 2016-04-12 Pedro Alves <palves@redhat.com>
8653 * utils.c (prepare_to_throw_exception): Delete.
8655 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8657 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8659 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8661 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8663 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8665 * linux-aarch64-ipa.c: Add <elf.h> include.
8666 * linux-ppc-ipa.c: Add <elf.h> include.
8667 * linux-s390-ipa.c: Add <elf.h> include.
8669 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8671 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8672 (get_raw_reg_ptr): Likewise.
8673 (get_trace_state_variable_value_ptr): Likewise.
8674 (set_trace_state_variable_value_ptr): Likewise.
8675 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8678 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8679 Marcin Kościelnicki <koriakin@0x04.net>
8682 * linux-ppc-low.c (emit_insns): New function.
8683 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8684 (ppc_emit_prologue): New function.
8685 (ppc_emit_epilogue): New function.
8686 (ppc_emit_add): New function.
8687 (ppc_emit_sub): New function.
8688 (ppc_emit_mul): New function.
8689 (ppc_emit_lsh): New function.
8690 (ppc_emit_rsh_signed): New function.
8691 (ppc_emit_rsh_unsigned): New function.
8692 (ppc_emit_ext): New function.
8693 (ppc_emit_zero_ext): New function.
8694 (ppc_emit_log_not): New function.
8695 (ppc_emit_bit_and): New function.
8696 (ppc_emit_bit_or): New function.
8697 (ppc_emit_bit_xor): New function.
8698 (ppc_emit_bit_not): New function.
8699 (ppc_emit_equal): New function.
8700 (ppc_emit_less_signed): New function.
8701 (ppc_emit_less_unsigned): New function.
8702 (ppc_emit_ref): New function.
8703 (ppc_emit_const): New function.
8704 (ppc_emit_reg): New function.
8705 (ppc_emit_pop): New function.
8706 (ppc_emit_stack_flush): New function.
8707 (ppc_emit_swap): New function.
8708 (ppc_emit_stack_adjust): New function.
8709 (ppc_emit_call): New function.
8710 (ppc_emit_int_call_1): New function.
8711 (ppc_emit_void_call_2): New function.
8712 (ppc_emit_if_goto): New function.
8713 (ppc_emit_goto): New function.
8714 (ppc_emit_eq_goto): New function.
8715 (ppc_emit_ne_goto): New function.
8716 (ppc_emit_lt_goto): New function.
8717 (ppc_emit_le_goto): New function.
8718 (ppc_emit_gt_goto): New function.
8719 (ppc_emit_ge_goto): New function.
8720 (ppc_write_goto_address): New function.
8721 (ppc_emit_ops_impl): New static variable.
8722 (ppc64v1_emit_prologue): New function.
8723 (ppc64v2_emit_prologue): New function.
8724 (ppc64_emit_epilogue): New function.
8725 (ppc64_emit_add): New function.
8726 (ppc64_emit_sub): New function.
8727 (ppc64_emit_mul): New function.
8728 (ppc64_emit_lsh): New function.
8729 (ppc64_emit_rsh_signed): New function.
8730 (ppc64_emit_rsh_unsigned): New function.
8731 (ppc64_emit_ext): New function.
8732 (ppc64_emit_zero_ext): New function.
8733 (ppc64_emit_log_not): New function.
8734 (ppc64_emit_bit_and): New function.
8735 (ppc64_emit_bit_or): New function.
8736 (ppc64_emit_bit_xor): New function.
8737 (ppc64_emit_bit_not): New function.
8738 (ppc64_emit_equal): New function.
8739 (ppc64_emit_less_signed): New function.
8740 (ppc64_emit_less_unsigned): New function.
8741 (ppc64_emit_ref): New function.
8742 (ppc64_emit_const): New function.
8743 (ppc64v1_emit_reg): New function.
8744 (ppc64v2_emit_reg): New function.
8745 (ppc64_emit_pop): New function.
8746 (ppc64_emit_stack_flush): New function.
8747 (ppc64_emit_swap): New function.
8748 (ppc64v1_emit_call): New function.
8749 (ppc64v2_emit_call): New function.
8750 (ppc64v1_emit_int_call_1): New function.
8751 (ppc64v2_emit_int_call_1): New function.
8752 (ppc64v1_emit_void_call_2): New function.
8753 (ppc64v2_emit_void_call_2): New function.
8754 (ppc64_emit_if_goto): New function.
8755 (ppc64_emit_eq_goto): New function.
8756 (ppc64_emit_ne_goto): New function.
8757 (ppc64_emit_lt_goto): New function.
8758 (ppc64_emit_le_goto): New function.
8759 (ppc64_emit_gt_goto): New function.
8760 (ppc64_emit_ge_goto): New function.
8761 (ppc64v1_emit_ops_impl): New static variable.
8762 (ppc64v2_emit_ops_impl): New static variable.
8763 (ppc_emit_ops): New function.
8764 (linux_low_target): Wire in ppc_emit_ops.
8766 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8767 Marcin Kościelnicki <koriakin@0x04.net>
8770 * Makefile.in: Add powerpc-*-ipa.o
8771 * configure.srv: Add ipa_obj for powerpc*-linux.
8772 * linux-ppc-ipa.c: New file.
8773 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8775 (PPC_FIELD): New macro.
8776 (PPC_SEXT): New macro.
8777 (PPC_OP6): New macro.
8778 (PPC_BO): New macro.
8779 (PPC_LI): New macro.
8780 (PPC_BD): New macro.
8781 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8782 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8783 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8784 (ppc_get_thread_area): New function.
8785 (is_elfv2_inferior): New function.
8786 (gen_ds_form): New function.
8787 (GEN_STD): New macro.
8788 (GEN_STDU): New macro.
8789 (GEN_LD): New macro.
8790 (GEN_LDU): New macro.
8791 (gen_d_form): New function.
8792 (GEN_ADDI): New macro.
8793 (GEN_ADDIS): New macro.
8794 (GEN_LI): New macro.
8795 (GEN_LIS): New macro.
8796 (GEN_ORI): New macro.
8797 (GEN_ORIS): New macro.
8798 (GEN_LWZ): New macro.
8799 (GEN_STW): New macro.
8800 (GEN_STWU): New macro.
8801 (gen_xfx_form): New function.
8802 (GEN_MFSPR): New macro.
8803 (GEN_MTSPR): New macro.
8804 (GEN_MFCR): New macro.
8805 (GEN_MTCR): New macro.
8806 (GEN_SYNC): New macro.
8807 (GEN_LWSYNC): New macro.
8808 (gen_x_form): New function.
8809 (GEN_OR): New macro.
8810 (GEN_MR): New macro.
8811 (GEN_LWARX): New macro.
8812 (GEN_STWCX): New macro.
8813 (GEN_CMPW): New macro.
8814 (gen_md_form): New function.
8815 (GEN_RLDICL): New macro.
8816 (GEN_RLDICR): New macro.
8817 (gen_i_form): New function.
8819 (GEN_BL): New macro.
8820 (gen_b_form): New function.
8821 (GEN_BNE): New macro.
8822 (GEN_LOAD): New macro.
8823 (GEN_STORE): New macro.
8824 (gen_limm): New function.
8825 (gen_atomic_xchg): New function.
8826 (gen_call): New function.
8827 (ppc_relocate_instruction): New function.
8828 (ppc_install_fast_tracepoint_jump_pad): New function.
8829 (ppc_get_min_fast_tracepoint_insn_len): New function.
8830 (ppc_get_ipa_tdesc_idx): New function.
8831 (the_low_target): Wire in the new functions.
8832 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8834 * linux-ppc-tdesc.h: New file.
8836 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8838 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8839 (alloc_jump_pad_buffer): New function.
8840 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8841 (alloc_jump_pad_buffer): New function.
8842 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8843 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8844 (alloc_jump_pad_buffer): New function.
8845 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8846 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8847 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8848 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8850 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8852 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8853 * linux-amd64-ipa.c: Likewise.
8854 * linux-i386-ipa.c: Likewise.
8855 * linux-s390-ipa.c: Likewise.
8856 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8857 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8858 set_trace_state_variable_value_ptr.
8859 (struct ipa_sym_addresses): Likewise.
8860 (symbol_list): Likewise.
8861 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8862 accessing gdb_collect directly.
8863 (gdb_collect_ptr_type): New typedef.
8864 (get_raw_reg_ptr_type): New typedef.
8865 (get_trace_state_variable_value_ptr_type): New typedef.
8866 (set_trace_state_variable_value_ptr_type): New typedef.
8867 (gdb_collect_ptr): New global.
8868 (get_raw_reg_ptr): New global.
8869 (get_trace_state_variable_value_ptr): New global.
8870 (set_trace_state_variable_value_ptr): New global.
8871 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8872 accessing get_raw_reg directly.
8873 (get_get_tsv_func_addr): Likewise for
8874 get_trace_state_variable_value_ptr.
8875 (get_set_tsv_func_addr): Likewise for
8876 set_trace_state_variable_value_ptr.
8877 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8879 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8881 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8883 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8885 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8887 (relocate_instruction): Remove own_buf.
8888 * server.c (own_buf): Make global.
8889 (handle_v_requests): Make global.
8890 * server.h (own_buf): New declaration.
8891 (handle_v_requests): New prototype.
8893 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8896 * linux-s390-low.c (add_insns): New function.
8897 (s390_emit_prologue): New function.
8898 (s390_emit_epilogue): New function.
8899 (s390_emit_add): New function.
8900 (s390_emit_sub): New function.
8901 (s390_emit_mul): New function.
8902 (s390_emit_lsh): New function.
8903 (s390_emit_rsh_signed): New function.
8904 (s390_emit_rsh_unsigned): New function.
8905 (s390_emit_ext): New function.
8906 (s390_emit_log_not): New function.
8907 (s390_emit_bit_and): New function.
8908 (s390_emit_bit_or): New function.
8909 (s390_emit_bit_xor): New function.
8910 (s390_emit_bit_not): New function.
8911 (s390_emit_equal): New function.
8912 (s390_emit_less_signed): New function.
8913 (s390_emit_less_unsigned): New function.
8914 (s390_emit_ref): New function.
8915 (s390_emit_if_goto): New function.
8916 (s390_emit_goto): New function.
8917 (s390_write_goto_address): New function.
8918 (s390_emit_litpool): New function.
8919 (s390_emit_const): New function.
8920 (s390_emit_call): New function.
8921 (s390_emit_reg): New function.
8922 (s390_emit_pop): New function.
8923 (s390_emit_stack_flush): New function.
8924 (s390_emit_zero_ext): New function.
8925 (s390_emit_swap): New function.
8926 (s390_emit_stack_adjust): New function.
8927 (s390_emit_set_r2): New function.
8928 (s390_emit_int_call_1): New function.
8929 (s390_emit_void_call_2): New function.
8930 (s390_emit_eq_goto): New function.
8931 (s390_emit_ne_goto): New function.
8932 (s390_emit_lt_goto): New function.
8933 (s390_emit_le_goto): New function.
8934 (s390_emit_gt_goto): New function.
8935 (s390_emit_ge_goto): New function.
8936 (s390x_emit_prologue): New function.
8937 (s390x_emit_epilogue): New function.
8938 (s390x_emit_add): New function.
8939 (s390x_emit_sub): New function.
8940 (s390x_emit_mul): New function.
8941 (s390x_emit_lsh): New function.
8942 (s390x_emit_rsh_signed): New function.
8943 (s390x_emit_rsh_unsigned): New function.
8944 (s390x_emit_ext): New function.
8945 (s390x_emit_log_not): New function.
8946 (s390x_emit_bit_and): New function.
8947 (s390x_emit_bit_or): New function.
8948 (s390x_emit_bit_xor): New function.
8949 (s390x_emit_bit_not): New function.
8950 (s390x_emit_equal): New function.
8951 (s390x_emit_less_signed): New function.
8952 (s390x_emit_less_unsigned): New function.
8953 (s390x_emit_ref): New function.
8954 (s390x_emit_if_goto): New function.
8955 (s390x_emit_const): New function.
8956 (s390x_emit_call): New function.
8957 (s390x_emit_reg): New function.
8958 (s390x_emit_pop): New function.
8959 (s390x_emit_stack_flush): New function.
8960 (s390x_emit_zero_ext): New function.
8961 (s390x_emit_swap): New function.
8962 (s390x_emit_stack_adjust): New function.
8963 (s390x_emit_int_call_1): New function.
8964 (s390x_emit_void_call_2): New function.
8965 (s390x_emit_eq_goto): New function.
8966 (s390x_emit_ne_goto): New function.
8967 (s390x_emit_lt_goto): New function.
8968 (s390x_emit_le_goto): New function.
8969 (s390x_emit_gt_goto): New function.
8970 (s390x_emit_ge_goto): New function.
8971 (s390_emit_ops): New function.
8972 (struct linux_target_ops): Fill in emit_ops hook.
8974 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8977 * Makefile.in: Add s390 IPA files.
8978 * configure.srv: Build IPA for s390.
8979 * linux-s390-ipa.c: New file.
8980 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8981 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8982 (tdesc_s390_linux32): Likewise.
8983 (init_registers_s390_linux32v1): Likewise.
8984 (tdesc_s390_linux32v1): Likewise.
8985 (init_registers_s390_linux32v2): Likewise.
8986 (tdesc_s390_linux32v2): Likewise.
8987 (init_registers_s390_linux64): Likewise.
8988 (tdesc_s390_linux64): Likewise.
8989 (init_registers_s390_linux64v1): Likewise.
8990 (tdesc_s390_linux64v1): Likewise.
8991 (init_registers_s390_linux64v2): Likewise.
8992 (tdesc_s390_linux64v2): Likewise.
8993 (init_registers_s390_te_linux64): Likewise.
8994 (tdesc_s390_te_linux64): Likewise.
8995 (init_registers_s390_vx_linux64): Likewise.
8996 (tdesc_s390_vx_linux64): Likewise.
8997 (init_registers_s390_tevx_linux64): Likewise.
8998 (tdesc_s390_tevx_linux64): Likewise.
8999 (init_registers_s390x_linux64): Likewise.
9000 (tdesc_s390x_linux64): Likewise.
9001 (init_registers_s390x_linux64v1): Likewise.
9002 (tdesc_s390x_linux64v1): Likewise.
9003 (init_registers_s390x_linux64v2): Likewise.
9004 (tdesc_s390x_linux64v2): Likewise.
9005 (init_registers_s390x_te_linux64): Likewise.
9006 (tdesc_s390x_te_linux64): Likewise.
9007 (init_registers_s390x_vx_linux64): Likewise.
9008 (tdesc_s390x_vx_linux64): Likewise.
9009 (init_registers_s390x_tevx_linux64): Likewise.
9010 (tdesc_s390x_tevx_linux64): Likewise.
9011 (have_hwcap_s390_vx): New static variable.
9012 (s390_arch_setup): Fill have_hwcap_s390_vx.
9013 (s390_get_thread_area): New function.
9014 (s390_ft_entry_gpr_esa): New const.
9015 (s390_ft_entry_gpr_zarch): New const.
9016 (s390_ft_entry_misc): New const.
9017 (s390_ft_entry_fr): New const.
9018 (s390_ft_entry_vr): New const.
9019 (s390_ft_main_31): New const.
9020 (s390_ft_main_64): New const.
9021 (s390_ft_exit_fr): New const.
9022 (s390_ft_exit_vr): New const.
9023 (s390_ft_exit_misc): New const.
9024 (s390_ft_exit_gpr_esa): New const.
9025 (s390_ft_exit_gpr_zarch): New const.
9026 (append_insns): New function.
9027 (s390_relocate_instruction): New function.
9028 (s390_install_fast_tracepoint_jump_pad): New function.
9029 (s390_get_min_fast_tracepoint_insn_len): New function.
9030 (s390_get_ipa_tdesc_idx): New function.
9031 (struct linux_target_ops): Wire in the above functions.
9032 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
9033 * linux-s390-tdesc.h: New file.
9035 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9037 * linux-s390-low.c (s390_supports_tracepoints): New function.
9038 (struct linux_target_ops): Fill supports_tracepoints hook.
9040 2016-03-18 Yao Qi <yao.qi@linaro.org>
9042 * linux-low.c (lwp_signal_can_be_delivered): New function.
9043 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
9045 2016-03-18 Yao Qi <yao.qi@linaro.org>
9047 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
9048 0 if signal is enqueued. Remove 'signal' from one debugging
9049 message. Move one debugging message to some lines below.
9050 Remove code setting 'signal' to 0.
9052 2016-03-18 Yao Qi <yao.qi@linaro.org>
9054 * linux-low.c (linux_low_filter_event): Remove redundant
9055 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
9057 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
9059 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
9060 (struct linux_target_ops): Wire in the above.
9062 2016-03-03 Yao Qi <yao.qi@linaro.org>
9064 * linux-low.c: Update comments to start_step_over.
9066 2016-03-03 Yao Qi <yao.qi@linaro.org>
9069 * linux-low.c (handle_extended_wait): Set child suspended
9070 if event_lwp->bp_reinsert isn't zero.
9072 2016-03-02 Yao Qi <yao.qi@linaro.org>
9074 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
9075 enqueue_pending_signal.
9077 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
9079 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
9082 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9084 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
9085 (s390_regmap_3264) [!__s390x__]: New global.
9086 (s390_collect_ptrace_register): Skip map entries containing -1.
9087 (s390_supply_ptrace_register): Ditto.
9088 (s390_fill_gprs_high): New function.
9089 (s390_store_gprs_high): New function.
9090 (s390_regsets): Add NT_S390_HIGH_GPRS.
9091 (s390_get_hwcap): Enable on 31-bit.
9092 (have_hwcap_s390_high_gprs): Enable on 31-bit.
9093 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
9094 Detect NT_S390_HIGH_GPRS.
9095 (s390_usrregs_info_3264): Enable on 31-bit.
9096 (s390_regs_info): Enable regs_info_3264 on 31-bit.
9097 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
9099 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9102 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
9103 * configure.srv: Ditto.
9104 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
9105 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
9106 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
9107 (init_registers_amd64_linux): Remove prototype.
9108 (tdesc_amd64_linux): Remove declaration.
9109 (get_ipa_tdesc): New function.
9110 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9111 initialize remaining tdescs.
9112 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
9113 (init_registers_i386_linux): Remove prototype.
9114 (tdesc_i386_linux): Remove declaration.
9115 (get_ipa_tdesc): New function.
9116 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9117 initialize remaining tdescs.
9118 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
9119 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
9120 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
9121 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
9122 (x86_get_ipa_tdesc_idx): New function.
9123 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
9124 * linux-x86-tdesc.h: New file.
9125 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
9126 (target_get_ipa_tdesc_idx): New macro.
9127 * tracepoint.c (ipa_tdesc_idx): New macro.
9128 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
9129 (symbol_list): Add ipa_tdesc_idx.
9130 (cmd_qtstart): Write ipa_tdesc_idx in the target.
9131 (ipa_tdesc): Remove.
9132 (ipa_tdesc_idx): New variable.
9133 (get_context_regcache): Use get_ipa_tdesc.
9134 (gdb_collect): Ditto.
9136 * tracepoint.h (get_ipa_tdesc): New prototype.
9137 (ipa_tdesc): Remove.
9139 2016-02-24 Pedro Alves <palves@redhat.com>
9141 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
9142 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
9143 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
9144 Factor out common code between the USE_SIGTRAP_SIGINFO and
9145 !USE_SIGTRAP_SIGINFO blocks.
9146 (linux_low_filter_event): Call save_stop_reason instead of
9147 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
9149 (linux_wait_1): Update comments.
9151 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
9153 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
9154 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
9155 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
9156 ppc_insert_point, ppc_remove_point.
9158 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
9160 * linux-s390-low.c (s390_supports_z_point_type): New function.
9161 (struct linux_target_ops): Wire s390_supports_z_point_type in.
9163 2016-02-16 Yao Qi <yao.qi@linaro.org>
9165 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
9166 PC. Get pc from regcache_read_pc.
9168 2016-02-12 Yao Qi <yao.qi@linaro.org>
9170 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
9171 or linux_get_pc_32bit.
9172 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
9174 2016-02-12 Yao Qi <yao.qi@linaro.org>
9176 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
9177 arm_linux_get_next_pcs_fixup.
9179 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
9181 * tracepoint.c (x_tracepoint_action_download): Change
9182 write_inferior_data_ptr to write_inferior_data_pointer.
9183 (cmd_qtstart): Likewise.
9184 (write_inferior_data_ptr): Remove.
9185 (download_agent_expr): Change write_inferior_data_ptr to
9186 write_inferior_data_pointer.
9187 (download_tracepoint_1): Likewise.
9188 (download_tracepoint): Likewise.
9189 (download_trace_state_variables): Likewise.
9191 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
9192 Marcin Kościelnicki <koriakin@0x04.net>
9194 * tracepoint.c (struct tracepoint_action_ops): Remove.
9195 (struct tracepoint_action): Remove ops.
9196 (m_tracepoint_action_download, r_tracepoint_action_download)
9197 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
9198 size and offset accordingly.
9199 (m_tracepoint_action_ops, r_tracepoint_action_ops)
9200 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
9201 (tracepoint_action_send, tracepoint_action_download): New functions.
9202 Helpers for trace action handlers.
9203 (add_tracepoint_action): Remove setup actions ops.
9204 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
9206 2016-02-10 Yao Qi <yao.qi@linaro.org>
9208 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
9210 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9212 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
9214 * configure: Regenerate.
9216 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9218 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
9219 void * to gdb_byte *.
9220 * linux-low.c (siginfo_fixup): Likewise.
9221 (linux_xfer_siginfo): Likewise.
9222 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
9224 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
9226 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9228 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
9230 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
9232 * linux-x86-low.c [__x86_64__]: Include
9233 "nat/amd64-linux-siginfo.h".
9234 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
9235 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
9236 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
9237 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
9238 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
9239 (cpt_si_fd, si_timerid, si_overrun): Move from
9240 nat/amd64-linux-siginfo.c.
9241 * Makefile.in (amd64-linux-siginfo.o:): New rule.
9243 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9245 * server.c (skip_to_semicolon): Remove.
9246 (process_point_options): Use strchrnul instead of
9249 2016-01-26 Yao Qi <yao.qi@linaro.org>
9251 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
9252 * linux-low.c (install_software_single_step_breakpoints): Don't
9253 call regcache_read_pc.
9254 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
9257 2016-01-26 Yao Qi <yao.qi@linaro.org>
9259 * linux-low.c (install_software_single_step_breakpoints): Call
9260 regcache_read_pc instead of get_pc.
9262 2016-01-26 Yao Qi <yao.qi@linaro.org>
9264 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9265 (unblock_async_io): Rename to ...
9266 (block_unblock_async_io): ... it. New function.
9267 (enable_async_io): Don't install SIGIO handler. Unblock it
9269 (disable_async_io): Don't ignore SIGIO. Block it instead.
9270 (initialize_async_io): Install SIGIO handler. Don't call
9273 2016-01-26 Yao Qi <yao.qi@linaro.org>
9275 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9276 first character is '\003', call *the_target->request_interrupt.
9278 2016-01-25 Yao Qi <yao.qi@linaro.org>
9280 * remote-utils.c (new_thread_notify): Remove.
9281 (dead_thread_notify): Likewise.
9282 * remote-utils.h (new_thread_notify): Remove declaration.
9283 (dead_thread_notify): Likewise.
9285 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9287 * gdb.trace/pending.exp: Fix expected message on continue.
9289 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9291 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9292 it works properly on big-endian machines where sizeof (CORE_ADDR)
9295 2016-01-21 Pedro Alves <palves@redhat.com>
9297 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9298 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9299 * configure: Regenerate.
9301 2016-01-21 Yao Qi <yao.qi@linaro.org>
9303 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9304 is_thumb and set it according to CPSR saved on the stack.
9305 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9306 arm_sigreturn_next_pc.
9308 2016-01-18 Yao Qi <yao.qi@linaro.org>
9310 * linux-low.c (linux_set_pc_64bit): New function.
9311 (linux_get_pc_64bit): New function.
9312 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9314 * linux-sparc-low.c (debug_threads): Remove declaration.
9315 (sparc_get_pc): Remove.
9316 (the_low_target): Use linux_get_pc_64bit instead of
9318 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9319 (the_low_target): Use linux_get_pc_64bit and
9322 2016-01-18 Yao Qi <yao.qi@linaro.org>
9324 * linux-arm-low.c (debug_threads): Remove declaration.
9325 (arm_get_pc, arm_set_pc): Remove.
9326 (the_low_target): Use linux_get_pc_32bit and
9328 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9329 (the_low_target): Use linux_get_pc_32bit and
9331 * linux-cris-low.c (debug_threads): Remove declaration.
9332 (cris_get_pc, cris_set_pc,): Remove.
9333 (the_low_target): Use linux_get_pc_32bit and
9335 * linux-crisv32-low.c (debug_threads): Remove declaration.
9336 (cris_get_pc, cris_set_pc): Remove.
9337 (the_low_target): Use linux_get_pc_32bit and
9339 * linux-low.c: Include inttypes.h.
9340 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9341 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9342 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9343 (the_low_target): Use linux_get_pc_32bit and
9345 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9346 (the_low_target): Use linux_get_pc_32bit and
9348 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9349 (the_low_target): Use linux_get_pc_32bit and
9351 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9352 (the_low_target): Use linux_get_pc_32bit and
9354 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9355 (the_low_target): Use linux_get_pc_32bit and
9358 2016-01-18 Gary Benson <gbenson@redhat.com>
9360 * configure.ac (AC_FUNC_FORK): New check.
9361 * config.in: Regenerate.
9362 * configure: Likewise.
9364 2016-01-14 Yao Qi <yao.qi@linaro.org>
9366 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9367 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9368 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9369 arm_get_next_pcs_ctor.
9371 2016-01-12 Josh Stone <jistone@redhat.com>
9372 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9374 * inferiors.h: Include "gdb_vecs.h".
9375 (struct process_info): Add syscalls_to_catch.
9376 * inferiors.c (remove_process): Free syscalls_to_catch.
9377 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9378 syscall_return stops.
9379 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9380 * server.c (handle_general_set): Handle QCatchSyscalls.
9381 (handle_query): Report support for QCatchSyscalls.
9382 * target.h (struct target_ops): Add supports_catch_syscall.
9383 (target_supports_catch_syscall): New macro.
9384 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9385 (struct lwp_info): Add syscall_state.
9386 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9387 Maintain syscall_state and syscalls_to_catch across exec.
9388 (get_syscall_trapinfo): New function, proxy to the_low_target.
9389 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9390 (linux_low_filter_event): Toggle syscall_state entry/return for
9391 syscall traps, and set it ignored for all others.
9392 (gdb_catching_syscalls_p): New function.
9393 (gdb_catch_this_syscall_p): New function.
9394 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9395 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9396 (linux_supports_catch_syscall): New function.
9397 (linux_target_ops): Install it.
9398 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9399 (the_low_target): Install it.
9401 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9403 * acinclude.m4: Include new ../warning.m4 file.
9404 * configure: Regenerated.
9405 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9407 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9409 * ax.c (is_goto_target): Mark static.
9410 * linux-low.c (register_addr): Likewise.
9411 (linux_fetch_registers, linux_store_registers): Likewise.
9412 * mem-break.c (any_persistent_commands): Fix old prototype.
9413 (add_commands_to_breakpoint): Mark static.
9414 * regcache.c (find_register_by_name): Delete unused func.
9415 * remote-utils.c (hex_or_minus_one): Mark static.
9416 * server.c (monitor_show_help): Mark static.
9417 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9418 handle_v_requests): Likewise.
9420 2016-01-12 Pedro Alves <palves@redhat.com>
9422 Remove use of the registered trademark symbol throughout.
9424 2016-01-08 Yao Qi <yao.qi@linaro.org>
9426 * remote-utils.c (getpkt): If c is '\003', call target hook
9429 2016-01-06 Yao Qi <yao.qi@linaro.org>
9431 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9432 linux-aarch32-low.c.
9433 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9434 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9435 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9436 (thumb2_breakpoint): Declare.
9437 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9438 linux-aarch32-low.h.
9439 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9440 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9441 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9443 2016-01-01 Joel Brobecker <brobecker@adacore.com>
9445 * gdbreplay.c (gdbreplay_version): Change copyright year in
9447 * server.c (gdbserver_version): Likewise.
9449 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9451 * server.c (crc32_table): Delete.
9452 (crc32): Use libiberty's xcrc32 function.
9454 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9456 * lynx-low.c (lynx_delete_thread_callback): New function.
9457 (lynx_mourn): Properly delete our process and all of its
9458 threads. Remove call to clear_inferiors.
9460 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9462 * target.c (thread_search_callback): Add check that
9463 the thread_stopped target callback is not NULL before
9466 2015-12-21 Yao Qi <yao.qi@linaro.org>
9468 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9471 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9473 * server.c (handle_query): Call target_supports_software_single_step.
9475 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9477 * linux-low.c (single_step): New function.
9478 (linux_resume_one_lwp_throw): Call single_step.
9479 (start_step_over): Likewise.
9481 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9483 * Makefile.in (SFILES): Append arch/arm-linux.c,
9484 arch/arm-get-next-pcs.c.
9485 (arm-linux.o): New rule.
9486 (arm-get-next-pcs.o): New rule.
9487 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9489 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9490 to linux-aarch32-low.c.
9491 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9492 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9493 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9494 (thumb2_breakpoint_len): Likewise.
9495 (arm_is_thumb_mode): Make non-static.
9496 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9497 from linux-aarch32-low.c.
9498 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9499 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9500 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9501 (thumb2_breakpoint_len): Likewise.
9502 (arm_is_thumb_mode): New declaration.
9503 * linux-arm-low.c: Include arch/arm-linux.h
9504 aarch/arm-get-next-pcs.h, sys/syscall.h.
9505 (get_next_pcs_ops): New struct.
9506 (get_next_pcs_addr_bits_remove): New function.
9507 (get_next_pcs_is_thumb): New function.
9508 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9509 (arm_sigreturn_next_pc): Likewise.
9510 (get_next_pcs_syscall_next_pc): Likewise.
9511 (arm_gdbserver_get_next_pcs): Likewise.
9512 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9514 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9515 * server.h: Include gdb_vecs.h.
9517 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9519 * Makefile.in (SFILES): Append common/common-regcache.c.
9520 (OBS): Append common-regcache.o.
9521 (common-regcache.o): New rule.
9522 * regcache.c (init_register_cache): Initialize cache to
9524 (regcache_raw_read_unsigned): New function.
9525 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9526 register_status enum.
9528 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9530 * linux-aarch64-low.c (the_low_targets): Rename
9531 breakpoint_reinsert_addr to get_next_pcs.
9532 * linux-arm-low.c (the_low_targets): Likewise.
9533 * linux-bfin-low.c (the_low_targets): Likewise.
9534 * linux-cris-low.c (the_low_targets): Likewise.
9535 * linux-crisv32-low.c (the_low_targets): Likewise.
9536 * linux-low.c (can_software_single_step): Likewise.
9537 (install_software_single_step_breakpoints): New function.
9538 (start_step_over): Use install_software_single_step_breakpoints.
9539 * linux-low.h: New CORE_ADDR vector.
9540 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9542 * linux-mips-low.c (the_low_targets): Likewise.
9543 * linux-nios2-low.c (the_low_targets): Likewise.
9544 * linux-sparc-low.c (the_low_targets): Likewise.
9546 2015-12-17 Pedro Alves <palves@redhat.com>
9548 * linux-low.c (linux_kill_one_lwp): Remove references to
9550 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9552 (linux_init_signals): Delete.
9553 (initialize_low): Adjust.
9554 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9556 2015-12-16 Pedro Alves <palves@redhat.com>
9558 * configure.ac (compiler warning flags): When testing a
9559 -Wno-foo option, check whether -Wfoo works instead.
9560 * configure: Regenerate.
9562 2015-12-11 Don Breazeal <donb@codesourcery.com>
9564 * server.c (process_serial_event): Don't exit from gdbserver
9565 in remote mode if there are still active inferiors.
9567 2015-12-11 Yao Qi <yao.qi@linaro.org>
9569 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9570 arm_breakpoint_at if the process is 32-bit.
9572 2015-12-11 Yao Qi <yao.qi@linaro.org>
9574 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9577 2015-12-07 Yao Qi <yao.qi@linaro.org>
9579 * configure.srv: Append arm.o to srv_tgtobj for
9580 aarch64*-*-linux* target.
9581 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9582 from linux-arm-low.c.
9583 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9584 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9585 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9586 (thumb2_breakpoint_len): Likewise.
9587 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9588 (arm_breakpoint_kinds): Likewise.
9589 (arm_breakpoint_kind_from_pc): Likewise.
9590 (arm_sw_breakpoint_from_kind): Likewise.
9591 (arm_breakpoint_kind_from_current_state): Likewise.
9592 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9593 (arm_sw_breakpoint_from_kind): Declare.
9594 (arm_breakpoint_kind_from_current_state): Declare.
9595 (arm_breakpoint_at): Declare.
9596 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9597 arm_sw_breakpoint_from_kind if process is 32-bit.
9598 (aarch64_breakpoint_kind_from_pc): New function.
9599 (aarch64_breakpoint_kind_from_current_state): New function.
9600 (the_low_target): Initialize fields breakpoint_kind_from_pc
9601 and breakpoint_kind_from_current_state.
9602 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9603 linux-aarch32-low.c.
9604 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9605 (arm_breakpoint, arm_breakpoint_len): Likewise.
9606 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9607 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9608 (arm_is_thumb_mode): Likewise.
9609 (arm_breakpoint_at): Likewise.
9610 (arm_breakpoint_kind_from_pc): Likewise.
9611 (arm_sw_breakpoint_from_kind): Likewise.
9612 (arm_breakpoint_kind_from_current_state): Likewise.
9615 2015-08-04 Yao Qi <yao.qi@linaro.org>
9617 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9618 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9619 * server.c (extended_protocol): Remove "static".
9620 * server.h (extended_protocol): Declare it.
9622 2015-12-04 Josh Stone <jistone@redhat.com>
9624 * target.h (struct target_ops) <arch_setup>: Rename to ...
9625 (struct target_ops) <post_create_inferior>: ... this.
9626 (target_arch_setup): Rename to ...
9627 (target_post_create_inferior): ... this, calling post_create_inferior.
9628 * server.c (start_inferior): Update target_arch_setup calls to
9629 target_post_create_inferior.
9630 * linux-low.c (linux_low_ptrace_options): Forward declare.
9631 (linux_arch_setup): Update its comment for general use.
9632 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9633 (struct linux_target_ops): Use linux_post_create_inferior.
9634 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9635 to post_create_inferior.
9636 * nto-low.c (struct nto_target_ops): Likewise.
9637 * spu-low.c (struct spu_target_ops): Likewise.
9638 * win32-low.c (struct win32_target_ops): Likewise.
9640 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9642 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9644 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9646 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9647 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9648 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9649 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9650 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9651 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9652 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9653 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9654 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9655 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9656 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9657 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9659 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9661 * linux-low.c (linux_look_up_symbols): Don't call
9662 linux_supports_traceclone.
9663 * linux-low.h (thread_db_init): Remove use_events argument.
9664 * thread-db.c (thread_db_use_event): Remove global variable.
9665 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9666 (struct thread_db) <td_create_bp>: Remove field.
9667 (thread_db_create_event): Remove function.
9668 (thread_db_enable_reporting): Likewise.
9669 (find_one_thread): Don't check for thread_db_use_events.
9670 (attach_thread): Likewise.
9671 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9672 (try_thread_db_load_1): Don't check for thread_db_use_events.
9673 (thread_db_init): Remove use_events argument and thread events
9675 (remove_thread_event_breakpoints): Remove function.
9676 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9678 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9680 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9682 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9683 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9684 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9685 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9686 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9688 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9690 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9691 * linux-low.c (can_hardware_single_step): Use
9692 supports_hardware_single_step.
9693 (can_software_single_step): New function.
9694 (start_step_over): Call can_software_single_step.
9695 (linux_supports_hardware_single_step): New function.
9696 (struct target_ops) <supports_software_single_step>: Initialize.
9697 * linux-low.h (struct linux_target_ops)
9698 <supports_hardware_single_step>: Initialize.
9699 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9700 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9701 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9702 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9703 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9704 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9705 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9706 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9707 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9708 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9710 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9711 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9713 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9714 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9715 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9717 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9718 * target.h (struct target_ops): <supports_software_single_step>:
9720 (target_supports_software_single_step): New macro.
9722 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9724 * linux-low.c (linux_wait_1): Fix pc advance condition.
9725 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9726 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9728 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9730 * linux-arm-low.c (arm_is_thumb_mode): New function.
9731 (arm_breakpoint_at): Use arm_is_thumb_mode.
9732 (arm_breakpoint_kind_from_current_state): New function.
9733 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9735 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9736 (linux_breakpoint_kind_from_current_state): New function.
9737 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9738 * linux-low.h (struct linux_target_ops)
9739 <breakpoint_kind_from_current_state>: New field.
9740 * target.h (struct target_ops): Likewise.
9741 (target_breakpoint_kind_from_current_state): New macro.
9743 2015-11-30 Pedro Alves <palves@redhat.com>
9745 * linux-low.c (linux_resume): Wake up the event loop before
9748 2015-11-30 Pedro Alves <palves@redhat.com>
9750 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9752 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9754 * target.c (struct thread_search): New structure.
9755 (thread_search_callback): New function.
9756 (prev_general_thread): New global.
9757 (prepare_to_access_memory, done_accessing_memory): New functions.
9758 * target.h (prepare_to_access_memory, done_accessing_memory):
9759 Replace macros with function declarations.
9761 2015-11-30 Pedro Alves <palves@redhat.com>
9764 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9765 report TARGET_WAITKIND_NO_RESUMED.
9766 * remote-utils.c (prepare_resume_reply): Handle
9767 TARGET_WAITKIND_NO_RESUMED.
9768 * server.c (report_no_resumed): New global.
9769 (handle_query) <qSupported>: Handle "no-resumed+". Report
9770 "no-resumed+" support.
9771 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9772 return error if the client doesn't support no-resumed events.
9773 (push_stop_notification): New function.
9774 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9775 events if the client supports them.
9777 2015-11-30 Pedro Alves <palves@redhat.com>
9779 * linux-low.c (thread_still_has_status_pending_p): Don't check
9781 (lwp_resumed): New function.
9782 (status_pending_p_callback): Return early if the LWP is not
9783 supposed to be resumed.
9785 2015-11-30 Pedro Alves <palves@redhat.com>
9787 * linux-low.c (handle_extended_wait): Assert that the LWP's
9788 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9789 thread create events, leave the new child's status pending.
9790 (linux_low_filter_event): If GDB wants to hear about thread exit
9791 events, leave the LWP marked dead and don't delete it.
9792 (linux_wait_for_event_filtered): Don't check for thread exit.
9793 (filter_exit_event): New function.
9794 (linux_wait_1): Use it, when returning an exit event.
9795 (linux_resume_one_lwp_throw): Assert that the LWP's
9796 waitstatus is TARGET_WAITKIND_IGNORE.
9797 * remote-utils.c (prepare_resume_reply): Handle
9798 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9799 * server.c (report_thread_events): New global.
9800 (handle_general_set): Handle QThreadEvents.
9801 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9802 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9803 TARGET_WAITKIND_THREAD_EXITED.
9804 * server.h (report_thread_events): Declare.
9806 2015-11-30 Pedro Alves <palves@redhat.com>
9808 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9809 the thread's last_resume_kind was resume_stop.
9811 2015-11-30 Pedro Alves <palves@redhat.com>
9813 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9816 2015-11-30 Pedro Alves <palves@redhat.com>
9818 * server.c (handle_v_requests): Handle vCtrlC.
9820 2015-11-30 Pedro Alves <palves@redhat.com>
9822 * gdbthread.h (find_any_thread_of_pid): Declare.
9823 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9825 * server.c (handle_query): If current_thread is NULL, look for
9826 another thread of the selected process.
9828 2015-11-26 Daniel Colascione <dancol@dancol.org>
9829 Simon Marchi <simon.marchi@ericsson.com>
9831 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9832 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9834 * target.h (struct target_ops) <thread_name>: New field.
9835 (target_thread_name): New macro.
9837 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9839 * regcache.h (regcache_invalidate_pid): Add declaration.
9840 * regcache.c (regcache_invalidate_pid): New function, extracted
9841 from regcache_invalidate.
9842 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9843 Add trivial documentation comment.
9844 * lynx-low.c: Use regcache_invalidate_pid instead of
9845 regcache_invalidate.
9847 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9849 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9850 and Elf64_auxv_t if the target is Android.
9852 2015-11-22 Doug Evans <xdje42@gmail.com>
9854 * target.h: #include <sys/types.h>.
9856 2015-11-19 Pedro Alves <palves@redhat.com>
9858 * linux-low.c (linux_process_qsupported): Change prototype.
9860 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9862 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9863 and adjust to loop over all features.
9864 * server.c (handle_query) <qSupported>: Adjust to call
9865 target_process_qsupported once, passing it a vector of unprocessed
9867 * target.h (struct target_ops) <process_qsupported>: Change
9869 (target_process_qsupported): Adjust.
9871 2015-11-19 Pedro Alves <palves@redhat.com>
9873 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9875 * configure: Regenerate.
9877 2015-11-19 Pedro Alves <palves@redhat.com>
9879 * configure: Regenerate.
9881 2015-11-19 Yao Qi <yao.qi@linaro.org>
9883 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9886 2015-11-19 Yao Qi <yao.qi@linaro.org>
9888 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9889 (struct aarch64_operand): Move enum out.
9891 2015-11-19 Yao Qi <yao.qi@linaro.org>
9893 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9894 struct user_fpsimd_state *.
9895 (aarch64_store_fpregset): Likewise.
9897 2015-11-19 Yao Qi <yao.qi@linaro.org>
9899 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9900 struct user_pt_regs *.
9901 (aarch64_store_gregset): Likewise.
9903 2015-11-18 Pedro Alves <palves@redhat.com>
9905 * Makefile.in (all_object_files): Add $IPA_OBJS.
9907 2015-11-17 Pedro Alves <palves@redhat.com>
9909 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9910 GDB_SIGNAL_0 and gdb_signal_to_string.
9912 2015-11-17 Pedro Alves <palves@redhat.com>
9914 * win32-low.c (handle_output_debug_string): Remove parameter.
9915 (win32_kill): Remove our_status local and adjust call to
9916 handle_output_debug_string.
9917 (get_child_debug_event): Adjust call to
9918 handle_output_debug_string.
9920 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9922 * linux-mips-low.c (mips_fill_gregset): Add cast.
9923 (mips_store_gregset): Likewise.
9924 (mips_fill_fpregset): Likewise.
9925 (mips_store_fpregset): Likewise.
9927 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9929 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9932 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9934 * linux-mips-low.c (mips_linux_new_thread): Change type of
9935 watch_type to enum target_hw_bp_type.
9937 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9939 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9940 Change return type to arm_hwbp_type.
9942 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9944 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9945 (arm_store_gregset): Likewise.
9946 * linux-arm-low.c (arm_get_hwcap): Likewise.
9947 (arm_read_description): Likewise.
9949 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9951 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9953 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9955 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9956 (ppc_fill_vsxregset): Likewise.
9957 (ppc_store_vsxregset): Likewise.
9958 (ppc_fill_vrregset): Likewise.
9959 (ppc_store_vrregset): Likewise.
9960 (ppc_fill_evrregset): Likewise.
9961 (ppc_store_evrregset): Likewise.
9963 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9965 * linux-ppc-low.c (ppc_usrregs_info): Remove
9966 forward-declaration.
9967 (ppc_arch_setup): Move lower in file.
9969 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9971 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9972 (ps_pdwrite): Likewise.
9974 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9976 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9977 to after assert checks.
9979 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9981 * proc-service.c (ps_pdread): Add/adjust casts.
9982 (ps_pdwrite): Add/adjust casts.
9984 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9986 * server.c (handle_search_memory_1): Cast return value of
9989 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9991 * server.c (write_qxfer_response): Change type of data to
9994 2015-10-29 Pedro Alves <palves@redhat.com>
9996 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9998 2015-10-29 Pedro Alves <palves@redhat.com>
10000 * tracepoint.c (clear_installed_tracepoints): Add casts.
10002 2015-10-29 Pedro Alves <palves@redhat.com>
10004 * server.c (handle_v_cont, process_serial_event): Add enum
10005 gdb_signal casts to signal parsing code.
10007 2015-10-29 Pedro Alves <palves@redhat.com>
10009 * linux-low.h (NULL_REGSET): Define.
10010 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10011 * linux-arm-low.c (arm_regsets): Likewise.
10012 * linux-crisv32-low.c (cris_regsets): Likewise.
10013 * linux-m68k-low.c (m68k_regsets): Likewise.
10014 * linux-mips-low.c (mips_regsets): Likewise.
10015 * linux-nios2-low.c (nios2_regsets): Likewise.
10016 * linux-ppc-low.c (ppc_regsets): Likewise.
10017 * linux-s390-low.c (s390_regsets): Likewise.
10018 * linux-sh-low.c (sh_regsets): Likewise.
10019 * linux-sparc-low.c (sparc_regsets): Likewise.
10020 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10021 * linux-tile-low.c (tile_regsets): Likewise.
10022 * linux-x86-low.c (x86_regsets): Likewise.
10023 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10025 2015-10-29 Pedro Alves <palves@redhat.com>
10027 * linux-low.h (NULL_REGSET): Define.
10028 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10029 * linux-arm-low.c (arm_regsets): Likewise.
10030 * linux-crisv32-low.c (cris_regsets): Likewise.
10031 * linux-m68k-low.c (m68k_regsets): Likewise.
10032 * linux-mips-low.c (mips_regsets): Likewise.
10033 * linux-nios2-low.c (nios2_regsets): Likewise.
10034 * linux-ppc-low.c (ppc_regsets): Likewise.
10035 * linux-s390-low.c (s390_regsets): Likewise.
10036 * linux-sh-low.c (sh_regsets): Likewise.
10037 * linux-sparc-low.c (sparc_regsets): Likewise.
10038 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10039 * linux-tile-low.c (tile_regsets): Likewise.
10040 * linux-x86-low.c (x86_regsets): Likewise.
10041 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10043 2015-10-26 Doug Evans <dje@google.com>
10045 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
10047 2015-10-26 Doug Evans <dje@google.com>
10049 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
10051 2015-10-26 Doug Evans <dje@google.com>
10053 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
10055 (attach_thread, find_new_threads_callback): Ditto.
10057 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10059 * mem-break.h (set_breakpoint_data): Remove.
10061 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10063 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
10064 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10065 (initialize_low): Remove set_breakpoint_data call.
10066 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
10067 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
10068 (initialize_low): Remove set_breakpoint_data call.
10069 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
10070 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10071 (initialize_low): Remove set_breakpoint_data call.
10073 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10075 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
10076 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
10077 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
10078 * target.h (target_breakpoint_kind_from_pc): New macro.
10080 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
10082 * linux-low.c (default_breakpoint_kind_from_pc): New function.
10083 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
10084 the default breakpoint kind.
10086 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10088 * linux-arm-low.c (arm_supports_z_point_type): Add software
10089 breakpoint support.
10091 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10093 * linux-arm-low.c: Refactor breakpoint definitions.
10094 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
10095 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
10097 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10099 * Makefile.in: Add arm.c/o.
10100 * configure.srv: Likewise.
10101 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
10102 (arm_breakpoint_kind_from_pc): New function.
10103 (arm_sw_breakpoint_from_kind): Return proper kind.
10104 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
10106 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10108 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
10110 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
10111 (struct raw_breakpoint) <size>: Remove.
10112 (struct raw_breakpoint) <kind>: Add.
10113 (bp_size): New function.
10114 (bp_opcode): Likewise.
10115 (find_raw_breakpoint_at): Adjust for kind.
10116 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
10117 (remove_memory_breakpoint): Adjust for kind call bp_size.
10118 (set_raw_breakpoint_at): Adjust for kind.
10119 (set_breakpoint): Likewise.
10120 (set_breakpoint_at): Call breakpoint_kind_from_pc.
10121 (delete_raw_breakpoint): Adjust for kind.
10122 (delete_breakpoint): Likewise.
10123 (find_gdb_breakpoint): Likewise.
10124 (set_gdb_breakpoint_1): Likewise.
10125 (set_gdb_breakpoint): Likewise.
10126 (delete_gdb_breakpoint_1): Likewise.
10127 (delete_gdb_breakpoint): Likewise.
10128 (uninsert_raw_breakpoint): Likewise.
10129 (reinsert_raw_breakpoint): Likewise.
10130 (set_breakpoint_data): Remove.
10131 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
10132 (check_mem_read): Adjust for kind call bp_size.
10133 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
10134 (clone_one_breakpoint): Adjust for kind.
10135 * mem-break.h (set_gdb_breakpoint): Likewise.
10136 (delete_gdb_breakpoint): Likewise.
10137 * server.c (process_serial_event): Likewise.
10139 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10141 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
10142 (struct linux_target_ops) <breakpoint>: Remove.
10143 (struct linux_target_ops) <breakpoint_len>: Remove.
10144 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10145 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10146 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
10147 (arm_sw_breakpoint_from_kind): New function.
10148 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
10149 (struct linux_target_ops) <breakpoint>: Remove.
10150 (struct linux_target_ops) <breakpoint_len>: Remove.
10151 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10152 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10153 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
10154 (struct linux_target_ops) <breakpoint>: Remove.
10155 (struct linux_target_ops) <breakpoint_len>: Remove.
10156 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10157 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10158 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
10159 (struct linux_target_ops) <breakpoint>: Remove.
10160 (struct linux_target_ops) <breakpoint_len>: Remove.
10161 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10162 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10163 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
10164 and sw_breakpoint_from_kind to increment the pc.
10165 (linux_breakpoint_kind_from_pc): New function.
10166 (linux_sw_breakpoint_from_kind): New function.
10167 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
10168 (initialize_low): Call breakpoint_kind_from_pc and
10169 sw_breakpoint_from_kind to replace breakpoint_data/len.
10170 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
10172 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
10173 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
10174 (struct linux_target_ops) <breakpoint>: Remove.
10175 (struct linux_target_ops) <breakpoint_len>: Remove.
10176 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10177 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10178 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
10179 (struct linux_target_ops) <breakpoint>: Remove.
10180 (struct linux_target_ops) <breakpoint_len>: Remove.
10181 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10182 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10183 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
10184 (struct linux_target_ops) <breakpoint>: Remove.
10185 (struct linux_target_ops) <breakpoint_len>: Remove.
10186 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10187 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10188 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
10189 (struct linux_target_ops) <breakpoint>: Remove.
10190 (struct linux_target_ops) <breakpoint_len>: Remove.
10191 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10192 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10193 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
10194 (struct linux_target_ops) <breakpoint>: Remove.
10195 (struct linux_target_ops) <breakpoint_len>: Remove.
10196 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10197 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10198 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
10199 (struct linux_target_ops) <breakpoint>: Remove.
10200 (struct linux_target_ops) <breakpoint_len>: Remove.
10201 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10202 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10203 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
10204 (struct linux_target_ops) <breakpoint>: Remove.
10205 (struct linux_target_ops) <breakpoint_len>: Remove.
10206 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10207 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10208 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
10209 (struct linux_target_ops) <breakpoint>: Remove.
10210 (struct linux_target_ops) <breakpoint_len>: Remove.
10211 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10212 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10213 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
10214 (struct linux_target_ops) <breakpoint>: Remove.
10215 (struct linux_target_ops) <breakpoint_len>: Remove.
10216 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10217 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10218 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
10219 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
10220 (struct linux_target_ops) <breakpoint>: Remove.
10221 (struct linux_target_ops) <breakpoint_len>: Remove.
10222 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10223 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10224 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
10225 (struct linux_target_ops) <breakpoint>: Remove.
10226 (struct linux_target_ops) <breakpoint_len>: Remove.
10227 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10228 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10230 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10232 * linux-cris-low.c (cris_get_pc): Remove void arg.
10234 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10236 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
10239 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10241 * inferiors.c (thread_pid_matches_callback): New function.
10242 (find_thread_process): New function.
10243 (remove_thread): Reset current_thread.
10244 (remove_process): Assert threads have been removed first.
10246 2015-10-15 Yao Qi <yao.qi@linaro.org>
10248 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
10250 (aarch64_remove_point): Likewise.
10251 * regcache.c (regcache_register_size): New function.
10253 2015-10-12 Yao Qi <yao.qi@linaro.org>
10255 * linux-aarch64-low.c: Update all callers as emit_load_store
10256 is renamed to aarch64_emit_load_store.
10258 2015-10-12 Yao Qi <yao.qi@linaro.org>
10260 * linux-aarch64-low.c: Update all callers of function renaming
10261 from emit_insn to aarch64_emit_insn.
10263 2015-10-12 Yao Qi <yao.qi@linaro.org>
10265 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10266 arch/aarch64-insn.h.
10267 (struct aarch64_memory_operand): Likewise.
10268 (ENCODE): Likewise.
10269 (emit_insn): Move to arch/aarch64-insn.c.
10270 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10271 (emit_load_store): Move to arch/aarch64-insn.c.
10272 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10273 (can_encode_int32): Remove.
10275 2015-10-12 Yao Qi <yao.qi@linaro.org>
10277 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10278 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10279 (aarch64_relocate_instruction): Likewise.
10280 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10281 (struct aarch64_insn_visitor): Likewise.
10283 2015-10-12 Yao Qi <yao.qi@linaro.org>
10285 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10286 (struct aarch64_insn_visitor): New.
10287 (struct aarch64_insn_relocation_data): New.
10288 (aarch64_ftrace_insn_reloc_b): New function.
10289 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10290 (aarch64_ftrace_insn_reloc_cb): Likewise.
10291 (aarch64_ftrace_insn_reloc_tb): Likewise.
10292 (aarch64_ftrace_insn_reloc_adr): Likewise.
10293 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10294 (aarch64_ftrace_insn_reloc_others): Likewise.
10296 (aarch64_relocate_instruction): Use visitor.
10298 2015-10-12 Yao Qi <yao.qi@linaro.org>
10300 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10301 int. Add argument buf.
10302 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10303 aarch64_relocate_instruction.
10305 2015-10-12 Yao Qi <yao.qi@linaro.org>
10307 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10308 argument insn. Remove local variable insn. Don't call
10309 target_read_uint32.
10310 (aarch64_install_fast_tracepoint_jump_pad): Call
10311 target_read_uint32.
10313 2015-09-30 Yao Qi <yao.qi@linaro.org>
10315 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10316 (emit_load_store_pair): Likewise.
10318 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10320 * dll.c (match_dll): Add cast(s).
10321 (unloaded_dll): Likewise.
10322 * linux-low.c (second_thread_of_pid_p): Likewise.
10323 (delete_lwp_callback): Likewise.
10324 (count_events_callback): Likewise.
10325 (select_event_lwp_callback): Likewise.
10326 (linux_set_resume_request): Likewise.
10327 * server.c (accumulate_file_name_length): Likewise.
10328 (emit_dll_description): Likewise.
10329 (handle_qxfer_threads_worker): Likewise.
10330 (visit_actioned_threads): Likewise.
10331 * thread-db.c (any_thread_of): Likewise.
10332 * tracepoint.c (same_process_p): Likewise.
10333 (match_blocktype): Likewise.
10334 (build_traceframe_info_xml): Likewise.
10336 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10338 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10340 (gdb_unparse_agent_expr): Likewise.
10341 * hostio.c (require_data): Likewise.
10342 (handle_pread): Likewise.
10343 * linux-low.c (disable_regset): Likewise.
10344 (fetch_register): Likewise.
10345 (store_register): Likewise.
10346 (get_dynamic): Likewise.
10347 (linux_qxfer_libraries_svr4): Likewise.
10348 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10349 (set_fast_tracepoint_jump): Likewise.
10350 (uninsert_fast_tracepoint_jumps_at): Likewise.
10351 (reinsert_fast_tracepoint_jumps_at): Likewise.
10352 (validate_inserted_breakpoint): Likewise.
10353 (clone_agent_expr): Likewise.
10354 * regcache.c (init_register_cache): Likewise.
10355 * remote-utils.c (putpkt_binary_1): Likewise.
10356 (decode_M_packet): Likewise.
10357 (decode_X_packet): Likewise.
10358 (look_up_one_symbol): Likewise.
10359 (relocate_instruction): Likewise.
10360 (monitor_output): Likewise.
10361 * server.c (handle_search_memory): Likewise.
10362 (handle_qxfer_exec_file): Likewise.
10363 (handle_qxfer_libraries): Likewise.
10364 (handle_qxfer): Likewise.
10365 (handle_query): Likewise.
10366 (handle_v_cont): Likewise.
10367 (handle_v_run): Likewise.
10368 (captured_main): Likewise.
10369 * target.c (write_inferior_memory): Likewise.
10370 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10371 * tracepoint.c (init_trace_buffer): Likewise.
10372 (add_tracepoint_action): Likewise.
10373 (add_traceframe): Likewise.
10374 (add_traceframe_block): Likewise.
10375 (cmd_qtdpsrc): Likewise.
10376 (cmd_qtdv): Likewise.
10377 (cmd_qtstatus): Likewise.
10378 (response_source): Likewise.
10379 (response_tsv): Likewise.
10380 (cmd_qtnotes): Likewise.
10381 (gdb_collect): Likewise.
10382 (initialize_tracepoint): Likewise.
10384 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10386 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10387 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10388 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10390 (enum aarch64_condition_codes): New enum.
10391 (w0): New static global.
10394 (struct aarch64_memory_operand) <type>: New
10395 MEMORY_OPERAND_POSTINDEX type.
10396 (postindex_memory_operand): New helper function.
10397 (emit_ret): New function.
10398 (emit_load_store_pair): New function, factored out of emit_stp
10399 with support for MEMORY_OPERAND_POSTINDEX.
10400 (emit_stp): Rewrite using emit_load_store_pair.
10401 (emit_ldp): New function.
10402 (emit_load_store): Likewise.
10403 (emit_ldr): Mention post-index instruction in comment.
10404 (emit_ldrh): New function.
10405 (emit_ldrb): New function.
10406 (emit_ldrsw): Mention post-index instruction in comment.
10407 (emit_str): Likewise.
10408 (emit_subs): New function.
10409 (emit_cmp): Likewise.
10410 (emit_and): Likewise.
10411 (emit_orr): Likewise.
10412 (emit_orn): Likewise.
10413 (emit_eor): Likewise.
10414 (emit_mvn): Likewise.
10415 (emit_lslv): Likewise.
10416 (emit_lsrv): Likewise.
10417 (emit_asrv): Likewise.
10418 (emit_mul): Likewise.
10419 (emit_sbfm): Likewise.
10420 (emit_sbfx): Likewise.
10421 (emit_ubfm): Likewise.
10422 (emit_ubfx): Likewise.
10423 (emit_csinc): Likewise.
10424 (emit_cset): Likewise.
10425 (emit_nop): Likewise.
10426 (emit_ops_insns): New helper function.
10427 (emit_pop): Likewise.
10428 (emit_push): Likewise.
10429 (aarch64_emit_prologue): New function.
10430 (aarch64_emit_epilogue): Likewise.
10431 (aarch64_emit_add): Likewise.
10432 (aarch64_emit_sub): Likewise.
10433 (aarch64_emit_mul): Likewise.
10434 (aarch64_emit_lsh): Likewise.
10435 (aarch64_emit_rsh_signed): Likewise.
10436 (aarch64_emit_rsh_unsigned): Likewise.
10437 (aarch64_emit_ext): Likewise.
10438 (aarch64_emit_log_not): Likewise.
10439 (aarch64_emit_bit_and): Likewise.
10440 (aarch64_emit_bit_or): Likewise.
10441 (aarch64_emit_bit_xor): Likewise.
10442 (aarch64_emit_bit_not): Likewise.
10443 (aarch64_emit_equal): Likewise.
10444 (aarch64_emit_less_signed): Likewise.
10445 (aarch64_emit_less_unsigned): Likewise.
10446 (aarch64_emit_ref): Likewise.
10447 (aarch64_emit_if_goto): Likewise.
10448 (aarch64_emit_goto): Likewise.
10449 (aarch64_write_goto_address): Likewise.
10450 (aarch64_emit_const): Likewise.
10451 (aarch64_emit_call): Likewise.
10452 (aarch64_emit_reg): Likewise.
10453 (aarch64_emit_pop): Likewise.
10454 (aarch64_emit_stack_flush): Likewise.
10455 (aarch64_emit_zero_ext): Likewise.
10456 (aarch64_emit_swap): Likewise.
10457 (aarch64_emit_stack_adjust): Likewise.
10458 (aarch64_emit_int_call_1): Likewise.
10459 (aarch64_emit_void_call_2): Likewise.
10460 (aarch64_emit_eq_goto): Likewise.
10461 (aarch64_emit_ne_goto): Likewise.
10462 (aarch64_emit_lt_goto): Likewise.
10463 (aarch64_emit_le_goto): Likewise.
10464 (aarch64_emit_gt_goto): Likewise.
10465 (aarch64_emit_ge_got): Likewise.
10466 (aarch64_emit_ops_impl): New static global variable.
10467 (aarch64_emit_ops): New target function, return
10468 &aarch64_emit_ops_impl.
10469 (struct linux_target_ops): Install it.
10471 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10473 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10474 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10476 * linux-aarch64-ipa.c: New file.
10477 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10479 (aarch64_get_thread_area): New target method.
10480 (extract_signed_bitfield): New helper function.
10481 (aarch64_decode_ldr_literal): New function.
10482 (enum aarch64_opcodes): New enum.
10483 (struct aarch64_register): New struct.
10484 (struct aarch64_operand): New struct.
10485 (x0): New static global.
10494 (aarch64_register): New helper function.
10495 (register_operand): Likewise.
10496 (immediate_operand): Likewise.
10497 (struct aarch64_memory_operand): New struct.
10498 (offset_memory_operand): New helper function.
10499 (preindex_memory_operand): Likewise.
10500 (enum aarch64_system_control_registers): New enum.
10501 (ENCODE): New macro.
10502 (emit_insn): New helper function.
10503 (emit_b): New function.
10504 (emit_bcond): Likewise.
10505 (emit_cb): Likewise.
10506 (emit_tb): Likewise.
10507 (emit_blr): Likewise.
10508 (emit_stp): Likewise.
10509 (emit_ldp_q_offset): Likewise.
10510 (emit_stp_q_offset): Likewise.
10511 (emit_load_store): Likewise.
10512 (emit_ldr): Likewise.
10513 (emit_ldrsw): Likewise.
10514 (emit_str): Likewise.
10515 (emit_ldaxr): Likewise.
10516 (emit_stxr): Likewise.
10517 (emit_stlr): Likewise.
10518 (emit_data_processing_reg): Likewise.
10519 (emit_data_processing): Likewise.
10520 (emit_add): Likewise.
10521 (emit_sub): Likewise.
10522 (emit_mov): Likewise.
10523 (emit_movk): Likewise.
10524 (emit_mov_addr): Likewise.
10525 (emit_mrs): Likewise.
10526 (emit_msr): Likewise.
10527 (emit_sevl): Likewise.
10528 (emit_wfe): Likewise.
10529 (append_insns): Likewise.
10530 (can_encode_int32_in): New helper function.
10531 (aarch64_relocate_instruction): New function.
10532 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10533 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10534 (struct linux_target_ops): Install aarch64_get_thread_area,
10535 aarch64_install_fast_tracepoint_jump_pad and
10536 aarch64_get_min_fast_tracepoint_insn_len.
10538 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10540 * Makefile.in (aarch64-insn.o): New rule.
10541 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10543 2015-09-21 Yao Qi <yao.qi@linaro.org>
10545 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10547 2015-09-21 Yao Qi <yao.qi@linaro.org>
10549 * tracepoint.c (max_jump_pad_size): Remove.
10551 2015-09-18 Yao Qi <yao.qi@linaro.org>
10553 * linux-aarch64-low.c: Don't include sys/uio.h.
10554 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10556 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
10558 * tracepoint.c (eval_result_type): Change prototype.
10559 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10561 2015-09-15 Pedro Alves <palves@redhat.com>
10563 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10564 Check whether to report exec events instead of checking whether
10565 multiprocess is enabled.
10567 2015-09-15 Pedro Alves <palves@redhat.com>
10570 * remote-utils.c (prepare_resume_reply): Merge
10571 TARGET_WAITKIND_VFORK_DONE switch case with the
10572 TARGET_WAITKIND_FORKED case.
10574 2015-09-15 Yao Qi <yao.qi@linaro.org>
10576 * server.c (handle_query): Check string comparison using
10577 "else if" instead of "if".
10579 2015-09-15 Yao Qi <yao.qi@linaro.org>
10581 * server.c (vCont_supported): New global variable.
10582 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10583 matches. Append ";vContSupported+" to own_buf.
10584 (handle_v_requests): Append ";s;S" to own_buf if target supports
10585 hardware single step or vCont_supported is false.
10586 (capture_main): Set vCont_supported to zero.
10588 2015-09-15 Yao Qi <yao.qi@linaro.org>
10590 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10592 (linux_supports_hardware_single_step): ... New function.
10593 (linux_target_ops): Update.
10594 * lynx-low.c (lynx_target_ops): Set field
10595 supports_hardware_single_step to target_can_do_hardware_single_step.
10596 * nto-low.c (nto_target_ops): Likewise.
10597 * spu-low.c (spu_target_ops): Likewise.
10598 * win32-low.c (win32_target_ops): Likewise.
10599 * target.c (target_can_do_hardware_single_step): New function.
10600 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10601 Remove. <supports_hardware_single_step>: New field.
10602 (target_supports_conditional_breakpoints): Remove.
10603 (target_supports_hardware_single_step): New macro.
10604 (target_can_do_hardware_single_step): Declare.
10605 * server.c (handle_query): Use target_supports_hardware_single_step
10606 instead of target_supports_conditional_breakpoints.
10608 2015-09-15 Yao Qi <yao.qi@linaro.org>
10610 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10612 (struct linux_target_ops the_low_target): Install
10613 aarch64_linux_siginfo_fixup.
10615 2015-09-11 Don Breazeal <donb@codesourcery.com>
10616 Luis Machado <lgustavo@codesourcery.com>
10618 * linux-low.c (linux_mourn): Static declaration.
10619 (linux_arch_setup): Move in front of
10620 handle_extended_wait.
10621 (linux_arch_setup_thread): New function.
10622 (handle_extended_wait): Handle exec events. Call
10623 linux_arch_setup_thread. Make event_lwp argument a
10624 pointer-to-a-pointer.
10625 (check_zombie_leaders): Do not check stopped threads.
10626 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10627 (linux_low_filter_event): Add lwp and thread for exec'ing
10628 non-leader thread if leader thread has been deleted.
10629 Refactor code into linux_arch_setup_thread and call it.
10630 Pass child lwp pointer by reference to handle_extended_wait.
10631 (linux_wait_for_event_filtered): Update comment.
10632 (linux_wait_1): Prevent clobbering exec event status.
10633 (linux_supports_exec_events): New function.
10634 (linux_target_ops) <supports_exec_events>: Initialize new member.
10635 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10637 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10638 * server.c (report_exec_events): New global variable.
10639 (handle_query): Handle qSupported query for exec-events feature.
10640 (captured_main): Initialize report_exec_events.
10641 * server.h (report_exec_events): Declare new global variable.
10642 * target.h (struct target_ops) <supports_exec_events>: New
10644 (target_supports_exec_events): New macro.
10645 * win32-low.c (win32_target_ops) <supports_exec_events>:
10646 Initialize new member.
10648 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10650 * linux-low.c (linux_low_enable_btrace): Remove.
10651 (linux_target_ops): Replace linux_low_enable_btrace with
10652 linux_enable_btrace.
10654 2015-09-03 Yao Qi <yao.qi@linaro.org>
10656 * linux-aarch64-low.c (aarch64_insert_point): Call
10657 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10660 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10662 * linux-low.c (check_stopped_by_breakpoint): Use
10663 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10665 2015-08-27 Pedro Alves <palves@redhat.com>
10667 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10669 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10671 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10672 the XNEW-family equivalent.
10673 (compile_bytecodes): Likewise.
10674 * dll.c (loaded_dll): Likewise.
10675 * event-loop.c (append_callback_event): Likewise.
10676 (create_file_handler): Likewise.
10677 (create_file_event): Likewise.
10678 * hostio.c (handle_open): Likewise.
10679 * inferiors.c (add_thread): Likewise.
10680 (add_process): Likewise.
10681 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10682 * linux-arm-low.c (arm_new_process): Likewise.
10683 (arm_new_thread): Likewise.
10684 * linux-low.c (add_to_pid_list): Likewise.
10685 (linux_add_process): Likewise.
10686 (handle_extended_wait): Likewise.
10687 (add_lwp): Likewise.
10688 (enqueue_one_deferred_signal): Likewise.
10689 (enqueue_pending_signal): Likewise.
10690 (linux_resume_one_lwp_throw): Likewise.
10691 (linux_resume_one_thread): Likewise.
10692 (linux_read_memory): Likewise.
10693 (linux_write_memory): Likewise.
10694 * linux-mips-low.c (mips_linux_new_process): Likewise.
10695 (mips_linux_new_thread): Likewise.
10696 (mips_add_watchpoint): Likewise.
10697 * linux-x86-low.c (initialize_low_arch): Likewise.
10698 * lynx-low.c (lynx_add_process): Likewise.
10699 * mem-break.c (set_raw_breakpoint_at): Likewise.
10700 (set_breakpoint): Likewise.
10701 (add_condition_to_breakpoint): Likewise.
10702 (add_commands_to_breakpoint): Likewise.
10703 (clone_agent_expr): Likewise.
10704 (clone_one_breakpoint): Likewise.
10705 * regcache.c (new_register_cache): Likewise.
10706 * remote-utils.c (look_up_one_symbol): Likewise.
10707 * server.c (queue_stop_reply): Likewise.
10708 (start_inferior): Likewise.
10709 (queue_stop_reply_callback): Likewise.
10710 (handle_target_event): Likewise.
10711 * spu-low.c (fetch_ppc_memory): Likewise.
10712 (store_ppc_memory): Likewise.
10713 * target.c (set_target_ops): Likewise.
10714 * thread-db.c (thread_db_load_search): Likewise.
10715 (try_thread_db_load_1): Likewise.
10716 * tracepoint.c (add_tracepoint): Likewise.
10717 (add_tracepoint_action): Likewise.
10718 (create_trace_state_variable): Likewise.
10719 (cmd_qtdpsrc): Likewise.
10720 (cmd_qtro): Likewise.
10721 (add_while_stepping_state): Likewise.
10722 * win32-low.c (child_add_thread): Likewise.
10723 (get_image_name): Likewise.
10725 2015-08-25 Yao Qi <yao.qi@linaro.org>
10727 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10729 2015-08-25 Yao Qi <yao.qi@linaro.org>
10731 * Makefile.in (aarch64-linux.o): New rule.
10732 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10734 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10735 (aarch64_init_debug_reg_state): Make it extern.
10736 (aarch64_linux_prepare_to_resume): Remove.
10738 2015-08-25 Yao Qi <yao.qi@linaro.org>
10740 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10741 lwp_arch_private_info and ptid_of_lwp.
10743 2015-08-25 Yao Qi <yao.qi@linaro.org>
10745 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10746 Find proc_info by find_process_pid. All callers updated.
10748 2015-08-25 Yao Qi <yao.qi@linaro.org>
10750 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10752 (debug_reg_change_callback): Remove.
10753 (aarch64_notify_debug_reg_change): Remove.
10755 2015-08-25 Yao Qi <yao.qi@linaro.org>
10757 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10758 Call current_lwp_ptid.
10760 2015-08-25 Yao Qi <yao.qi@linaro.org>
10762 * linux-aarch64-low.c (debug_reg_change_callback): Use
10765 2015-08-25 Yao Qi <yao.qi@linaro.org>
10767 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10769 2015-08-25 Yao Qi <yao.qi@linaro.org>
10771 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10773 2015-08-25 Yao Qi <yao.qi@linaro.org>
10775 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10778 2015-08-25 Yao Qi <yao.qi@linaro.org>
10780 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10782 (debug_reg_change_callback): Remove argument entry and add argument
10783 lwp. Remove local variable thread. Don't print thread id in the
10784 debugging output. Don't check whether pid of thread equals to pid.
10785 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10786 iterate_over_lwps instead find_inferior.
10788 2015-08-24 Pedro Alves <palves@redhat.com>
10790 * inferiors.c (get_first_process): New function.
10791 * inferiors.h (get_first_process): New declaration.
10792 * remote-utils.c (read_ptid): Default to the first process in the
10793 list, instead of to the current thread's process.
10795 2015-08-24 Pedro Alves <palves@redhat.com>
10797 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10798 * event-loop.c: Likewise.
10799 * remote-utils.c: Likewise.
10800 * tracepoint.c: Likewise.
10802 2015-08-24 Pedro Alves <palves@redhat.com>
10804 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10807 2015-08-21 Pedro Alves <palves@redhat.com>
10809 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10810 instead of literal 1.
10812 2015-08-21 Pedro Alves <palves@redhat.com>
10814 * tdesc.c (default_description): Explicitly zero-initialize.
10816 2015-08-21 Pedro Alves <palves@redhat.com>
10819 * inferiors.c (remove_thread): Discard any pending stop reply for
10821 * server.c (remove_all_on_match_pid): Rename to ...
10822 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10824 (discard_queued_stop_replies): Change parameter to a ptid. Now
10826 (handle_v_kill, kill_inferior_callback, captured_main)
10827 (process_serial_event): Adjust.
10828 * server.h (discard_queued_stop_replies): Declare.
10830 2015-08-21 Pedro Alves <palves@redhat.com>
10832 * linux-low.c (wait_for_sigstop): Always switch to no thread
10833 selected if the previously current thread dies.
10834 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10835 process instead of the current thread's.
10836 * remote-utils.c (input_interrupt): Don't check if there's no
10838 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10839 current thread to the general thread fails, error out.
10840 (handle_qxfer_auxv, handle_qxfer_libraries)
10841 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10842 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10843 (handle_query): Check if there's a thread selected instead of
10844 checking whether there's any thread in the thread list.
10845 (handle_qxfer_threads, handle_qxfer_btrace)
10846 (handle_qxfer_btrace_conf): Don't error out early if there's no
10847 thread in the thread list.
10848 (handle_v_cont, myresume): Don't set the current thread to the
10850 (process_serial_event) <Hg handling>: Also set thread_id if the
10851 previous general thread is still alive.
10852 (process_serial_event) <g/G handling>: If setting the current
10853 thread to the general thread fails, error out.
10854 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10855 thread's lwp instead of the current thread's.
10856 * target.c (set_desired_thread): If the desired thread was not
10857 found, leave the current thread pointing to NULL. Return an int
10858 (boolean) indicating success.
10859 * target.h (set_desired_thread): Change return type to int.
10861 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10863 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10864 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10866 (ps_get_thread_area): New function.
10868 2015-08-19 Gary Benson <gbenson@redhat.com>
10870 * hostio.c (handle_pread): Do not attempt to read more data
10871 than hostio_reply_with_data can fit in a packet.
10873 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10875 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10877 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10879 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10881 2015-08-06 Pedro Alves <palves@redhat.com>
10883 * tracepoint.c (expr_eval_result): Now an int.
10885 2015-08-06 Pedro Alves <palves@redhat.com>
10887 * gdbthread.h (struct regcache): Forward declare.
10888 (struct thread_info) <regcache_data>: Now a struct regcache
10890 * inferiors.c (inferior_regcache_data)
10891 (set_inferior_regcache_data): Now work with struct regcache
10893 * inferiors.h (struct regcache): Forward declare.
10894 (inferior_regcache_data, set_inferior_regcache_data): Now work
10895 with struct regcache pointers.
10896 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10897 (free_register_cache_thread): Remove struct regcache pointer
10900 2015-08-06 Pedro Alves <palves@redhat.com>
10902 * server.c (captured_main): On error, print the exception message
10903 to stderr, and if run_once is set, throw a quit.
10905 2015-08-06 Pedro Alves <palves@redhat.com>
10907 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10908 the current thread.
10910 2015-08-06 Pedro Alves <palves@redhat.com>
10912 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10913 reading beyond the passed in buffer length.
10915 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10917 * tracepoint.c (symbol_list) <required>: Remove.
10919 2015-08-06 Pedro Alves <palves@redhat.com>
10921 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10922 count if stopping and suspending threads.
10923 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10924 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10925 (linux_detach): Complete an ongoing step-over.
10926 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10928 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10929 (linux_wait_1): If passing a signal to the inferior after
10930 finishing a step-over, unsuspend and re-resume all lwps. If we
10931 see a single-step event but the thread should be continuing, don't
10932 pass the trap to gdb.
10933 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10934 internal_error instead of gdb_assert.
10935 (enqueue_pending_signal): New function.
10936 (check_ptrace_stopped_lwp_gone): Add debug output.
10937 (start_step_over): Use internal_error instead of gdb_assert.
10938 (complete_ongoing_step_over): New function.
10939 (linux_resume_one_thread): Don't resume a suspended thread.
10940 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10943 2015-08-06 Pedro Alves <palves@redhat.com>
10945 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10946 (linux_thread_alive): Use lwp_is_marked_dead.
10947 (extended_event_reported): Delete.
10948 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10949 instead of extended_event_reported.
10950 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10952 (lwp_is_marked_dead): New function.
10953 (lwp_running): Use lwp_is_marked_dead.
10954 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10957 2015-08-06 Pedro Alves <palves@redhat.com>
10959 * linux-low.c (linux_wait_1): Move fork event output out of the
10960 !report_to_gdb check. Pass event_child->waitstatus to
10961 target_waitstatus_to_string instead of ourstatus.
10963 2015-08-04 Yao Qi <yao.qi@linaro.org>
10965 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10966 if current_thread is 32 bit.
10968 2015-08-04 Yao Qi <yao.qi@linaro.org>
10970 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10971 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10972 * server.c (extended_protocol): Remove "static".
10973 * server.h (extended_protocol): Declare it.
10975 2015-08-04 Yao Qi <yao.qi@linaro.org>
10977 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10978 both aarch64 and aarch32.
10979 (aarch64_set_pc): Likewise.
10981 2015-08-04 Yao Qi <yao.qi@linaro.org>
10983 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10984 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10985 arm-with-neon.xml to srv_xmlfiles.
10986 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10987 (is_64bit_tdesc): New function.
10988 (aarch64_linux_read_description): New function.
10989 (aarch64_arch_setup): Call aarch64_linux_read_description.
10990 (regs_info): Rename to regs_info_aarch64.
10991 (aarch64_regs_info): Return right regs_info.
10992 (initialize_low_arch): Call initialize_low_arch_aarch32.
10994 2015-08-04 Yao Qi <yao.qi@linaro.org>
10996 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10997 * linux-aarch32-low.c: New file.
10998 * linux-aarch32-low.h: New file.
10999 * linux-arm-low.c (arm_fill_gregset): Move it to
11000 linux-aarch32-low.c.
11001 (arm_store_gregset): Likewise.
11002 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
11003 (arm_store_vfpregset): Call arm_store_vfpregset_num.
11004 (arm_arch_setup): Check if PTRACE_GETREGSET works.
11005 (regs_info): Rename to regs_info_arm.
11006 (arm_regs_info): Return regs_info_aarch32 if
11007 have_ptrace_getregset is 1 and target description is
11008 arm_with_neon or arm_with_vfpv3.
11009 (initialize_low_arch): Don't call init_registers_arm_with_neon.
11010 Call initialize_low_arch_aarch32 instead.
11012 2015-08-04 Yao Qi <yao.qi@linaro.org>
11014 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
11015 * linux-low.c: ... here.
11016 * linux-low.h (have_ptrace_getregset): Declare it.
11018 2015-08-04 Pedro Alves <palves@redhat.com>
11020 * thread-db.c (struct thread_db): Use new typedefs.
11021 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
11023 (disable_thread_event_reporting): Cast result of dlsym to
11024 destination function pointer type.
11025 (thread_db_mourn): Use td_ta_delete_ftype.
11027 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
11029 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
11031 (CDX_BREAKPOINT): Define for R2.
11032 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
11033 (the_low_target): Add comments.
11035 2015-07-30 Yao Qi <yao.qi@linaro.org>
11037 * linux-arm-low.c (arm_hwcap): Remove it.
11038 (arm_read_description): New local variable arm_hwcap. Don't
11039 set arm_hwcap to zero.
11041 2015-07-30 Yao Qi <yao.qi@linaro.org>
11043 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
11044 Use regcache->tdesc instead.
11045 (arm_store_wmmxregset): Likewise.
11046 (arm_fill_vfpregset): Likewise.
11047 (arm_store_vfpregset): Likewise.
11049 2015-07-30 Yao Qi <yao.qi@linaro.org>
11051 * linux-arm-low.c: Include arch/arm.h.
11052 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
11053 (arm_store_gregset): Likewise.
11055 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
11057 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
11058 ptrace's 4th parameter.
11060 2015-07-27 Yao Qi <yao.qi@linaro.org>
11062 * configure.srv (case aarch64*-*-linux*): Don't set
11065 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
11067 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
11069 * linux-arm-low.c: Likewise.
11070 * linux-cris-low.c: Likewise.
11071 * linux-crisv32-low.c: Likewise.
11072 * linux-low.c: Likewise.
11073 * linux-m68k-low.c: Likewise.
11074 * linux-mips-low.c: Likewise.
11075 * linux-nios2-low.c: Likewise.
11076 * linux-s390-low.c: Likewise.
11077 * linux-sparc-low.c: Likewise.
11078 * linux-tic6x-low.c: Likewise.
11079 * linux-tile-low.c: Likewise.
11080 * linux-x86-low.c: Likewise.
11082 2015-07-24 Pedro Alves <palves@redhat.com>
11084 * config.in: Regenerate.
11085 * configure: Regenerate.
11087 2015-07-24 Pedro Alves <palves@redhat.com>
11089 * acinclude.m4: Include ../ptrace.m4.
11090 * configure.ac: Call GDB_AC_PTRACE.
11091 * config.in, configure: Regenerate.
11093 2015-07-24 Yao Qi <yao.qi@linaro.org>
11095 * linux-low.c (linux_create_inferior): Remove setting to
11096 proc->priv->new_inferior.
11097 (linux_attach): Likewise.
11098 (linux_low_filter_event): Likewise.
11099 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
11101 2015-07-24 Yao Qi <yao.qi@linaro.org>
11103 * linux-low.c (linux_arch_setup): New function.
11104 (linux_low_filter_event): If proc->tdesc is NULL and
11105 proc->attached is true, call the_low_target.arch_setup.
11106 Otherwise, keep status pending, and return.
11107 (linux_resume_one_lwp_throw): Don't call get_pc if
11108 thread->while_stepping isn't NULL. Don't call
11109 get_thread_regcache if proc->tdesc is NULL.
11110 (need_step_over_p): Return 0 if proc->tdesc is NULL.
11111 (linux_target_ops): Install arch_setup.
11112 * server.c (start_inferior): Call the_target->arch_setup.
11113 * target.h (struct target_ops) <arch_setup>: New field.
11114 (target_arch_setup): New marco.
11115 * lynx-low.c (lynx_target_ops): Update.
11116 * nto-low.c (nto_target_ops): Update.
11117 * spu-low.c (spu_target_ops): Update.
11118 * win32-low.c (win32_target_ops): Update.
11120 2015-07-24 Yao Qi <yao.qi@linaro.org>
11122 * linux-low.c (linux_add_process): Don't set
11123 proc->priv->new_inferior.
11124 (linux_create_inferior): Set proc->priv->new_inferior to 1.
11125 (linux_attach): Likewise.
11127 2015-07-24 Yao Qi <yao.qi@linaro.org>
11129 * server.c (start_inferior): Code refactor.
11131 2015-07-24 Yao Qi <yao.qi@linaro.org>
11133 * server.c (process_serial_event): Set general_thread.
11135 2015-07-21 Yao Qi <yao.qi@linaro.org>
11137 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
11138 aarch64_linux_get_debug_reg_capacity.
11140 2015-07-17 Yao Qi <yao.qi@linaro.org>
11142 * Makefile.in (aarch64-linux-hw-point.o): New rule.
11143 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
11144 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
11145 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
11146 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
11147 (AARCH64_HWP_ALIGNMENT): Likewise.
11148 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
11149 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
11150 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
11151 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
11152 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
11153 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
11154 (struct aarch64_debug_reg_state): Likewise.
11155 (struct arch_lwp_info): Likewise.
11156 (aarch64_align_watchpoint): Likewise.
11157 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
11158 (aarch64_watchpoint_length): Likewise.
11159 (aarch64_point_encode_ctrl_reg): Likewise
11160 (aarch64_point_is_aligned): Likewise.
11161 (aarch64_align_watchpoint): Likewise.
11162 (aarch64_linux_set_debug_regs):
11163 (aarch64_dr_state_insert_one_point): Likewise.
11164 (aarch64_dr_state_remove_one_point): Likewise.
11165 (aarch64_handle_breakpoint): Likewise.
11166 (aarch64_handle_aligned_watchpoint): Likewise.
11167 (aarch64_handle_unaligned_watchpoint): Likewise.
11168 (aarch64_handle_watchpoint): Likewise.
11170 2015-07-17 Yao Qi <yao.qi@linaro.org>
11172 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
11173 and don't aarch64_get_debug_reg_state. All callers update.
11174 (aarch64_handle_aligned_watchpoint): Likewise.
11175 (aarch64_handle_unaligned_watchpoint): Likewise.
11176 (aarch64_handle_watchpoint): Likewise.
11177 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
11178 (aarch64_remove_point): Likewise.
11180 2015-07-17 Yao Qi <yao.qi@linaro.org>
11182 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
11184 (aarch64_handle_unaligned_watchpoint): Likewise.
11186 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11188 Revert the previous 3 commits:
11189 Move gdb_regex* to common/
11190 Move linux_find_memory_regions_full & co.
11191 gdbserver build-id attribute generator
11193 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11194 Jan Kratochvil <jan.kratochvil@redhat.com>
11196 gdbserver build-id attribute generator.
11197 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
11198 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
11199 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
11201 (get_dynamic): Use find_pdhr to traverse program headers.
11202 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
11203 (compare_mapping_entry_range, struct find_memory_region_callback_data)
11204 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
11205 (get_hex_build_id): New.
11206 (linux_qxfer_libraries_svr4): Add optional build-id attribute
11207 to reply XML document.
11209 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11210 Jan Kratochvil <jan.kratochvil@redhat.com>
11212 * target.c: Include target/target-utils.h and fcntl.h.
11213 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
11214 (target_fileio_read_stralloc): New functions.
11216 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11218 * Makefile.in (OBS): Add gdb_regex.o.
11219 (gdb_regex.o): New.
11220 * config.in: Rebuilt.
11221 * configure: Rebuilt.
11223 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11224 Jan Kratochvil <jan.kratochvil@redhat.com>
11226 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
11227 * Makefile.in (OBS): Add target-utils.o.
11228 (linux-maps.o, target-utils.o): New.
11229 * configure.srv (srv_linux_obj): Add linux-maps.o.
11231 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
11233 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
11234 function, return 1.
11235 (the_low_target): Install it.
11237 2015-07-14 Pedro Alves <palves@redhat.com>
11239 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
11240 Instead, ignore ECHILD, and throw an error for other errnos.
11242 2015-07-10 Pedro Alves <palves@redhat.com>
11244 * event-loop.c (struct callback_event) <data>: Change type to
11245 gdb_client_data instance instead of gdb_client_data pointer.
11246 (append_callback_event): Adjust.
11248 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
11250 * linux-aarch64-low.c: Add comments for each linux_target_ops
11251 method. Remove comments already covered in target_ops and
11252 linux_target_ops definitions.
11253 (the_low_target): Add comments for each unimplemented method.
11255 2015-07-09 Yao Qi <yao.qi@linaro.org>
11257 * linux-aarch64-low.c (aarch64_regmap): Remove.
11258 (aarch64_usrregs_info): Remove.
11259 (regs_info): Set field usrregs to NULL.
11261 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11263 * linux-low.c: Include "rsp-low.h"
11264 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11265 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11266 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11267 (handle_btrace_enable_pt): New.
11268 (handle_btrace_general_set): Support "pt".
11269 (handle_btrace_conf_general_set): Support "pt:size".
11271 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11273 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11276 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11278 * linux-aarch64-low.c: Remove comment about endianness.
11279 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11280 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11283 2015-06-24 Gary Benson <gbenson@redhat.com>
11285 * linux-i386-ipa.c (stdint.h): Do not include.
11286 * lynx-i386-low.c (stdint.h): Likewise.
11287 * lynx-ppc-low.c (stdint.h): Likewise.
11288 * mem-break.c (stdint.h): Likewise.
11289 * thread-db.c (stdint.h): Likewise.
11290 * tracepoint.c (stdint.h): Likewise.
11291 * win32-low.c (stdint.h): Likewise.
11293 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11295 * server.c (write_qxfer_response): Update call to
11296 remote_escape_output.
11298 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11299 Jan Kratochvil <jan.kratochvil@redhat.com>
11301 Merge multiple hex conversions.
11302 * gdbreplay.c (tohex): Rename to 'fromhex'.
11303 (logchar): Use fromhex.
11305 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11307 * server.c (handle_qxfer_libraries): Set `version' attribute for
11310 2015-06-10 Gary Benson <gbenson@redhat.com>
11312 * target.h (struct target_ops) <multifs_open>: New field.
11313 <multifs_unlink>: Likewise.
11314 <multifs_readlink>: Likewise.
11315 * linux-low.c (nat/linux-namespaces.h): New include.
11316 (linux_target_ops): Initialize the_target->multifs_open,
11317 the_target->multifs_unlink and the_target->multifs_readlink.
11318 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11319 * hostio.c (hostio_fs_pid): New static variable.
11320 (hostio_handle_new_gdb_connection): New function.
11321 (handle_setfs): Likewise.
11322 (handle_open): Use the_target->multifs_open as appropriate.
11323 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11324 (handle_readlink): Use the_target->multifs_readlink as
11326 (handle_vFile): Handle vFile:setfs packets.
11327 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11328 after target_handle_new_gdb_connection.
11330 2015-06-10 Gary Benson <gbenson@redhat.com>
11332 * configure.ac (AC_CHECK_FUNCS): Add setns.
11333 * config.in: Regenerate.
11334 * configure: Likewise.
11335 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11336 (linux-namespaces.o): New rule.
11337 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11339 2015-06-09 Gary Benson <gbenson@redhat.com>
11341 * hostio.c (handle_open): Process mode argument with
11342 fileio_to_host_mode.
11344 2015-06-01 Yao Qi <yao.qi@linaro.org>
11346 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11347 * linux-x86-low.c: Likewise.
11349 2015-05-28 Don Breazeal <donb@codesourcery.com>
11351 * linux-low.c (handle_extended_wait): Initialize
11352 thread_info.last_resume_kind for new fork children.
11354 2015-05-15 Pedro Alves <palves@redhat.com>
11356 * target.h (target_handle_new_gdb_connection): Rewrite using if
11357 wrapped in do/while.
11359 2015-05-14 Joel Brobecker <brobecker@adacore.com>
11361 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11362 * configure, config.in: Regenerate.
11363 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11366 2015-05-12 Don Breazeal <donb@codesourcery.com>
11368 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11369 PTRACE_EVENT_VFORK_DONE.
11370 (linux_low_ptrace_options, extended_event_reported): Add vfork
11372 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11373 and "vforkdone" for RSP 'T' Stop Reply Packet.
11374 * server.h (report_vfork_events): Declare
11377 2015-05-12 Don Breazeal <donb@codesourcery.com>
11379 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11380 (the_low_target) <new_fork>: Initialize new member.
11381 * linux-arm-low.c (arm_new_fork): New function.
11382 (the_low_target) <new_fork>: Initialize new member.
11383 * linux-low.c (handle_extended_wait): Call new target function
11385 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11386 * linux-mips-low.c (mips_add_watchpoint): New function
11387 extracted from mips_insert_point.
11388 (the_low_target) <new_fork>: Initialize new member.
11389 (mips_linux_new_fork): New function.
11390 (mips_insert_point): Call mips_add_watchpoint.
11391 * linux-x86-low.c (x86_linux_new_fork): New function.
11392 (the_low_target) <new_fork>: Initialize new member.
11394 2015-05-12 Don Breazeal <donb@codesourcery.com>
11396 * linux-low.c (handle_extended_wait): Implement return value,
11397 rename argument 'event_child' to 'event_lwp', handle
11398 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11399 (linux_low_ptrace_options): New function.
11400 (linux_low_filter_event): Call linux_low_ptrace_options,
11401 use different argument fo linux_enable_event_reporting,
11402 use return value from handle_extended_wait.
11403 (extended_event_reported): New function.
11404 (linux_wait_1): Call extended_event_reported and set
11405 status to report fork events.
11406 (linux_write_memory): Add pid to debug message.
11407 (reset_lwp_ptrace_options_callback): New function.
11408 (linux_handle_new_gdb_connection): New function.
11409 (linux_target_ops): Initialize new structure member.
11410 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11411 * lynx-low.c: Initialize new structure member.
11412 * remote-utils.c (prepare_resume_reply): Implement stop reason
11413 "fork" for "T" stop message.
11414 * server.c (handle_query): Call handle_new_gdb_connection.
11415 * server.h (report_fork_events): Declare global flag.
11416 * target.h (struct target_ops) <handle_new_gdb_connection>:
11418 (target_handle_new_gdb_connection): New macro.
11419 * win32-low.c: Initialize new structure member.
11421 2015-05-12 Don Breazeal <donb@codesourcery.com>
11423 * mem-break.c (APPEND_TO_LIST): Define macro.
11424 (clone_agent_expr): New function.
11425 (clone_one_breakpoint): New function.
11426 (clone_all_breakpoints): New function.
11427 * mem-break.h: Declare new functions.
11429 2015-05-12 Don Breazeal <donb@codesourcery.com>
11431 * linux-low.c (linux_supports_fork_events): New function.
11432 (linux_supports_vfork_events): New function.
11433 (linux_target_ops): Initialize new structure members.
11434 (initialize_low): Call linux_check_ptrace_features.
11435 * lynx-low.c (lynx_target_ops): Initialize new structure
11437 * server.c (report_fork_events, report_vfork_events):
11439 (handle_query): Add new features to qSupported packet and
11441 (captured_main): Initialize new global variables.
11442 * target.h (struct target_ops) <supports_fork_events>:
11444 <supports_vfork_events>: New member.
11445 (target_supports_fork_events): New macro.
11446 (target_supports_vfork_events): New macro.
11447 * win32-low.c (win32_target_ops): Initialize new structure
11450 2015-05-12 Gary Benson <gbenson@redhat.com>
11452 * server.c (handle_qxfer_exec_file): Use current process
11455 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11457 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11458 Remove HAVE_PTRACE_GETREGS conditionals.
11459 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11460 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11462 2015-05-08 Yao Qi <yao.qi@linaro.org>
11464 * linux-low.c (linux_supports_conditional_breakpoints): New
11466 (linux_target_ops): Install new target method.
11467 * lynx-low.c (lynx_target_ops): Install NULL hook for
11468 supports_conditional_breakpoints.
11469 * nto-low.c (nto_target_ops): Likewise.
11470 * spu-low.c (spu_target_ops): Likewise.
11471 * win32-low.c (win32_target_ops): Likewise.
11472 * server.c (handle_query): Check
11473 target_supports_conditional_breakpoints.
11474 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11476 (target_supports_conditional_breakpoints): New macro.
11478 2015-05-06 Pedro Alves <palves@redhat.com>
11481 * server.c (start_inferior): If the process exits, mourn it.
11483 2015-04-21 Gary Benson <gbenson@redhat.com>
11485 * hostio.c (fileio_open_flags_to_host): Factored out to
11486 fileio_to_host_openflags in common/fileio.c. Single use
11489 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11491 * linux-xtensa-low.c (xtensa_fill_gregset)
11492 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11495 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11497 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11498 (regs_info): Replace usrregs pointer with NULL.
11500 2015-04-17 Gary Benson <gbenson@redhat.com>
11502 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11503 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11504 * server.c (handle_qxfer_exec_file): New function.
11505 (qxfer_packets): Add exec-file entry.
11506 (handle_query): Report qXfer:exec-file:read as supported packet.
11508 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11510 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11512 2015-04-09 Gary Benson <gbenson@redhat.com>
11514 * hostio-errno.c (errno_to_fileio_error): Remove function.
11515 Update caller to use remote_fileio_to_fio_error.
11517 2015-04-09 Yao Qi <yao.qi@linaro.org>
11519 * linux-low.c (linux_insert_point): Call
11520 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11521 (linux_remove_point): Call remove_memory_breakpoint if type is
11523 * linux-x86-low.c (x86_insert_point): Don't call
11524 insert_memory_breakpoint.
11525 (x86_remove_point): Don't call remove_memory_breakpoint.
11527 2015-04-01 Pedro Alves <palves@redhat.com>
11528 Cleber Rosa <crosa@redhat.com>
11530 * server.c (gdbserver_usage): Reorganize and extend the usage
11533 2015-03-24 Pedro Alves <palves@redhat.com>
11535 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11536 output. Also dump TRAP_TRACE.
11537 (linux_low_filter_event): In debug output, distinguish a
11538 resume_stop SIGSTOP from a delayed SIGSTOP.
11540 2015-03-24 Gary Benson <gbenson@redhat.com>
11542 * linux-x86-low.c (x86_linux_new_thread): Moved to
11544 (x86_linux_prepare_to_resume): Likewise.
11546 2015-03-24 Gary Benson <gbenson@redhat.com>
11548 * Makefile.in (x86-linux-dregs.o): New rule.
11549 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11550 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11551 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11552 (x86_linux_dr_get): Likewise.
11553 (x86_linux_dr_set): Likewise.
11554 (update_debug_registers_callback): Likewise.
11555 (x86_linux_dr_set_addr): Likewise.
11556 (x86_linux_dr_get_addr): Likewise.
11557 (x86_linux_dr_set_control): Likewise.
11558 (x86_linux_dr_get_control): Likewise.
11559 (x86_linux_dr_get_status): Likewise.
11560 (x86_linux_update_debug_registers): Likewise.
11562 2015-03-24 Gary Benson <gbenson@redhat.com>
11564 * linux-x86-low.c (x86_linux_update_debug_registers):
11565 New function, factored out from...
11566 (x86_linux_prepare_to_resume): ...this.
11568 2015-03-24 Gary Benson <gbenson@redhat.com>
11570 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11571 (x86_linux_dr_set): Likewise.
11572 (update_debug_registers_callback): Likewise.
11573 (x86_linux_dr_set_addr): Likewise.
11574 (x86_linux_dr_get_addr): Likewise.
11575 (x86_linux_dr_set_control): Likewise.
11576 (x86_linux_dr_get_control): Likewise.
11577 (x86_linux_dr_get_status): Likewise.
11578 (x86_linux_prepare_to_resume): Likewise.
11580 2015-03-24 Gary Benson <gbenson@redhat.com>
11582 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11583 Use perror_with_name. Pass string through gettext.
11584 (x86_linux_dr_set): Likewise.
11586 2015-03-24 Gary Benson <gbenson@redhat.com>
11588 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11589 (x86_linux_dr_set_addr): ...this.
11590 (x86_dr_low_get_addr): Rename to...
11591 (x86_linux_dr_get_addr): ...this.
11592 (x86_dr_low_set_control): Rename to...
11593 (x86_linux_dr_set_control): ...this.
11594 (x86_dr_low_get_control): Rename to...
11595 (x86_linux_dr_get_control): ...this.
11596 (x86_dr_low_get_status): Rename to...
11597 (x86_linux_dr_get_status): ...this.
11598 (x86_dr_low): Update with new function names.
11600 2015-03-24 Gary Benson <gbenson@redhat.com>
11602 * Makefile.in (x86-linux.o): New rule.
11603 * configure.srv: Add x86-linux.o to relevant targets.
11604 * linux-low.c (lwp_set_arch_private_info): New function.
11605 (lwp_arch_private_info): Likewise.
11606 * linux-x86-low.c: Include nat/x86-linux.h.
11607 (arch_lwp_info): Removed structure.
11608 (update_debug_registers_callback):
11609 Use lwp_set_debug_registers_changed.
11610 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11611 and lwp_set_debug_registers_changed.
11612 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11614 2015-03-24 Gary Benson <gbenson@redhat.com>
11616 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11617 * linux-arm-low.c (arm_new_thread): Likewise.
11618 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11619 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11620 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11621 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11623 2015-03-24 Gary Benson <gbenson@redhat.com>
11625 * linux-low.c (ptid_of_lwp): New function.
11626 (lwp_is_stopped): Likewise.
11627 (lwp_stop_reason): Likewise.
11628 * linux-x86-low.c (update_debug_registers_callback):
11629 Use lwp_is_stopped.
11630 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11633 2015-03-24 Gary Benson <gbenson@redhat.com>
11635 * linux-low.h (linux_stop_lwp): Remove declaration.
11637 2015-03-24 Gary Benson <gbenson@redhat.com>
11639 * linux-low.h: Include nat/linux-nat.h.
11640 * linux-low.c (iterate_over_lwps_args): New structure.
11641 (iterate_over_lwps_filter): New function.
11642 (iterate_over_lwps): Likewise.
11643 * linux-x86-low.c (update_debug_registers_callback):
11644 Update signature to what iterate_over_lwps expects.
11645 Remove PID check that iterate_over_lwps now performs.
11646 (x86_dr_low_set_addr): Use iterate_over_lwps.
11647 (x86_dr_low_set_control): Likewise.
11649 2015-03-24 Gary Benson <gbenson@redhat.com>
11651 * linux-x86-low.c (x86_debug_reg_state): New function.
11652 (x86_linux_prepare_to_resume): Use the above.
11654 2015-03-24 Gary Benson <gbenson@redhat.com>
11656 * linux-low.c (current_lwp_ptid): New function.
11657 * linux-x86-low.c: Include nat/linux-nat.h.
11658 (x86_dr_low_get_addr): Use current_lwp_ptid.
11659 (x86_dr_low_get_control): Likewise.
11660 (x86_dr_low_get_status): Likewise.
11662 2015-03-20 Pedro Alves <palves@redhat.com>
11664 * tracepoint.c (cmd_qtstatus): Make "str" const.
11666 2015-03-20 Pedro Alves <palves@redhat.com>
11668 * server.c (handle_general_set): Make "req_str" const.
11670 2015-03-19 Pedro Alves <palves@redhat.com>
11672 * linux-low.c (linux_resume_one_lwp): Rename to ...
11673 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11674 instead call perror_with_name.
11675 (check_ptrace_stopped_lwp_gone): New function.
11676 (linux_resume_one_lwp): Reimplement as wrapper around
11677 linux_resume_one_lwp_throw that swallows errors if the LWP is
11680 2015-03-19 Pedro Alves <palves@redhat.com>
11682 * linux-low.c (count_events_callback, select_event_lwp_callback):
11683 No longer check whether the thread has resume_stop as last resume
11686 2015-03-19 Pedro Alves <palves@redhat.com>
11688 * linux-low.c (count_events_callback, select_event_lwp_callback):
11689 Use the lwp's status_pending_p field, not the thread's.
11691 2015-03-19 Pedro Alves <palves@redhat.com>
11693 * linux-low.c (select_event_lwp_callback): Update comments to
11694 no longer mention SIGTRAP.
11696 2015-03-18 Gary Benson <gbenson@redhat.com>
11698 * server.c (handle_query): Do not report vFile:fstat as supported.
11700 2015-03-11 Gary Benson <gbenson@redhat.com>
11702 * hostio.c (sys/types.h): New include.
11703 (sys/stat.h): Likewise.
11704 (common-remote-fileio.h): Likewise.
11705 (handle_fstat): New function.
11706 (handle_vFile): Handle vFile:fstat packets.
11708 2015-03-11 Gary Benson <gbenson@redhat.com>
11710 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11711 struct stat.st_blocks and struct stat.st_blksize.
11712 * configure: Regenerate.
11713 * config.in: Likewise.
11714 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11715 (OBS): Add common-remote-fileio.o.
11716 (common-remote-fileio.o): New rule.
11718 2015-03-09 Pedro Alves <palves@redhat.com>
11720 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11721 'struct sockaddr' pointer in 'accept' call.
11723 2015-03-09 Pedro Alves <palves@redhat.com>
11726 2015-03-07 Pedro Alves <palves@redhat.com>
11727 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11728 or <winsock2.h> here. Instead include "gdb_socket.h".
11729 (remote_open): Use union gdb_sockaddr_u.
11730 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11731 or <winsock2.h> here. Instead include "gdb_socket.h".
11732 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11733 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11735 (init_named_socket, gdb_agent_helper_thread): Use union
11738 2015-03-07 Pedro Alves <palves@redhat.com>
11740 * configure.ac (build_warnings): Move
11741 -Wdeclaration-after-statement to the C-specific set.
11742 * configure: Regenerate.
11744 2015-03-07 Pedro Alves <palves@redhat.com>
11746 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11747 or <winsock2.h> here. Instead include "gdb_socket.h".
11748 (remote_open): Use union gdb_sockaddr_u.
11749 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11750 or <winsock2.h> here. Instead include "gdb_socket.h".
11751 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11752 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11754 (init_named_socket, gdb_agent_helper_thread): Use union
11757 2015-03-07 Pedro Alves <palves@redhat.com>
11759 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11762 2015-03-06 Yao Qi <yao.qi@linaro.org>
11764 * linux-aarch64-low.c (aarch64_insert_point): Use
11765 show_debug_regs as a boolean.
11766 (aarch64_remove_point): Likewise.
11768 2015-03-05 Pedro Alves <palves@redhat.com>
11770 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11771 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11772 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11773 * nto-low.c (nto_target_ops): Likewise.
11774 * spu-low.c (spu_target_ops): Likewise.
11775 * win32-low.c (win32_target_ops): Likewise.
11777 2015-03-04 Pedro Alves <palves@redhat.com>
11779 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11780 Decide whether a breakpoint triggered based on the SIGTRAP's
11782 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11783 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11784 (linux_low_filter_event): Check for breakpoints before checking
11786 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11788 (linux_stopped_by_sw_breakpoint)
11789 (linux_supports_stopped_by_sw_breakpoint)
11790 (linux_stopped_by_hw_breakpoint)
11791 (linux_supports_stopped_by_hw_breakpoint): New functions.
11792 (linux_target_ops): Install new target methods.
11794 2015-03-04 Pedro Alves <palves@redhat.com>
11796 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11797 * server.c (swbreak_feature, hwbreak_feature): New globals.
11798 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11799 (captured_main): Clear swbreak_feature and hwbreak_feature.
11800 * server.h (swbreak_feature, hwbreak_feature): Declare.
11801 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11802 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11803 supports_stopped_by_hw_breakpoint>: New fields.
11804 (target_supports_stopped_by_sw_breakpoint)
11805 (target_stopped_by_sw_breakpoint)
11806 (target_supports_stopped_by_hw_breakpoint)
11807 (target_stopped_by_hw_breakpoint): Declare.
11809 2015-03-04 Pedro Alves <palves@redhat.com>
11811 enum lwp_stop_reason -> enum target_stop_reason
11812 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11813 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11814 (linux_wait_1, stuck_in_jump_pad_callback)
11815 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11816 (linux_stopped_by_watchpoint):
11817 * linux-low.h (enum lwp_stop_reason): Delete.
11818 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11819 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11821 2015-03-04 Yao Qi <yao.qi@linaro.org>
11823 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11825 2015-03-03 Gary Benson <gbenson@redhat.com>
11827 * hostio.c (handle_vFile): Fix prefix lengths.
11829 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11831 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11834 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11836 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11837 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11838 (clean): Add "rm -f" for above C files.
11839 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11840 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11841 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11842 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11843 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11844 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11845 (init_registers_s390x_vx_linux64)
11846 (init_registers_s390x_tevx_linux64)
11847 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11848 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11850 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11851 (s390_store_vxrs_high): New functions.
11852 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11854 (s390_arch_setup): Add logic for selecting one of the new target
11855 descriptions. Activate the new vector regsets if applicable.
11856 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11857 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11858 and init_registers_s390x_tevx_linux64.
11860 2015-03-01 Pedro Alves <palves@redhat.com>
11862 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11865 2015-02-27 Pedro Alves <palves@redhat.com>
11867 * linux-x86-low.c (u_debugreg_offset): New function.
11868 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11870 2015-02-27 Pedro Alves <palves@redhat.com>
11872 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11873 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11874 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11875 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11876 (ps_lsetfpregs, ps_getpid)
11877 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11878 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11879 (ps_lsetxregs, ps_plog): Declare.
11881 2015-02-27 Pedro Alves <palves@redhat.com>
11883 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11884 IP_AGENT_EXPORT_FUNC.
11885 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11886 IP_AGENT_EXPORT_FUNC.
11887 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11888 (IP_AGENT_EXPORT): Delete.
11889 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11890 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11891 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11892 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11893 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11894 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11895 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11896 (traceframe_read_count, traceframe_write_count)
11897 (traceframes_created, trace_state_variables, get_raw_reg)
11898 (get_trace_state_variable_value, set_trace_state_variable_value)
11899 (ust_loaded, helper_thread_id, cmd_buf): Use
11900 IPA_SYM_EXPORTED_NAME.
11901 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11902 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11903 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11904 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11905 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11906 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11907 EXTERN_C_PUSH/EXTERN_C_POP.
11908 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11909 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11910 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11911 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11912 (traceframe_write_count, traceframe_read_count)
11913 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11914 (about_to_request_buffer_space, get_trace_state_variable_value)
11915 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11916 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11917 EXTERN_C_PUSH/EXTERN_C_POP.
11918 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11919 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11920 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11921 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11922 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11923 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11924 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11925 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11927 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11928 (IP_AGENT_EXPORT_VAR_DECL): Define.
11929 (tracing): Declare.
11930 (gdb_agent_get_raw_reg): Declare.
11932 2015-02-27 Tom Tromey <tromey@redhat.com>
11933 Pedro Alves <palves@redhat.com>
11935 Rename symbols whose names are reserved C++ keywords throughout.
11937 2015-02-27 Pedro Alves <palves@redhat.com>
11939 * Makefile.in (COMPILER): New, get it from autoconf.
11940 (CXX): Get from autoconf instead.
11941 (COMPILE.pre): Use COMPILER.
11942 (CC-LD): Rename to ...
11943 (CC_LD): ... this. Use COMPILER.
11944 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11945 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11946 * acinclude.m4: Include build-with-cxx.m4.
11947 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11948 Disable -Werror by default if building in C++ mode.
11949 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11950 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11951 the C++ compiler. Save/restore CXXFLAGS too.
11952 * configure: Regenerate.
11954 2015-02-27 Pedro Alves <palves@redhat.com>
11956 * acinclude.m4: Include libiberty.m4.
11957 * configure.ac: Call libiberty_INIT.
11958 * config.in, configure: Regenerate.
11960 2015-02-26 Pedro Alves <palves@redhat.com>
11962 * linux-low.c (linux_wait_1): When incrementing the PC past a
11963 program breakpoint always use the_low_target.breakpoint_len as
11964 increment, rather than the maximum between that and
11965 the_low_target.decr_pc_after_break.
11967 2015-02-23 Pedro Alves <palves@redhat.com>
11969 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11970 thread was doing a step-over; always adjust the PC if
11971 we stepped over a permanent breakpoint.
11972 (linux_wait_1): If we stepped over breakpoint that was on top of a
11973 permanent breakpoint, manually advance the PC past it.
11975 2015-02-23 Pedro Alves <palves@redhat.com>
11977 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11979 (x86_fill_gregset, x86_store_gregset): Use it when handling
11982 2015-02-20 Pedro Alves <palves@redhat.com>
11984 * thread-db.c: Include "nat/linux-procfs.h".
11985 (thread_db_init): Skip listing new threads if the kernel supports
11986 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11988 2015-02-20 Pedro Alves <palves@redhat.com>
11990 * linux-low.c (status_pending_p_callback): Use ptid_match.
11992 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11994 PR breakpoints/16812
11995 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11996 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11997 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11999 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
12001 PR breakpoints/15956
12002 * tracepoint.c (cmd_qtinit): Add check for current_thread.
12004 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12006 * linux-low.c (linux_low_btrace_conf): Print size.
12007 * server.c (handle_btrace_conf_general_set): New.
12008 (hanle_general_set): Call handle_btrace_conf_general_set.
12009 (handle_query): Report Qbtrace-conf:bts:size as supported.
12011 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12013 * linux-low.c (linux_low_enable_btrace): Update parameters.
12014 (linux_low_btrace_conf): New.
12015 (linux_target_ops)<to_btrace_conf>: Initialize.
12016 * server.c (current_btrace_conf): New.
12017 (handle_btrace_enable): Rename to ...
12018 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
12019 to target_enable_btrace. Update comment. Update users.
12020 (handle_qxfer_btrace_conf): New.
12021 (qxfer_packets): Add btrace-conf entry.
12022 (handle_query): Report qXfer:btrace-conf:read as supported packet.
12023 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
12024 (target_ops)<read_btrace_conf>: New.
12025 (target_enable_btrace): Update parameters.
12026 (target_read_btrace_conf): New.
12028 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12030 * server.c (handle_btrace_general_set): Remove call to
12031 target_supports_btrace.
12032 (supported_btrace_packets): New.
12033 (handle_query): Call supported_btrace_packets.
12034 * target.h: include btrace-common.h.
12035 (btrace_target_info): Removed.
12036 (supports_btrace, target_supports_btrace): Update parameters.
12038 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12040 * Makefile.in (SFILES): Add common/btrace-common.c.
12041 (OBS): Add common/btrace-common.o.
12042 (btrace-common.o): Add build rules.
12043 * linux-low: Include btrace-common.h.
12044 (linux_low_read_btrace): Use struct btrace_data. Call
12045 btrace_data_init and btrace_data_fini.
12047 2015-02-06 Pedro Alves <palves@redhat.com>
12049 * thread-db.c (find_new_threads_callback): Add debug output.
12051 2015-02-04 Pedro Alves <palves@redhat.com>
12053 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
12054 (resume_stopped_resumed_lwps): New function.
12055 (linux_wait_for_event_filtered): Use it.
12057 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12059 * Makefile.in (SFILES): Add linux-personality.c.
12060 (linux-personality.o): New rule.
12061 * configure.srv (srv_linux_obj): Add linux-personality.o to the
12062 list of objects to be built.
12063 * linux-low.c: Include nat/linux-personality.h.
12064 (linux_create_inferior): Remove code to disable address space
12065 randomization (moved to ../nat/linux-personality.c). Create
12066 cleanup to disable address space randomization.
12068 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12070 * Makefile.in (posix-strerror.o): New rule.
12071 (mingw-strerror.o): Likewise.
12072 * configure: Regenerated.
12073 * configure.ac: Source file ../common/common.host. Initialize new
12074 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
12076 2015-01-14 Yao Qi <yao@codesourcery.com>
12078 * Makefile.in (SFILES): Add nat/ppc-linux.c.
12079 (ppc-linux.o): New rule.
12080 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
12081 * configure.ac: AC_CHECK_FUNCS(getauxval).
12082 * config.in: Re-generated.
12083 * configure: Re-generated.
12084 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
12085 ppc64_64bit_inferior_p
12087 2015-01-14 Yao Qi <yao@codesourcery.com>
12089 * linux-ppc-low.c: Include "nat/ppc-linux.h".
12090 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
12091 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
12092 (PT_ORIG_R3, PT_TRAP): Likewise.
12093 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12094 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12095 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12097 2015-01-10 Joel Brobecker <brobecker@adacore.com>
12099 * i387-fp.c (i387_cache_to_xsave): In look over
12100 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
12101 zmmh_low_space field by use of zmmh_high_space.
12103 2015-01-09 Pedro Alves <palves@redhat.com>
12105 * linux-low.c (step_over_bkpt): Move higher up in the file.
12106 (handle_extended_wait): Don't store the stop_pc here.
12107 (get_stop_pc): Adjust comments and rename to ...
12108 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12109 stopped for a software breakpoint or hardware breakpoint.
12110 (thread_still_has_status_pending_p): New function.
12111 (status_pending_p_callback): Use
12112 thread_still_has_status_pending_p. If the event is no longer
12113 interesting, resume the LWP.
12114 (handle_tracepoints): Add assert.
12115 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
12116 (wstatus_maybe_breakpoint): New function.
12117 (cancel_breakpoint): Delete function.
12118 (check_stopped_by_watchpoint): New function, factored out from
12119 linux_low_filter_event.
12120 (lp_status_maybe_breakpoint): Delete function.
12121 (linux_low_filter_event): Remove filter_ptid argument.
12122 Leave thread group exits pending here. Store the LWP's stop PC.
12123 Always leave events pending.
12124 (linux_wait_for_event_filtered): Pull all events out of the
12125 kernel, and leave them all pending.
12126 (count_events_callback, select_event_lwp_callback): Consider all
12128 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
12129 (select_event_lwp): Only give preference to the stepping LWP in
12130 all-stop mode. Adjust comments.
12131 (ignore_event): New function.
12132 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
12133 references to cancel_breakpoints. Adjust to renames. Also give
12134 equal priority to all LWPs that have had events in non-stop mode.
12135 If reporting a software breakpoint event, unadjust the LWP's PC.
12136 (linux_wait): If linux_wait_1 returned an ignored event, retry.
12137 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
12139 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
12140 (resume_status_pending_p): Use thread_still_has_status_pending_p.
12141 (linux_stopped_by_watchpoint): Adjust.
12142 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
12143 * linux-low.h (enum lwp_stop_reason): New.
12144 (struct lwp_info) <stop_pc>: Adjust comment.
12145 <stopped_by_watchpoint>: Delete field.
12146 <stop_reason>: New field.
12147 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12148 * mem-break.c (software_breakpoint_inserted_here)
12149 (hardware_breakpoint_inserted_here): New function.
12150 * mem-break.h (software_breakpoint_inserted_here)
12151 (hardware_breakpoint_inserted_here): Declare.
12152 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
12153 (cancel_breakpoints): Delete.
12154 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
12155 (upload_fast_traceframes): Remove references to
12156 cancel_breakpoints.
12158 2015-01-09 Pedro Alves <palves@redhat.com>
12160 * thread-db.c (find_new_threads_callback): Ignore thread if the
12161 kernel thread ID is -1.
12163 2015-01-09 Pedro Alves <palves@redhat.com>
12165 * linux-low.c (linux_attach_fail_reason_string): Move to
12166 nat/linux-ptrace.c, and rename.
12167 (linux_attach_lwp): Update comment.
12168 (attach_proc_task_lwp_callback): New function.
12169 (linux_attach): Adjust to rename and use
12170 linux_proc_attach_tgid_threads.
12171 (linux_attach_fail_reason_string): Delete declaration.
12173 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12175 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
12176 * server.c (gdbserver_version): Likewise.
12178 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
12180 * remote-utils.c: Include ctype.h.
12181 (input_interrupt): Explicitly handle the case when the char
12182 received is the NUL byte. Improve the printing of non-ASCII
12185 2014-12-16 Joel Brobecker <brobecker@adacore.com>
12187 * linux-low.c (linux_low_filter_event): Update call to
12188 linux_enable_event_reporting following the addition of
12189 a new parameter to that function.
12191 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
12194 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
12195 (AARCH64_FPCR_REGNO): Likewise.
12196 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
12197 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
12198 (aarch64_store_fpregset): Likewise.
12200 2014-12-15 Joel Brobecker <brobecker@adacore.com>
12202 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
12203 Remove FIXME comment about assumption about N.
12205 2014-12-13 Joel Brobecker <brobecker@adacore.com>
12207 * configure.ac: If large-file support is disabled in GDBserver,
12208 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
12209 * configure: Regenerate.
12211 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12213 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
12214 warning upon ENODATA from ptrace.
12215 * linux-s390-low.c (s390_store_tdb): New.
12216 (s390_regsets): Add regset for NT_S390_TDB.
12218 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12220 * linux-low.c (regsets_store_inferior_registers): Skip regsets
12221 without a fill_function.
12222 * linux-s390-low.c (s390_fill_last_break): Remove.
12223 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
12224 (s390_arch_setup): Use regset's size instead of fill_function for
12225 loop end condition.
12227 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12229 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
12230 the regset's store function when ptrace returned an error.
12231 * regcache.c (get_thread_regcache): Invalidate register cache
12232 before fetching inferior's registers.
12234 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12236 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
12237 while-loop as for-loop.
12238 (regsets_store_inferior_registers): Likewise.
12240 2014-11-28 Yao Qi <yao@codesourcery.com>
12242 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
12243 * config.in, configure: Re-generate.
12244 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
12247 2014-11-21 Yao Qi <yao@codesourcery.com>
12249 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
12250 (AC_CHECK_HEADERS): Remove malloc.h.
12251 * configure: Re-generated.
12252 * config.in: Re-generated.
12253 * server.h: Don't include alloca.h and malloc.h.
12254 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
12255 Don't include malloc.h.
12257 2014-11-17 Joel Brobecker <brobecker@adacore.com>
12259 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12260 corresponding ERRNO check in same block.
12262 2014-11-12 Pedro Alves <palves@redhat.com>
12264 * server.c (cont_thread): Update comment.
12265 (start_inferior, attach_inferior): No longer clear cont_thread.
12266 (handle_v_cont): No longer set cont_thread.
12267 (captured_main): Clear cont_thread each time a GDB connects.
12269 2014-11-12 Pedro Alves <palves@redhat.com>
12271 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12272 thread, and don't resume all threads if the Hc thread has exited.
12274 2014-11-12 Pedro Alves <palves@redhat.com>
12276 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12277 the process group instead of to a specific LWP.
12279 2014-10-15 Pedro Alves <palves@redhat.com>
12282 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12284 (arm_set_thread_context): Delete.
12285 (the_low_target): Adjust.
12286 * win32-i386-low.c (debug_registers_changed)
12287 (debug_registers_used): Delete.
12288 (update_debug_registers_callback): New function.
12289 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12290 needing to update their debug registers.
12291 (win32_get_current_dr): New function.
12292 (x86_dr_low_get_addr, x86_dr_low_get_control)
12293 (x86_dr_low_get_status): Fetch the debug register from the thread
12295 (i386_initial_stuff): Adjust.
12296 (i386_get_thread_context): Remove current_event parameter. Don't
12297 clear debug_registers_changed nor copy DR values to
12299 (i386_set_thread_context): Delete.
12300 (i386_prepare_to_resume): New function.
12301 (i386_thread_added): Mark the thread as needing to update irs
12303 (the_low_target): Remove i386_set_thread_context and install
12304 i386_prepare_to_resume.
12305 * win32-low.c (win32_get_thread_context): Adjust.
12306 (win32_set_thread_context): Use SetThreadContext
12308 (win32_prepare_to_resume): New function.
12309 (win32_require_context): New function, factored out from ...
12310 (thread_rec): ... this.
12311 (continue_one_thread): Call win32_prepare_to_resume on each thread
12312 we're about to continue.
12313 (win32_resume): Call win32_prepare_to_resume on the event thread.
12314 * win32-low.h (struct win32_thread_info)
12315 <debug_registers_changed>: New field.
12316 (struct win32_target_ops): Change prototype of set_thread_context,
12317 delete set_thread_context and add prepare_to_resume.
12318 (win32_require_context): New declaration.
12320 2014-10-08 Gary Benson <gbenson@redhat.com>
12322 * server.h: Do not include common-exceptions.h.
12324 2014-10-08 Gary Benson <gbenson@redhat.com>
12326 * server.h: Do not include cleanups.h.
12328 2014-09-30 James Hogan <james.hogan@imgtec.com>
12330 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12331 mips64-dsp-linux.c.
12333 2014-09-23 Yao Qi <yao@codesourcery.com>
12335 * linux-low.c (lp_status_maybe_breakpoint): New function.
12336 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12337 (count_events_callback): Likewise.
12338 (select_event_lwp_callback): Likewise.
12339 (cancel_breakpoints_callback): Likewise.
12341 2014-09-19 Don Breazeal <donb@codesourcery.com>
12343 * linux-low.c (handle_extended_wait): Call
12344 linux_ptrace_get_extended_event.
12345 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12346 linux_is_extended_waitstatus.
12348 2014-09-16 Joel Brobecker <brobecker@adacore.com>
12350 * Makefile.in (CPPFLAGS): Define.
12351 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12352 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12354 2014-09-16 Gary Benson <gbenson@redhat.com>
12356 * inferiors.h (current_inferior): Renamed as...
12357 (current_thread): New variable. All uses updated.
12358 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12359 (maybe_move_out_of_jump_pad): Likewise.
12360 (cancel_breakpoint): Likewise.
12361 (linux_low_filter_event): Likewise.
12362 (wait_for_sigstop): Likewise.
12363 (linux_resume_one_lwp): Likewise.
12364 (need_step_over_p): Likewise.
12365 (start_step_over): Likewise.
12366 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12367 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12368 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12369 and save_inferior as saved_thread.
12370 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12372 (regcache_invalidate_thread): Likewise.
12373 * remote-utils.c (prepare_resume_reply): Likewise.
12374 * thread-db.c (thread_db_get_tls_address): Likewise.
12375 (disable_thread_event_reporting): Likewise.
12376 (remove_thread_event_breakpoints): Likewise.
12377 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12379 * target.h (set_desired_inferior): Renamed as...
12380 (set_desired_thread): New declaration. All uses updated.
12381 * server.c (myresume): Updated comment to reference thread instead
12383 (handle_serial_event): Likewise.
12384 (handle_target_event): Likewise.
12386 2014-09-12 Tom Tromey <tromey@redhat.com>
12387 Gary Benson <gbenson@redhat.com>
12389 * regcache.h: Include common-regcache.h.
12390 (regcache_read_pc): Don't declare.
12391 * regcache.c (get_thread_regcache_for_ptid): New function.
12393 2014-09-11 Tom Tromey <tromey@redhat.com>
12394 Gary Benson <gbenson@redhat.com>
12396 * symbol.c: New file.
12397 * Makefile.in (SFILES): Add symbol.c.
12398 (OBS): Add symbol.o.
12400 2014-09-11 Gary Benson <gbenson@redhat.com>
12402 * target.c (target_stop_ptid, target_continue_ptid): New
12405 2014-09-11 Tom Tromey <tromey@redhat.com>
12406 Gary Benson <gbenson@redhat.com>
12408 * target.h: Include target/target.h.
12409 * target.c (target_read_memory, target_read_uint32)
12410 (target_write_memory): New functions.
12412 2014-09-11 Gary Benson <gbenson@redhat.com>
12414 * server.h (debug_hw_points): Don't declare.
12415 * server.c (debug_hw_points): Don't define. Replace all uses
12416 with show_debug_regs.
12417 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12418 all uses with show_debug_regs.
12420 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12422 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12423 endianness into account.
12424 (ppc_supply_ptrace_register): Likewise.
12426 2014-09-03 James Hogan <james.hogan@imgtec.com>
12428 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12429 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12431 2014-09-03 Gary Benson <gbenson@redhat.com>
12433 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12434 ALL_DEBUG_ADDRESS_REGISTERS.
12436 2014-09-02 Gary Benson <gbenson@redhat.com>
12438 * i386-low.h: Renamed as...
12439 * x86-low.h: New file. All type, function and variable name
12440 prefixes changed from "i386_" to "x86_". All references updated.
12441 * i386-low.c: Renamed as...
12442 * x86-low.c: New file. All type, function and variable name
12443 prefixes changed from "i386_" to "x86_". All references updated.
12445 2014-09-02 Gary Benson <gbenson@redhat.com>
12447 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12448 (x86_linux_new_thread): Likewise.
12450 2014-08-29 Gary Benson <gbenson@redhat.com>
12452 * server.h (setjmp.h): Do not include.
12453 (toplevel): Do not declare.
12454 (common-exceptions.h): Include.
12455 (cleanups.h): Likewise.
12456 * server.c (toplevel): Do not define.
12457 (exit_code): New static global.
12458 (detach_or_kill_for_exit_cleanup): New function.
12459 (main): New function. Original main renamed to...
12460 (captured_main): New function.
12461 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12463 2014-08-29 Gary Benson <gbenson@redhat.com>
12465 * Makefile.in (SFILES): Add common/common-exceptions.c.
12466 (OBS): Add common-exceptions.o.
12467 (common-exceptions.o): New rule.
12468 * utils.c (prepare_to_throw_exception): New function.
12470 2014-08-29 Gary Benson <gbenson@redhat.com>
12472 * config.in: Regenerate.
12473 * configure: Likewise.
12475 2014-08-29 Gary Benson <gbenson@redhat.com>
12477 * Makefile.in (SFILES): Add common/cleanups.c.
12479 (cleanups.o): New rule.
12481 2014-08-29 Gary Benson <gbenson@redhat.com>
12483 * utils.c (internal_vwarning): New function.
12485 2014-08-28 Gary Benson <gbenson@redhat.com>
12487 * utils.h (fatal): Remove declaration.
12488 * utils.c (fatal): Remove function.
12490 2014-08-28 Gary Benson <gbenson@redhat.com>
12492 * tracepoint.c (gdb_agent_init): Replace fatal with
12494 (initialize_tracepoint): Likewise.
12496 2014-08-28 Gary Benson <gbenson@redhat.com>
12498 * remote-utils.c (remote_prepare): Replace fatal with error.
12500 2014-08-28 Gary Benson <gbenson@redhat.com>
12502 * linux-low.c (linux_async): Replace fatal with warning.
12503 Tidy up and return.
12504 (linux_start_non_stop): Return -1 if linux_async failed.
12506 2014-08-28 Gary Benson <gbenson@redhat.com>
12508 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12510 (i386_dr_low_get_addr): Remove vague comment.
12511 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12514 2014-08-28 Gary Benson <gbenson@redhat.com>
12516 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12517 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12519 (linux_resume_one_lwp): Likewise.
12520 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12522 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12523 with internal_error.
12524 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12525 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12526 (find_register_by_name): Replace fatal with internal_error.
12527 (find_regno): Likewise.
12528 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12529 * thread-db.c (thread_db_create_event): Likewise.
12530 (thread_db_load_search): Likewise.
12531 (try_thread_db_load_1): Likewise.
12532 * tracepoint.c (get_jump_space_head): Replace fatal with
12534 (claim_trampoline_space): Likewise.
12535 (have_fast_tracepoint_trampoline_buffer): Likewise.
12536 (cmd_qtstart): Likewise.
12537 (stop_tracing): Likewise.
12538 (fast_tracepoint_collecting): Likewise.
12539 (target_malloc): Likewise.
12540 (download_tracepoint): Likewise.
12541 (download_trace_state_variables): Replace check with gdb_assert.
12542 (upload_fast_traceframes): Replace fatal with internal_error.
12544 2014-08-19 Tom Tromey <tromey@redhat.com>
12545 Gary Benson <gbenson@redhat.com>
12547 * Makefile.in (SFILES): Add common/common-debug.c.
12548 (OBS): Add common-debug.o.
12549 (common-debug.o): New rule.
12550 * debug.h (debug_printf): Don't declare.
12551 * debug.c (debug_printf): Renamed and rewritten as...
12552 (debug_vprintf): New function.
12554 2014-08-19 Gary Benson <gbenson@redhat.com>
12556 * utils.h: Do not include print-utils.h.
12558 2014-08-19 Tom Tromey <tromey@redhat.com>
12559 Gary Benson <gbenson@redhat.com>
12561 * server.h: Add static assertion.
12562 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12564 2014-08-19 Tom Tromey <tromey@redhat.com>
12565 Gary Benson <gbenson@redhat.com>
12567 * Makefile.in (SFILES): Add common/errors.c.
12568 (OBS): Add errors.o.
12569 (IPA_OBS): Add errors-ipa.o.
12570 (errors.o): New rule.
12571 (errors-ipa.o): Likewise.
12572 * utils.h (perror_with_name, error, warning): Don't declare.
12573 * utils.c (warning): Renamed and rewritten as...
12574 (vwarning): New function.
12575 (error): Renamed and rewritten as...
12576 (verror): New function.
12577 (internal_error): Renamed and rewritten as...
12578 (internal_verror): New function.
12580 2014-08-07 Gary Benson <gbenson@redhat.com>
12582 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12583 * configure: Regenerate.
12584 * config.in: Likewise.
12585 * server.h: Do not include errno.h.
12586 * event-loop.c: Likewise.
12587 * hostio-errno.c: Likewise.
12588 * linux-low.c: Likewise.
12589 * remote-utils.c: Likewise.
12590 * spu-low.c: Likewise.
12591 * utils.c: Likewise.
12592 * gdbreplay.c: Unconditionally include errno.h.
12594 2014-08-07 Gary Benson <gbenson@redhat.com>
12596 * server.h: Do not include string.h.
12597 * event-loop.c: Likewise.
12598 * linux-low.c: Likewise.
12599 * regcache.c: Likewise.
12600 * remote-utils.c: Likewise.
12601 * spu-low.c: Likewise.
12602 * utils.c: Likewise.
12604 2014-08-07 Gary Benson <gbenson@redhat.com>
12606 * server.h: Do not include gdb_assert.h.
12608 2014-08-07 Gary Benson <gbenson@redhat.com>
12610 * server.h: Do not include common-utils.h.
12612 2014-08-07 Gary Benson <gbenson@redhat.com>
12614 * server.h: Do not include ptid.h.
12615 * notif.h: Likewise.
12617 2014-08-07 Gary Benson <gbenson@redhat.com>
12619 * server.h: Do not include gdb_locale.h.
12621 2014-08-07 Gary Benson <gbenson@redhat.com>
12623 * server.h: Do not include gdb/signals.h.
12624 * win32-low.c: Likewise.
12626 2014-08-07 Gary Benson <gbenson@redhat.com>
12628 * server.h: Do not include pathmax.h.
12630 2014-08-07 Gary Benson <gbenson@redhat.com>
12632 * server.h: Do not include libiberty.h.
12633 * linux-bfin-low.c: Likewise.
12635 2014-08-07 Gary Benson <gbenson@redhat.com>
12637 * server.h: Do not include ansidecl.h.
12639 2014-08-07 Gary Benson <gbenson@redhat.com>
12641 * linux-x86-low.c: Do not include stddef.h.
12642 * lynx-ppc-low.c: Likewise.
12643 * tracepoint.c: Likewise.
12645 2014-08-07 Gary Benson <gbenson@redhat.com>
12647 * server.h: Do not include stdarg.h.
12648 * nto-low.c: Likewise.
12650 2014-08-07 Gary Benson <gbenson@redhat.com>
12652 * server.h: Do not include stdlib.h.
12653 * inferiors.c: Likewise.
12654 * linux-low.c: Likewise.
12655 * regcache.c: Likewise.
12656 * spu-low.c: Likewise.
12657 * tracepoint.c: Likewise.
12658 * utils.c: Likewise.
12660 2014-08-07 Gary Benson <gbenson@redhat.com>
12662 * server.h: Do not include stdio.h.
12663 * linux-low.c: Likewise.
12664 * remote-utils.c: Likewise.
12665 * spu-low.c: Likewise.
12666 * utils.c: Likewise.
12667 * wincecompat.c: Likewise.
12669 2014-08-06 Gary Benson <gbenson@redhat.com>
12671 * regcache.c (init_register_cache): Move conditionals inside if.
12673 2014-08-06 Gary Benson <gbenson@redhat.com>
12675 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12677 2014-07-31 Gary Benson <gbenson@redhat.com>
12679 * ax.h: Do not include server.h.
12680 * gdbthread.h: Likewise.
12681 * lynx-low.h: Likewise.
12682 * notif.h: Likewise.
12684 2014-07-30 Gary Benson <gbenson@redhat.com>
12686 * server.h: Include common-defs.h.
12687 Do not include config.h or build-gnulib-gdbserver/config.h.
12689 2014-07-30 Gary Benson <gbenson@redhat.com>
12691 * hostio-errno.c: Move server.h to top of includes list.
12692 * inferiors.c: Likewise.
12693 * linux-x86-low.c: Likewise.
12694 * notif.c: Include server.h.
12696 2014-07-24 Tom Tromey <tromey@redhat.com>
12697 Gary Benson <gbenson@redhat.com>
12699 * server.h (CORE_ADDR): Now unsigned.
12701 2014-07-16 Pedro Alves <palves@redhat.com>
12703 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12705 2014-07-15 Pedro Alves <palves@redhat.com>
12707 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12710 2014-07-11 Pedro Alves <palves@redhat.com>
12712 * linux-low.c (kill_wait_lwp): New function, based on
12713 kill_one_lwp_callback, but use my_waitpid directly.
12714 (kill_one_lwp_callback, linux_kill): Use it.
12716 2014-06-23 Pedro Alves <palves@redhat.com>
12718 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12719 before setting DR0..DR3.
12721 2014-06-20 Gary Benson <gbenson@redhat.com>
12723 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12724 * configure: Regenerated.
12725 * config.in: Likewise.
12727 2014-06-20 Gary Benson <gbenson@redhat.com>
12729 * Makefile.in (SFILES): Update locations for files moved
12730 from common to nat.
12731 (object file files): Reordered.
12733 2014-06-20 Gary Benson <gbenson@redhat.com>
12735 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12736 (i386_dr_low_set_addr): Likewise.
12737 (i386_dr_low_get_addr): Likewise.
12738 (i386_dr_low_can_set_control): Likewise.
12739 (i386_dr_low_set_control): Likewise.
12740 (i386_dr_low_get_control): Likewise.
12741 (i386_dr_low_get_status): Likewise.
12742 (i386_get_debug_register_length): Likewise.
12743 * linux-x86-low.c (i386_dr_low_set_addr):
12744 Changed signature. Made static.
12745 (i386_dr_low_get_addr): Likewise.
12746 (i386_dr_low_set_control): Likewise.
12747 (i386_dr_low_get_control): Likewise.
12748 (i386_dr_low_get_status): Likewise.
12749 (i386_dr_low): New global variable.
12750 * win32-i386-low.c (i386_dr_low_set_addr):
12751 Changed signature. Made static.
12752 (i386_dr_low_get_addr): Likewise.
12753 (i386_dr_low_set_control): Likewise.
12754 (i386_dr_low_get_control): Likewise.
12755 (i386_dr_low_get_status): Likewise.
12756 (i386_dr_low): New global variable.
12758 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12760 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12761 * Makefile.in (AR, AR_FLAGS): Define.
12762 * configure: Regenerate.
12764 2014-06-19 Gary Benson <gbenson@redhat.com>
12766 * Makefile.in (i386-dregs.o): New rule.
12767 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12768 * i386-low.c (target.h): Remove include.
12769 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12770 (DR_CONTROL_SHIFT): Likewise.
12771 (DR_CONTROL_SIZE): Likewise.
12772 (DR_RW_EXECUTE): Likewise.
12773 (DR_RW_WRITE): Likewise.
12774 (DR_RW_READ): Likewise.
12775 (DR_RW_IORW): Likewise.
12776 (DR_LEN_1): Likewise.
12777 (DR_LEN_2): Likewise.
12778 (DR_LEN_4): Likewise.
12779 (DR_LEN_8): Likewise.
12780 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12781 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12782 (DR_ENABLE_SIZE): Likewise.
12783 (DR_LOCAL_SLOWDOWN): Likewise.
12784 (DR_GLOBAL_SLOWDOWN): Likewise.
12785 (DR_CONTROL_RESERVED): Likewise.
12786 (I386_DR_CONTROL_MASK): Likewise.
12787 (I386_DR_VACANT): Likewise.
12788 (I386_DR_LOCAL_ENABLE): Likewise.
12789 (I386_DR_GLOBAL_ENABLE): Likewise.
12790 (I386_DR_DISABLE): Likewise.
12791 (I386_DR_SET_RW_LEN): Likewise.
12792 (I386_DR_GET_RW_LEN): Likewise.
12793 (I386_DR_WATCH_HIT): Likewise.
12794 (i386_wp_op_t): Likewise.
12795 (i386_show_dr): Likewise.
12796 (i386_length_and_rw_bits): Likewise.
12797 (i386_insert_aligned_watchpoint): Likewise.
12798 (i386_remove_aligned_watchpoint): Likewise.
12799 (i386_handle_nonaligned_watchpoint): Likewise.
12800 i386_update_inferior_debug_regs(): Likewise.
12801 (i386_dr_insert_watchpoint): Likewise.
12802 (i386_dr_remove_watchpoint): Likewise.
12803 (i386_dr_region_ok_for_watchpoint): Likewise.
12804 (i386_dr_stopped_data_address): Likewise.
12805 (i386_dr_stopped_by_watchpoint): Likewise.
12807 2014-06-19 Gary Benson <gbenson@redhat.com>
12809 * i386-low.c (i386_dr_show): Renamed to
12810 i386_show_dr and made static. All uses updated.
12811 (i386_dr_length_and_rw_bits): Renamed to
12812 i386_length_and_rw_bits and made static.
12814 (i386_dr_insert_aligned_watchpoint): Renamed to
12815 i386_insert_aligned_watchpoint and made static.
12817 (i386_dr_remove_aligned_watchpoint): Renamed to
12818 i386_remove_aligned_watchpoint and made static.
12820 (i386_dr_update_inferior_debug_regs): Renamed to
12821 i386_update_inferior_debug_regs and made static.
12824 2014-06-18 Gary Benson <gbenson@redhat.com>
12826 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12827 (i386_dr_low_can_set_control): Likewise.
12828 (i386_get_debug_register_length): Likewise.
12829 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12830 (i386_dr_low_can_set_control): Likewise.
12831 (i386_get_debug_register_length): Likewise.
12833 2014-06-17 Gary Benson <gbenson@redhat.com>
12835 * i386-low.h (i386-dregs.h): New include.
12836 (DR_FIRSTADDR): Now in i386-dregs.h.
12837 (DR_LASTADDR): Likewise.
12838 (DR_NADDR): Likewise.
12839 (DR_STATUS): Likewise.
12840 (DR_CONTROL): Likewise.
12841 (i386_debug_reg_state): Likewise.
12842 (i386_dr_insert_watchpoint): Likewise.
12843 (i386_dr_remove_watchpoint): Likewise.
12844 (i386_dr_region_ok_for_watchpoint): Likewise.
12845 (i386_dr_stopped_data_address): Likewise.
12846 (i386_dr_stopped_by_watchpoint): Likewise.
12847 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12849 2014-06-18 Gary Benson <gbenson@redhat.com>
12851 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12852 i386_dr_insert_watchpoint.
12853 (i386_low_remove_watchpoint): Renamed to
12854 i386_dr_remove_watchpoint.
12855 (i386_low_region_ok_for_watchpoint): Renamed to
12856 i386_dr_region_ok_for_watchpoint.
12857 (i386_low_stopped_data_address): Renamed to
12858 i386_dr_stopped_data_address.
12859 (i386_low_stopped_by_watchpoint): Renamed to
12860 i386_dr_stopped_by_watchpoint.
12861 * i386-low.c (i386_show_dr): Renamed to
12862 i386_dr_show and made nonstatic. All uses updated.
12863 (i386_length_and_rw_bits): Renamed to
12864 i386_dr_length_and_rw_bits and made nonstatic.
12866 (i386_insert_aligned_watchpoint): Renamed to
12867 i386_dr_insert_aligned_watchpoint and made nonstatic.
12869 (i386_remove_aligned_watchpoint): Renamed to
12870 i386_dr_remove_aligned_watchpoint and made nonstatic.
12872 (i386_update_inferior_debug_regs): Renamed to
12873 i386_dr_update_inferior_debug_regs and made nonstatic.
12875 (i386_low_insert_watchpoint): Renamed to
12876 i386_dr_insert_watchpoint. All uses updated.
12877 (i386_low_remove_watchpoint): Renamed to
12878 i386_dr_remove_watchpoint. All uses updated.
12879 (i386_low_region_ok_for_watchpoint): Renamed to
12880 i386_dr_region_ok_for_watchpoint. All uses updated.
12881 (i386_low_stopped_data_address): Renamed to
12882 i386_dr_stopped_data_address. All uses updated.
12883 (i386_low_stopped_by_watchpoint): Renamed to
12884 i386_dr_stopped_by_watchpoint. All uses updated.
12886 2014-06-18 Gary Benson <gbenson@redhat.com>
12888 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12889 (i386_dr_low_can_set_control): Likewise.
12890 (i386_insert_aligned_watchpoint): New check.
12892 2014-06-18 Gary Benson <gbenson@redhat.com>
12894 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12897 2014-06-18 Gary Benson <gbenson@redhat.com>
12899 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12900 instead of fatal and error.
12901 (i386_handle_nonaligned_watchpoint): Likewise.
12903 2014-06-18 Gary Benson <gbenson@redhat.com>
12905 * i386-low.c (i386_get_debug_register_length): New macro.
12906 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12907 (i386_show_dr): Use debug_printf instead of fprintf. Use
12908 phex to format values.
12910 2014-06-18 Gary Benson <gbenson@redhat.com>
12912 * i386-low.h: Comment changes.
12913 * i386-low.c: Likewise.
12915 2014-06-18 Gary Benson <gbenson@redhat.com>
12917 * i386-low.c: Whitespace changes.
12919 2014-06-12 Tom Tromey <tromey@redhat.com>
12921 * utils.c (freeargv): Remove.
12923 2014-06-12 Tom Tromey <tromey@redhat.com>
12925 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12926 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12927 (parse_debug_format_options): Likewise.
12928 (gdbserver_usage): Likewise.
12929 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12930 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12931 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12933 ($(LIBGNU)): Depend on libiberty.
12934 (all-lib): Recurse into all subdirs.
12935 (install-only): Invoke "install" target in subdirs.
12936 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12938 * configure: Rebuild.
12939 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12940 for vasprintf, vsnprintf, or gettimeofday.
12941 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12944 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12946 * development.sh: Delete.
12947 * Makefile.in (config.status): Adjust dependency on development.sh.
12948 * configure.ac: Adjust development.sh source call.
12949 * configure: Regenerate.
12951 2014-06-02 Pedro Alves <palves@redhat.com>
12953 * ax.c (gdb_free_agent_expr): New function.
12954 * ax.h (gdb_free_agent_expr): New declaration.
12955 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12957 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12959 (clear_breakpoint_conditions_and_commands): New function.
12960 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12961 (clear_breakpoint_conditions_and_commands): New declaration.
12963 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12965 * linux-aarch64-low.c (asm/ptrace.h): Include.
12967 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12969 Fix TLS access for -static -pthread.
12970 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12971 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12972 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12974 2014-05-20 Pedro Alves <palves@redhat.com>
12976 * linux-aarch64-low.c (aarch64_insert_point)
12977 (aarch64_remove_point): No longer check whether the type is
12978 supported here. Adjust to new interface.
12979 (the_low_target): Install aarch64_supports_z_point_type as
12980 supports_z_point_type method.
12981 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12982 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12983 instead of a Z packet char. Adjust.
12984 (arm_supports_z_point_type): New function.
12985 (arm_insert_point, arm_remove_point): Adjust to new interface.
12986 (the_low_target): Install arm_supports_z_point_type.
12987 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12988 (cris_insert_point, cris_remove_point): Adjust to new interface.
12989 Don't check whether the type is supported here.
12990 (the_low_target): Install cris_supports_z_point_type.
12991 * linux-low.c (linux_supports_z_point_type): New function.
12992 (linux_insert_point, linux_remove_point): Adjust to new interface.
12993 * linux-low.h (struct linux_target_ops) <insert_point,
12994 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12995 raw_breakpoint pointer parameter.
12996 <supports_z_point_type>: New method.
12997 * linux-mips-low.c (mips_supports_z_point_type): New function.
12998 (mips_insert_point, mips_remove_point): Adjust to new interface.
12999 Use mips_supports_z_point_type.
13000 (the_low_target): Install mips_supports_z_point_type.
13001 * linux-ppc-low.c (the_low_target): Install NULL as
13002 supports_z_point_type method.
13003 * linux-s390-low.c (the_low_target): Install NULL as
13004 supports_z_point_type method.
13005 * linux-sparc-low.c (the_low_target): Install NULL as
13006 supports_z_point_type method.
13007 * linux-x86-low.c (x86_supports_z_point_type): New function.
13008 (x86_insert_point): Adjust to new insert_point interface. Use
13009 insert_memory_breakpoint. Adjust to new
13010 i386_low_insert_watchpoint interface.
13011 (x86_remove_point): Adjust to remove_point interface. Use
13012 remove_memory_breakpoint. Adjust to new
13013 i386_low_remove_watchpoint interface.
13014 (the_low_target): Install x86_supports_z_point_type.
13015 * lynx-low.c (lynx_target_ops): Install NULL as
13016 supports_z_point_type callback.
13017 * nto-low.c (nto_supports_z_point_type): New.
13018 (nto_insert_point, nto_remove_point): Adjust to new interface.
13019 (nto_target_ops): Install nto_supports_z_point_type.
13020 * mem-break.c: Adjust intro comment.
13021 (struct raw_breakpoint) <raw_type, size>: New fields.
13022 <inserted>: Update comment.
13023 <shlib_disabled>: Delete field.
13024 (enum bkpt_type) <gdb_breakpoint>: Delete value.
13025 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
13026 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
13027 (raw_bkpt_type_to_target_hw_bp_type): New function.
13028 (find_enabled_raw_code_breakpoint_at): New function.
13029 (find_raw_breakpoint_at): New type and size parameters. Use them.
13030 (insert_memory_breakpoint): New function, based off
13031 set_raw_breakpoint_at.
13032 (remove_memory_breakpoint): New function.
13033 (set_raw_breakpoint_at): Reimplement.
13034 (set_breakpoint): New, based on set_breakpoint_at.
13035 (set_breakpoint_at): Reimplement.
13036 (delete_raw_breakpoint): Go through the_target->remove_point
13037 instead of assuming memory breakpoints.
13038 (find_gdb_breakpoint_at): Delete.
13039 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
13040 (find_gdb_breakpoint): New function.
13041 (set_gdb_breakpoint_at): Delete.
13042 (z_type_supported): New function.
13043 (set_gdb_breakpoint_1): New function, loosely based off
13044 set_gdb_breakpoint_at.
13045 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
13046 (delete_gdb_breakpoint_at): Delete.
13047 (delete_gdb_breakpoint_1): New function, loosely based off
13048 delete_gdb_breakpoint_at.
13049 (delete_gdb_breakpoint): New function.
13050 (clear_gdb_breakpoint_conditions): Rename to ...
13051 (clear_breakpoint_conditions): ... this. Don't handle a NULL
13053 (add_condition_to_breakpoint): Make static.
13054 (add_breakpoint_condition): Take a struct breakpoint pointer
13055 instead of an address. Adjust.
13056 (gdb_condition_true_at_breakpoint): Rename to ...
13057 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
13059 (gdb_condition_true_at_breakpoint): Reimplement.
13060 (add_breakpoint_commands): Take a struct breakpoint pointer
13061 instead of an address. Adjust.
13062 (gdb_no_commands_at_breakpoint): Rename to ...
13063 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
13064 parameter. Return true if no breakpoint was found. Change debug
13066 (gdb_no_commands_at_breakpoint): Reimplement.
13067 (run_breakpoint_commands): Rename to ...
13068 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
13069 and change return type to boolean.
13070 (run_breakpoint_commands): New function.
13071 (gdb_breakpoint_here): Also check for Z1 breakpoints.
13072 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
13073 breakpoint. Go through the_target->remove_point instead of
13074 assuming memory breakpoint.
13075 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
13076 software and hardware breakpoints.
13077 (reinsert_raw_breakpoint): Go through the_target->insert_point
13078 instead of assuming memory breakpoint.
13079 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
13080 software and hardware breakpoints.
13081 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
13082 Check both software and hardware breakpoints.
13083 (validate_inserted_breakpoint): Assert the breakpoint is a
13084 software breakpoint. Set the inserted flag to -1 instead of
13085 setting shlib_disabled.
13086 (delete_disabled_breakpoints): Adjust.
13087 (validate_breakpoints): Only validate software breakpoints.
13088 Adjust to inserted flag change.
13089 (check_mem_read, check_mem_write): Skip breakpoint types other
13090 than software breakpoints. Adjust to inserted flag change.
13091 * mem-break.h (enum raw_bkpt_type): New enum.
13092 (raw_breakpoint, struct process_info): Forward declare.
13093 (Z_packet_to_target_hw_bp_type): Delete declaration.
13094 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
13095 (set_gdb_breakpoint, delete_gdb_breakpoint)
13096 (clear_breakpoint_conditions): New declarations.
13097 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
13098 (breakpoint_inserted_here): Update comment.
13099 (add_breakpoint_condition, add_breakpoint_commands): Replace
13100 address parameter with a breakpoint pointer parameter.
13101 (gdb_breakpoint_here): Update comment.
13102 (delete_gdb_breakpoint_at): Delete.
13103 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
13104 * server.c (process_point_options): Take a struct breakpoint
13105 pointer instead of an address. Adjust.
13106 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
13107 delete_gdb_breakpoint.
13108 * spu-low.c (spu_target_ops): Install NULL as
13109 supports_z_point_type method.
13110 * target.h: Include mem-break.h.
13111 (struct target_ops) <prepare_to_access_memory>: Update comment.
13112 <supports_z_point_type>: New field.
13113 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13114 instead of a char. Also take a raw breakpoint pointer.
13115 * win32-arm-low.c (the_low_target): Install NULL as
13116 supports_z_point_type.
13117 * win32-i386-low.c (i386_supports_z_point_type): New function.
13118 (i386_insert_point, i386_remove_point): Adjust to new interface.
13119 (the_low_target): Install i386_supports_z_point_type.
13120 * win32-low.c (win32_supports_z_point_type): New function.
13121 (win32_insert_point, win32_remove_point): Adjust to new interface.
13122 (win32_target_ops): Install win32_supports_z_point_type.
13123 * win32-low.h (struct win32_target_ops):
13124 <supports_z_point_type>: New method.
13125 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13126 instead of a char. Also take a raw breakpoint pointer.
13128 2014-05-20 Pedro Alves <palves@redhat.com>
13130 * mem-break.h: Include break-common.h.
13131 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13132 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
13133 (Z_packet_to_target_hw_bp_type): New declaration.
13134 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
13135 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
13136 (Z_PACKET_ACCESS_WP): Delete macros.
13137 (Z_packet_to_hw_type): Delete function.
13138 * i386-low.h: Don't include break-common.h here.
13139 (Z_packet_to_hw_type): Delete declaration.
13140 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
13141 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13142 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
13143 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13144 * linux-aarch64-low.c: Don't include break-common.h here.
13145 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13146 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
13147 (Z_packet_to_target_hw_bp_type): Delete function.
13148 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
13150 (mips_insert_point, mips_remove_point): Use
13151 Z_packet_to_target_hw_bp_type.
13153 2014-05-20 Pedro Alves <palves@redhat.com>
13155 * linux-aarch64-low.c: Include break-common.h.
13156 (enum target_point_type): Delete.
13157 (Z_packet_to_point_type): Rename to ...
13158 (Z_packet_to_target_hw_bp_type): ... this, and return a
13159 target_hw_bp_type instead.
13160 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
13161 instead of an enum target_point_type.
13162 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
13164 (aarch64_dr_state_insert_one_point)
13165 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
13166 (aarch64_handle_aligned_watchpoint)
13167 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
13168 Take an enum target_hw_bp_type instead of an enum
13170 (aarch64_supports_z_point_type): New function.
13171 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
13172 use Z_packet_to_target_hw_bp_type.
13174 2014-05-20 Joel Brobecker <brobecker@adacore.com>
13176 * configure.ac: Only use -Werror by default when DEVELOPMENT
13178 * configure: Regenerate.
13180 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
13182 Fix gdbserver qGetTLSAddr for x86_64 -m32.
13183 * linux-x86-low.c (X86_64_USER_REGS): New.
13184 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
13186 2014-04-28 Yao Qi <yao@codesourcery.com>
13188 * Makefile.in (i386-avx512.c): Fix the typo of generated file
13191 2014-04-25 Pedro Alves <palves@redhat.com>
13194 * linux-low.c (linux_attach_fail_reason_string): New function.
13195 (linux_attach_lwp): Delete.
13196 (linux_attach_lwp_1): Rename to ...
13197 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
13198 argument. Remove "initial" parameter. Return int instead of
13199 void. Don't error or warn here.
13200 (linux_attach): Adjust to call linux_attach_lwp. Call error on
13201 failure to attach to the tgid. Call warning when failing to
13203 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
13204 argument. Remove "initial" parameter. Return int instead of
13205 void. Don't error or warn here.
13206 (linux_attach_fail_reason_string): New declaration.
13207 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
13208 interface change. Use linux_attach_fail_reason_string.
13210 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
13211 Walfred Tedeschi <walfred.tedeschi@intel.com>
13213 * Makefile.in: Added rules to handle new files
13214 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
13215 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
13216 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
13217 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
13218 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
13219 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
13220 x32-avx512-linux.o.
13221 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
13222 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
13223 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
13224 i386/x32-avx512.xml.
13225 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
13226 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
13227 i386/x32-avx512-linux.xml.
13228 * i387-fp.c (num_avx512_k_registers): New constant for number
13230 (num_avx512_zmmh_low_registers): New constant for number of
13231 lower ZMM registers (0-15).
13232 (num_avx512_zmmh_high_registers): New constant for number of
13233 higher ZMM registers (16-31).
13234 (num_avx512_ymmh_registers): New contant for number of higher
13235 YMM registers (ymm16-31 added by avx521 on x86_64).
13236 (num_avx512_xmm_registers): New constant for number of higher
13237 XMM registers (xmm16-31 added by AVX512 on x86_64).
13238 (struct i387_xsave): Add space for AVX512 registers.
13239 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
13240 Add code to handle AVX512 registers.
13241 (i387_xsave_to_cache): Add code to handle AVX512 registers.
13242 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
13243 prototypei from generated file.
13244 (tdesc_amd64_avx512_linux): Likewise.
13245 (init_registers_x32_avx512_linux): Likewise.
13246 (tdesc_x32_avx512_linux): Likewise.
13247 (init_registers_i386_avx512_linux): Likewise.
13248 (tdesc_i386_avx512_linux): Likewise.
13249 (x86_64_regmap): Add AVX512 registers.
13250 (x86_linux_read_description): Add code to handle AVX512 XSTATE
13252 (initialize_low_arch): Add code to initialize AVX512 registers.
13254 2014-04-23 Pedro Alves <palves@redhat.com>
13256 * mem-break.c (find_gdb_breakpoint_at): Make static.
13257 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
13259 2014-04-23 Pedro Alves <palves@redhat.com>
13261 * i386-low.c: Don't include break-common.h here.
13262 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13263 prototype to take target_hw_bp_type as argument instead of a Z
13265 * i386-low.h: Include break-common.h here.
13266 (Z_packet_to_hw_type): Declare.
13267 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13269 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13270 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13271 (x86_remove_point): Convert the packet number to a
13272 target_hw_bp_type before calling i386_low_remove_watchpoint.
13273 * win32-i386-low.c (i386_insert_point): Convert the packet number
13274 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13275 (i386_remove_point): Convert the packet number to a
13276 target_hw_bp_type before calling i386_low_remove_watchpoint.
13278 2014-04-23 Pedro Alves <palves@redhat.com>
13280 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13282 2014-04-10 Pedro Alves <palves@redhat.com>
13284 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13285 Check if the condition or command is NULL before checking if the
13286 breakpoint is known. On success, return true.
13287 * mem-break.h (add_breakpoint_condition): Document return.
13288 (add_breakpoint_commands): Add describing comment.
13289 * server.c (skip_to_semicolon): New function.
13290 (process_point_options): Use it.
13292 2014-04-09 Pedro Alves <palves@redhat.com>
13294 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13297 2014-02-27 Pedro Alves <palves@redhat.com>
13300 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13302 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13304 (last_thread_of_process_p): Take a PID argument instead of a
13306 (linux_wait_for_lwp): Delete.
13307 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13309 (linux_low_filter_event): New function, party factored out from
13310 linux_wait_for_event.
13311 (linux_wait_for_event): Rename to ...
13312 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13313 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13314 sigsuspend. Check for zombie leaders.
13315 (linux_wait_for_event): Reimplement as wrapper around
13316 linux_wait_for_event_filtered.
13317 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13318 a normal or signal exit is seen, it's the whole process exiting.
13319 (wait_for_sigstop): No longer a for_each_inferior callback.
13320 Rewrite on top of linux_wait_for_event_filtered.
13321 (stop_all_lwps): Call wait_for_sigstop directly.
13322 * server.c (resume, handle_target_event): Handle
13323 TARGET_WAITKIND_NO_RESUMED.
13325 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13327 * win32-low.c (psapi_get_dll_name,
13328 * win32_CreateToolhelp32Snapshot): Delete.
13329 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13330 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13332 (handle_load_dll): Add function description.
13333 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13335 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13337 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13339 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13340 base address when calling win32_add_one_solib.
13341 (handle_load_dll): Delete local variable load_addr.
13342 Remove 0x1000 offset applied to DLL base address when calling
13343 win32_add_one_solib.
13344 (handle_unload_dll): Add comment.
13346 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13348 * win32-low.c (win32_add_all_dlls): Renames
13349 win32_ensure_ntdll_loaded. Rewrite function documentation.
13350 Adjust implementation to always load all DLLs.
13351 Add 0x1000 offset to DLL base address when calling
13352 win32_add_one_solib.
13353 (child_initialization_done): New static global.
13354 (do_initial_child_stuff): Set child_initialization_done to
13355 zero during child initialization, and 1 after. Replace call
13356 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13358 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13359 (handle_unload_dll): Add function documentation.
13360 (get_child_debug_event): Ignore load and unload DLL events
13361 during child initialization.
13363 2014-02-20 Doug Evans <dje@google.com>
13365 Remove global all_lwps.
13366 * inferiors.h (ptid_of): Move here from linux-low.h.
13367 (pid_of, lwpid_of): Ditto.
13368 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13369 parameter is a struct thread_info * now.
13370 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13371 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13372 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13374 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13375 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13376 * linux-arm-low.c (update_registers_callback): Update, "entry"
13377 parameter is a struct thread_info * now.
13378 Fetch lwpid from current_inferior directly.
13379 (arm_insert_point): Pass &all_threads to find_inferior instead of
13381 (arm_remove_point): Ditto.
13382 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13383 (arm_prepare_to_resume): Fetch pid from thread.
13384 (arm_read_description): Fetch lwpid from current_inferior directly.
13385 * linux-low.c (all_lwps): Delete.
13386 (delete_lwp): Delete call to remove_inferior.
13387 (handle_extended_wait): Fetch lwpid from thread.
13388 (add_lwp): Don't set lwp->entry.id. Remove call to
13389 add_inferior_to_list.
13390 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13391 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13392 (kill_one_lwp_callback): Ditto.
13393 (linux_kill): Don't dereference NULL pointer.
13394 Fetch ptid,lwpid from thread.
13395 (get_detach_signal): Fetch ptid from thread.
13396 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13397 Simplify call to regcache_invalidate_thread.
13398 (delete_lwp_callback): Update, "entry" parameter is a
13399 struct thread_info * now. Fetch pid from thread.
13400 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13401 (status_pending_p_callback): Update, "entry" parameter is a
13402 struct thread_info * now. Fetch ptid from thread.
13403 (find_lwp_pid): Update, "entry" parameter is a
13404 struct thread_info * now.
13405 (linux_wait_for_lwp): Fetch pid from thread.
13406 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13407 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13408 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13409 (dequeue_one_deferred_signal): Ditto.
13410 (cancel_breakpoint): Fetch ptid from current_inferior.
13411 (linux_wait_for_event): Pass &all_threads to find_inferior,
13412 not &all_lwps. Fetch ptid, lwpid from thread.
13413 (count_events_callback): Update, "entry" parameter is a
13414 struct thread_info * now.
13415 (select_singlestep_lwp_callback): Ditto.
13416 (select_event_lwp_callback): Ditto.
13417 (cancel_breakpoints_callback): Ditto.
13418 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13420 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13421 (unsuspend_one_lwp): Update, "entry" parameter is a
13422 struct thread_info * now.
13423 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13425 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13426 Fetch lwpid from thread, not lwp.
13427 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13428 Pass &all_threads to find_inferior, not &all_lwps.
13429 (send_sigstop): Fetch lwpid from thread, not lwp.
13430 (send_sigstop_callback): Update, "entry" parameter is a
13431 struct thread_info * now.
13432 (suspend_and_send_sigstop_callback): Ditto.
13433 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13434 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13435 struct thread_info * now.
13436 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13438 (lwp_running): Update, "entry" parameter is a
13439 struct thread_info * now.
13440 (stop_all_lwps): Fetch ptid from thread.
13441 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13442 (linux_resume_one_lwp): Fetch lwpid from thread.
13443 (linux_set_resume_request): Update, "entry" parameter is a
13444 struct thread_info * now. Fetch pid, lwpid from thread.
13445 (resume_status_pending_p): Update, "entry" parameter is a
13446 struct thread_info * now.
13447 (need_step_over_p): Ditto. Fetch lwpid from thread.
13448 (start_step_over): Fetch lwpid from thread.
13449 (linux_resume_one_thread): Update, "entry" parameter is a
13450 struct thread_info * now. Fetch lwpid from thread.
13451 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13452 (proceed_one_lwp): Update, "entry" parameter is a
13453 struct thread_info * now. Fetch lwpid from thread.
13454 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13455 struct thread_info * now.
13456 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13457 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13458 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13460 (regsets_store_inferior_registers): Ditto.
13461 (fetch_register, store_register): Ditto.
13462 (linux_read_memory, linux_write_memory): Ditto.
13463 (linux_request_interrupt): Ditto.
13464 (linux_read_auxv): Ditto.
13465 (linux_xfer_siginfo): Ditto.
13466 (linux_qxfer_spu): Ditto.
13467 (linux_qxfer_libraries_svr4): Ditto.
13468 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13469 moved to inferiors.h.
13471 (get_thread_lwp): Update.
13472 (struct lwp_info): Delete member "entry". Simplify comment for
13474 (all_lwps): Delete.
13475 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13476 current_inferior directly.
13477 (update_watch_registers_callback): Update, "entry" parameter is a
13478 struct thread_info * now. Fetch pid from thread.
13479 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13480 (mips_insert_point): Fetch lwpid from current_inferior.
13481 Pass &all_threads to find_inferior, not &all_lwps.
13482 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13483 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13485 (mips_stopped_data_address): Ditto.
13486 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13488 * linux-tile-low.c (tile_arch_setup): Ditto.
13489 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13490 (update_debug_registers_callback): Update, "entry" parameter is a
13491 struct thread_info * now. Fetch pid from thread.
13492 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13493 Pass &all_threads to find_inferior, not &all_lwps.
13494 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13495 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13496 Pass &all_threads to find_inferior, not &all_lwps.
13497 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13498 (i386_dr_low_get_status): Ditto.
13499 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13500 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13501 (x86_linux_read_description): Ditto.
13502 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13504 2014-02-20 Doug Evans <dje@google.com>
13506 * inferiors.c (get_first_inferior): Fix buglet.
13508 2014-02-19 Doug Evans <dje@google.com>
13510 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13511 * inferiors.c (add_thread): Change result type to struct thread_info *.
13512 All callers updated.
13513 (add_lwp): Call add_thread here instead of in callers.
13514 All callers updated.
13515 * linux-low.h (get_lwp_thread): Rewrite.
13516 (struct lwp_info): New member "thread".
13518 2014-02-19 Doug Evans <dje@google.com>
13520 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13521 All callers updated.
13523 2014-02-19 Doug Evans <dje@google.com>
13525 * inferiors.c (add_thread): Fix whitespace.
13527 2014-02-19 Doug Evans <dje@google.com>
13529 * dll.c (clear_dlls): Replace accessing list implemention details
13531 * gdbthread.h (get_first_thread): Declare.
13532 * inferiors.c (for_each_inferior_with_data): New function.
13533 (get_first_thread): New function.
13534 (find_thread_ptid): Simplify.
13535 (get_first_inferior): New function.
13536 (clear_list): Delete.
13537 (one_inferior_p): New function.
13538 (clear_inferior_list): New function.
13539 (clear_inferiors): Update.
13540 * inferiors.h (for_each_inferior_with_data): Declare.
13541 (clear_inferior_list): Declare.
13542 (one_inferior_p): Declare.
13543 (get_first_inferior): Declare.
13544 * linux-low.c (linux_wait_for_event): Replace accessing list
13545 implemention details with API function.
13546 * server.c (target_running): Ditto.
13547 (accumulate_file_name_length): New function.
13548 (emit_dll_description): New function.
13549 (handle_qxfer_libraries): Replace accessing list implemention
13550 details with API function.
13551 (handle_qxfer_threads_worker): New function.
13552 (handle_qxfer_threads_proper): Replace accessing list implemention
13553 details with API function.
13554 (handle_query): Ditto.
13555 (visit_actioned_threads_callback_ftype): New typedef.
13556 (visit_actioned_threads_data): New struct.
13557 (visit_actioned_threads): Rewrite to be find_inferior callback.
13558 (resume): Call find_inferior.
13559 (handle_status): Replace accessing list implemention
13560 details with API function.
13561 (process_serial_event): Replace accessing list implemention details
13563 * target.c (set_desired_inferior): Replace accessing list implemention
13564 details with API function.
13565 * tracepoint.c (same_process_p): New function.
13566 (gdb_agent_about_to_close): Replace accessing list implemention
13567 details with API function.
13568 * win32-low.c (child_delete_thread): Replace accessing list
13569 implemention details with API function.
13570 (match_dll_by_basename): New function.
13571 (dll_is_loaded_by_basename): New function.
13572 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13573 details call to dll_is_loaded_by_basename.
13575 2014-02-19 Doug Evans <dje@google.com>
13577 * dll.h (struct dll_info): Add comment.
13578 * gdbthread.h (struct thread_info): Add comment.
13579 (current_ptid): Simplify.
13580 * inferiors.c (add_process): Update.
13581 (remove_process): Update.
13582 * inferiors.h (struct process_info): Rename member "head" to "entry".
13583 * linux-low.c (delete_lwp): Update.
13585 (last_thread_of_process_p): Update.
13586 (kill_one_lwp_callback, linux_kill): Update.
13587 (status_pending_p_callback): Update.
13588 (wait_for_sigstop): Update. Simplify read of ptid.
13589 (start_step_over): Update.
13590 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13591 (get_lwp_thread): Update.
13592 (struct lwp_info): Rename member "head" to "entry".
13593 * regcache.h (inferior_list_entry): Delete.
13594 * server.c (kill_inferior_callback): Update.
13595 (detach_or_kill_inferior_callback): Update.
13596 (print_started_pid): Update.
13597 (print_attached_pid): Update.
13598 (process_serial_event): Simplify read of ptid.
13599 * thread-db.c (thread_db_create_event): Update.
13600 (thread_db_get_tls_address): Update.
13601 * win32-low.c (current_inferior_ptid): Simplify.
13603 2014-02-19 Tom Tromey <tromey@redhat.com>
13605 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13607 (target_supports_btrace): Update.
13609 2014-02-14 Yao Qi <yao@codesourcery.com>
13611 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13612 (rsp-low-ipa.o): New target.
13614 2014-02-12 Tom Tromey <tromey@redhat.com>
13616 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13617 convert_ascii_to_int.
13618 * regcache.c (registers_to_string): Likewise.
13619 * remote-utils.c (decode_M_packet): Likewise.
13620 * server.c (process_serial_event): Likewise.
13622 2014-02-12 Tom Tromey <tromey@redhat.com>
13624 * server.c (handle_query, handle_v_run): Use hex2bin, not
13626 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13628 2014-02-12 Tom Tromey <tromey@redhat.com>
13630 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13631 convert_int_to_ascii.
13632 * regcache.c (registers_to_string, collect_register_as_string):
13634 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13636 * server.c (process_serial_event): Likewise.
13637 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13638 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13640 2014-02-12 Tom Tromey <tromey@redhat.com>
13642 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13643 bin2hex, not hexify.
13644 * tracepoint.c (cmd_qtstatus): Likewise.
13646 2014-02-12 Tom Tromey <tromey@redhat.com>
13648 * remote-utils.c (monitor_output): Pass explicit length to
13651 2014-02-12 Tom Tromey <tromey@redhat.com>
13653 * tracepoint.c: Include rsp-low.h.
13654 * server.c: Include rsp-low.h.
13655 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13656 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13658 * remote-utils.c: Include rsp-low.h.
13659 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13660 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13661 (convert_int_to_ascii, convert_ascii_to_int): Move to
13663 * regcache.c: Include rsp-low.h.
13664 * ax.c: Include rsp-low.h.
13665 * Makefile.in (SFILES): Add common/rsp-low.c.
13666 (OBS): Add rsp-low.o.
13667 (rsp-low.o): New target.
13669 2014-02-12 Tom Tromey <tromey@redhat.com>
13671 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13672 Include print-utils.h.
13673 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13674 (plongest, thirty_two, phex_nz): Remove.
13675 * Makefile.in (SFILES): Add common/print-utils.c.
13676 (OBS): Add print-utils.o.
13677 (print-utils-ipa.o): New target.
13678 (print-utils.o): New target.
13679 (IPA_OBJS): Add print-utils-ipa.o.
13681 2014-02-06 Tom Tromey <tromey@redhat.com>
13683 * Makefile.in (SFILES): Fix indentation.
13685 2014-02-05 Doug Evans <dje@google.com>
13687 * linux-low.c (linux_wait_for_event): Improve comment.
13688 (linux_wait_1): Keep current_inferior in sync with event_child.
13690 2014-01-22 Doug Evans <dje@google.com>
13692 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13694 2014-01-22 Doug Evans <dje@google.com>
13696 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13697 * configure: Regenerate.
13698 * config.in: Regenerate.
13699 * Makefile.in (SFILES): Add debug.c.
13700 (OBS): Add debug.o.
13701 * debug.c: New file.
13702 * debug.h: New file.
13703 * linux-aarch64-low.c (*): Update all debugging printfs to use
13704 debug_printf instead of fprintf.
13705 * linux-arm-low.c (*): Ditto.
13706 * linux-cris-low.c (*): Ditto.
13707 * linux-crisv32-low.c (*): Ditto.
13708 * linux-m32r-low.c (*): Ditto.
13709 * linux-sparc-low.c (*): Ditto.
13710 * linux-x86.c (*): Ditto.
13711 * linux-low.c (*): Ditto.
13712 (linux_wait_1): Add calls to debug_enter, debug_exit.
13713 (linux_wait): Remove redundant debugging printf.
13714 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13715 (linux_resume, unstop_all_lwps): Ditto.
13716 * mem-break.c (*): Update all debugging printfs to use
13717 debug_printf instead of fprintf.
13718 * remote-utils.c (*): Ditto.
13719 * thread-db.c (*): Ditto.
13720 * server.c #include <ctype.h>, "gdb_vecs.h".
13721 (debug_threads): Moved to debug.c.
13722 (*): Update all debugging printfs to use debug_printf instead of
13724 (start_inferior): Replace call to fflush with call to debug_flush.
13725 (monitor_show_help): Mention set debug-format.
13726 (parse_debug_format_options): New function.
13727 (handle_monitor_command): Handle "monitor set debug-format".
13728 (gdbserver_usage): Mention --debug-format.
13729 (main): Parse --debug-format.
13730 * server.h (debug_threads): Declaration moved to debug.h.
13731 #include "debug.h".
13732 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13733 trace_debug_1 that uses debug_printf.
13734 (tracepoint_look_up_symbols): Update all debugging printfs to use
13735 debug_printf instead of fprintf.
13737 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13739 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13742 2014-01-17 Pedro Alves <palves@redhat.com>
13745 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13746 defined after including gdb_proc_service.h.
13748 2014-01-16 Doug Evans <dje@google.com>
13750 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13751 (match_dll): Use it.
13753 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13755 * target.h (target_ops) <read_btrace>: Change parameters and
13756 return type to allow error reporting.
13757 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13758 trace reading errors on.
13759 * linux-low.c (linux_low_read_btrace): Pass trace reading
13761 (linux_low_disable_btrace): New.
13763 2014-01-15 Doug Evans <dje@google.com>
13765 * inferiors.c (thread_id_to_gdb_id): Delete.
13766 * inferiors.h (thread_id_to_gdb_id): Delete.
13768 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13770 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13771 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13774 2014-01-08 Pedro Alves <palves@redhat.com>
13776 * server.c (handle_status): Don't discard previous queued stop
13777 replies or thread's pending status here.
13778 (main) <disconnection>: Do it here instead.
13780 2014-01-08 Pedro Alves <palves@redhat.com>
13782 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13783 * server.c (visit_actioned_threads, handle_pending_status): New
13785 (handle_v_cont): Factor out parts to ...
13786 (resume): ... this new function. If in all-stop, and a thread
13787 being resumed has a pending status, report it without actually
13789 (myresume): Adjust to use the new 'resume' function.
13790 (clear_pending_status_callback, set_pending_status_callback)
13791 (find_status_pending_thread_callback): New functions.
13792 (handle_status): Handle the case of multiple threads having
13793 interesting statuses to report. Report threads' real last signal
13794 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13795 with an interesting thread to report the status for, instead of
13796 always reporting the status of the first thread.
13798 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13800 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13801 * gdbreplay.c (gdbreplay_version): Likewise.
13803 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13805 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13806 iov.iov_len with the real length in use.
13808 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13810 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13811 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13812 for all targets that use win32-low.c.
13813 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13814 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13816 2013-12-13 Pedro Alves <palves@redhat.com>
13818 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13819 if equal to TARGET_WAITKIND_LOADED.
13820 * win32-low.c (cached_status): New static global.
13821 (win32_wait): Add declaration.
13822 (do_initial_child_stuff): Flush all initial pending debug events
13823 up to the initial breakpoint.
13824 (win32_wait): If CACHED_STATUS was set, return that instead
13825 of doing a real wait. Remove the code resuming the execution
13826 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13827 during the initial phase. Also remove the code changing
13828 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13829 TARGET_WAITKIND_STOPPED.
13831 2013-12-11 Yao Qi <yao@codesourcery.com>
13833 * notif.c (handle_notif_ack): Return 0 if no notification
13836 2013-11-20 Doug Evans <dje@google.com>
13838 * linux-low.c (linux_set_resume_request): Fix comment.
13840 2013-11-20 Doug Evans <dje@google.com>
13842 * linux-low.c (resume_status_pending_p): Tweak comment.
13844 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13846 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13847 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13848 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13849 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13850 (srv_amd64_regobj): Add amd64-mpx.o.
13851 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13852 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13853 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13854 * i387-fp.c (num_pl_bnd_register) Added constant.
13855 (num_pl_bnd_cfg_registers) Added constant.
13856 (struct i387_xsave) Added reserved area and MPX fields.
13857 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13858 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13860 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13861 (init_registers_amd64_mpx_linux): Declare new function.
13862 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13863 (x86_64_regmap): Add MPX registers.
13864 (x86_linux_read_description): Add MPX case.
13865 (initialize_low_arch): Initialize MPX targets.
13867 2013-11-18 Tom Tromey <tromey@redhat.com>
13869 * configure: Rebuild.
13870 * configure.ac: Don't check for stdlib.h.
13871 * gdbreplay.c: Unconditionally include stdlib.h.
13873 2013-11-18 Tom Tromey <tromey@redhat.com>
13875 * config.in: Rebuild.
13876 * configure: Rebuild.
13877 * configure.ac: Don't use AC_HEADER_DIRENT.
13879 2013-11-18 Tom Tromey <tromey@redhat.com>
13881 * server.h: Don't check HAVE_STRING_H.
13882 * gdbreplay.c: Don't check HAVE_STRING_H.
13883 * configure: Rebuild.
13885 2013-11-18 Tom Tromey <tromey@redhat.com>
13887 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13890 2013-11-08 Tom Tromey <tromey@redhat.com>
13892 * configure, config.in: Rebuild.
13893 * configure.ac: Remove unused configury.
13895 2013-11-08 Tom Tromey <tromey@redhat.com>
13897 * acinclude.m4: Include common.m4, codeset.m4.
13898 * configure, config.in: Rebuild.
13899 * configure.ac: Use GDB_AC_COMMON.
13901 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13903 * linux-s390-low.c (HWCAP_S390_TE): New define.
13904 (s390_arch_setup): Consider the TE field in the HWCAP for
13905 determining 'have_regset_tdb'.
13907 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13910 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13913 2013-10-02 Pedro Alves <palves@redhat.com>
13915 * server.c (process_serial_event): Don't output "GDBserver
13916 exiting" if GDB is connected through stdio.
13917 * target.c (mywait): Likewise, be silent if GDB is connected
13920 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13922 * lynx-low.c (lynx_add_threads_after_attach): New function.
13923 (lynx_attach): Remove call to add_thread. Add call to
13924 lynx_add_threads_after_attach instead.
13926 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13928 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13929 * config.in, configure: Regenerated.
13931 2013-09-18 Yao Qi <yao@codesourcery.com>
13934 * server.c (start_inferior): Clear 'resume_info'.
13936 2013-09-16 Jiong Wang <jiwang@tilera.com>
13938 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13941 2013-09-16 Jiong Wang <jiwang@tilera.com>
13943 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13944 linux-tile-low.o to srv_tgtobj.
13946 2013-09-16 Will Newton <will.newton@linaro.org>
13948 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13951 2013-09-06 Pedro Alves <palves@redhat.com>
13953 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13954 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13955 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13956 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13957 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13958 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13960 2013-09-06 Pedro Alves <palves@redhat.com>
13962 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13963 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13965 2013-09-06 Pedro Alves <palves@redhat.com>
13967 * linux-amd64-ipa.c: Include tracepoint.h.
13968 * linux-i386-ipa.c: Include tracepoint.h.
13970 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13972 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13973 (ps_get_thread_area): New function.
13975 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13977 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13978 (initialize_low_arch): Call init_registers_crisv32 rather than
13979 init_register_crisv32.
13981 2013-09-05 Pedro Alves <palves@redhat.com>
13983 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13985 * hostio.h: ... this new file.
13986 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13987 win32-low.c: Include hostio.h.
13989 2013-09-05 Pedro Alves <palves@redhat.com>
13991 * server.h (gdb_client_data, handler_func, callback_handler_func)
13992 (delete_file_handler, add_file_handler, append_callback_event)
13993 (delete_callback_event, start_event_loop, initialize_event_loop):
13994 Move to event-loop.h and include it.
13995 * event-loop.h: New file.
13997 2013-09-05 Pedro Alves <palves@redhat.com>
13999 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
14000 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
14001 (loaded_dll, unloaded_dll): Move to ...
14002 * dll.h: ... this new file.
14003 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
14005 2013-09-05 Pedro Alves <palves@redhat.com>
14007 * server.h (current_process, get_thread_process, all_processes)
14008 (add_inferior_to_list, for_each_inferior, current_inferior)
14009 (remove_inferior, add_process, remove_process, find_process_pid)
14010 (have_started_inferiors_p, have_attached_inferiors_p)
14011 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
14012 (clear_inferiors, find_inferior, find_inferior_id)
14013 (inferior_target_data, set_inferior_target_data)
14014 (inferior_regcache_data, set_inferior_regcache_data): Move to
14015 inferiors.h, and include it.
14016 * inferiors.h: New file.
14018 2013-09-05 Pedro Alves <palves@redhat.com>
14020 * server.h (struct emit_ops, current_insn_ptr, emit_error):
14024 2013-09-05 Pedro Alves <palves@redhat.com>
14026 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
14028 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
14029 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
14030 (handle_tracepoint_general_set, handle_tracepoint_query)
14031 (tracepoint_finished_step, tracepoint_was_hit)
14032 (release_while_stepping_state_list, current_traceframe)
14033 (in_readonly_region, traceframe_read_mem)
14034 (fetch_traceframe_registers, traceframe_read_sdata)
14035 (traceframe_read_info, struct fast_tpoint_collect_status)
14036 (fast_tracepoint_collecting, force_unlock_trace_buffer)
14037 (handle_tracepoit_bkpts, initialize_low_tracepoint)
14038 (supply_fast_tracepoint_registers)
14039 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
14040 (ipa_tdesc, claim_trampoline_space)
14041 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
14042 (agent_mem_read, agent_get_trace_state_variable_value)
14043 (agent_set_trace_state_variable_value, agent_tsv_read)
14044 (agent_mem_read_string, get_raw_reg_func_addr)
14045 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
14046 * tracepoint.h: ... this new file.
14048 2013-09-05 Pedro Alves <palves@redhat.com>
14050 * server.h (perror_with_name, error, fatal, warning, paddress)
14051 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
14053 * utils.h: New file.
14055 2013-09-05 Pedro Alves <palves@redhat.com>
14057 * server.h (remote_debug, noack_mode, transport_is_reliable)
14058 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
14059 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
14060 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
14061 (write_enn, initialize_async_io, enable_async_io)
14062 (disable_async_io, check_remote_input_interrupt_request)
14063 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
14064 (dead_thread_notify, prepare_resume_reply)
14065 (decode_address_to_semicolon, decode_address, decode_m_packet)
14066 (decode_M_packet, decode_X_packet, decode_xfer_write)
14067 (decode_search_memory_packet, unhexify, hexify)
14068 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
14069 (look_up_one_symbol, relocate_instruction)
14070 (monitor_output): Move to remote-utils.h, and include it.
14071 * remote-utils.h: New file.
14073 2013-09-05 Pedro Alves <palves@redhat.com>
14075 * server.h (_): Delete.
14077 2013-09-02 Pedro Alves <palves@redhat.com>
14079 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
14080 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
14082 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
14084 2013-09-02 Pierre Muller <muller@sourceware.org>
14086 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
14087 or WriteProcessMemory complete successfully and handle
14088 ERROR_PARTIAL_COPY error.
14090 2013-09-02 Pedro Alves <palves@redhat.com>
14092 * server.c (gdb_read_memory): Return -1 on traceframe memory read
14093 error instead of EIO.
14095 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14098 * linux-low.c: Include filestuff.h.
14099 (linux_create_inferior) <pid == 0>: Call close_most_fds.
14100 * lynx-low.c: Include filestuff.h.
14101 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
14102 * server.c: Include filestuff.h.
14103 (main): Call notice_open_fds.
14104 * spu-low.c: Include filestuff.h.
14105 (spu_create_inferior) <pid == 0>: Call close_most_fds.
14107 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
14109 * Makefile.in: Explain why ../target and ../nat are not
14110 listed as include file search paths.
14111 (linux-waitpid.o): New object file rule.
14112 * configure.srv (srv_native_linux_obj): New variable.
14113 Replace all occurrences of linux native object files with
14114 $srv_native_linux_obj.
14115 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
14116 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
14117 (linux_enable_event_reporting): Remove declaration.
14118 (my_waitpid): Moved to common/linux-waitpid.c.
14119 (linux_wait_for_event): Pass ptid when calling
14120 linux_enable_event_reporting.
14121 (linux_supports_tracefork_flag): Remove.
14122 (linux_enable_event_reporting): Likewise.
14123 (linux_tracefork_grandchild): Remove.
14124 (STACK_SIZE): Moved to common/linux-ptrace.c.
14125 (linux_tracefork_child): Remove.
14126 (linux_test_for_tracefork): Remove.
14127 (linux_look_up_symbols): Call linux_supports_traceclone.
14128 (initialize_low): Remove call to linux_test_for_tracefork.
14129 * linux-low.h (PTRACE_TYPE_ARG3): Move to
14130 common/linux-ptrace.h.
14131 (PTRACE_TYPE_ARG4): Likewise.
14132 Include linux-ptrace.h.
14134 2013-08-21 Pedro Alves <palves@redhat.com>
14136 * config.in: Renegerate.
14138 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
14140 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
14141 (SFILES): Remove $(srcdir)/common/target-common.c and
14142 add $(srcdir)/target/waitstatus.c.
14143 (OBS): Remove target-common.o and add waitstatus.o.
14144 (server_h): Remove $(srcdir)/../common/target-common.h and
14145 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
14146 and $(srcdir)/../target/waitstatus.h.
14147 (target-common.o): Remove.
14148 (waitstatus.o): New target object file.
14149 * target.h: Do not include target-common.h and
14150 include target/resume.h, target/wait.h and
14151 target/waitstatus.h.
14153 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
14155 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14156 to PTRACE_TYPE_ARG3.
14157 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14158 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
14160 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
14161 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
14163 2013-07-27 Jie Zhang <jie@codesourcery.com>
14164 Daniel Jacobowitz <dan@codesourcery.com>
14165 Yao Qi <yao@codesourcery.com>
14167 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
14168 (mips-linux-watch.o): New rule.
14169 (mips_linux_watch_h): New variable.
14170 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
14172 * linux-mips-low.c: Include mips-linux-watch.h.
14173 (struct arch_process_info, struct arch_lwp_info): New.
14174 (update_watch_registers_callback): New function.
14175 (mips_linux_new_process, mips_linux_new_thread) New functions.
14176 (mips_linux_prepare_to_resume, mips_insert_point): New
14178 (mips_remove_point, mips_stopped_by_watchpoint): New
14180 (rsp_bp_type_to_target_hw_bp_type): New function.
14181 (mips_stopped_data_address): New function.
14182 (the_low_target): Add watchpoint support functions.
14184 2013-07-27 Yao Qi <yao@codesourcery.com>
14186 * i386-low.c: Include break-common.h.
14187 (enum target_hw_bp_type): Remove.
14189 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
14191 * Makefile.in (SFILES): /common/target-common.c.
14192 (OBS): Add target-common.o.
14193 (server_h): Add $(srcdir)/../common/target-common.h.
14194 (target-common.o): New target.
14195 * server.c (queue_stop_reply_callback): Free
14196 status string after use.
14197 * target.c (target_waitstatus_to_string): Remove.
14198 * target.h: Include target-common.h.
14199 (resume_kind): Likewise.
14200 (target_waitkind): Likewise.
14201 (target_waitstatus): Likewise.
14202 (TARGET_WNOHANG): Likewise.
14204 2013-07-04 Yao Qi <yao@codesourcery.com>
14206 * Makefile.in (host_alias): Use @host_noncanonical@.
14207 (target_alias): Use @target_noncanonical@.
14208 * configure.ac: Use ACX_NONCANONICAL_TARGET and
14209 ACX_NONCANONICAL_HOST.
14210 * configure: Regenerated.
14213 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14215 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14216 * configure: Rebuild.
14217 * Makefile.in (version_host, version_target): Get from configure.
14218 (version.c): Use $(version_host) and $(version_target).
14220 2013-07-03 Pedro Alves <palves@redhat.com>
14222 * Makefile.in (config.status): Depend on development.sh.
14223 * acinclude.m4: Include libmcheck.m4.
14224 * configure: Regenerate.
14226 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14228 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
14229 attribute inside the parentheses.
14230 (winapi_DebugSetProcessKillOnExit): Ditto.
14231 (winapi_DebugBreakProcess): Ditto.
14232 (winapi_GenerateConsoleCtrlEvent): Ditto.
14234 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14236 * notif.h (notif_event): Add a dummy member to avoid compiler
14239 2013-07-01 Pedro Alves <palves@redhat.com>
14241 * hostio.c (HOSTIO_PATH_MAX): Define.
14242 (require_filename, handle_open, handle_unlink, handle_readlink):
14245 2013-07-01 Pedro Alves <palves@redhat.com>
14247 * server.h: Include "pathmax.h".
14248 * linux-low.c: Don't include sys/param.h.
14249 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
14251 * win32-low.c: Don't include sys/param.h.
14252 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
14254 2013-07-01 Pedro Alves <palves@redhat.com>
14256 * event-loop.c: Don't check HAVE_UNISTD_H before including
14258 * gdbreplay.c: Likewise.
14259 * remote-utils.c: Likewise.
14260 * server.c: Likewise.
14261 * configure.ac: Don't check for unistd.h.
14262 * configure: Regenerate.
14264 2013-06-28 Tom Tromey <tromey@redhat.com>
14266 * Makefile.in (version.c): Use version.in, not
14269 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14271 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14272 * configure: Rebuild.
14273 * Makefile.in (version_host, version_target): Get from configure.
14274 (version.c): Use $(version_host) and $(version_target).
14276 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14278 Fix trace-status to output user name without trailing colon.
14279 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14281 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14283 Fix trace-status to output proper start-time and stop-time.
14284 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14285 output start time and stop time in hex as gdb expects.
14287 2013-06-26 Pedro Alves <pedro@codesourcery.com>
14289 * tracepoint.c (build_traceframe_info_xml): Output trace state
14290 variables present in the trace buffer.
14292 2013-06-24 Tom Tromey <tromey@redhat.com>
14294 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14296 (version.o): Remove.
14297 * gdbreplay.c: Include version.h.
14298 (version, host_name): Don't declare.
14299 * server.h: Include version.h.
14300 (version, host_name): Don't declare.
14302 2013-06-12 Pedro Alves <palves@redhat.com>
14304 * linux-x86-low.c (linux_is_elf64): Delete global.
14305 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14306 with local linux_pid_exe_is_elf_64_file use.
14308 2013-06-11 Pedro Alves <palves@redhat.com>
14310 * linux-low.c (regset_disabled, disable_regset): New functions.
14311 (regsets_fetch_inferior_registers)
14312 (regsets_store_inferior_registers): Use them.
14313 (initialize_regsets_info); Don't allocate the disabled_regsets
14315 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14318 2013-06-11 Pedro Alves <palves@redhat.com>
14320 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14323 2013-06-11 Pedro Alves <palves@redhat.com>
14325 * linux-x86-low.c (initialize_low_arch): Call
14326 init_registers_x32_avx_linux.
14328 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14330 Fix compatibility with Android Bionic.
14331 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14334 2013-06-07 Pedro Alves <palves@redhat.com>
14337 * Makefile.in (OBS): Add tdesc.o.
14338 (IPA_OBJS): Add tdesc-ipa.o.
14339 (tdesc-ipa.o): New rule.
14340 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14342 * linux-low.c (new_inferior): Delete.
14343 (disabled_regsets, num_regsets): Delete.
14344 (linux_add_process): Adjust to set the new per-process
14346 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14347 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14348 was a stop. When calling arch_setup, switch the current inferior
14349 to the thread that got an event.
14350 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14351 (regsets_fetch_inferior_registers)
14352 (regsets_store_inferior_registers): New regsets_info parameter.
14354 (linux_register_in_regsets): New regs_info parameter. Adjust to
14356 (register_addr, fetch_register, store_register): New usrregs_info
14357 parameter. Adjust to use it.
14358 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14359 parameter regs_info. Adjust to use it.
14360 (linux_fetch_registers): Get the current inferior's regs_info, and
14362 (linux_store_registers): Ditto.
14363 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14364 (initialize_low): Don't initialize the target_regsets here. Call
14365 initialize_low_arch.
14366 * linux-low.h (target_regsets): Delete declaration.
14367 (struct regsets_info): New.
14368 (struct usrregs_info): New.
14369 (struct regs_info): New.
14370 (struct process_info_private) <new_inferior>: New field.
14371 (struct linux_target_ops): Delete the num_regs, regmap, and
14372 regset_bitmap fields. New field regs_info.
14373 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14374 * i387-fp.c (num_xmm_registers): Delete.
14375 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14376 calls to new interface.
14377 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14378 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14379 Infer the number of xmm registers from the regcache's target
14381 * i387-fp.h (num_xmm_registers): Delete.
14382 * inferiors.c (add_thread): Don't install the thread's regcache
14384 * proc-service.c (gregset_info): Fetch the current inferior's
14385 regs_info. Adjust to use it.
14386 * regcache.c: Include tdesc.h.
14387 (register_bytes, reg_defs, num_registers)
14388 (gdbserver_expedite_regs): Delete.
14389 (get_thread_regcache): If the thread doesn't have a regcache yet,
14390 create one, instead of aborting gdbserver.
14391 (regcache_invalidate_one): Rename to ...
14392 (regcache_invalidate_thread): ... this.
14393 (regcache_invalidate_one): New.
14394 (regcache_invalidate): Only invalidate registers of the current
14396 (init_register_cache): Add target_desc parameter, and use it.
14397 (new_register_cache): Ditto. Assert the target description has a
14398 non zero registers_size.
14399 (regcache_cpy): Add assertions. Adjust.
14400 (realloc_register_cache, set_register_cache): Delete.
14401 (registers_to_string, registers_from_string): Adjust.
14402 (find_register_by_name, find_regno, find_register_by_number)
14403 (register_cache_size): Add target_desc parameter, and use it.
14404 (free_register_cache_thread, free_register_cache_thread_one)
14405 (regcache_release, register_cache_size): New.
14406 (register_size): Add target_desc parameter, and use it.
14407 (register_data, supply_register, supply_register_zeroed)
14408 (supply_regblock, supply_register_by_name, collect_register)
14409 (collect_register_as_string, collect_register_by_name): Adjust.
14410 * regcache.h (struct target_desc): Forward declare.
14411 (struct regcache) <tdesc>: New field.
14412 (init_register_cache, new_register_cache): Add target_desc
14414 (regcache_invalidate_thread): Declare.
14415 (regcache_invalidate_one): Delete declaration.
14416 (regcache_release): Declare.
14417 (find_register_by_number, register_cache_size, register_size)
14418 (find_regno): Add target_desc parameter.
14419 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14421 * remote-utils.c: Include tdesc.h.
14422 (outreg, prepare_resume_reply): Adjust.
14423 * server.c: Include tdesc.h.
14424 (gdbserver_xmltarget): Delete declaration.
14425 (get_features_xml, process_serial_event): Adjust.
14426 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14428 (struct process_info) <tdesc>: New field.
14429 (ipa_tdesc): Declare.
14430 * tdesc.c: New file.
14431 * tdesc.h: New file.
14432 * tracepoint.c: Include tdesc.h.
14433 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14434 (get_context_regcache): Adjust to pass ipa_tdesc down.
14435 (do_action_at_tracepoint): Adjust to get the register cache size
14436 from the context regcache's description.
14437 (traceframe_walk_blocks): Adjust to get the register cache size
14438 from the current trace frame's description.
14439 (traceframe_get_pc): Adjust to get current trace frame's
14440 description and pass it down.
14441 (gdb_collect): Adjust to get the register cache size from the
14443 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14444 (gdbserver_xmltarget): Delete.
14445 (initialize_low_tracepoint): Set the ipa's target description.
14446 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14447 (initialize_low_tracepoint): Set the ipa's target description.
14448 * linux-x86-low.c: Include tdesc.h.
14449 [__x86_64__] (is_64bit_tdesc): New.
14450 (ps_get_thread_area, x86_get_thread_area): Use it.
14451 (i386_cannot_store_register): Rename to ...
14452 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14453 (i386_cannot_fetch_register): Rename to ...
14454 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14455 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14457 (target_regsets): Rename to ...
14458 (x86_regsets): ... this.
14459 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14461 (x86_siginfo_fixup): Use is_64bit_tdesc.
14462 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14463 (tdesc_x32_avx_linux, tdesc_x32_linux)
14464 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14466 (x86_linux_update_xmltarget): Delete.
14467 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14468 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14469 (AMD64_LINUX_USER64_CS): New.
14470 (x86_linux_read_description): New, based on
14471 x86_linux_update_xmltarget.
14472 (same_process_callback): New.
14473 (x86_arch_setup_process_callback): New.
14474 (x86_linux_update_xmltarget): New.
14475 (x86_regsets_info): New.
14476 (amd64_linux_regs_info): New.
14477 (i386_linux_usrregs_info): New.
14478 (i386_linux_regs_info): New.
14479 (x86_linux_regs_info): New.
14480 (x86_arch_setup): Reimplement.
14481 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14482 (x86_emit_ops): Ditto.
14483 (the_low_target): Adjust. Install x86_linux_regs_info,
14484 x86_cannot_fetch_register, and x86_cannot_store_register.
14485 (initialize_low_arch): New.
14486 * linux-ia64-low.c (tdesc_ia64): Declare.
14487 (ia64_fetch_register): Adjust.
14488 (ia64_usrregs_info, regs_info): New globals.
14489 (ia64_regs_info): New function.
14490 (the_low_target): Adjust.
14491 (initialize_low_arch): New function.
14492 * linux-sparc-low.c (tdesc_sparc64): Declare.
14493 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14495 (sparc_arch_setup): New function.
14496 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14497 (the_low_target): Adjust.
14498 (initialize_low_arch): New function.
14499 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14500 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14501 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14502 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14503 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14504 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14505 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14506 (tdesc_powerpc_isa205_vsx64l): Declare.
14507 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14508 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14509 (ppc_set_pc, ppc_get_hwcap): Adjust.
14510 (ppc_usrregs_info): Forward declare.
14511 (!__powerpc64__) ppc_regmap_adjusted: New global.
14512 (ppc_arch_setup): Adjust to the current process'es target
14514 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14515 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14516 (ppc_store_evrregset): Adjust.
14517 (target_regsets): Rename to ...
14518 (ppc_regsets): ... this, and make static.
14519 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14520 (ppc_regs_info): New function.
14521 (the_low_target): Adjust.
14522 (initialize_low_arch): New function.
14523 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14524 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14525 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14526 (tdesc_s390x_linux64v2): Declare.
14527 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14528 (s390_fill_gregset, s390_store_last_break): Adjust.
14529 (target_regsets): Rename to ...
14530 (s390_regsets): ... this, and make static.
14531 (s390_get_pc, s390_set_pc): Adjust.
14532 (s390_get_hwcap): New target_desc parameter, and use it.
14533 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14534 (s390_arch_setup): Adjust to set the current process'es target
14535 description. Don't adjust the regmap.
14536 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14537 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14538 (regs_info_3264): New globals.
14539 (s390_regs_info): New function.
14540 (the_low_target): Adjust.
14541 (initialize_low_arch): New function.
14542 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14543 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14544 [__mips64] (init_registers_mips_linux)
14545 (init_registers_mips_dsp_linux): Delete defines.
14546 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14547 (have_dsp): New global.
14548 (mips_read_description): New, based on mips_arch_setup.
14549 (mips_arch_setup): Reimplement.
14550 (get_usrregs_info): New function.
14551 (mips_cannot_fetch_register, mips_cannot_store_register)
14552 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14553 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14554 (target_regsets): Rename to ...
14555 (mips_regsets): ... this, and make static.
14556 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14557 (dsp_regs_info, regs_info): New globals.
14558 (mips_regs_info): New function.
14559 (the_low_target): Adjust.
14560 (initialize_low_arch): New function.
14561 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14562 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14564 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14565 (arm_read_description): New, with bits factored from
14567 (arm_arch_setup): Reimplement.
14568 (target_regsets): Rename to ...
14569 (arm_regsets): ... this, and make static.
14570 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14571 (arm_regs_info): New function.
14572 (the_low_target): Adjust.
14573 (initialize_low_arch): New function.
14574 * linux-m68k-low.c (tdesc_m68k): Declare.
14575 (target_regsets): Rename to ...
14576 (m68k_regsets): ... this, and make static.
14577 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14578 (m68k_regs_info): New function.
14579 (m68k_arch_setup): New function.
14580 (the_low_target): Adjust.
14581 (initialize_low_arch): New function.
14582 * linux-sh-low.c (tdesc_sharch): Declare.
14583 (target_regsets): Rename to ...
14584 (sh_regsets): ... this, and make static.
14585 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14586 (sh_regs_info, sh_arch_setup): New functions.
14587 (the_low_target): Adjust.
14588 (initialize_low_arch): New function.
14589 * linux-bfin-low.c (tdesc_bfin): Declare.
14590 (bfin_arch_setup): New function.
14591 (bfin_usrregs_info, regs_info): New globals.
14592 (bfin_regs_info): New function.
14593 (the_low_target): Adjust.
14594 (initialize_low_arch): New function.
14595 * linux-cris-low.c (tdesc_cris): Declare.
14596 (cris_arch_setup): New function.
14597 (cris_usrregs_info, regs_info): New globals.
14598 (cris_regs_info): New function.
14599 (the_low_target): Adjust.
14600 (initialize_low_arch): New function.
14601 * linux-cris-low.c (tdesc_crisv32): Declare.
14602 (cris_arch_setup): New function.
14603 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14604 (cris_regs_info): New function.
14605 (the_low_target): Adjust.
14606 (initialize_low_arch): New function.
14607 * linux-m32r-low.c (tdesc_m32r): Declare.
14608 (m32r_arch_setup): New function.
14609 (m32r_usrregs_info, regs_info): New globals.
14610 (m32r_regs_info): Adjust.
14611 (initialize_low_arch): New function.
14612 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14613 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14614 (tic6x_usrregs_info): Forward declare.
14615 (tic6x_read_description): New function, based on ...
14616 (tic6x_arch_setup): ... this. Reimplement.
14617 (target_regsets): Rename to ...
14618 (tic6x_regsets): ... this, and make static.
14619 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14620 (tic6x_regs_info): New function.
14621 (the_low_target): Adjust.
14622 (initialize_low_arch): New function.
14623 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14624 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14625 (target_regsets): Rename to ...
14626 (xtensa_regsets): ... this, and make static.
14627 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14629 (xtensa_arch_setup, xtensa_regs_info): New functions.
14630 (the_low_target): Adjust.
14631 (initialize_low_arch): New function.
14632 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14633 (nios2_arch_setup): Set the current process'es tdesc.
14634 (target_regsets): Rename to ...
14635 (nios2_regsets): ... this.
14636 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14637 (nios2_regs_info): New function.
14638 (the_low_target): Adjust.
14639 (initialize_low_arch): New function.
14640 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14641 (aarch64_arch_setup): Set the current process'es tdesc.
14642 (target_regsets): Rename to ...
14643 (aarch64_regsets): ... this.
14644 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14645 (aarch64_regs_info): New function.
14646 (the_low_target): Adjust.
14647 (initialize_low_arch): New function.
14648 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14650 (target_regsets): Rename to ...
14651 (tile_regsets): ... this.
14652 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14653 (tile_regs_info): New function.
14654 (tile_arch_setup): Set the current process'es tdesc.
14655 (the_low_target): Adjust.
14656 (initialize_low_arch): New function.
14657 * spu-low.c (tdesc_spu): Declare.
14658 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14659 * win32-arm-low.c (tdesc_arm): Declare.
14660 (arm_arch_setup): New function.
14661 (the_low_target): Install arm_arch_setup instead of
14662 init_registers_arm.
14663 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14664 (init_windows_x86): Rename to ...
14665 (i386_arch_setup): ... this. Set `win32_tdesc'.
14666 (the_low_target): Adjust.
14667 * win32-low.c (win32_tdesc): New global.
14668 (child_add_thread): Don't create the thread cache here.
14669 (do_initial_child_stuff): Set the new process'es tdesc.
14670 * win32-low.h (struct target_desc): Forward declare.
14671 (win32_tdesc): Declare.
14672 * lynx-i386-low.c (tdesc_i386): Declare global.
14673 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14674 * lynx-low.c (lynx_tdesc): New global.
14675 (lynx_add_process): Set the new process'es tdesc.
14676 * lynx-low.h (struct target_desc): Forward declare.
14677 (lynx_tdesc): Declare global.
14678 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14679 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14680 * nto-low.c (nto_tdesc): New global.
14681 (do_attach): Set the new process'es tdesc.
14682 * nto-low.h (struct target_desc): Forward declare.
14683 (nto_tdesc): Declare.
14684 * nto-x86-low.c (tdesc_i386): Declare.
14685 (nto_x86_arch_setup): Set `nto_tdesc'.
14687 2013-06-04 Gary Benson <gbenson@redhat.com>
14689 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14690 to qSupported response when appropriate.
14691 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14692 with nonzero-length annex.
14693 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14694 arguments supplied in annex.
14696 2013-05-31 Doug Evans <dje@google.com>
14699 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14700 64 bits in 64-cross-32 environment.
14702 2013-05-28 Pedro Alves <palves@redhat.com>
14704 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14705 (aarch64-without-fpu.c): Delete rule.
14706 * configure.srv (aarch64*-*-linux*): Remove references to
14707 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14708 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14711 2013-05-24 Pedro Alves <palves@redhat.com>
14713 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14714 instead of strchr/decode_address. Error if the range isn't split
14715 with a ','. Don't assume there's be a ':' in the action.
14717 2013-05-23 Yao Qi <yao@codesourcery.com>
14718 Pedro Alves <palves@redhat.com>
14720 * linux-low.c (lwp_in_step_range): New function.
14721 (linux_wait_1): If the thread was range stepping and stopped
14722 outside the stepping range, report the stop to GDB. Otherwise,
14723 continue stepping. Add range stepping debug output.
14724 (linux_set_resume_request): Copy the step range from the resume
14725 request to the lwp.
14726 (linux_supports_range_stepping): New.
14727 (linux_target_ops) <supports_range_stepping>: Set to
14728 linux_supports_range_stepping.
14729 * linux-low.h (struct linux_target_ops)
14730 <supports_range_stepping>: New field.
14731 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14732 * linux-x86-low.c (x86_supports_range_stepping): New.
14733 (the_low_target) <supports_range_stepping>: Set to
14734 x86_supports_range_stepping.
14735 * server.c (handle_v_cont): Handle 'r' action.
14736 (handle_v_requests): Append ";r" if the target supports range
14738 * target.h (struct thread_resume) <step_range_start,
14739 step_range_end>: New fields.
14740 (struct target_ops) <supports_range_stepping>:
14742 (target_supports_range_stepping): New macro.
14744 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14746 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14747 confusion in comment.
14749 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14751 * lynx-low.c (struct process_info_private): New type.
14752 (lynx_add_process): New function.
14753 (lynx_create_inferior, lynx_attach): Replace calls to
14754 add_process by calls to lynx_add_process.
14755 (lynx_resume): If PTID is null, then try using
14756 current_process()->private->last_wait_event_ptid.
14758 (lynx_clear_inferiors): Delete. The contents of that function
14759 has been inlined in lynx_mourn;
14760 (lynx_wait_1): Save the ptid in the process's private data.
14761 (lynx_mourn): Free the process' private data. Replace call
14762 to lynx_clear_inferiors by call to clear_inferiors.
14764 2013-05-17 Yao Qi <yao@codesourcery.com>
14766 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14769 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14771 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14772 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14773 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14774 PT_TEXT_END_ADDR guards. Update comments.
14775 (linux_target_op) <read_offsets>: Conditionally define to
14776 linux_read_offsets if the target is UCLIBC and if it defines
14777 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14779 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14780 Andrew Jenner <andrew@codesourcery.com>
14782 * Makefile.in (SFILES): Add linux-nios2-low.c.
14783 (clean): Add action to delete nios2-linux.c.
14784 (nios2-linux.c): New rule.
14785 * configure.srv: Add nios2*-*-linux*.
14786 * linux-nios2-low.c: New.
14788 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14790 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14792 2013-04-25 Hui Zhu <hui@codesourcery.com>
14795 * ax.c (ax_printf): Add fflush.
14797 2013-04-22 Tom Tromey <tromey@redhat.com>
14799 * Makefile.in (SFILES): Add filestuff.c.
14800 (OBS): Add filestuff.o.
14801 (filestuff.o): New target.
14802 * config.in, configure: Rebuild.
14803 * configure.ac: Check for fdwalk, pipe2.
14805 2013-04-17 Pedro Alves <palves@redhat.com>
14807 * configure.ac (USE_THREAD_DB): Delete variable.
14808 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14809 Don't AC_SUBST USE_THREAD_DB.
14810 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14811 * config.in, configure: Regenerate.
14813 2013-04-16 Pedro Alves <palves@redhat.com>
14815 * linux-low.h (struct lwp_info) <thread_known>: Move under
14816 the USE_THREAD_DB #ifdef.
14818 2013-04-16 Pedro Alves <palves@redhat.com>
14820 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14821 (linux-low.o): Delete rule.
14822 * linux-low.h: Always include "gdb_thread_db.h" instead of
14823 conditionally including thread_db.h.
14824 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14827 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14829 * Makefile.in (install-only): Fix make install regression.
14831 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14833 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14834 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14836 * gdbserver.1: Remove.
14838 2013-03-22 Pedro Alves <palves@redhat.com>
14840 * linux-low.c (handle_extended_wait): Don't call
14841 linux_enable_event_reporting.
14843 2013-03-15 Tony Theodore <tonyt@logyst.com>
14846 * Makefile.in (SHELL): Use @SHELL@.
14848 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14850 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14853 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14855 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14856 Remove extraneous NULL element.
14858 2013-03-13 Yao Qi <yao@codesourcery.com>
14860 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14861 'V' block in trace frame.
14863 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14865 * target.h (struct target_ops): Add btrace ops.
14866 (target_supports_btrace): New macro.
14867 (target_enable_btrace): New macro.
14868 (target_disable_btrace): New macro.
14869 (target_read_btrace): New macro.
14870 * gdbthread.h (struct thread_info): Add btrace field.
14871 * server.c: Include btrace-common.h.
14872 (handle_btrace_general_set): New function.
14873 (handle_btrace_enable): New function.
14874 (handle_btrace_disable): New function.
14875 (handle_general_set): Call handle_btrace_general_set.
14876 (handle_qxfer_btrace): New function.
14877 (struct qxfer qxfer_packets[]): Add btrace entry.
14878 * inferiors.c (remove_thread): Disable btrace.
14879 * linux-low: Include linux-btrace.h.
14880 (linux_low_enable_btrace): New function.
14881 (linux_low_read_btrace): New function.
14882 (linux_target_ops): Add btrace ops.
14883 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14884 Add srv_linux_btrace=yes.
14885 (x86_64-*-linux*): Add linux-btrace.o.
14886 Add srv_linux_btrace=yes.
14887 * configure.ac: Define HAVE_LINUX_BTRACE.
14888 * config.in: Regenerated.
14889 * configure: Regenerated.
14891 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14893 * server.c (handle_qxfer): Preserve error message if -3 is
14895 (qxfer): Document the -3 return value.
14897 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14899 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14900 (linux_btrace_h): New variable.
14901 (linux-btrace.o): New rule.
14903 2013-03-08 Stan Shebs <stan@codesourcery.com>
14904 Hafiz Abid Qadeer <abidh@codesourcery.com>
14906 * tracepoint.c (trace_buffer_size): New global.
14907 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14908 (init_trace_buffer): Change to one-argument function. Allocate
14909 trace buffer memory.
14910 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14911 handle QTBuffer:size packet.
14912 (cmd_bigqtbuffer_size): New function.
14913 (initialize_tracepoint): Call init_trace_buffer with
14914 DEFAULT_TRACE_BUFFER_SIZE.
14915 * server.c (handle_query): Add QTBuffer:size in the
14918 2013-03-07 Yao Qi <yao@codesourcery.com>
14920 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14921 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14923 (cmd_qtsp): Adjust condition. Do post increment.
14924 Set cur_action and cur_step_action back to 0.
14926 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14929 * linux-low.c (linux_write_memory): Return early success if LEN is
14932 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14934 * configure.srv: Add x86_64-*-cygwin* as target.
14936 2013-02-28 Tom Tromey <tromey@redhat.com>
14938 * configure.ac: Invoke AC_SYS_LARGEFILE.
14939 * configure, config.in: Rebuild.
14941 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14943 * win32-low.c: Throughout, fix format strings and casts of
14944 printf-like functions to avoid type related warnings on all
14946 (get_child_debug_event): Print dwDebugEventCode as hex since
14947 that's how it's usually documented.
14949 2013-02-28 Yao Qi <yao@codesourcery.com>
14951 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14954 2013-02-27 Jiong Wang <jiwang@tilera.com>
14956 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14957 (reg-tilegx32.c): New rule.
14958 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14959 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14960 different register info initializer according to elf class.
14961 (init_registers_tilgx32): New function. The tilegx32 register info
14963 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14964 (tile_store_gregset): Likewise.
14966 2013-02-27 Yao Qi <yao@codesourcery.com>
14968 * server.c (process_point_options): Print debug message when
14969 debug_threads is true.
14971 2013-02-26 Yao Qi <yao@codesourcery.com>
14973 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14975 2013-02-19 Pedro Alves <palves@redhat.com>
14976 Kai Tietz <ktietz@redhat.com>
14980 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14981 instead of strtoul to extract address from packet.
14982 (process_serial_event) <'z'>: Likewise.
14984 2013-02-18 Yao Qi <yao@codesourcery.com>
14986 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14988 2013-02-14 Pedro Alves <palves@redhat.com>
14992 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14993 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14995 2013-02-14 Pedro Alves <palves@redhat.com>
14997 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14999 2013-02-14 Pedro Alves <palves@redhat.com>
15001 * tracepoint.c (save_string): Delete.
15002 (add_tracepoint_action): Use savestring instead of save_string.
15004 2013-02-12 Pedro Alves <palves@redhat.com>
15006 * linux-xtensa-low.c: Ditto.
15007 * xtensa-xtregs.c: Ditto.
15009 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
15011 * thread-db.c (thread_db_get_tls_address): NULL pointer check
15014 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15016 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
15017 aarch64_num_wp_regs and aarch64_num_bp_regs to
15018 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
15020 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15022 * linux-aarch64-low.c (ps_get_thread_area): Replace
15023 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
15025 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
15026 Marcus Shawcroft <marcus.shawcroft@arm.com>
15027 Nigel Stephens <nigel.stephens@arm.com>
15028 Yufeng Zhang <yufeng.zhang@arm.com>
15030 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
15031 (aarch64.c, aarch64-without-fpu.c): New targets.
15032 * configure.srv (aarch64*-*-linux*): New.
15033 * linux-aarch64-low.c: New file.
15035 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
15037 * linux-low.c (handle_extended_wait, linux_create_inferior)
15038 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
15039 (dequeue_one_deferred_signal, linux_resume_one_thread)
15040 (fetch_register, linux_write_memory, linux_enable_event_reporting)
15041 (linux_tracefork_grandchild, linux_test_for_tracefork)
15042 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
15043 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
15044 where the argument is 0.
15046 2013-01-25 Yao Qi <yao@codesourcery.com>
15048 * event-loop.c: Include "queue.h".
15049 (gdb_event_p): New typedef.
15050 (struct gdb_event) <next_event>: Remove.
15051 (event_queue): Change to QUEUE(gdb_event_p).
15052 (async_queue_event): Remove.
15053 (gdb_event_xfree): New.
15054 (initialize_event_loop): New.
15055 (process_event): Use API from QUEUE.
15056 (wait_for_event): Likewise.
15057 * server.c (main): Call initialize_event_loop.
15058 * server.h (initialize_event_loop): Declare.
15060 2013-01-18 Yao Qi <yao@codesourcery.com>
15062 * ax.h (struct eval_agent_expr_context): New.
15063 (gdb_eval_agent_expr): Update declaration.
15064 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
15065 TFRAME. Add new argument CTX.
15066 * server.h (struct eval_agent_expr_context): Declare.
15067 (agent_mem_read, agent_tsv_read): Update declaration.
15068 (agent_mem_read_string): Likewise.
15069 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
15070 (add_traceframe_block): Add new argument TPOINT.
15071 Increase TPOINT->traceframe_usage.
15072 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
15073 eval_tracepoint_agent_expr.
15074 (condition_true_at_tracepoint): Likewise.
15075 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
15076 (agent_mem_read_string, agent_tsv_read): Likewise.
15078 2013-01-16 Yao Qi <yao@codesourcery.com>
15080 * linux-low.c (linux_resume_one_lwp): Don't check
15081 'lwp->bp_reinsert != 0'.
15083 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15084 Pedro Alves <palves@redhat.com>
15086 * lynx-low.c (ptrace_request_to_str): Define a temporary
15087 macro and use it to simplify this function's implementation.
15089 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15091 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
15094 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15096 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
15098 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15100 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
15102 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15104 * lynx-low.c (lynx_resume): Use the resume_info parameter
15105 to determine the ptid for the lynx_ptrace call, unless
15106 it is equal to minus_one_ptid, in which case we use the
15107 ptid of the current_inferior.
15108 (lynx_wait_1): After having received a thread create/exit
15109 event, resume the inferior's execution using the signaling
15110 thread's ptid, rather than the old ptid.
15112 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15114 * lynx-low.c (lynx_resume): Delete variable ret.
15116 2013-01-01 Joel Brobecker <brobecker@adacore.com>
15118 * gdbreplay.c (gdbreplay_version): Update copyright year.
15119 * server.c (gdbserver_version): Likewise.
15121 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15123 * lynx-low.c (lynx_wait_1): Add debug trace before adding
15126 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15128 * lynx-low.c (ptrace_request_to_str): Add handling for
15129 PTRACE_GETTRACESIG.
15131 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15133 * lynx-low.c (lynx_attach): Delete variable new_process.
15135 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15137 * lynx-low.c (lynx_create_inferior): Delete variable
15140 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15142 * lynx-low.c (ptrace_request_to_str): Do not handle
15143 PTRACE_GETTHREADLIST if this macro does not exist.
15145 2012-12-15 Yao Qi <yao@codesourcery.com>
15147 * Makefile.in (OBS): Add notif.o.
15148 * notif.c, notif.h: New.
15149 * server.c: Include "notif.h".
15150 (struct vstop_notif) <next>: Remove.
15152 (queue_stop_reply): Update.
15153 (push_event, send_next_stop_reply): Remove.
15154 (discard_queued_stop_replies): Update.
15155 (notif_stop): New variable.
15156 (handle_v_stopped): Remove.
15157 (handle_v_requests): Don't call handle_v_stopped. Call
15158 handle_ack_notif instead.
15159 (queue_stop_reply_callback): Call notif_event_enque instead
15160 of queue_stop_reply.
15161 (handle_status): Don't call send_next_stop_reply, call
15162 notif_write_event instead.
15163 (kill_inferior_callback): Likewise.
15164 (detach_or_kill_inferior_callback): Likewise.
15165 (main): Call initialize_notif.
15166 (process_serial_event): Call QUEUE_is_empty.
15167 (handle_target_event): Call notif_push instead of push event.
15168 * server.h (push_event): Remove declaration.
15170 2012-12-10 Tom Tromey <tromey@redhat.com>
15172 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
15173 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
15176 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
15177 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
15178 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
15179 (amd64-linux-ipa.o, ax.o): Rewrite.
15180 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
15181 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
15182 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
15183 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
15184 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
15185 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
15186 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
15187 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
15188 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
15189 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
15190 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
15191 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
15192 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
15193 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
15194 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
15195 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
15196 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
15197 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
15198 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
15199 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
15200 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
15201 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
15202 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
15203 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
15204 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
15205 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
15206 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
15207 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
15208 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
15209 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
15210 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
15211 (reg-tilegx.o): Remove.
15212 (all_object_files): New macro.
15213 Include .deps files.
15214 * aclocal.m4, configure: Rebuild.
15215 * acinclude.m4: Include depstand.m4, lead-dot.m4.
15216 * configure.ac: Invoke ZW_CREATE_DEPDIR,
15217 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
15219 2012-12-05 Tom Tromey <tromey@redhat.com>
15222 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
15224 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
15226 * configure.ac: Check for linux/perf_event.h.
15227 * config.in: Regenerated.
15228 * configure: Regenerated.
15230 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
15232 * hostio.c (handle_readlink): Decrease buffer size
15233 parameter passed to readlink by one byte.
15235 2012-11-26 Yao Qi <yao@codesourcery.com>
15237 * configure.ac (build_warnings): Append '-Wempty-body'.
15238 * configure: Regenerated.
15239 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
15242 2012-11-15 Pierre Muller <muller@sourceware.org>
15244 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
15245 * config.in: Regenerate.
15246 * configure: Regenerate.
15247 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
15248 Use "gdb_wait.h" header instead of <sys/wait.h> header.
15249 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15250 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
15252 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
15253 instead of <sys/wait.h> header.
15254 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15256 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
15258 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15259 (various make rules): Remove -DGDBSERVER
15261 2012-11-09 Yao Qi <yao@codesourcery.com>
15263 * spu-low.c (current_ptid): Move it to ..
15264 * gdbthread.h: ... here. New.
15265 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15266 * server.c (myresume, process_serial_event): Likewise.
15267 * thread-db.c (thread_db_find_new_threads): Likewise.
15268 * tracepoint.c (run_inferior_command): Likewise.
15270 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
15272 * server.c (handle_search_memory_1): Include access length in
15275 2012-09-05 Michael Brandt <michael.brandt@axis.com>
15277 * linux-crisv32-low.c: Fix compile errors.
15279 2012-09-04 Yao Qi <yao@codesourcery.com>
15281 * tracepoint.c (cmd_qtsv): Adjust debug message.
15282 Don't check CUR_TPOINT.
15284 2012-08-28 Yao Qi <yao@codesourcery.com>
15286 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15287 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15288 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15289 Remove declarations of xmalloc, xreallloc, xstrdup and
15291 * Makefile.in (libiberty_h): New.
15292 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15293 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15295 2012-08-23 Yao Qi <yao@codesourcery.com>
15297 * server.h: Remove declaration of 'xsnprintf'.
15299 2012-08-22 Keith Seitz <keiths@redhat.com>
15301 * server.h: Include build-gnulib-gbserver/config.h.
15302 * gdbreplay.c: Likewise.
15304 2012-08-08 Doug Evans <dje@google.com>
15306 * Makefile.in (SFILES): Add gdb_vecs.c.
15307 (OBS): Add gdb_vecs.o.
15308 (gdb_vecs_h, host_defs_h): New variables.
15309 (thread-db.o): Add $(gdb_vecs_h) dependency.
15310 (gdb_vecs.o): New rule.
15311 * thread-db.c: #include "gdb_vecs.h".
15312 (thread_db_load_search): Use a vector to iterate over path elements.
15313 Handle text appearing after "$pdir".
15315 * configure.ac: Add check for strstr.
15316 * config.in: Regenerate.
15317 * configure: Regenerate.
15319 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15321 * hostio.c (handle_pread): If pread fails, fall back to attempting
15323 (handle_pwrite): Likewise for pwrite.
15325 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15327 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15328 between unsupported TYPE and unimplementable ADDR/LEN combination.
15329 (arm_insert_point): Act on new return value.
15331 2012-07-31 Pedro Alves <palves@redhat.com>
15333 * server.c (process_point_options): Only skip tokens if we find
15334 one that is unrecognized. Don't treat 'X' specially while
15335 skipping unrecognized tokens.
15337 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15339 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15340 to 4-byte-align HW breakpoint addresses for Thumb.
15342 2012-07-27 Yao Qi <yao@codesourcery.com>
15346 * server.h: Declare gdb_agent_about_to_close.
15347 * target.c (kill_inferior): Include "agent.h".
15348 New. Send command 'kill'.
15349 * target.h (kill_inferior): Removed macro.
15350 * tracepoint.c (gdb_agent_about_to_close): New.
15351 (gdb_agent_helper_thread): Handle command 'close'.
15352 Wait endlessly until the inferior stops.
15353 Install gdb_agent_remove_socket to atexit hook.
15354 (agent_socket_name): New static variable.
15355 (gdb_agent_socket_init): Replace local variable 'name' with
15356 'agent_socket_name'.
15357 (gdb_agent_remove_socket): New.
15359 2012-07-27 Yao Qi <yao@codesourcery.com>
15361 * server.c (process_point_options): Stop at 'X' when parsing.
15363 2012-07-19 Michael Eager <eager@eagercon.com>
15365 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
15367 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15368 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15369 hardware breakpoint.
15371 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15373 * gdbserver/linux-low.c (initialize_low): Call
15374 linux_ptrace_init_warnings.
15376 2012-07-02 Doug Evans <dje@google.com>
15378 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15381 2012-07-02 Stan Shebs <stan@codesourcery.com>
15383 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15384 (ax.o): Add it to build rule.
15386 (OBS): Add format.o.
15387 (IPA_OBS): Add format.o.
15388 * server.c (handle_query): Claim support for breakpoint commands.
15389 (process_point_options): Add command case.
15390 (process_serial_event): Leave running if there are printfs in
15392 * mem-break.h (any_persistent_commands): Declare.
15393 (add_breakpoint_commands): Declare.
15394 (gdb_no_commands_at_breakpoint): Declare.
15395 (run_breakpoint_commands): Declare.
15396 * mem-break.c (struct point_command_list): New struct.
15397 (struct breakpoint): New field command_list.
15398 (any_persistent_commands): New function.
15399 (add_commands_to_breakpoint): New function.
15400 (add_breakpoint_commands): New function.
15401 (gdb_no_commands_at_breakpoint): New function.
15402 (run_breakpoint_commands): New function.
15403 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15405 * ax.c: Include format.h.
15406 (ax_printf): New function.
15407 (gdb_eval_agent_expr): Add printf opcode.
15409 2012-06-13 Yao Qi <yao@codesourcery.com>
15411 * server.c (start_inferior): Remove duplicated writes to fields
15412 'last_resume_kind' and 'last_status' of 'current_inferior'.
15414 2012-06-12 Yao Qi <yao@codesourcery.com>
15415 Pedro Alves <palves@redhat.com>
15417 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15419 * server.c (handle_v_cont): Extend comment.
15421 2012-06-11 Yao Qi <yao@codesourcery.com>
15423 * linux-low.c (linux_attach): Add 'static'.
15425 2012-06-06 Yao Qi <yao@codesourcery.com>
15427 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15429 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15431 Fix gcc -flto compilation warning.
15432 * server.c (main): Make variable multi_mode and attach volatile.
15434 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15436 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15437 if the platform doesn't know about it.
15439 2012-05-30 Jeff Kenton <jkenton@tilera.com>
15441 * Makefile.in (SFILES): Add linux-tile-low.c.
15442 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15443 * configure.srv: Handle tilegx-*-linux*.
15444 * linux-tile-low.c: New file.
15446 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15448 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15450 2012-05-24 Pedro Alves <palves@redhat.com>
15454 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
15456 2012-05-24 Pedro Alves <palves@redhat.com>
15460 Replace target_signal with gdb_signal throughout.
15462 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15464 * linux-low.c (linux_store_registers): Avoid the copying sequence
15465 when no data has been retrieved by ptrace.
15467 2012-05-22 Will Deacon <will.deacon@arm.com>
15469 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15470 Include asm/ptrace.h.
15471 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15474 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15476 * linux-low.c (linux_store_registers): Don't re-retrieve data
15477 with ptrace that has already been obtained from /proc. Always
15478 copy any data retrieved with ptrace to the buffer supplied.
15480 2012-05-11 Yao Qi <yao@codesourcery.com>
15481 Pedro Alves <palves@redhat.com>
15483 * linux-low.c (enum stopping_threads_kind): New.
15484 (stopping_threads): Change type to `enum stopping_threads_kind'.
15485 (handle_extended_wait): If stopping and suspending threads, leave
15486 the new_lwp suspended too.
15487 (linux_wait_for_event): Adjust.
15488 (stop_all_lwps): Set `stopping_threads' to
15489 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15490 whether we're suspending threads or just stopping them. Assert no
15493 2012-04-29 Yao Qi <yao@codesourcery.com>
15495 * server.h: Move some code to ...
15496 * gdbthread.h: ... here. New.
15497 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15498 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15499 (nto-low.o, win32-low.o): Likewise.
15500 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15501 * regcache.c, remote-utils.c, server.c: Likewise.
15502 * target.c, tracepoint.c, win32-low.c: Likewise.
15504 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15506 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15507 (PTRACE_ARG4_TYPE): Likewise.
15508 (PTRACE_XFER_TYPE): Likewise.
15509 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15510 ptrace to PTRACE_ARG3_TYPE.
15511 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15512 (PTRACE_ARG4_TYPE): Likewise.
15513 (PTRACE_XFER_TYPE): Likewise.
15514 (linux_detach_one_lwp): Cast fourth argument of
15515 ptrace to long then PTRACE_ARG4_TYPE.
15516 (regsets_fetch_inferior_registers): Cast third argument of
15517 ptrace to long then PTRACE_ARG3_TYPE.
15518 (regsets_store_inferior_registers): Likewise.
15520 2012-04-20 Pedro Alves <palves@redhat.com>
15522 * configure: Regenerate.
15524 2012-04-19 Pedro Alves <palves@redhat.com>
15526 * Makefile.in (GNULIB_BUILDDIR): New.
15527 (LIBGNU, INCGNU, GNULIB_H): Adjust.
15528 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15529 (all, install-only, uninstall, clean-info, all-lib, clean): No
15530 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15531 (maintainer-clean realclean distclean): Use subdir_do.
15533 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
15534 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
15535 * acinclude.m4: Include acx_configure_dir.m4.
15536 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15537 calls. Call AC_PROG_RANLIB. Configure gnulib using
15540 (GNULIB_STDINT_H): Adjust.
15541 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15542 * gdbreplay.c: Include build-gnulib/config.h.
15543 * server.h: Likewise.
15544 * aclocal.m4: Regenerate.
15545 * config.in: Regenerate.
15546 * configure: Regenerate.
15548 2012-04-19 Pedro Alves <palves@redhat.com>
15550 * Makefile.in (LIBGNU, INCGNU): Adjust.
15551 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15552 (all, install-only, uninstall, clean-info, all-lib, clean)
15553 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15554 * configure.ac: Adjust AC_OUTPUT output.
15555 * aclocal.m4: Regenerate.
15556 * configure: Regenerate.
15558 2012-04-19 Pedro Alves <palves@redhat.com>
15560 * Makefile.in (generated_files): New.
15561 (server_h): Remove the explicit dependency on config.h, and depend
15562 on $generated_files.
15564 2012-04-19 Pedro Alves <palves@redhat.com>
15566 * Makefile.in (INCGNU): Add -Ignulib.
15568 2012-04-19 Pedro Alves <palves@redhat.com>
15570 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15571 (INCGNU): ... this, and spell out -I here.
15572 (GNULIB_LIB): Rename to ...
15573 (LIBGNU): ... this.
15574 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15576 2012-04-19 Pedro Alves <palves@redhat.com>
15578 * config.in: Regenerate.
15580 2012-04-19 Pedro Alves <palves@redhat.com>
15582 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15583 * server.h (memmem): Remove declaration.
15584 * config.in: Regenerate.
15585 * configure: Regenerate.
15587 2012-04-19 Yao Qi <yao@codesourcery.com>
15589 * Makefile.in (SFILES): Add common/vec.c.
15593 2012-04-19 Yao Qi <yao@codesourcery.com>
15595 * remote-utils.c (prepare_resume_reply): Replace with macro
15596 target_core_of_thread.
15597 * server.c (handle_qxfer_threads_proper): Likewise.
15598 * target.h (traget_core_of_thread): New macro.
15600 2012-04-18 Pedro Alves <palves@redhat.com>
15602 * aclocal.m4: Regenerate.
15603 * configure: Regenerate.
15605 2012-04-16 Yao Qi <yao@codesourcery.com>
15607 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15608 duplicated on address.
15610 2012-04-16 Yao Qi <yao@codesourcery.com>
15612 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15613 (struct tracepoint_action_ops) <send>: New field.
15614 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15615 (agent_expr_send, x_tracepoint_action_send): New.
15616 (l_tracepoint_action_send): New.
15617 (cmd_qtdp): Download and install tracepoint
15618 according to `use_agent'.
15619 (run_inferior_command): Add one more parameter `len'.
15621 (tracepoint_send_agent): New.
15622 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15624 2012-04-16 Yao Qi <yao@codesourcery.com>
15626 * tracepoint.c (download_tracepoints): Moved to ...
15627 (cmd_qtstart): ... here.
15629 2012-04-14 Yao Qi <yao@codesourcery.com>
15631 * tracepoint.c: Include inttypes.h.
15632 (struct collect_memory_action): Use sized types.
15633 (struct tracepoint): Likewise.
15634 (cmd_qtdp, stop_tracing): Update print specifiers.
15635 (cmd_qtp, response_tracepoint): Likewise.
15636 (collect_data_at_tracepoint): Likewise.
15637 (collect_data_at_step): Likewise.
15639 2012-04-14 Yao Qi <yao@codesourcery.com>
15641 Import gnulib module inttypes.
15642 * aclocal.m4, config.in, configure: Regenerated.
15644 2012-04-14 Yao Qi <yao@codesourcery.com>
15646 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15647 Makefile and config.status at last.
15649 2012-04-13 Yao Qi <yao@codesourcery.com>
15651 * tracepoint.c: Include stdint.h unconditionally.
15653 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15655 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15656 on BFD_HAVE_SYS_PROCFS_TYPE.
15657 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15658 * configure: Regenerate.
15659 * config.in: Likewise.
15661 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15663 * Makefile.in (clean): Also remove x32.c x32-linux.c
15664 x32-avx.c x32-avx-linux.c.
15665 (x32.o): New target.
15667 (x32-linux.o): Likewise.
15668 (x32-linux.c): Likewise.
15669 (x32-avx.o): Likewise.
15670 (x32-avx.c): Likewise.
15671 (x32-avx-linux.o): Likewise.
15672 (x32-avx-linux.c): Likewise.
15674 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15675 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15676 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15677 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15678 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15679 i386/x32-avx-linux.xml.
15681 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15682 (init_registers_x32_avx_linux): Likwise.
15683 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15684 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15686 2012-04-13 Pedro Alves <palves@redhat.com>
15688 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15689 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15690 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15691 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15694 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15696 * linux-x86-low.c (compat_x32_clock_t): New.
15697 (compat_x32_siginfo_t): Likewise.
15698 (compat_x32_siginfo_from_siginfo): Likewise.
15699 (siginfo_from_compat_x32_siginfo): Likewise.
15700 (linux_is_elf64): Likewise.
15701 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15702 and siginfo_from_compat_x32_siginfo for x32.
15703 (x86_arch_setup): Set linux_is_elf64.
15705 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15708 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15710 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15711 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15712 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15713 compatible with process.
15715 2012-04-12 Yao Qi <yao@codesourcery.com>
15717 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15718 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15719 (install-only, install-info, clean): Handle sub dir gnulib.
15720 (all-lib, am--refresh): New targets.
15721 (memmem.o): Remove target.
15722 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15723 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15724 (AC_REPLACE_FUNCS): Remove memmem.
15725 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15726 (AC_OUTPUT): Generate Makefile in gnulib/.
15727 * aclocal.m4, config.in, configure: Regenerated.
15729 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15731 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15733 2012-04-05 Pedro Alves <palves@redhat.com>
15735 -Werror=strict-aliasing
15737 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15740 2012-04-04 Pedro Alves <palves@redhat.com>
15742 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15743 (sparc_store_gregset_from_stack, sparc_store_gregset)
15744 (sparc_breakpoint_at): Fix formatting.
15746 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15748 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15750 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15751 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15752 * config.in: Regenerate.
15753 * configure: Likewise.
15755 2012-03-29 Pedro Alves <palves@redhat.com>
15757 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15758 Correct ptrace arguments.
15760 2012-03-28 Pedro Alves <palves@redhat.com>
15762 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15763 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15764 (IA64_FR1_REGNUM): New defines.
15765 (ia64_fetch_register): New.
15766 (the_low_target): Install it.
15767 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15769 * linux-low.c (linux_fetch_registers): Try the
15770 the_low_target.fetch_register hook first.
15772 * linux-arm-low.c (the_low_target): Adjust.
15773 * linux-bfin-low.c (the_low_target): Adjust.
15774 * linux-cris-low.c (the_low_target): Adjust.
15775 * linux-crisv32-low.c (the_low_target): Adjust.
15776 * linux-m32r-low.c (the_low_target): Adjust.
15777 * linux-m68k-low.c (the_low_target): Adjust.
15778 * linux-mips-low.c (the_low_target): Adjust.
15779 * linux-ppc-low.c (the_low_target): Adjust.
15780 * linux-s390-low.c (the_low_target): Adjust.
15781 * linux-sh-low.c (the_low_target): Adjust.
15782 * linux-sparc-low.c (the_low_target): Adjust.
15783 * linux-tic6x-low.c (the_low_target): Adjust.
15784 * linux-x86-low.c (the_low_target): Adjust.
15785 * linux-xtensa-low.c (the_low_target): Adjust.
15787 2012-03-26 Pedro Alves <palves@redhat.com>
15789 * server.c (handle_qxfer_libraries): Don't bail early if
15790 the_target->qxfer_libraries_svr4 is not NULL.
15792 2012-03-26 Pedro Alves <palves@redhat.com>
15794 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15796 2012-03-23 Pedro Alves <palves@redhat.com>
15798 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15799 "library-list-svr4" element's start tag when the the DSO list is
15802 2012-03-23 Pedro Alves <palves@redhat.com>
15804 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15805 a variable whose type size is the same as the inferior's pointer
15808 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15810 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15812 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15813 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15814 * linux-low.h: Include <signal.h>.
15815 (struct siginfo): Remove forward declaration.
15816 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15819 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15821 * .gitignore: Ignore more files.
15823 2012-03-19 Pedro Alves <palves@redhat.com>
15824 Jan Kratochvil <jan.kratochvil@redhat.com>
15826 * server.c (cont_thread, general_thread): Add describing comments.
15827 (start_inferior): Clear `cont_thread'.
15828 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15831 2012-03-15 Yao Qi <yao@codesourcery.com>
15833 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15835 (cmd_qtdp): ... here.
15837 2012-03-15 Yao Qi <yao@codesourcery.com>
15839 * tracepoint.c (struct tracepoint_action_ops): New.
15840 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15841 (m_tracepoint_action_download): New.
15842 (r_tracepoint_action_download): New.
15843 (x_tracepoint_action_download): New.
15844 (l_tracepoint_action_download): New.
15845 (add_tracepoint_action): Install `action->ops' according type.
15846 (download_tracepoint_1): Move code `download' function pointer
15847 of various tracepoint_action_ops.
15849 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15851 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15852 linux_ptrace_attach_warnings.
15854 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15856 * Makefile.in (linux-ptrace.o): New.
15857 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15858 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15859 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15860 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15861 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15863 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15865 2012-03-08 Yao Qi <yao@codesourcery.com>
15866 Pedro Alves <palves@redhat.com>
15868 Fix PR server/13392.
15869 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15870 offset of JMP insn.
15871 * tracepoint.c (remove_tracepoint): New.
15872 (cmd_qtdp): Call remove_tracepoint when failed to install.
15874 2012-03-07 Pedro Alves <palves@redhat.com>
15876 * linux-low.c (get_detach_signal): New.
15877 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15878 Pass on pending signals to PTRACE_DETACH. Check the result of the
15880 * server.c (program_signals, program_signals_p): New.
15881 (handle_general_set): Handle QProgramSignals.
15882 * server.h (program_signals, program_signals_p): Declare.
15884 2012-03-05 Pedro Alves <palves@redhat.com>
15885 Jan Kratochvil <jan.kratochvil@redhat.com>
15887 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15890 2012-03-03 Yao Qi <yao@codesourcery.com>
15892 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15893 agent_look_up_symbols.
15895 2012-03-03 Yao Qi <yao@codesourcery.com>
15897 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15898 (linux-x86-low.o): Likewise.
15899 * server.h: Remove in_process_agent_loaded.
15900 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15904 2012-03-03 Yao Qi <yao@codesourcery.com>
15906 * tracepoint.c (gdb_agent_capability): New global.
15907 (in_process_agent_loaded_ust): Renamed to
15908 `in_process_agent_supports_ust'.
15910 (in_process_agent_supports_ust): Call agent_capability_check.
15911 (clear_installed_tracepoints): Assert that agent supports
15914 2012-03-03 Yao Qi <yao@codesourcery.com>
15916 * linux-low.c (linux_supports_agent): New.
15917 (linux_target_ops): Initialize field `supports_agent' with
15918 linux_supports_agent.
15919 * target.h (struct target_ops) <supports_agent>: New.
15920 (target_supports_agent): New macro.
15921 * server.c (handle_general_set): Handle packet 'QAgent'.
15922 (handle_query): Send `QAgent+'.
15923 * Makefile.in (server.o): Depends on agent.h.
15925 2012-03-03 Yao Qi <yao@codesourcery.com>
15927 * Makefile.in (OBS): Add agent.o.
15928 Add new rule for agent.o.
15929 Track dependence of tracepoint.c on agent.h.
15930 * tracepoint.c (run_inferior_command_1):
15931 (run_inferior_command): Call agent_run_command.
15932 (gdb_ust_connect_sync_socket): Deleted. Move it to
15934 (resume_thread, stop_thread): Likewise.
15935 (gdb_ust_socket_init): Renamed to ...
15936 (gdb_agent_socket_init): ... New.
15937 (gdb_ust_thread): Renamed to ...
15938 (gdb_agent_helper_thread): ... New.
15939 (gdb_ust_init): Move some code to ...
15940 (gdb_agent_init): ... here. New.
15941 [HAVE_UST]: Call gdb_ust_init.
15942 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15943 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15944 * config.in, configure: Regenerated.
15946 2012-03-02 Pedro Alves <palves@redhat.com>
15948 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15949 * linux-low.c (struct simple_pid_list): New.
15950 (stopped_pids): New a struct simple_pid_list pointer.
15951 (add_to_pid_list, pull_pid_from_list): New.
15952 (handle_extended_wait): Don't assume the first signal new children
15953 report is SIGSTOP. Adjust call to pull_pid_from_list.
15954 (linux_wait_for_lwp): Adjust.
15956 2012-03-02 Yao Qi <yao@codesourcery.com>
15958 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15961 2012-03-02 Yao Qi <yao@codesourcery.com>
15963 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15964 `stop_pc' and `tpoint'. Update caller.
15966 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15968 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15969 * linux-low.c (use_linux_regsets): New macro.
15970 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15971 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15972 (linux_register_in_regsets): New function.
15973 (usr_fetch_inferior_registers): Skip registers covered by
15975 (usr_store_inferior_registers): Likewise.
15976 (usr_fetch_inferior_registers): New macro.
15977 (usr_store_inferior_registers): Likewise.
15978 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15979 (linux_store_registers): Likewise.
15980 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15982 (init_registers_mips64_dsp_linux): Likewise.
15983 (init_registers_mips_linux): New macro.
15984 (init_registers_mips_dsp_linux): Likewise.
15985 (mips_dsp_num_regs): Likewise.
15986 (DSP_BASE, DSP_CONTROL): New fallback macros.
15987 (mips_base_regs): New macro.
15988 (mips_regmap): Use it. Fix the size.
15989 (mips_dsp_regmap): New variable.
15990 (mips_dsp_regset_bitmap): Likewise.
15991 (mips_arch_setup): New function.
15992 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15994 (mips_cannot_store_register): Likewise.
15995 (the_low_target): Update .arch_setup, .num_regs and .regmap
15996 initializers. Add .regset_bitmap initializer.
15997 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15999 * linux-bfin-low.c (the_low_target): Likewise.
16000 * linux-cris-low.c (the_low_target): Likewise.
16001 * linux-crisv32-low.c (the_low_target): Likewise.
16002 * linux-ia64-low.c (the_low_target): Likewise.
16003 * linux-m32r-low.c (the_low_target): Likewise.
16004 * linux-m68k-low.c (the_low_target): Likewise.
16005 * linux-ppc-low.c (the_low_target): Likewise.
16006 * linux-s390-low.c (the_low_target): Likewise.
16007 * linux-sh-low.c (the_low_target): Likewise.
16008 * linux-sparc-low.c (the_low_target): Likewise.
16009 * linux-tic6x-low.c (the_low_target): Likewise.
16010 * linux-x86-low.c (the_low_target): Likewise.
16011 * linux-xtensa-low.c (the_low_target): Likewise.
16012 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
16013 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
16014 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
16016 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
16017 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
16019 2012-02-29 Yao Qi <yao@codesourcery.com>
16020 Pedro Alves <palves@redhat.com>
16022 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
16023 `step_over_finished' is true.
16025 2012-02-27 Pedro Alves <palves@redhat.com>
16027 * linux-low.c (pid_is_stopped): Delete, moved to common/.
16028 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
16030 2012-02-27 Pedro Alves <palves@redhat.com>
16033 * linux-low.c (pid_is_stopped): New.
16034 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
16036 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
16038 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
16041 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
16043 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
16045 2012-02-24 Luis Machado <lgustavo@codesourcery>
16047 * server.c (handle_query): Advertise support for target-side
16048 breakpoint condition evaluation.
16049 (process_point_options): New function.
16050 (process_serial_event): When inserting a breakpoint, check for
16051 a target-side condition that should be evaluated.
16053 * mem-break.c: Include regcache.h and ax.h.
16054 (point_cond_list_t): New data structure.
16055 (breakpoint) <cond_list>: New field.
16056 (find_gdb_breakpoint_at): Make non-static.
16057 (delete_gdb_breakpoint_at): Clear any target-side
16059 (clear_gdb_breakpoint_conditions): New function.
16060 (add_condition_to_breakpoint): Likewise.
16061 (add_breakpoint_condition): Likewise.
16062 (gdb_condition_true_at_breakpoint): Likewise.
16063 (gdb_breakpoint_here): Return result directly instead
16064 of going through a local variable.
16066 * mem-break.h (find_gdb_breakpoint_at): New prototype.
16067 (clear_gdb_breakpoint_conditions): Likewise.
16068 (add_breakpoint_condition): Likewise.
16069 (gdb_condition_true_at_breakpoint): Likewise.
16071 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
16072 (need_step_over_p): Take target-side breakpoint condition into
16075 2012-02-24 Luis Machado <lgustavo@codesourcery>
16077 * server.h: Include tracepoint.h.
16078 (agent_mem_read, agent_get_trace_state_variable_value,
16079 agent_set_trace_state_variable_value,
16080 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
16081 get_set_tsv_func_addr): New prototypes.
16083 * ax.h: New include file.
16084 * ax.c: New source file.
16086 * tracepoint.c: Include ax.h.
16087 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
16088 agent_expr, eval_result_type): Move to ax.h.
16089 (parse_agent_expr): Rename to ...
16090 (gdb_parse_agent_expr): ... this, make it non-static and move
16092 (unparse_agent_expr) Rename to ...
16093 (gdb_unparse_agent_expr): ... this, make it non-static and move
16095 (eval_agent_expr): Rename to ...
16096 (eval_tracepoint_agent_expr): ... this.
16097 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
16098 forward declarations.
16099 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
16100 (agent_get_trace_state_variable_value): New function.
16101 (agent_set_trace_state_variable_value): New function.
16102 (cmd_qtdp): Call gdb_parse_agent_expr (...).
16103 (response_tracepoint): Call gdb_unparse_agent_expr (...).
16104 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
16105 (condition_true_at_tracepoint): Likewise.
16106 (parse_agent_expr): Rename to ...
16107 (gdb_parse_agent_expr): ... this and move to ax.c.
16108 (unparse_agent_expr): Rename to ...
16109 (gdb_unparse_agent_expr): ... this and move to ax.c.
16110 (gdb_agent_op_name): Move to ax.c.
16111 (eval_agent_expr): Rename to ...
16112 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
16114 (eval_tracepoint_agent_expr): New function.
16115 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
16117 (current_insn_ptr, emit_error, struct bytecode_address): Move to
16119 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
16120 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
16121 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
16122 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
16123 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
16124 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
16125 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
16126 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
16127 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
16128 (compile_bytecodes): Remove forward declaration.
16129 (is_goto_target): Move to ax.c.
16130 (compile_bytecodes): Move to ax.c and call
16131 agent_get_trace_state_variable_value (...) and
16132 agent_set_trace_state_variable_value (...).
16134 * Makefile.in: Update ax.c and IPA dependencies.
16136 2012-02-24 Pedro Alves <palves@redhat.com>
16138 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
16139 (cmd_bigqtbuffer_circular): ... this. Only handle
16140 'QTBuffer:circular:'.
16141 (handle_tracepoint_general_set): Adjust.
16143 2012-02-16 Yao Qi <yao@codesourcery.com>
16145 * inferiors.c: Move code to ...
16146 * dll.c: .... here. New.
16147 * server.h: Declare clear_dlls.
16148 * Makefile.in (SFILES): Add dll.c.
16152 2012-02-11 Yao Qi <yao@codesourcery.com>
16154 * server.c: (handle_monitor_command): Add a new parameter
16156 (handle_query): Update caller.
16158 2012-02-09 Joel Brobecker <brobecker@adacore.com>
16160 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
16161 * configure, config.in: Regenerate.
16162 * hostio.c: Provide an alternate implementation if HAVE_READLINK
16165 2012-02-02 Pedro Alves <palves@redhat.com>
16167 Try SIGKILL first, then PTRACE_KILL.
16168 * linux-low.c (linux_kill_one_lwp): New.
16169 (linux_kill_one_lwp): Rename to ...
16170 (kill_one_lwp_callback): ... this. Use the new
16171 linux_kill_one_lwp.
16173 2012-02-02 Pedro Alves <palves@redhat.com>
16175 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
16178 2012-01-27 Pedro Alves <palves@redhat.com>
16180 * linux-low.c (linux_child_pid_to_exec_file): Delete.
16181 (elf_64_file_p): Make static.
16182 (linux_pid_exe_is_elf_64_file): New.
16183 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
16184 Delete declarations.
16185 (linux_pid_exe_is_elf_64_file): Declare.
16186 * linux-x86-low.c (x86_arch_setup): Use
16187 linux_pid_exe_is_elf_64_file.
16189 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16191 * linux-low.c (linux_wait_for_event_1): Rename to ...
16192 (linux_wait_for_event): ... here and merge it with former
16193 linux_wait_for_event - new variable wait_ptid, use it.
16194 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
16196 2012-01-23 Pedro Alves <palves@redhat.com>
16198 * server.c (main): Avoid yet another case of infinite loop while
16199 detaching/killing after a longjmp.
16201 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16204 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
16206 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
16208 * hostio.c (handle_readlink): New function.
16209 (handle_vFile): Call it to handle "vFile:readlink" packets.
16211 2012-01-20 Pedro Alves <palves@redhat.com>
16212 Ulrich Weigand <ulrich.weigand@linaro.org>
16214 * server.c (handle_v_requests): Only support vAttach and vRun to
16215 start multiple processes when in extended protocol mode.
16217 2012-01-17 Pedro Alves <palves@redhat.com>
16219 * tracepoint.c (initialize_tracepoint): Use mmap instead of
16220 memalign plus mprotect to allocate the scratch buffer.
16222 2012-01-13 Pedro Alves <palves@redhat.com>
16224 * server.c (attach_inferior): Clear `cont_thread'.
16226 2012-01-13 Pedro Alves <palves@redhat.com>
16228 * server.c (main): Avoid infinite loop while detaching/killing
16231 2012-01-09 Doug Evans <dje@google.com>
16233 * server.c (start_inferior): Set last_ptid in --wrapper case.
16235 2012-01-06 Yao Qi <yao@codesourcery.com>
16237 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
16239 [IN_PROCESS_AGENT] (debug_agent): New global variable.
16241 2012-01-04 Yao Qi <yao@codesourcery.com>
16243 * tracepoint.c (cmd_qtdp): Print debug message
16244 for static tracepoint.
16246 2012-01-04 Yao Qi <yao@codesourcery.com>
16248 * tracepoint.c (trace_vdebug): Differentiate debug message
16249 between gdbserver and IPA.
16251 2012-01-03 Yao Qi <yao@codesourcery.com>
16253 * tracepoint.c (tracepoint_was_hit): Don't collect for
16256 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16258 * terminal.h: Reformat copyright header.
16260 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16262 * server.c (gdbserver_version): Update copyright year.
16263 * gdbreplay.c (gdbreplay_version): Likewise.
16265 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16267 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16270 2011-12-18 Hui Zhu <teawater@gmail.com>
16271 * linux-low.c (linux_create_inferior): Save return value to ret.
16273 2011-12-18 Hui Zhu <teawater@gmail.com>
16275 * linux-low.c (linux_create_inferior): Save return value to ret.
16277 2011-12-16 Doug Evans <dje@google.com>
16279 * linux-low.c (linux_create_inferior): If stdio connection,
16280 redirect stdin from /dev/null, stdout to stderr.
16281 * remote-utils.c (remote_is_stdio): New static global.
16282 (remote_connection_is_stdio): New function.
16283 (remote_prepare): Handle stdio connection.
16284 (remote_open): Ditto.
16285 (remote_close): Don't close stdin for stdio connections.
16286 (read_prim,write_prim): New functions. Replace all calls to
16287 read/write to these.
16288 * server.c (main): Watch for "-" argument. Move call to
16289 remote_prepare before start_inferior.
16290 * server.h (STDIO_CONNECTION_NAME): New macro.
16291 (remote_connection_is_stdio): Declare.
16293 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16294 in debugging output.
16296 2011-12-15 Yao Qi <yao@codesourcery.com>
16298 * tracepoint.c: Include sys/syscall.h.
16299 (gdb_ust_thread): Remove preprocessor conditional.
16301 2011-12-14 Pedro Alves <pedro@codesourcery.com>
16303 * linux-low.c (linux_detach_one_lwp): Call
16304 the_low_target.prepare_to_resume before detaching.
16306 2011-12-14 Yao Qi <yao@codesourcery.com>
16308 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16311 2011-12-14 Yao Qi <yao@codesourcery.com>
16313 * i386-low.c (i386_low_stopped_data_address): Initialize local
16314 variable `control'.
16316 2011-12-13 Pedro Alves <pedro@codesourcery.com>
16320 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16321 DR_CONTROL unless necessary. Extend comments.
16322 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16323 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16325 2011-12-13 Yao Qi <yao@codesourcery.com>
16327 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16329 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16331 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16333 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16334 Print new debug message for such case.
16336 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16338 Fix overlapping memcpy.
16339 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16340 the read_inferior_memory transfer.
16341 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16342 write_inferior_memory transfer.
16343 (set_fast_tracepoint_jump): New variable buf. Use it for the
16344 read_inferior_memory and write_inferior_memory transfers.
16345 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16346 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16347 Use it for the write_inferior_memory transfer.
16348 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16351 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16353 * linux-low.c (fetch_register, store_register): Make code
16354 consistent, fix formatting.
16356 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16358 * linux-low.c (usr_store_inferior_registers): Factor out code
16359 to handle individual registers into...
16360 (store_register): ... this new function.
16362 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16364 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16365 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16366 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16367 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16368 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16369 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16370 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16371 (srv_xmlfiles): Add new XML files.
16373 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16375 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16376 (init_registers_s390_linux32v1): Add prototype.
16377 (init_registers_s390_linux32v2): Likewise.
16378 (init_registers_s390_linux64v1): Likewise.
16379 (init_registers_s390_linux64v2): Likewise.
16380 (init_registers_s390x_linux64v1): Likewise.
16381 (init_registers_s390x_linux64v2): Likewise.
16382 (s390_num_regs): Increment to 52.
16383 (s390_regmap): Add orig_r2 register.
16384 (s390_num_regs_3264): Increment to 68.
16385 (s390_regmap_3264): Add orig_r2 register.
16386 (s390_collect_ptrace_register): Handle orig_r2 register.
16387 (s390_supply_ptrace_register): Likewise.
16388 (s390_fill_last_break): New function.
16389 (s390_store_last_break): Likewise.
16390 (s390_fill_system_call): New function.
16391 (s390_store_system_call): Likewise.
16392 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16394 (s390_check_regset): New function.
16395 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16396 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16397 Update target_regsets for available register sets.
16399 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16400 Jan Kratochvil <jan.kratochvil@redhat.com>
16402 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16403 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16405 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16406 * linux-low.h (struct process_info_private): New member r_debug.
16407 * server.c (handle_qxfer_libraries): Call
16408 the_target->qxfer_libraries_svr4.
16409 (handle_qxfer_libraries_svr4): New function.
16410 (qxfer_packets): New entry "libraries-svr4".
16411 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16412 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16413 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16414 PACKET_qXfer_libraries_svr4.
16416 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16418 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16419 PSW address/mask between 8-byte and 16-byte formats.
16420 (s390_supply_ptrace_register): Likewise.
16421 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16422 basic addressing mode bit.
16424 2011-11-24 Stan Shebs <stan@codesourcery.com>
16426 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16428 2011-11-17 Stan Shebs <stan@codesourcery.com>
16430 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16431 (tracing_start_time): New global.
16432 (tracing_stop_time): New global.
16433 (tracing_user_name): New global.
16434 (tracing_notes): New global.
16435 (tracing_stop_note): New global.
16436 (cmd_qtstart): Set traceframe_usage, start_time.
16437 (stop_tracing): Set stop_time.
16438 (cmd_qtstatus): Report additional status.
16439 (cmd_qtp): New function.
16440 (handle_tracepoint_query): Call it.
16441 (cmd_qtnotes): New function.
16442 (handle_tracepoint_general_set): Call it.
16443 (get_timestamp): Rename from tsv_get_timestamp.
16445 2011-11-14 Stan Shebs <stan@codesourcery.com>
16446 Kwok Cheung Yeung <kcy@codesourcery.com>
16448 * linux-x86-low.c (small_jump_insn): New.
16449 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16450 trampoline and error message, build a trampoline and issue a small
16451 jump instruction to it.
16452 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16453 trampoline and error message.
16454 (x86_get_min_fast_tracepoint_insn_len): New.
16455 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16456 * linux-low.h (struct linux_target_ops): Add arguments to
16457 install_fast_tracepoint_jump_pad operation, add new operation.
16458 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16460 (linux_get_min_fast_tracepoint_insn_len): New function.
16461 (linux_target_op): Add new operation.
16462 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16463 (gdb_trampoline_buffer_end): Ditto.
16464 (gdb_trampoline_buffer_error): Ditto.
16465 (struct ipa_sym_addresses): Add fields for new IPA variables.
16466 (symbol_list): Add entries for new IPA variables.
16467 (struct tracepoint): Add fields to hold the address range of the
16468 trampoline used by the tracepoint.
16469 (trampoline_buffer_head): New static variable.
16470 (trampoline_buffer_tail): Ditto.
16471 (claim_trampoline_space): New function.
16472 (have_fast_tracepoint_trampoline_buffer): New function.
16473 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16475 (install_fast_tracepoint): Ditto, also add error buffer argument.
16476 (cmd_qtminftpilen): New function.
16477 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16478 (fast_tracepoint_from_trampoline_address): New function.
16479 (fast_tracepoint_collecting): Handle trampoline as part of jump
16481 (set_trampoline_buffer_space): New function.
16482 (initialize_tracepoint): Initialize new IPA variables.
16483 * target.h (struct target_ops): Add arguments to
16484 install_fast_tracepoint_jump_pad operation, add new
16485 get_min_fast_tracepoint_insn_len operation.
16486 (target_get_min_fast_tracepoint_insn_len): New.
16487 (install_fast_tracepoint_jump_pad): Add arguments.
16488 * server.h (IPA_BUFSIZ): Define.
16489 * linux-i386-ipa.c: Include extra header files.
16490 (initialize_fast_tracepoint_trampoline_buffer): New function.
16491 (initialize_low_tracepoint): Call it.
16492 * server.h (set_trampoline_buffer_space): Declare.
16493 (claim_trampoline_space): Ditto.
16494 (have_fast_tracepoint_trampoline_buffer): Ditto.
16496 2011-11-14 Yao Qi <yao@codesourcery.com>
16498 * server.c (handle_query): Handle InstallInTrace for qSupported.
16499 * tracepoint.c (add_tracepoint): Sort list.
16500 (install_tracepoint, download_tracepoint): New.
16501 (cmd_qtdp): Call them to install and download tracepoints.
16502 (sort_tracepoints): Removed.
16503 (cmd_qtstart): Update.
16505 2011-11-14 Yao Qi <yao@codesourcery.com>
16507 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16508 * mem-break.h: Declare.
16509 * tracepoint.c (cmd_qtstart): Move some code to ...
16510 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16512 (download_tracepoints): Move some code to ...
16513 (download_tracepoint_1): ... here. New.
16515 2011-11-08 Yao Qi <yao@codesourcery.com>
16517 * remote-utils.c (relocate_instruction): A comment fix.
16519 2011-11-07 Joel Brobecker <brobecker@adacore.com>
16521 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16522 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16523 dr_status_mirror and dr_control_mirror from debug_reg_state.
16524 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16525 (i386_initial_stuff): Remove use of deleted globals.
16526 (i386_get_thread_context, i386_set_thread_context,
16527 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16528 from debug_reg_state.
16530 2011-11-05 Yao Qi <yao@codesourcery.com>
16532 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16533 address as TPOINT's.
16535 2011-11-02 Stan Shebs <stan@codesourcery.com>
16537 * tracepoint.c (agent_mem_read_string): New function.
16538 (eval_agent_expr): Call it for tracenz.
16539 * server.c (handle_query): Report support for tracenz.
16541 2011-11-02 Yao Qi <yao@codesourcery.com>
16543 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16545 2011-11-02 Yao Qi <yao@codesourcery.com>
16547 * target.h: Fix a typo in comment.
16549 2011-10-31 Pedro Alves <pedro@codesourcery.com>
16551 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16552 clobber the breakpoints' shadows with fast tracepoint jumps.
16553 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16554 * target.c (write_inferior_memory): Also pass MYADDR down to
16557 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16559 * configure.ac: Check support for personality routine.
16560 * configure: Regenerate.
16561 * config.in: Likewise.
16562 * linux-low.c: Include <sys/personality.h>.
16563 Define ADDR_NO_RANDOMIZE if necessary.
16564 (linux_create_inferior): Disable address space randomization when
16565 forking inferior, if requested.
16566 (linux_supports_disable_randomization): New function.
16567 (linux_target_ops): Install it.
16568 * server.h (disable_randomization): Declare.
16569 * server.c (disable_randomization): New global variable.
16570 (handle_general_set): Handle QDisableRandomization.
16571 (handle_query): Likewise for qSupported.
16572 (main): Support --disable-randomization and --no-disable-randomization
16573 command line arguments.
16574 * target.h (struct target_ops): Add supports_disable_randomization.
16575 (target_supports_disable_randomization): New macro.
16577 2011-09-29 Mike Frysinger <vapier@gentoo.org>
16579 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16581 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16582 [!PT_GETDSBT] (target_loadmap): New definition.
16583 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16584 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16585 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16586 and PT_GETDSBT to LINUX_LOADMAP.
16587 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16588 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16590 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16592 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16593 (arm_linux_hwbp_cap): New static variable.
16594 (arm_linux_get_hwbp_cap): Replace by ...
16595 (arm_linux_init_hwbp_cap): ... this new function.
16596 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16597 (arm_linux_get_hw_watchpoint_count): Likewise.
16598 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16599 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16600 (arm_prepare_to_resume): Use perror_with_name instead of error.
16602 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16604 * linux-arm-low.c: Include <signal.h>.
16605 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16606 (struct arm_linux_hwbp_cap): New data type.
16607 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16608 (struct arm_linux_hw_breakpoint): New data type.
16609 (MAX_BPTS, MAX_WPTS): Define.
16610 (struct arch_process_info, struct arch_lwp_info): New data types.
16611 (arm_linux_get_hwbp_cap): New function.
16612 (arm_linux_get_hw_breakpoint_count): Likewise.
16613 (arm_linux_get_hw_watchpoint_count): Likewise.
16614 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16615 (arm_hwbp_control_initialize): Likewise.
16616 (arm_hwbp_control_is_enabled): Likewise.
16617 (arm_hwbp_control_is_initialized): Likewise.
16618 (arm_hwbp_control_disable): Likewise.
16619 (arm_linux_hw_breakpoint_equal): Likewise.
16620 (arm_linux_hw_point_initialize): Likewise.
16621 (struct update_registers_data): New data structure.
16622 (update_registers_callback: New function.
16623 (arm_insert_point): Likewise.
16624 (arm_remove_point): Likewise.
16625 (arm_stopped_by_watchpoint): Likewise.
16626 (arm_stopped_data_address): Likewise.
16627 (arm_new_process): Likewise.
16628 (arm_new_thread): Likewise.
16629 (arm_prepare_to_resume): Likewise.
16630 (the_low_target): Register arm_insert_point, arm_remove_point,
16631 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16632 arm_new_thread, and arm_prepare_to_resume.
16634 2011-09-15 Stan Shebs <stan@codesourcery.com>
16636 * server.h (struct emit_ops): Add compare-goto fields.
16637 * tracepoint.c (gdb_agent_op_sizes): New table.
16638 (emit_eq_goto): New function.
16639 (emit_ne_goto): New function.
16640 (emit_lt_goto): New function.
16641 (emit_le_goto): New function.
16642 (emit_gt_goto): New function.
16643 (emit_ge_goto): New function.
16644 (is_goto_target): New function.
16645 (compile_bytecodes): Recognize special cases of compare-goto
16646 combinations and call specialized emitters for them.
16647 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16648 (amd64_emit_ne_goto): New function.
16649 (amd64_emit_lt_goto): New function.
16650 (amd64_emit_le_goto): New function.
16651 (amd64_emit_gt_goto): New function.
16652 (amd64_emit_ge_goto): New function.
16653 (amd64_emit_ops): Add the new functions.
16654 (i386_emit_eq_goto): New function.
16655 (i386_emit_ne_goto): New function.
16656 (i386_emit_lt_goto): New function.
16657 (i386_emit_le_goto): New function.
16658 (i386_emit_gt_goto): New function.
16659 (i386_emit_ge_goto): New function.
16660 (i386_emit_ops): Add the new functions.
16662 2011-09-08 Stan Shebs <stan@codesourcery.com>
16664 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16665 (i386_emit_epilogue): Restore %ebx.
16667 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16669 * server.c (step_thread): Remove definition.
16670 (process_serial_event): Don't handle Hs.
16671 * server.h (step_thread): Remove declaration.
16672 * target.c (set_desired_inferior): Remove use of step_thread.
16674 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16676 * linux-low.c: Include linux-procfs.h.
16677 (linux_attach_lwp_1): Update comments.
16678 (linux_attach): Scan for existing threads when attaching to a
16679 process that is the tgid.
16680 * Makefile.in: Update dependencies.
16682 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16684 * configure.srv: Add linux-procfs.o dependencies.
16686 2011-08-14 Yao Qi <yao@codesourcery.com>
16688 * target.h (struct target_ops): Fix indent.
16689 * win32-low.c (win32_target_ops): Fix comment.
16691 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16692 Yao Qi <yao@codesourcery.com>
16694 * Makefile.in (clean): Remove tic6x-*.c files.
16695 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16696 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16697 (tic6x-c64xp-linux.c): Likewise.
16698 * configure.srv: Add support for tic6x-*-uclinux.
16699 * linux-tic6x-low.c: New.
16700 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16702 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16703 Yao Qi <yao@codesourcery.com>
16705 * target.h (struct target_ops): Add read_loadmap.
16706 * linux-low.c (struct target_loadseg): New type.
16707 (struct target_loadmap): New type.
16708 (linux_read_loadmap): New function.
16709 (linux_target_ops): Add linux_read_loadmap.
16710 * server.c (handle_query): Support qXfer:fdpic:read packet.
16711 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16714 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16716 * win32-low.c: Include <stdint.h>.
16718 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16720 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16721 to the inferior here.
16722 (i386_remove_aligned_watchpoint): Ditto.
16723 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16724 fit part of the watchpoint in the debug registers.
16725 (i386_update_inferior_debug_regs): New.
16726 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16727 registers, and only update the inferior on success.
16728 (i386_low_remove_watchpoint): Ditto.
16730 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16732 * linux-low.c (compare_ints, unique, list_threads, show_process,
16733 linux_core_of_thread): Delete.
16734 (linux_target_ops): Change linux_core_of_thread to
16735 linux_common_core_of_thread.
16736 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16737 * utils.c (malloc_failure): Change type of argument.
16738 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16739 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16740 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16741 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16742 (IPA_OBJS): Add common-utils-ipa.o.
16743 (ptid_h, linux_osdata_h): New macros.
16744 (server_h): Add common/common-utils.h, common/xml-utils.h,
16745 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16747 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16748 ptid.o, buffer.o): New rules.
16749 (linux-low.o): Add common/linux-osdata.h as a dependency.
16750 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16751 * configure.ac: Add AC_HEADER_DIRENT check.
16752 * config.in: Regenerate.
16753 * configure: Regenerate.
16754 * remote-utils.c (xml_escape_text): Delete.
16755 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16756 buffer_xml_printf): Move to common/buffer.c.
16757 * server.c (main): Remove call to initialize_inferiors.
16758 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16759 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16760 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16761 internal_error, gdb_assert, gdb_assert_fail): Delete.
16762 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16763 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16765 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16766 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16767 initialize_inferiors): Delete.
16769 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16771 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16774 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16776 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16778 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16780 2011-05-26 Yao Qi <yao@codesourcery.com>
16782 * Makefile.in (thread-db.o): Track dependence to
16783 common/gdb_thread_db.h.
16784 * thread-db.c: include gdb_thread_db.h from right place.
16786 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16788 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16789 __FILE__ and __LINE__ to internal_error.
16791 2011-05-13 Doug Evans <dje@google.com>
16793 * thread-db.c (try_thread_db_load_from_sdir): New function.
16794 (try_thread_db_load_from_dir): New function.
16795 (thread_db_load_search): Handle $sdir, ignore $pdir.
16796 Remove trying of system directories if search of
16797 libthread-db-search-path fails, that is now done via $sdir.
16799 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16801 * server.c (handle_query): Add EnableDisableTracepoints to the list
16802 of supported features.
16803 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16805 (cmd_qtenable_disable): New.
16806 (cmd_qtstart): Install tracepoints even if disabled.
16807 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16808 receiving a QTEnable or QTDisable packet.
16809 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16810 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16812 (gdb_probe): Skip data collection if static tracepoint is disabled.
16814 2011-05-10 Doug Evans <dje@google.com>
16816 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16818 2011-05-04 Doug Evans <dje@google.com>
16820 * linux-low.c (linux_join): Skip process lookup.
16821 * spu-low.c (spu_join): Ditto.
16822 * server.c (join_inferiors_callback): Delete.
16823 (process_serial_event): For 'D' packet (detach) call join_inferior
16826 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16828 * README: Don't mention xscale*-*-linux*.
16829 * configure.srv (xscale*-*-linux*): Don't handle target.
16831 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16833 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16835 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16836 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16837 (i386_emit_void_call_2): Likewise.
16839 2011-04-26 Yao Qi <yao@codesourcery.com>
16841 * linux-low.c: Move common macros to linux-ptrace.h.
16842 Include linux-ptrace.h.
16843 * Makefile.in (linux_ptrace_h): New.
16844 (linux-low.o): Depends on linux-ptrace.h.
16846 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16848 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16849 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16850 (remote_prepare): New function with most of the TCP code from ...
16851 (remote_open): ... here. Detect PORT here unconditionally. Move also
16852 setting transport_is_reliable.
16853 * server.c (run_once): New variable.
16854 (gdbserver_usage): Document it.
16855 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16856 the first run if RUN_ONCE.
16857 * server.h (run_once, remote_prepare): New declarations.
16859 2011-04-19 Tom Tromey <tromey@redhat.com>
16861 * win32-low.c (handle_load_dll): Remove duplicate "the".
16863 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16865 Remove support for old Cygwin 1.5 versions.
16866 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16867 function to avoid warning.
16868 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16871 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16873 * gdbserver/server.h (Macro _): Define it if not available.
16875 2011-03-14 Michael Snyder <msnyder@vmware.com>
16877 * hostio.c (handle_close): Remove unnecessary null test.
16879 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16881 * Makefile.in (maintainer-clean realclean distclean): Remove
16882 "make ... subdir_do" command.
16884 2011-03-10 Michael Snyder <msnyder@vmware.com>
16886 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16888 * server.c (handle_v_run): Free alloced buffer on early return.
16890 2011-03-09 Yao Qi <yao@codesourcery.com>
16893 2011-03-04 Yao Qi <yao@codesourcery.com>
16895 * Makefile.in: Remove GNU make feature --directory.
16897 2011-03-05 Yao Qi <yao@codesourcery.com>
16899 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16900 (subdir_do): New make target. Copied from gdb/Makefile.
16901 (maintainer-clean, realclean, distclean, clean): Call corresponding
16902 make targets in common/Makefile.
16904 2011-02-11 Yao Qi <yao@codesourcery.com>
16906 * configure.ac: Call AC_PROG_RANLIB.
16907 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16908 * configure: Regenerate.
16910 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16912 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16914 2011-03-06 Yao Qi <yao@codesourcery.com>
16916 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16918 2011-03-05 Yao Qi <yao@codesourcery.com>
16920 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16921 (subdir_do): New make target. Copied from gdb/Makefile.
16922 (maintainer-clean, realclean, distclean, clean): Call corresponding
16923 make targets in common/Makefile.
16925 2011-03-04 Yao Qi <yao@codesourcery.com>
16927 * Makefile.in: Remove GNU make feature --directory.
16929 2011-03-04 Michael Snyder <msnyder@vmware.com>
16931 * server.c (queue_stop_reply): Call xmalloc not malloc.
16933 2011-03-02 Michael Snyder <msnyder@vmware.com>
16935 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16937 2011-02-28 Michael Snyder <msnyder@vmware.com>
16939 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16940 (cmd_qtframe): Ditto.
16941 (cmd_qtbuffer): Ditto.
16942 (cmd_bigqtbuffer): Ditto.
16944 * utils.c (decimal2str): Initialize 'width' to nine, then
16945 don't mess with it.
16947 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16949 * hostio.c (require_data): Free *data, not data.
16951 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16953 * hostio.c (require_data): Use free, not xfree.
16955 2011-02-27 Michael Snyder <msnyder@vmware.com>
16957 * server.c (handle_query): Discard unused value.
16959 * hostio.c (require_data): Free malloc memory before returning
16962 2011-02-26 Michael Snyder <msnyder@vmware.com>
16964 * linux-low.c (list_threads): Call closedir for dirent.
16966 2011-02-27 Michael Snyder <msnyder@vmware.com>
16968 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16969 a case statement falls through.
16971 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16973 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16976 2011-02-26 Michael Snyder <msnyder@vmware.com>
16978 * utils.c (decimal2str): Eliminate dead code and dead param.
16979 (pulongest): Drop dead param from call to decimal2str.
16982 2011-02-24 Joel Brobecker <brobecker@adacore.com>
16984 Revert the following patch (not approved yet):
16985 2011-02-21 Hui Zhu <teawater@gmail.com>
16986 * tracepoint.c (tp_printf): New function.
16987 (eval_agent_expr): Handle gdb_agent_op_printf.
16989 2011-02-21 Hui Zhu <teawater@gmail.com>
16991 * tracepoint.c (tp_printf): New function.
16992 (eval_agent_expr): Handle gdb_agent_op_printf.
16994 2011-02-18 Tom Tromey <tromey@redhat.com>
16996 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16997 (tracepoint.o): Likewise.
16998 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16999 (gdb_agent_op_names): Likewise.
17001 2011-02-18 Tom Tromey <tromey@redhat.com>
17003 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
17004 gdb_agent_op_rot>: New constants.
17005 (gdb_agent_op_names): Add pick and roll.
17006 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
17009 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
17011 * aclocal.m4: Regenerated with aclocal-1.11.1.
17013 2011-02-14 Pedro Alves <pedro@codesourcery.com>
17015 * server.c (handle_qxfer_traceframe_info): New.
17016 (qxfer_packets): Register "traceframe-info".
17017 (handle_query): Report support for qXfer:traceframe-info:read+.
17018 * tracepoint.c (match_blocktype): New.
17019 (traceframe_find_block_type): Rename to ...
17020 (traceframe_walk_blocks): ... this. Add callback filter argument,
17022 (traceframe_find_block_type): New, reimplemented on top of
17023 traceframe_walk_blocks.
17024 (build_traceframe_info_xml): New.
17025 (traceframe_read_info): New.
17026 * server.h (traceframe_read_info): Declare.
17028 2011-02-11 Yao Qi <yao@codesourcery.com>
17030 * configure.ac: Call AC_PROG_RANLIB.
17031 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17032 * configure: Regenerate.
17034 2011-02-07 Pedro Alves <pedro@codesourcery.com>
17036 * server.c (gdb_read_memory): Change return semantics to allow
17038 (handle_search_memory_1): Adjust.
17039 (process_serial_event) <'m' packet>: Handle partial transfers.
17040 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
17042 2011-01-28 Pedro Alves <pedro@codesourcery.com>
17044 * regcache.c (init_register_cache): Initialize
17045 regcache->register_status.
17046 (free_register_cache): Release regcache->register_status.
17047 (regcache_cpy): Copy register_status.
17048 (registers_to_string): Print 'x's for unavailable registers.
17049 (supply_register): Mark the register's status valid or
17050 unavailable, depending on whether a buffer was passed in or not.
17051 (supply_register_zeroed): New.
17052 (supply_regblock): Mark the registers' status valid or
17053 unavailable, depending on whether a buffer was passed in or not.
17054 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
17055 (struct regcache): New `register_status' field.
17056 (supply_register_zeroed): Declare.
17057 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
17058 supply_register_zeroed, rather than passing a NULL buffer to
17060 * tracepoint.c (fetch_traceframe_registers): Update comment.
17062 2011-01-28 Pedro Alves <pedro@codesourcery.com>
17064 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
17067 2011-01-25 Pedro Alves <pedro@codesourcery.com>
17069 * server.h (decode_xfer_write): Change prototype.
17070 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
17071 and don't extract the annex here.
17072 * server.c (decode_xfer_read): Remove `annex' parameter,
17073 and don't extract the annex here.
17074 (decode_xfer): New.
17075 (struct qxfer): New.
17076 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
17077 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
17078 (handle_qxfer_statictrace): New functions, abstracted out from
17079 handle_query, and made to use the struct qxfer interface.
17080 (handle_threads_qxfer_proper): Rename to ...
17081 (handle_qxfer_threads_proper): ... this.
17082 (handle_threads_qxfer): Rename to ...
17083 (handle_qxfer_threads): ... this. Adjust.
17084 (qxfer_packets): New array.
17085 (handle_qxfer): New function.
17086 (handle_query): Use handle_qxfer.
17088 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
17090 * gdbreplay.c: Shorten lines of >= 80 columns.
17091 * linux-low.c: Ditto.
17092 * linux-ppc-low.c: Ditto.
17093 * linux-s390-low.c: Ditto.
17094 * linux-sparc-low.c: Ditto.
17095 * linux-x86-low.c: Ditto.
17096 * linux-xtensa-low.c: Ditto.
17097 * mem-break.c: Ditto.
17098 * nto-low.c: Ditto.
17099 * regcache.h: Ditto.
17100 * remote-utils.c: Ditto.
17103 * thread-db.c: Ditto.
17104 * tracepoint.c: Ditto.
17106 * win32-low.h: Ditto.
17108 2011-01-05 Joel Brobecker <brobecker@adacore.com>
17110 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
17113 2011-01-01 Joel Brobecker <brobecker@adacore.com>
17115 * server.c (gdbserver_version): Update copyright year in version
17117 * gdbreplay.c (gdbreplay_version): Ditto.
17119 2010-12-29 Jie Zhang <jie.zhang@analog.com>
17121 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
17122 * linux-bfin-low.c: New file.
17123 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
17124 PT_DATA_ADDR for BFIN targets.
17125 * Makefile.in (SFILES): Add linux-bfin-low.c.
17126 (clean): Remove reg-bfin.c.
17127 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
17128 * README: Mention supported Blackfin targets.
17130 2010-12-23 Mike Frysinger <vapier@gentoo.org>
17132 * .gitignore: New file.
17134 2010-11-16 Mike Frysinger <vapier@gentoo.org>
17136 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
17138 2010-10-22 Jie Zhang <jie@codesourcery.com>
17140 * Makefile.in: Add FLAGS_TO_PASS variable.
17141 (install): Remove dependency of install-only and recursively
17142 invoke make for install-only.
17144 2010-10-04 Doug Evans <dje@google.com>
17146 * Makefile.in (uninstall): Use $(DESTDIR).
17148 2010-09-24 Pedro Alves <pedro@codesourcery.com>
17152 * linux-x86-low.c (compat_siginfo_from_siginfo)
17153 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
17154 si_code is < 0. Check for si_code == SI_TIMER before checking for
17157 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17159 * lynx-i386-low.c: New file.
17160 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
17162 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17164 * lynx-low.c (ptrace_request_to_str): Remove handling for
17165 request values that have been removed in LynxOS 5.x.
17167 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17169 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
17172 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
17174 * configure.ac: Add --enable-inprocess-agent option.
17175 * configure: Rebuilt.
17177 2010-09-06 Yao Qi <yao@codesourcery.com>
17179 * linux-low.c (linux_kill): Remove unused variable.
17180 (linux_stabilize_threads): Likewise.
17181 * server.c (start_inferior): Likewise.
17182 (queue_stop_reply_callback): Likewise.
17183 * tracepoint.c (do_action_at_tracepoint): Likewise.
17185 2010-09-06 Yao Qi <yao@codesourcery.com>
17187 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
17190 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
17192 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
17194 2010-09-06 Pedro Alves <pedro@codesourcery.com>
17196 * Makefile.in (install-only): Replace $IPA_DEPFILES with
17199 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17201 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
17202 gdbserver/lynx-ppc-low.c: New files.
17203 * Makefile.in (lynx_low_h): New variable.
17204 (lynx-low.o, lynx-ppc-low.o): New rules.
17205 * configure.ac: On LynxOS, link with -lnetinet.
17206 * configure.srv: Add handling of powerpc-*-lynxos* targets.
17207 * configure: regenerate.
17209 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17211 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
17212 * configure.ac: Add check for vasprintf and vsnprintf.
17213 * configure, config.in: Regenerate.
17214 * server.h (vasprintf, vsnprintf): Add conditional declarations.
17216 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17218 * gdbreplay.c: Move include of alloca.h up, next to include of
17220 * server.h: Add include of malloc.h.
17221 * mem-break.c: Remove include of malloc.h.
17222 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
17224 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17226 * Makefile.in (memmem.o): Build with -Wno-error.
17228 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17230 * utils.c (xsnprintf): Make non-static.
17231 * server.h: Add xsnprintf declaration.
17232 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
17233 replace calls to snprintf by calls to xsnprintf throughout.
17235 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17237 * configure.ac: Add configure check for alloca.
17238 * configure, config.in: Regenerate.
17239 * server.h: Include alloca.h if it exists.
17240 * gdbreplay.c: Include alloca.h if it exists.
17242 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17244 * linux-low.c (__SIGRTMIN): Define if not already defined.
17245 (linux_create_inferior): Check for __ANDROID__ rather than
17247 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
17248 are already deferred.
17249 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
17250 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
17251 stopped and already has a pending signal to report.
17252 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
17253 a pending signal to report or is moving out of a jump pad.
17254 (linux_init_signals): Check for __ANDROID__ rather than
17257 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17259 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17260 debug_threads check. Avoid a linear search when not doing debug
17263 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17265 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17266 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17267 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17268 (process_event): Change local fd's type to gdb_fildes_t.
17269 (create_file_handler): Adjust prototype.
17270 (delete_file_handler): Adjust prototype.
17271 (handle_file_event): Adjust prototype. Use pfildes.
17272 (create_file_event): Adjsut prototype.
17273 * remote-utils.c (remote_desc, listen_desc): Change type to
17275 * server.h: New gdb_fildes_t typedef.
17276 [USE_WIN32API]: Include winsock2.h.
17277 (delete_file_handler, add_file_handler): Adjust prototypes.
17278 (pfildes): Declare.
17279 * utils.c (pfildes): New.
17281 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17283 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17284 * configure: Regenerate.
17286 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17288 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17289 (linux_done_accessing_memory): ... this.
17290 (linux_target_ops): Adjust.
17291 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17292 * nto-low.c (nto_target_ops): Adjust comment.
17293 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17294 * spu-low.c (spu_target_ops): Adjust comment.
17295 * target.h (target_ops): Rename unprepare_to_access_memory field
17296 to done_accessing_memory.
17297 (unprepare_to_access_memory): Rename to ...
17298 (done_accessing_memory): ... this.
17300 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17302 * linux-low.c (linux_prepare_to_access_memory): New.
17303 (linux_unprepare_to_access_memory): New.
17304 (linux_target_ops): Install them.
17305 * server.c (read_memory): Rename to ...
17306 (gdb_read_memory): ... this. Use
17307 prepare_to_access_memory/prepare_to_access_memory.
17308 (write_memory): Rename to ...
17309 (gdb_write_memory): ... this. Use
17310 prepare_to_access_memory/prepare_to_access_memory.
17311 (handle_search_memory_1): Adjust.
17312 (process_serial_event): Adjust.
17313 * target.h (struct target_ops): New fields
17314 prepare_to_access_memory and unprepare_to_access_memory.
17315 (prepare_to_access_memory, unprepare_to_access_memory): New.
17316 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17317 prepare_to_access_memory/prepare_to_access_memory.
17318 * nto-low.c (nto_target_ops): Adjust.
17319 * spu-low.c (spu_target_ops): Adjust.
17320 * win32-low.c (win32_target_ops): Adjust.
17322 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17324 * Makefile.in (WARN_CFLAGS): Get it from configure.
17325 (WERROR_CFLAGS): New.
17326 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17327 * configure.ac: Introduce --enable-werror, which adds -Werror to
17328 the compiler command line. Enabled by default. Disable with
17329 --disable-werror. Add -Wdeclaration-after-statement
17330 Wpointer-arith and -Wformat-nonliteral to warning flags.
17331 * configure: Regenerate.
17333 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17335 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17337 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17339 * gdbreplay.c (remote_error): New.
17341 (expect): Use gdbchar. Check for error reading from GDB.
17342 Clarify sync error output.
17343 (play): Check for errors writing to GDB.
17344 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17345 * remote-utils.c (getpkt): Check for errors writing to the remote
17348 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17350 * linux-low.c (linux_wait_1): Move non-debugging code out of
17351 `debug_threads' control.
17353 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17355 * linux-low.c (linux_wait_1): Don't set last_status here.
17356 * server.c (push_event, queue_stop_reply_callback): Assert we're
17357 not pushing a TARGET_WAITKIND_IGNORE event.
17358 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17359 (myresume, handle_target_event): Set the thread's last_resume_kind
17360 and last_status from the target returned status.
17362 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17366 * linux-x86-low.c (update_debug_registers_callback): New.
17367 (i386_dr_low_set_addr): Use it.
17368 (i386_dr_low_get_addr): New.
17369 (i386_dr_low_set_control): Use update_debug_registers_callback.
17370 (i386_dr_low_get_control): New.
17371 (i386_dr_low_get_status): Adjust.
17372 * linux-low.c (linux_stop_lwp): New.
17373 * linux-low.h (linux_stop_lwp): Declare.
17375 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17376 argument instead of a i386_debug_reg_state.
17377 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17378 a i386_debug_reg_state.
17379 (i386_insert_aligned_watchpoint): Adjust.
17380 (i386_remove_aligned_watchpoint): Adjust.
17381 (i386_low_stopped_data_address): Read the debug registers from the
17382 inferior instead of from the mirrors.
17383 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17384 (i386_dr_low_get_addr): Declare.
17385 (i386_dr_low_get_control): Declare.
17386 (i386_dr_low_get_status): Change prototype.
17388 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17389 (i386_dr_low_get_addr): New.
17390 (i386_dr_low_get_control): New.
17391 (i386_dr_low_get_status): Adjust prototype. Return
17393 (i386_initial_stuff): Clear dr_status_mirror and
17395 (i386_get_thread_context): Adjust.
17396 (i386_set_thread_context): Adjust.
17397 (i386_thread_added): Adjust.
17399 2010-08-24 Pedro Alves <pedro@codesourcery.com>
17401 * linux-low.h (linux_thread_area): Delete declaration.
17403 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17405 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17406 after its termination.
17408 2010-08-09 Pedro Alves <pedro@codesourcery.com>
17410 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17411 (gdb_wants_all_stopped): Delete.
17412 (linux_wait_1): Don't call them.
17413 * server.c (handle_v_cont): Tag all threads as want-stopped.
17414 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17415 stopped as "client-wants-stopped".
17417 2010-07-31 Pedro Alves <pedro@codesourcery.com>
17419 * Makefile.in (signals_h): New.
17420 (server_h): Depend on it.
17421 (server.o): Don't depend on $(signals_def).
17422 (signals.o): Depend on $(signals_def).
17424 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17426 * Makefile.in (signals_def): New.
17427 (server_h): Append include/gdb/signals.h and signals_def.
17428 (server.o): Append signals_def.
17430 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17432 * server.c (handle_target_event): Use target_signal_to_host for
17433 resume_info.sig initialization.
17434 * target.h (struct thread_resume) <sig>: New comment.
17436 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17438 * server.c (handle_query): strcpy() the returned string from paddress()
17439 instead of sprintf().
17440 * utils.c (paddress): Return phex_nz().
17442 2010-07-07 Joel Brobecker <brobecker@adacore.com>
17444 * server.c (handle_v_cont): Call mourn_inferior if process
17446 (myresume): Likewise.
17448 2010-07-01 Pedro Alves <pedro@codesourcery.com>
17450 Static tracepoints, and integration with UST.
17452 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17453 * mem-break.c (uninsert_all_breakpoints)
17454 (reinsert_all_breakpoints): New.
17455 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17456 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17457 (gdb_agent_ust_loaded, helper_thread_id)
17458 (gdb_agent_helper_thread_id): New macros.
17459 (struct ipa_sym_addresses): Add addr_ust_loaded,
17460 addr_helper_thread_id, addr_cmd_buf.
17461 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17462 (in_process_agent_loaded_ust): New.
17463 (write_e_ust_not_loaded): New.
17464 (maybe_write_ipa_ust_not_loaded): New.
17465 (struct collect_static_trace_data_action): New.
17466 (enum tracepoint_type) <static_tracepoint>: New.
17467 (struct tracepoint) <handle>: Mention static tracepoints.
17468 (struct static_tracepoint_ctx): New.
17469 (CMD_BUF_SIZE): New.
17470 (add_tracepoint_action): Handle static tracepoint actions.
17471 (unprobe_marker_at): New.
17472 (clear_installed_tracepoints): Handle static tracepoints.
17473 (cmd_qtdp): Handle static tracepoints.
17474 (probe_marker_at): New.
17475 (cmd_qtstart): Handle static tracepoints.
17476 (response_tracepoint): Handle static tracepoints.
17477 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17478 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17479 (get_context_regcache): Handle static tracepoints.
17480 (do_action_at_tracepoint): Handle static tracepoint actions.
17481 (traceframe_find_block_type): Handle static trace data blocks.
17482 (traceframe_read_sdata): New.
17483 (download_tracepoints): Download static tracepoint actions.
17484 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17485 (GDB_PROBE_NAME): New.
17487 (GET_UST_SYM): New.
17490 (ust_marker_to_static_tracepoint): New.
17492 (collect_ust_data_at_tracepoint): New.
17493 (gdb_ust_probe): New.
17494 (UNIX_PATH_MAX, SOCK_DIR): New.
17495 (gdb_ust_connect_sync_socket): New.
17496 (resume_thread, stop_thread): New.
17497 (run_inferior_command): New.
17498 (init_named_socket): New.
17499 (gdb_ust_socket_init): New.
17500 (cstr_to_hexstr): New.
17502 (first_marker, next_marker): New.
17503 (response_ust_marker): New.
17504 (cmd_qtfstm, cmd_qtsstm): New.
17505 (unprobe_marker_at, probe_marker_at): New.
17506 (cmd_qtstmat, gdb_ust_thread): New.
17507 (gdb_ust_init): New.
17508 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17509 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17510 (ST_REGENTRY): New.
17511 (x86_64_st_collect_regmap): New.
17512 (X86_64_NUM_ST_COLLECT_GREGS): New.
17513 (AMD64_RIP_REGNUM): New.
17514 (supply_static_tracepoint_registers): New.
17515 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17516 (ST_REGENTRY): New.
17517 (i386_st_collect_regmap): New.
17518 (i386_NUM_ST_COLLECT_GREGS): New.
17519 (supply_static_tracepoint_registers): New.
17520 * server.c (handle_query): Handle qXfer:statictrace:read.
17521 <qSupported>: Report support for StaticTracepoints, and
17522 qXfer:statictrace:read features.
17523 * server.h (traceframe_read_sdata)
17524 (supply_static_tracepoint_registers): Declare.
17525 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17526 (unpack_varlen_hex): Include in IPA build.
17527 * Makefile.in (ustlibs, ustinc): New.
17528 (IPA_OBJS): Add remote-utils-ipa.o.
17529 ($(IPA_LIB)): Link -ldl and -lpthread.
17531 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17532 * config.in, configure: Regenerate.
17534 2010-06-20 Ian Lance Taylor <iant@google.com>
17535 Pedro Alves <pedro@codesourcery.com>
17537 * linux-x86-low.c (always_true): Delete.
17538 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17539 trying to fool the compiler with always_true.
17541 2010-06-20 Pedro Alves <pedro@codesourcery.com>
17543 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17544 conditions in gdbserver.
17546 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17548 * spu-low.c (spu_read_memory): Wrap around local store limit.
17549 (spu_write_memory): Likewise.
17551 2010-06-15 Pedro Alves <pedro@codesourcery.com>
17553 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17554 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17556 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17558 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17559 uses with LONGEST uses.
17561 2010-06-14 Stan Shebs <stan@codesourcery.com>
17562 Pedro Alves <pedro@codesourcery.com>
17566 * linux-x86-low.c: Include limits.h.
17568 (always_true): New.
17571 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17572 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17573 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17574 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17575 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17576 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17577 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17578 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17579 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17580 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17581 (amd64_emit_void_call_2): New.
17582 (amd64_emit_ops): New.
17583 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17584 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17585 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17586 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17587 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17588 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17589 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17590 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17591 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17592 (i386_emit_stack_adjust, i386_emit_int_call_1)
17593 (i386_emit_void_call_2): New.
17594 (i386_emit_ops): New.
17595 (x86_emit_ops): New.
17596 (the_low_target): Install x86_emit_ops.
17597 * server.h (struct emit_ops): New.
17598 (get_raw_reg_func_addr): Declare.
17599 (current_insn_ptr, emit_error): Declare.
17600 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17601 (set_trace_state_variable_value): New defines.
17602 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17603 addr_get_trace_state_variable_value and
17604 addr_set_trace_state_variable_value.
17605 (symbol_list): New fields for get_raw_reg,
17606 get_trace_state_variable_value and set_trace_state_variable_value.
17607 (condfn): New typedef.
17608 (struct tracepoint): New field `compiled_cond'.
17609 (do_action_at_tracepoint): Clear compiled_cond.
17610 (get_trace_state_variable_value, set_trace_state_variable_value):
17612 (condition_true_at_tracepoint): If there's a compiled condition,
17614 (current_insn_ptr, emit_error): New globals.
17615 (struct bytecode_address): New.
17616 (get_raw_reg_func_addr): New.
17617 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17618 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17619 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17620 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17621 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17622 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17623 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17624 (compile_tracepoint_condition, compile_bytecodes): New.
17625 * target.h (emit_ops): Forward declare.
17626 (struct target_ops): New field emit_ops.
17627 (target_emit_ops): New.
17628 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17629 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17630 * linux-low.c (linux_emit_ops): New.
17631 (linux_target_ops): Install it.
17632 * linux-low.h (struct linux_target_ops): New field emit_ops.
17634 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17636 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17637 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17639 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17640 Stan Shebs <stan@codesourcery.com>
17642 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17643 (all): Depend on $(extra_libraries).
17644 (install-only): Install the IPA.
17645 (IPA_OBJS, IPA_LIB): New.
17646 (clean): Remove the IPA lib.
17647 (IPAGENT_CFLAGS): New.
17648 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17649 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17650 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17651 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17652 * configure.ac: Check for atomic builtins support in the compiler.
17653 (IPA_DEPFILES, extra_libraries): Define.
17654 * configure.srv (ipa_obj): Add description.
17655 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17656 (i[34567]86-*-linux*): Set ipa_obj.
17657 (x86_64-*-linux*): Set ipa_obj.
17658 * linux-low.c (stabilizing_threads): New.
17659 (supports_fast_tracepoints): New.
17660 (linux_detach): Stabilize threads before detaching.
17661 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17662 the lwp is either not stabilizing, or is moving out of a jump pad.
17663 (linux_fast_tracepoint_collecting): New.
17664 (maybe_move_out_of_jump_pad): New.
17665 (enqueue_one_deferred_signal): New.
17666 (dequeue_one_deferred_signal): New.
17667 (linux_wait_for_event_1): If moving out of a jump pad, defer
17668 pending signals to later.
17669 (linux_stabilize_threads): New.
17670 (linux_wait_1): Check if threads need moving out of jump pads, and
17672 (stuck_in_jump_pad_callback): New.
17673 (move_out_of_jump_pad_callback): New.
17674 (lwp_running): New.
17675 (linux_resume_one_lwp): Handle moving out of jump pads.
17676 (linux_set_resume_request): Dequeue deferred signals.
17677 (need_step_over_p): Also step over fast tracepoint jumps.
17678 (start_step_over): Also uninsert fast tracepoint jumps.
17679 (finish_step_over): Also reinsert fast tracepoint jumps.
17680 (linux_install_fast_tracepoint_jump): New.
17681 (linux_target_ops): Install linux_stabilize_threads and
17682 linux_install_fast_tracepoint_jump_pad.
17683 * linux-low.h (linux_target_ops) <get_thread_area,
17684 install_fast_tracepoint_jump_pad>: New fields.
17685 (struct lwp_info) <collecting_fast_tracepoint,
17686 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17687 (linux_get_thread_area): Declare.
17688 * linux-x86-low.c (jump_insn): New.
17689 (x86_get_thread_area): New.
17690 (append_insns): New.
17691 (push_opcode): New.
17692 (amd64_install_fast_tracepoint_jump_pad): New.
17693 (i386_install_fast_tracepoint_jump_pad): New.
17694 (x86_install_fast_tracepoint_jump_pad): New.
17695 (the_low_target): Install x86_get_thread_area and
17696 x86_install_fast_tracepoint_jump_pad.
17697 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17698 (struct fast_tracepoint_jump): New.
17699 (fast_tracepoint_jump_insn): New.
17700 (fast_tracepoint_jump_shadow): New.
17701 (find_fast_tracepoint_jump_at): New.
17702 (fast_tracepoint_jump_here): New.
17703 (delete_fast_tracepoint_jump): New.
17704 (set_fast_tracepoint_jump): New.
17705 (uninsert_fast_tracepoint_jumps_at): New.
17706 (reinsert_fast_tracepoint_jumps_at): New.
17707 (set_breakpoint_at): Use write_inferior_memory.
17708 (uninsert_raw_breakpoint): Use write_inferior_memory.
17709 (check_mem_read): Mask out fast tracepoint jumps.
17710 (check_mem_write): Mask out fast tracepoint jumps.
17711 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17712 (set_fast_tracepoint_jump): Declare.
17713 (delete_fast_tracepoint_jump)
17714 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17715 (reinsert_fast_tracepoint_jumps_at): Declare.
17716 * regcache.c: Don't compile many functions when building the
17717 in-process agent library.
17718 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17719 the register buffer in the heap.
17720 (free_register_cache): If the register buffer isn't owned by the
17721 regcache, don't free it.
17722 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17723 pre-existing register caches.
17724 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17726 (convert_ascii_to_int): : Constify `from' parameter type.
17727 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17728 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17729 the needed buffer in-place.
17730 (relocate_instruction): New.
17731 * server.c (handle_query) <qSymbols>: If the target supports
17732 tracepoints, give it a chance of looking up symbols. Report
17733 support for fast tracepoints.
17734 (handle_status): Stabilize threads.
17735 (process_serial_event): Adjust.
17736 * server.h (struct fast_tracepoint_jump): Forward declare.
17737 (struct process_info) <fast_tracepoint_jumps>: New field.
17738 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17739 (decode_X_packet, decode_M_packet): Adjust.
17740 (relocate_instruction): Declare.
17741 (in_process_agent_loaded): Declare.
17742 (tracepoint_look_up_symbols): Declare.
17743 (struct fast_tpoint_collect_status): Declare.
17744 (fast_tracepoint_collecting): Declare.
17745 (force_unlock_trace_buffer): Declare.
17746 (handle_tracepoint_bkpts): Declare.
17747 (initialize_low_tracepoint)
17748 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17749 * target.h (struct target_ops) <stabilize_threads,
17750 install_fast_tracepoint_jump_pad>: New fields.
17751 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17752 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17753 [HAVE_STDINT_H]: Include stdint.h.
17754 (trace_debug_1): Rename to ...
17755 (trace_vdebug): ... this.
17756 (trace_debug): Rename to ...
17757 (trace_debug_1): ... this. Add `level' parameter.
17758 (trace_debug): New.
17759 (ATTR_USED, ATTR_NOINLINE): New.
17760 (IP_AGENT_EXPORT): New.
17761 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17762 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17763 (about_to_request_buffer_space, trace_buffer_is_full)
17764 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17765 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17766 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17767 (traceframe_write_count, traceframes_created)
17768 (trace_state_variables)
17769 New renaming defines.
17770 (struct ipa_sym_addresses): New.
17771 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17772 (symbol_list): New.
17773 (ipa_sym_addrs): New.
17774 (all_tracepoint_symbols_looked_up): New.
17775 (in_process_agent_loaded): New.
17776 (write_e_ipa_not_loaded): New.
17777 (maybe_write_ipa_not_loaded): New.
17778 (tracepoint_look_up_symbols): New.
17779 (debug_threads) [IN_PROCESS_AGENT]: New.
17780 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17781 (UNKNOWN_SIDE_EFFECTS): New.
17782 (stop_tracing): New.
17783 (flush_trace_buffer): New.
17784 (stop_tracing_bkpt): New.
17785 (flush_trace_buffer_bkpt): New.
17786 (read_inferior_integer): New.
17787 (read_inferior_uinteger): New.
17788 (read_inferior_data_pointer): New.
17789 (write_inferior_data_pointer): New.
17790 (write_inferior_integer): New.
17791 (write_inferior_uinteger): New.
17792 (struct collect_static_trace_data_action): Delete.
17793 (enum tracepoint_type): New.
17794 (struct tracepoint) <type>: New field `type'.
17795 <actions_str, step_actions, step_actions_str>: Only include in
17797 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17798 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17799 (tracepoints): Use IP_AGENT_EXPORT.
17800 (last_tracepoint): Don't include in the IPA.
17801 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17802 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17803 (alloced_trace_state_variables): New.
17804 (trace_state_variables): Use IP_AGENT_EXPORT.
17805 (traceframe_t): Delete unused variable.
17806 (circular_trace_buffer): Don't include in the IPA.
17807 (trace_buffer_start): Delete.
17808 (struct trace_buffer_control): New.
17809 (trace_buffer_free): Delete.
17810 (struct ipa_trace_buffer_control): New.
17811 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17812 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17814 (trace_buffer_ctrl): New.
17815 (TRACE_BUFFER_CTRL_CURR): New.
17816 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17817 Reimplement as macros.
17818 (trace_buffer_wrap): Delete.
17819 (traceframe_write_count, traceframe_read_count)
17820 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17821 (struct tracepoint_hit_ctx) <type>: New field.
17822 (struct fast_tracepoint_ctx): New.
17823 (memory_barrier): New.
17825 (record_tracepoint_error): Update atomically in the IPA.
17826 (clear_inferior_trace_buffer): New.
17827 (about_to_request_buffer_space): New.
17828 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17829 updating the same buffer.
17830 (add_tracepoint): Default the tracepoint's type to trap
17831 tracepoint, and orig_size to -1.
17832 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17833 internal variables.
17834 (create_trace_state_variable): New parameter `gdb'. Handle it.
17835 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17836 (cmd_qtdp): Handle fast tracepoints.
17837 (cmd_qtdv): Adjust.
17838 (max_jump_pad_size): New.
17839 (gdb_jump_pad_head): New.
17840 (get_jump_space_head): New.
17841 (claim_jump_space): New.
17842 (sort_tracepoints): New.
17843 (MAX_JUMP_SIZE): New.
17844 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17846 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17847 support. Upload fast traceframes, and delete internal IPA
17849 (stop_tracing_handler): New.
17850 (flush_trace_buffer_handler): New.
17851 (cmd_qtstop): Upload fast tracepoints.
17852 (response_tracepoint): Handle fast tracepoints.
17853 (tracepoint_finished_step): Upload fast traceframes. Set the
17854 tracepoint hit context's tracepoint type.
17855 (handle_tracepoint_bkpts): New.
17856 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17857 type. Add comment about fast tracepoints.
17858 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17859 non-existing action_str field.
17860 (get_context_regcache): Handle fast tracepoints.
17861 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17863 (fast_tracepoint_from_jump_pad_address): New.
17864 (fast_tracepoint_from_ipa_tpoint_address): New.
17865 (collecting_t): New.
17866 (force_unlock_trace_buffer): New.
17867 (fast_tracepoint_collecting): New.
17869 (gdb_collect): New.
17870 (write_inferior_data_ptr): New.
17871 (target_tp_heap): New.
17872 (target_malloc): New.
17873 (download_agent_expr): New.
17875 (download_tracepoints): New.
17876 (download_trace_state_variables): New.
17877 (upload_fast_traceframes): New.
17878 (IPA_FIRST_TRACEFRAME): New.
17879 (IPA_NEXT_TRACEFRAME_1): New.
17880 (IPA_NEXT_TRACEFRAME): New.
17881 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17882 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17883 (gdb_jump_pad_buffer_end): New.
17884 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17885 (initialize_tracepoint): Adjust.
17886 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17887 buffer. Initialize the low module.
17888 * utils.c (PREFIX, TOOLNAME): New.
17889 (malloc_failure): Use PREFIX.
17890 (error): In the IPA, an error causes an exit.
17891 (fatal, warning): Use PREFIX.
17892 (internal_error): Use TOOLNAME.
17893 (NUMCELLS): Increase to 10.
17894 * configure, config.in: Regenerate.
17896 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17898 * server.c (handle_query) <qSupported>: Do two passes over the
17899 qSupported string to avoid nesting strtok.
17901 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17903 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17905 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17906 -Wl,--dynamic-list.
17907 * configure: Regenerate.
17908 * proc-service.list: New.
17910 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17912 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17915 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17917 * gdbreplay.c (remote_open): Check error return from socket() call by
17918 its equality to -1 not by it being negative.
17919 * remote-utils.c (remote_open): Likewise.
17921 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17923 * config.h: Regenerate.
17925 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17927 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17928 doesn't provide PTRACE_GET_THREAD_AREA.
17930 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17932 * linux-m68k-low.c: Include <asm/ptrace.h>
17933 (ps_get_thread_area): Implement.
17935 2010-05-03 Doug Evans <dje@google.com>
17937 * event-loop.c (struct callback_event): New struct.
17938 (callback_list): New global.
17939 (append_callback_event, delete_callback_event): New functions.
17940 (process_callback): New function.
17941 (start_event_loop): Call it.
17942 * remote-utils.c (NOT_SCHEDULED): Define.
17943 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17944 moved out of readchar.
17945 (readchar): Rewrite. Call reschedule before returning.
17946 (reset_readchar): New function.
17947 (remote_close): Call it.
17948 (process_remaining, reschedule): New functions.
17949 * server.h (callback_handler_func): New typedef.
17950 (append_callback_event, delete_callback_event): Declare.
17952 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17954 * proc-service.c (ps_pglobal_lookup): Use
17955 thread_db_look_up_one_symbol.
17956 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17957 parameter. Use it instead of all_symbols_looked_up.
17958 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17960 (all_symbols_looked_up): Don't declare.
17961 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17962 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17964 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17965 Set all_symbols_looked_up here.
17966 (thread_db_look_up_one_symbol): New.
17967 (thread_db_get_tls_address): Adjust.
17968 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17969 thread_db object on the heap, and tentatively set it in the
17971 (thread_db_init): Don't set all_symbols_looked_up here.
17972 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17974 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17976 * linux-low.c (linux_kill, linux_detach): Adjust.
17977 (status_pending_p_callback): Remove redundant statement. Check
17978 for !TARGET_WAITIKIND_IGNORE, instead of
17979 TARGET_WAITKIND_STOPPED.
17980 (handle_tracepoints): Make sure LWP is locked. Adjust.
17981 (linux_wait_for_event_1): Adjust.
17982 (linux_cancel_breakpoints): New.
17983 (unsuspend_one_lwp): New.
17984 (unsuspend_all_lwps): New.
17985 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17986 (send_sigstop_callback): Change return type to int, add new
17987 `except' parameter and handle it.
17988 (suspend_and_send_sigstop_callback): New.
17989 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17990 pass them down. If SUSPEND, also increment the lwp's suspend
17992 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17993 (need_step_over_p): Don't consider suspended LWPs.
17994 (start_step_over): Adjust.
17995 (proceed_one_lwp): Change return type to int, add new `except'
17996 parameter and handle it.
17997 (unsuspend_and_proceed_one_lwp): New.
17998 (proceed_all_lwps): Use find_inferior instead of
18000 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
18001 also decrement the suspend count of LWPs. Pass `except' down,
18002 instead of hacking its suspend count.
18003 (linux_pause_all): Add `freeze' parameter. Adjust.
18004 (linux_unpause_all): New.
18005 (linux_target_ops): Install linux_unpause_all.
18006 * server.c (handle_status): Adjust.
18007 * target.h (struct target_ops): New fields `unpause_all' and
18008 `cancel_breakpoints'. Add new parameter to `pause_all'.
18009 (pause_all): Add new `freeze' parameter.
18010 (unpause_all): New.
18011 (cancel_breakpoints): New.
18012 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
18013 cancel breakpoints.
18014 (cmd_qtstart): Pause threads.
18015 (stop_tracing): Pause threads, and cancel breakpoints.
18016 * win32-low.c (win32_target_ops): Adjust.
18018 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18020 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
18021 the inferior right away from here...
18022 (linux_wait_1): ... to here, and adjust to check the thread's
18023 last_resume_kind instead of the lwp's step or stop_expected flags.
18025 2010-05-02 Pedro Alves <pedro@codesourcery.com>
18027 * README: Use consistent `GDB' and `GDBserver' spellings.
18029 2010-05-02 Pedro Alves <pedro@codesourcery.com>
18031 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
18032 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
18033 (linux_detach_one_lwp): Assume the lwp is stopped.
18034 (any_thread_of): Delete.
18035 (linux_detach): Stop all lwps here. Don't blindly delete all
18037 (delete_lwp_callback): New.
18038 (linux_mourn): Delete all lwps of the process that is gone.
18039 (linux_wait_1): Don't delete the last lwp of the process here.
18040 * mem-break.h (mark_breakpoints_out): Declare.
18041 * mem-break.c (mark_breakpoints_out): New.
18042 (free_all_breakpoints): Use it.
18043 * server.c (handle_target_event): If the process is gone, mark
18045 * thread-db.c (struct thread_db) <create_bp>: New field.
18046 (thread_db_enable_reporting): Fix prototype. Store a thread event
18047 breakpoint reference in the thread_db struct.
18048 (thread_db_load_search): Clear the thread_db object.
18049 (try_thread_db_load_1): Ditto.
18050 (switch_to_process): New.
18051 (disable_thread_event_reporting): Use it.
18052 (remove_thread_event_breakpoints): New.
18053 (thread_db_detach, thread_db_mourn): Use it.
18055 2010-05-01 Pedro Alves <pedro@codesourcery.com>
18057 * linux-low.c (linux_enable_event_reporting): New.
18058 (linux_wait_for_event_1, handle_extended_wait): Use it.
18060 2010-04-30 Pedro Alves <pedro@codesourcery.com>
18062 * linux-low.c (linux_kill_one_lwp, linux_kill)
18063 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
18064 (send_sigstop): Take an lwp_info as parameter instead. Queue a
18065 SIGSTOP even if the LWP is stopped.
18066 (send_sigstop_callback): New.
18067 (stop_all_lwps): Use send_sigstop_callback instead.
18068 (linux_resume_one_thread): Adjust.
18069 (proceed_one_lwp): Still proceed an LWP that the client has
18070 requested to stop, if we haven't reported it as stopped yet. Make
18071 sure that LWPs the client want stopped, have a pending SIGSTOP.
18073 2010-04-26 Doug Evans <dje@google.com>
18075 * server.c (handle_general_set): Make static.
18077 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
18078 Print received char after testing for error/eof instead of before.
18079 (input_interrupt): Tweak comment.
18081 2010-04-23 Doug Evans <dje@google.com>
18083 * server.c (start_inferior): Print inferior argv if --debug.
18085 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
18087 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
18088 * nto-x86-low.c: Include server.h
18090 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
18092 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
18093 be consistent with other sources of this directory.
18094 (init_registers_amd64): Correct name of source file of this function
18097 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18099 * configure.srv (x86_64-*-mingw*): New configuration for Windows
18100 64-bit executables.
18102 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18104 * win32-i386-low.c: Add 64-bit support.
18105 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
18106 (init_registers_amd64): Declare.
18107 (mappings): Add 64-bit version of array.
18108 (init_windows_x86): New function.
18109 (the_low_target): Change init_arch field to init_windows_x86.
18111 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18113 * win32-low.c: Adapt to support also 64-bit architecture.
18114 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
18115 (get_image_name): Use SIZE_T type for local variable `done'.
18116 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
18117 (toolhelp_get_dll_name): Idem.
18118 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
18119 Use uintptr_t typecast to avoid warning.
18120 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
18121 (handle_exception): Use phex_nz to avoid warning.
18122 (win32_wait): Remove unused local variable `process'.
18124 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18126 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
18129 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
18131 * configure.ac: Use `ws2_32' library for srv_mingw.
18132 * configure: Regenerate.
18133 * gdbreplay.c: Include winsock2.h instead of winsock.h.
18134 * remote-utils.c: Likewise.
18136 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
18138 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
18139 if __x86_64__ is defined.
18141 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18143 * configure: Regenerate.
18145 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18147 * server.c (handle_query): Handle 'qGetTIBAddr' query.
18148 * target.h (target_ops): New get_tib_address field.
18149 * win32-low.h (win32_thread_info): Add thread_local_base field.
18150 * win32-low.c (child_add_thread): Add tlb argument.
18151 Set thread_local_base field to TLB.
18152 (get_child_debug_event): Adapt to child_add_thread change.
18153 (win32_get_tib_address): New function.
18154 (win32_target_ops): Set get_tib_address field to
18155 win32_get_tib_address.
18156 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
18158 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18160 * linux-low.c (linux_mourn): Also remove the process.
18161 * server.c (handle_target_event): Don't remove the process here.
18162 * nto-low.c (nto_mourn): New.
18163 (nto_target_ops): Install it.
18164 * spu-low.c (spu_mourn): New.
18165 (spu_target_ops): Install it.
18166 * win32-low.c (win32_mourn): New.
18167 (win32_target_ops): Install it.
18169 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18171 * server.h (buffer_xml_printf): Remove redundant `;'.
18173 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18175 * regcache.c (set_register_cache): Invalidate regcaches before
18176 changing the register cache layout.
18177 (regcache_invalidate_one): Allow a NULL regcache.
18178 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
18179 regcaches before changing the register cache layout or the target
18182 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
18184 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
18185 variable warning on Linux/x86-64.
18187 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18189 GDBserver disconnected tracing support.
18191 * linux-low.c (linux_remove_process): Delete.
18192 (add_lwp): Don't set last_resume_kind here.
18193 (linux_kill): Use `mourn'.
18194 (linux_detach): Use `thread_db_detach', and `mourn'.
18195 (linux_mourn): New.
18196 (linux_attach_lwp_1): Adjust comment.
18197 (linux_attach): last_resume_kind moved the thread_info; adjust.
18198 (status_pending_p_callback): Adjust.
18199 (linux_wait_for_event_1): Adjust.
18200 (count_events_callback, select_singlestep_lwp_callback)
18201 (select_event_lwp_callback, cancel_breakpoints_callback)
18202 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
18203 (proceed_one_lwp): Adjust.
18204 (linux_async): Add debug output.
18205 (linux_thread_stopped): New.
18206 (linux_pause_all): New.
18207 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
18209 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
18210 (thread_db_free): Delete declaration.
18211 (thread_db_detach, thread_db_mourn): Declare.
18212 * thread-db.c (thread_db_init): Use thread_db_mourn.
18213 (thread_db_free): Delete, split in two.
18214 (disable_thread_event_reporting): New.
18215 (thread_db_detach): New.
18216 (thread_db_mourn): New.
18218 * server.h (struct thread_info) <last_resume_kind>: New field.
18219 <attached>: Add comment.
18220 <gdb_detached>: New field.
18221 (handler_func): Change return type to int.
18222 (handle_serial_event, handle_target_event): Ditto.
18223 (gdb_connected): Declare.
18225 (disconnected_tracing): Declare.
18226 (stop_tracing): Declare.
18228 * server.c (handle_query) <qSupported>: Report support for
18229 disconnected tracing.
18230 (queue_stop_reply_callback): Account for running threads.
18231 (gdb_wants_thread_stopped): New.
18232 (gdb_wants_all_threads_stopped): New.
18233 (gdb_reattached_process): New.
18234 (handle_status): Clear the `gdb_detached' flag of all processes.
18235 In all-stop, stop all threads.
18236 (main): Be sure to leave tfind mode. Handle disconnected tracing.
18237 (process_serial_event): If the remote connection breaks, or if an
18238 exit was forced with "monitor exit", force an event loop exit.
18239 Handle disconnected tracing on detach.
18240 (handle_serial_event): Adjust.
18241 (handle_target_event): If GDB isn't connected, forward events back
18242 to the inferior, unless the last process exited, in which case,
18243 exit gdbserver. Adjust interface.
18245 * remote-utils.c (remote_open): Don't block in accept. Instead
18246 register an event loop source on the listen socket file
18247 descriptor. Refactor bits into ...
18248 (listen_desc): ... this new global.
18249 (gdb_connected): ... this new function.
18250 (enable_async_notification): ... this new function.
18251 (handle_accept_event): ... this new function.
18252 (remote_close): Clear remote_desc.
18254 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
18256 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
18258 (mourn_inferior): Define.
18259 (target_process_qsupported): Avoid the dangling else problem.
18260 (thread_stopped): Define.
18261 (pause_all): Define.
18262 (target_waitstatus_to_string): Declare.
18263 * target.c (target_waitstatus_to_string): New.
18265 * tracepoint.c (tracing): Make extern.
18266 (disconnected_tracing): New.
18267 (stop_tracing): Make extern. Handle tracing stops due to GDB
18269 (cmd_qtdisconnected): New.
18270 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18271 (handle_tracepoint_general_set): Handle QTDisconnected.
18273 * event-loop.c (event_handler_func): Change return type to int.
18274 (process_event): Bail out if the event handler wants the event
18276 (handle_file_event): Ditto.
18277 (start_event_loop): Bail out if the event handler wants the event
18280 * nto-low.c (nto_target_ops): Adjust.
18281 * spu-low.c (spu_wait): Don't remove the process here.
18282 (spu_target_ops): Adjust.
18283 * win32-low.c (win32_wait): Don't remove the process here.
18284 (win32_target_ops): Adjust.
18286 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18288 * regcache.c (realloc_register_cache): Invalidate inferior's
18289 regcache before recreating it.
18291 2010-04-09 Pedro Alves <pedro@codesourcery.com>
18293 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18295 2010-04-09 Stan Shebs <stan@codesourcery.com>
18296 Pedro Alves <pedro@codesourcery.com>
18298 * server.h (LONGEST): New.
18299 (struct thread_info) <while_stepping>: New field.
18300 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18302 (initialize_tracepoint, handle_tracepoint_general_set)
18303 (handle_tracepoint_query, tracepoint_finished_step)
18304 (tracepoint_was_hit, release_while_stepping_state_list):
18305 (current_traceframe): Declare.
18306 * server.c (handle_general_set): Handle tracepoint packets.
18307 (read_memory): New.
18308 (write_memory): New.
18309 (handle_search_memory_1): Use read_memory.
18310 (handle_query): Report support for conditional tracepoints, trace
18311 state variables, and tracepoint sources. Handle tracepoint
18313 (main): Initialize the tracepoints module.
18314 (process_serial_event): Handle traceframe reads/writes.
18316 * linux-low.c (handle_tracepoints): New.
18317 (linux_wait_1): Call it.
18318 (linux_resume_one_lwp): Handle while-stepping.
18319 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18320 (linux_target_ops): Install them.
18321 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18323 * linux-x86-low.c (x86_supports_tracepoints): New.
18324 (the_low_target). Install it.
18326 * mem-break.h (delete_breakpoint): Declare.
18327 * mem-break.c (delete_breakpoint): Make external.
18329 * target.h (struct target_ops): Add `supports_tracepoints',
18330 `read_pc', and `write_pc' fields.
18331 (target_supports_tracepoints): Define.
18332 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18335 * regcache.h (struct regcache) <registers_owned>: New field.
18336 (init_register_cache, regcache_cpy): Declare.
18337 (regcache_read_pc, regcache_write_pc): Declare.
18338 (register_cache_size): Declare.
18339 (supply_regblock): Declare.
18340 * regcache.c (init_register_cache): New.
18341 (new_register_cache): Use it.
18342 (regcache_cpy): New.
18343 (register_cache_size): New.
18344 (supply_regblock): New.
18345 (regcache_read_pc, regcache_write_pc): New.
18347 * tracepoint.c: New.
18349 * Makefile.in (OBS): Add tracepoint.o.
18350 (tracepoint.o): New rule.
18352 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18354 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18356 (i386-mmx.c): Likewise.
18357 (i386-mmx-linux.o): Likewise.
18358 (i386-mmx-linux.c): Likewise.
18360 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18361 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18362 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18363 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18365 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18366 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18367 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18369 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18371 * Makefile.in (clean): Updated.
18373 (i386-avx.c): Likewise.
18374 (i386-avx-linux.o): Likewise.
18375 (i386-avx-linux.c): Likewise.
18376 (amd64-avx.o): Likewise.
18377 (amd64-avx.c): Likewise.
18378 (amd64-avx-linux.o): Likewise.
18379 (amd64-avx-linux.c): Likewise.
18381 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18382 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18383 (srv_amd64_regobj): Add amd64-avx.o.
18384 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18385 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18386 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18387 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18388 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18389 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18390 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18392 * i387-fp.c: Include "i386-xstate.h".
18394 (i387_cache_to_xsave): Likewise.
18395 (i387_xsave_to_cache): Likewise.
18396 (x86_xcr0): Likewise.
18398 * i387-fp.h (i387_cache_to_xsave): Likewise.
18399 (i387_xsave_to_cache): Likewise.
18400 (x86_xcr0): Likewise.
18402 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18403 * linux-crisv32-low.c (target_regsets): Likewise.
18404 * linux-m68k-low.c (target_regsets): Likewise.
18405 * linux-mips-low.c (target_regsets): Likewise.
18406 * linux-ppc-low.c (target_regsets): Likewise.
18407 * linux-s390-low.c (target_regsets): Likewise.
18408 * linux-sh-low.c (target_regsets): Likewise.
18409 * linux-sparc-low.c (target_regsets): Likewise.
18410 * linux-xtensa-low.c (target_regsets): Likewise.
18412 * linux-low.c: Include <sys/uio.h>.
18413 (regsets_fetch_inferior_registers): Support nt_type.
18414 (regsets_store_inferior_registers): Likewise.
18415 (linux_process_qsupported): New.
18416 (linux_target_ops): Add linux_process_qsupported.
18418 * linux-low.h (regset_info): Add nt_type.
18419 (linux_target_ops): Add process_qsupported.
18421 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18423 (init_registers_i386_avx_linux): New.
18424 (init_registers_amd64_avx_linux): Likewise.
18425 (xmltarget_i386_linux_no_xml): Likewise.
18426 (xmltarget_amd64_linux_no_xml): Likewise.
18427 (PTRACE_GETREGSET): Likewise.
18428 (PTRACE_SETREGSET): Likewise.
18429 (x86_fill_xstateregset): Likewise.
18430 (x86_store_xstateregset): Likewise.
18431 (use_xml): Likewise.
18432 (x86_linux_update_xmltarget): Likewise.
18433 (x86_linux_process_qsupported): Likewise.
18434 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18435 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18436 init_registers_i386_linux here. Call
18437 x86_linux_update_xmltarget.
18438 (the_low_target): Add x86_linux_process_qsupported.
18440 * server.c (handle_query): Call target_process_qsupported.
18442 * target.h (target_ops): Add process_qsupported.
18443 (target_process_qsupported): New.
18445 2010-04-03 Pedro Alves <pedro@codesourcery.com>
18447 * inferiors.c (add_thread): Set last_status kind to
18448 TARGET_WAITKIND_IGNORE.
18449 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18450 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18451 (linux_wait_1): Move `thread' local definition to block that uses
18452 it. Don't NULL initialize `event_child'.
18453 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18454 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18455 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18457 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18459 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18460 an extended waitstatus, or by a watchpoint.
18461 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18462 thread was stepping or has been stopped by a watchpoint.
18464 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18466 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18467 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18468 of another, then delete the previous, and validate all
18470 (validate_inserted_breakpoint): New.
18471 (delete_disabled_breakpoints): New.
18472 (validate_breakpoints): New.
18473 (check_mem_read): Validate breakpoints before trusting their
18474 shadow. Delete disabled breakpoints.
18475 (check_mem_write): Validate breakpoints before trusting they
18476 should be inserted. Delete disabled breakpoints.
18477 * mem-break.h (validate_breakpoints):
18478 * server.c (handle_query): Validate breakpoints when we see a
18481 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18483 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18484 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18485 if we could tell there's a GDB breakpoint at stop_pc.
18486 (need_step_over_p): Don't do a step over if we find a GDB
18487 breakpoint at the resume PC.
18489 * mem-break.c (struct raw_breakpoint): New.
18490 (enum bkpt_type): New type `gdb_breakpoint'.
18491 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18492 fields. New field `raw'.
18493 (find_raw_breakpoint_at): New.
18494 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18495 breakpoint instead.
18496 (set_breakpoint_at): Adjust.
18497 (delete_raw_breakpoint): New.
18498 (release_breakpoint): New.
18499 (delete_breakpoint): Rename to...
18500 (delete_breakpoint_1): ... this. Add proc parameter. Use
18501 release_breakpoint. Return ENOENT.
18502 (delete_breakpoint): Reimplement.
18503 (find_breakpoint_at): Delete.
18504 (find_gdb_breakpoint_at): New.
18505 (delete_breakpoint_at): Delete.
18506 (set_gdb_breakpoint_at): New.
18507 (delete_gdb_breakpoint_at): New.
18508 (gdb_breakpoint_here): New.
18509 (set_reinsert_breakpoint): Use release_breakpoint.
18510 (uninsert_breakpoint): Rename to ...
18511 (uninsert_raw_breakpoint): ... this.
18512 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18513 (reinsert_raw_breakpoint): Change parameter type to
18515 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18517 (check_breakpoints): Adjust. Use release_breakpoint.
18518 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18519 (breakpoint_inserted_here): Ditto.
18520 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18521 Don't trust the breakpoint's shadow if it is not inserted.
18522 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18523 (delete_all_breakpoints): Adjust.
18524 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18525 use delete_breakpoint_1.
18527 * mem-break.h (breakpoints_supported): Delete declaration.
18528 (set_gdb_breakpoint_at): Declare.
18529 (gdb_breakpoint_here): Declare.
18530 (delete_breakpoint_at): Delete.
18531 (delete_gdb_breakpoint_at): Declare.
18533 * server.h (struct raw_breakpoint): Forward declare.
18534 (struct process_info): New field `raw_breakpoints'.
18536 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18539 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18541 * linux-low.c (status_pending_p_callback): Fix comment.
18542 (linux_wait_for_event_1): Move most of the internal breakpoint
18543 handling from here...
18544 (linux_wait_1): ... to here.
18545 (count_events_callback): New.
18546 (select_singlestep_lwp_callback): New.
18547 (select_event_lwp_callback): New.
18548 (cancel_breakpoints_callback): New.
18549 (select_event_lwp): New.
18550 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18551 priority to all LWPs that have had events that should be reported
18552 to the client. Cancel breakpoints when about to reporting the
18553 event to the client, not while stopping lwps. No longer cancel
18554 finished single-steps here.
18555 (cancel_finished_single_step): Delete.
18556 (cancel_finished_single_steps): Delete.
18558 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18560 * mem-break.c (enum bkpt_type): New.
18561 (struct breakpoint): New field `type'.
18562 (set_breakpoint_at): Change return type to struct breakpoint
18563 pointer. Set type to `other_breakpoint' by default.
18564 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18565 in the breakpoint list.
18566 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18567 (reinsert_breakpoint): Rename to ...
18568 (reinsert_raw_breakpoint): ... this.
18569 (reinsert_breakpoints_at): Adjust.
18570 * mem-break.h (struct breakpoint): Declare.
18571 (set_breakpoint_at): Change return type to struct breakpoint
18574 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18576 * server.c (handle_query): Assign, not compare.
18578 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18580 Teach linux gdbserver to step-over-breakpoints.
18582 * linux-low.c (can_hardware_single_step): New.
18583 (supports_breakpoints): New.
18584 (handle_extended_wait): If stopping threads, read the stop pc of
18585 the new cloned LWP.
18587 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18588 low target doesn't support retrieving the PC.
18589 (add_lwp): Set last_resume_kind to resume_continue.
18590 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18591 (linux_attach): Don't clear stop_expected. Set the lwp's
18592 last_resume_kind to resume_stop.
18593 (linux_detach_one_lwp): Don't check for removed breakpoints.
18594 (check_removed_breakpoint): Delete.
18595 (status_pending_p): Rename to ...
18596 (status_pending_p_callback): ... this. Don't check for removed
18597 breakpoints. Don't consider threads that are stopped from GDB's
18599 (linux_wait_for_lwp): Always read the stop_pc here.
18600 (cancel_breakpoint): New.
18601 (step_over_bkpt): New global.
18602 (linux_wait_for_event_1): Implement stepping over breakpoints.
18603 (gdb_wants_lwp_stopped): New.
18604 (gdb_wants_all_stopped): New.
18605 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18606 single-step traps here. Store the thread's last reported target
18608 (send_sigstop): Don't clear stop_expected. Always set it,
18610 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18611 (cancel_finished_single_step): New.
18612 (cancel_finished_single_steps): New.
18613 (wait_for_sigstop): Don't cancel finished single-step traps here.
18614 (linux_resume_one_lwp): Don't check for removed breakpoints.
18615 Don't set `step' on non-hardware step archs.
18616 (linux_set_resume_request): Ignore resume_stop requests if already
18617 stopping or stopped. Set the lwp's last_resume_kind.
18618 (resume_status_pending_p): Don't check for removed breakpoints.
18619 (need_step_over_p): New.
18620 (start_step_over): New.
18621 (finish_step_over): New.
18622 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18623 requests. Clear the thread's last reported target waitstatus.
18624 Don't use the `suspended' flag. Don't consider pending breakpoints.
18625 (linux_resume): Start a step-over if necessary.
18626 (proceed_one_lwp): New.
18627 (proceed_all_lwps): New.
18628 (unstop_all_lwps): New.
18629 * linux-low.h (struct lwp_info): Rewrite comment for the
18630 `suspended' flag. Add the `stop_pc' field. Delete the
18631 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18632 Add `'last_resume_kind' and `need_step_over' fields.
18633 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18634 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18635 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18636 (set_raw_breakpoint_at): New.
18637 (set_breakpoint_at): Rewrite to use it.
18638 (reinsert_breakpoint_handler): Delete.
18639 (set_reinsert_breakpoint): New.
18640 (reinsert_breakpoint_by_bp): Delete.
18641 (delete_reinsert_breakpoints): New.
18642 (uninsert_breakpoint): Rewrite.
18643 (uninsert_breakpoints_at): New.
18644 (reinsert_breakpoint): Rewrite.
18645 (reinsert_breakpoints_at): New.
18646 (check_breakpoints): Rewrite.
18647 (breakpoint_here): New.
18648 (breakpoint_inserted_here): New.
18649 (check_mem_read): Adjust.
18650 * mem-break.h (breakpoints_supported, breakpoint_here)
18651 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18652 (reinsert_breakpoint_by_bp): Delete declaration.
18653 (delete_reinsert_breakpoints): Declare.
18654 (reinsert_breakpoint): Delete declaration.
18655 (reinsert_breakpoints_at): Declare.
18656 (uninsert_breakpoint): Delete declaration.
18657 (uninsert_breakpoints_at): Declare.
18658 (check_breakpoints): Adjust prototype.
18659 * server.h: Adjust include order.
18660 (struct thread_info): Declare here. Add a `last_status' field.
18662 2010-03-23 Michael Snyder <msnyder@vmware.com>
18664 * server.c (crc32): New function.
18665 (handle_query): Add handling for 'qCRC:' request.
18667 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18669 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18670 lwp had been stopped by a watchpoint.
18672 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18674 * server.h (internal_error): Declare.
18675 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18676 * utils.c (internal_error): New function.
18678 2010-03-15 Andreas Schwab <schwab@redhat.com>
18680 * configure.srv: Fix typo setting srv_regobj.
18682 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18684 * linux-low.c (fetch_register): Avoid passing a non string literal
18686 (usr_store_inferior_registers): Ditto.
18688 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18690 * linux-low.c (linux_write_memory): Bail out early if peeking
18693 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18695 * linux-low.h (struct lwp_info): New fields
18696 `stopped_by_watchpoint' and `stopped_data_address'.
18697 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18698 here, and cache them in the lwp object.
18699 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18701 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18703 (linux_stopped_by_watchpoint): Rewrite.
18704 (linux_stopped_data_address): Rewrite.
18706 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18708 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18709 switching the current inferior, not before.
18711 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18713 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18714 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18715 i386-linux.c and amd64-linux.c.
18716 (reg-i386.o): Removed.
18717 (reg-i386.c): Likewise.
18718 (reg-i386-linux.o): Likewise.
18719 (reg-i386-linux.c): Likewise.
18720 (reg-x86-64.o): Likewise.
18721 (reg-x86-64.c): Likewise.
18722 (reg-x86-64-linux.o): Likewise.
18723 (reg-x86-64-linux.c): Likewise.
18725 (i386.c): Likewise.
18726 (i386-linux.o): Likewise.
18727 (i386-linux.c): Likewise.
18728 (amd64.o): Likewise.
18729 (amd64.c): Likewise.
18730 (amd64-linux.o): Likewise.
18731 (amd64-linux.c): Likewise.
18733 * configure.srv (srv_i386_regobj): New.
18734 (srv_i386_linux_regobj): Likewise.
18735 (srv_amd64_regobj): Likewise.
18736 (srv_amd64_linux_regobj): Likewise.
18737 (srv_i386_32bit_xmlfiles): Likewise.
18738 (srv_i386_64bit_xmlfiles): Likewise.
18739 (srv_i386_xmlfiles): Likewise.
18740 (srv_amd64_xmlfiles): Likewise.
18741 (srv_i386_linux_xmlfiles): Likewise.
18742 (srv_amd64_linux_xmlfiles): Likewise.
18743 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18744 srv_xmlfiles to $srv_i386_xmlfiles.
18745 (i[34567]86-*-mingw32ce*): Likewise.
18746 (i[34567]86-*-mingw*): Likewise.
18747 (i[34567]86-*-nto*): Likewise.
18748 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18749 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18750 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18751 (x86_64-*-linux*): Likewise.
18753 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18754 (init_registers_amd64_linux): New.
18755 (x86_arch_setup): Replace init_registers_x86_64_linux with
18756 init_registers_amd64_linux.
18758 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18760 * configure.ac: Check for libdl. If it is not available link against
18761 static libthread_db.
18762 * configure: Regenerate.
18764 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18768 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18769 handing a read watchpoint.
18770 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18772 2010-02-12 Doug Evans <dje@google.com>
18774 * linux-low.c (linux_supports_tracefork_flag): Document.
18775 (linux_look_up_symbols): Add comment.
18777 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18779 * regcache.c (supply_register): Clear regcache if buf is NULL.
18781 2010-02-02 Nicolas Roche <roche@sourceware.org>
18782 Joel Brobecker <brobecker@adacore.com>
18784 * inferiors.c (find_inferior): Add function documentation.
18785 (unloaded_dll): Handle the case where the unloaded dll has not
18786 been previously registered in the dll list.
18788 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18790 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18791 (thumb2_breakpoint): New.
18792 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18794 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18796 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18797 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18800 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18802 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18804 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18806 * linux-s390-low.c (s390_collect_ptrace_register)
18807 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18809 2010-01-21 Doug Evans <dje@google.com>
18811 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18812 (PTRACE_ARG4_TYPE): New macro.
18813 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18814 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18815 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18816 (usr_store_inferior_registers): Ditto.
18817 (linux_read_memory, linux_write_memory): Ditto.
18818 (linux_test_for_tracefork): Ditto.
18820 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18821 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18823 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18825 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18828 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18830 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18831 prototype to take a regcache. Adjust.
18833 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18835 * regcache.h (struct thread_info): Forward declare.
18836 (struct regcache): New.
18837 (new_register_cache): Adjust prototype.
18838 (get_thread_regcache): Declare.
18839 (free_register_cache): Adjust prototype.
18840 (registers_to_string, registers_from_string): Ditto.
18841 (supply_register, supply_register_by_name, collect_register)
18842 (collect_register_as_string, collect_register_by_name): Ditto.
18843 * regcache.c (struct inferior_regcache_data): Delete.
18844 (get_regcache): Rename to ...
18845 (get_thread_regcache): ... this. Adjust. Switch inferior before
18846 fetching registers.
18847 (regcache_invalidate_one): Adjust.
18848 (regcache_invalidate): Fix prototype.
18849 (new_register_cache): Return the new register cache.
18850 (free_register_cache): Change prototype.
18851 (realloc_register_cache): Adjust.
18852 (registers_to_string): Change prototype to take a regcache. Adjust.
18853 (registers_from_string): Ditto.
18854 (register_data): Ditto.
18855 (supply_register): Ditto.
18856 (supply_register_by_name): Ditto.
18857 (collect_register): Ditto.
18858 (collect_register_as_string): Ditto.
18859 (collect_register_by_name): Ditto.
18860 * server.c (process_serial_event): Adjust.
18861 * linux-low.h (regset_fill_func, regset_store_func): Change
18863 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18865 * linux-low.c (get_stop_pc): Adjust.
18866 (check_removed_breakpoint): Adjust.
18867 (linux_wait_for_event): Adjust.
18868 (linux_resume_one_lwp): Adjust.
18869 (fetch_register): Add regcache parameter. Adjust.
18870 (usr_store_inferior_registers): Ditto.
18871 (regsets_fetch_inferior_registers): Ditto.
18872 (regsets_store_inferior_registers): Ditto.
18873 (linux_fetch_registers, linux_store_registers): Ditto.
18874 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18876 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18878 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18879 prototype to take a regcache.
18880 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18881 * remote-utils.c (convert_ascii_to_int, outreg)
18882 (prepare_resume_reply): Change prototype to take a regcache.
18884 * target.h (struct target_ops) <fetch_registers, store_registers>:
18885 Change prototype to take a regcache.
18886 (fetch_inferior_registers, store_inferior_registers): Change
18887 prototype to take a regcache. Adjust.
18888 * proc-service.c (ps_lgetregs): Adjust.
18889 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18890 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18891 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18892 take a regcache. Adjust.
18893 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18894 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18895 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18896 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18897 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18898 (cris_cannot_fetch_register):
18899 (cris_breakpoint_at): Change prototype to take a regcache.
18901 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18902 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18903 to take a regcache. Adjust.
18904 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18906 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18907 take a regcache. Adjust.
18908 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18909 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18910 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18911 * linux-mips-low.c (mips_get_pc):
18912 (mips_set_pc): Change prototype to take a regcache. Adjust.
18913 (mips_reinsert_addr): Adjust.
18914 (mips_collect_register): Change prototype to take a regcache.
18916 (mips_supply_register):
18917 (mips_collect_register_32bit, mips_supply_register_32bit)
18918 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18919 (mips_store_fpregset): Ditto.
18920 * linux-ppc-low.c (ppc_supply_ptrace_register)
18921 (ppc_supply_ptrace_register): Ditto.
18922 (parse_spufs_run): Adjust.
18923 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18924 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18925 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18926 take a regcache. Adjust.
18927 * linux-s390-low.c (s390_collect_ptrace_register)
18928 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18929 (s390_set_pc): Change prototype to take a regcache. Adjust.
18930 (s390_arch_setup): Adjust.
18931 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18932 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18933 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18934 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18935 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18937 (sparc_breakpoint_at): Adjust.
18938 * linux-xtensa-low.c (xtensa_fill_gregset):
18939 (xtensa_store_gregset):
18940 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18941 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18942 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18943 prototype to take a regcache. Adjust.
18944 * win32-arm-low.c (arm_fetch_inferior_register)
18945 (arm_store_inferior_register): Change prototype to take a
18947 * win32-i386-low.c (i386_fetch_inferior_register)
18948 (i386_store_inferior_register): Change prototype to take a
18950 * win32-low.c (child_fetch_inferior_registers)
18951 (child_store_inferior_registers): Change prototype to take a
18953 (win32_wait): Adjust.
18954 (win32_fetch_inferior_registers): Change prototype to take a
18956 (win32_store_inferior_registers): Adjust.
18957 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18958 store_inferior_register>: Change prototype to take a regcache.
18960 2010-01-20 Doug Evans <dje@google.com>
18962 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18964 (linux_wait_for_event1, linux_init_signals): Ditto.
18965 (W_STOPCODE): Provide definition if missing.
18967 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18969 * linux-low.c (linux_core_of_thread): New.
18970 (compare_ints, show_process, list_threads): New.
18971 (linux_qxfer_osdata): Report threads and cores.
18972 (linux_target_op): Register linux_core_of_thread.
18973 * remote-utils.c (prepare_resume_reply): Report the core.
18974 (buffer_xml_printf): Support %d specifier.
18975 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18977 (handle_query): Handle qXfer:threads. Announce availability
18979 * target.h (struct target_ops): New field core_of_thread.
18981 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18983 * Makefile.in (clean): Remove new generated files.
18984 (reg-s390.o, reg-s390.c): Remove rules.
18985 (reg-s390x.o, reg-s390x.c): Likewise.
18986 (s390-linux32.o, s390-linux32.c): Add rules.
18987 (s390-linux64.o, s390-linux64.c): Likewise.
18988 (s390x-linux64.o, s390x-linux64.c): Likewise.
18989 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18990 * linux-s390-low.c: Include <elf.h>.
18991 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18992 (init_registers_s390): Remove prototype.
18993 (init_registers_s390x): Likewise.
18994 (init_registers_s390_linux32): Add prototype.
18995 (init_registers_s390_linux64): Likewise.
18996 (init_registers_s390x_linux64): Likewise.
18997 (s390_num_regs_3264): New define.
18998 (s390_regmap_3264): New global variable.
18999 (s390_cannot_fetch_register): Remove obsolete check.
19000 (s390_cannot_store_register): Likewise.
19001 (s390_collect_ptrace_register): Handle upper/lower register halves.
19002 (s390_supply_ptrace_register): Likewise.
19003 (s390_fill_gregset): Update to register number changes.
19004 (s390_get_hwcap): New routine.
19005 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
19006 Install appropriate regmap and register set.
19008 2010-01-01 Joel Brobecker <brobecker@adacore.com>
19010 * server.c (gdbserver_version): Update copyright year to 2010.
19011 * gdbreplay.c (gdbreplay_version): Likewise.
19013 2009-12-28 Doug Evans <dje@google.com>
19015 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
19016 elf/external.h. Include <elf.h> instead but only if necessary.
19018 2009-12-28 Pedro Alves <pedro@codesourcery.com>
19020 * linux-low.c (linux_remove_process): Remove `detaching'
19021 parameter. Don't release/detach from thread_db here.
19022 (linux_kill): Release/detach from thread_db here, ...
19023 (linux_detach): ... and here, before actually detaching.
19024 (linux_wait_1): ... and here, when a process exits.
19025 * thread-db.c (any_thread_of): New.
19026 (thread_db_free): Switch the current inferior to a thread of the
19029 2009-12-21 Doug Evans <dje@google.com>
19031 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
19033 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
19034 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
19035 warning ifndef __NR_tkill. Move setting of errno there too.
19036 Delete unnecessary resetting of errno after syscall.
19037 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
19039 * configure.ac: Check for dladdr.
19040 * config.in: Regenerate.
19041 * configure: Regenerate.
19042 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
19043 (try_thread_db_load): Update.
19045 * linux-low.c (my_waitpid): Delete unnecessary prototype.
19047 2009-12-18 Doug Evans <dje@google.com>
19049 * event-loop.c: Include unistd.h if it exists.
19051 * linux-low.c (my_waitpid): Move definition away from being in
19052 between linux_tracefork_child/linux_test_for_tracefork.
19054 * gdb_proc_service.h (psaddr_t): Fix type.
19055 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
19056 signature to match glibc.
19058 2009-12-16 Doug Evans <dje@google.com>
19060 * linux-low.c (linux_read_memory): Fix argument to read.
19062 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19064 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
19065 events, don't leave current_inferior pointing at null.
19067 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19069 * win32-low.c (LOG): Delete.
19070 (OUTMSG): Output to stderr.
19071 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
19072 on compile time LOG macro.
19073 (win32_wait): Fix debug output.
19075 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19077 * win32-low.c (win32_add_one_solib): If the dll name is
19078 "ntdll.dll", prepend the system directory to the dll path.
19080 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
19082 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
19084 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
19085 Vladimir Prus <vladimir@codesourcery.com>
19087 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
19088 * configure.ac: Check for __mcoldfire__ and set
19089 gdb_cv_m68k_is_coldfire.
19090 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
19091 reg-cf.o and reg-m68k.o.
19092 * configure: Regenerated.
19094 2009-11-16 Pedro Alves <pedro@codesourcery.com>
19096 * linux-low.c (linux_remove_process): Add `detaching' parameter.
19097 Pass it to thread_db_free.
19098 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
19099 proper `detaching' argument to linux_remove_process.
19100 * linux-low.h (thread_db_free): Add `detaching' parameter.
19101 * thread-db.c (thread_db_init): Pass false as `detaching' argument
19103 (thread_db_free): Add `detaching' parameter. Only
19104 call td_ta_clear_event if detaching from process.
19106 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
19108 * thread-db.c (thread_db_free): Fix typo.
19110 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
19113 * thread-db.c (thread_db_free): Call td_ta_clear_event.
19115 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
19117 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
19118 with an i686 compiler.
19119 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
19121 * configure: Rebuilt.
19123 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
19127 * server.c (handle_search_memory_1): Correct read_addr initialization
19128 in loop for searching subsequent chunks.
19130 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
19132 * configure.ac: New --with-libthread-db option.
19133 * thread-db.c: Allow direct dependence on libthread_db.
19134 (thread_db_free): Adjust.
19135 * config.in: Regenerate.
19136 * configure: Likewise.
19138 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
19141 * thread-db.c (attach_thread): New function.
19142 (maybe_attach_thread): Return success/failure.
19143 (find_new_threads_callback): Adjust.
19144 (thread_db_find_new_threads): Loop until no new threads.
19146 2009-10-13 Pedro Alves <pedro@codesourcery.com>
19148 * proc-service.c (ps_lgetregs): Formatting.
19150 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
19152 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
19153 * configure.ac: Adjust.
19154 * linux-low.h (struct process_info_private): Move members to struct
19156 (thread_db_free, thread_db_handle_monitor_command): New prototype.
19157 * linux-low.c (linux_remove_process): Adjust.
19158 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
19159 * server.c (handle_query): Move code ...
19160 (handle_monitor_command): ... here. New function.
19161 * target.h (struct target_ops): New member.
19162 * thread-db.c (struct thread_db): New.
19163 (libthread_db_search_path): New variable.
19164 (thread_db_create_event, thread_db_enable_reporting)
19165 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
19166 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
19167 (try_thread_db_load_1, dladdr_to_soname): New functions.
19168 (try_thread_db_load, thread_db_load_search): New functions.
19169 (thread_db_init): Search for libthread_db.
19170 (thread_db_free): New function.
19171 (thread_db_handle_monitor_command): Likewise.
19172 * config.in: Regenerate.
19173 * configure: Regenerate.
19175 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
19177 * spu-low.c (spu_kill): Wait for inferior to terminate.
19178 Call clear_inferiors.
19179 (spu_detach): Call clear_inferiors.
19181 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19183 * aclocal.m4: Regenerate.
19184 * config.in: Likewise.
19185 * configure: Likewise.
19187 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19189 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
19190 (parse_spufs_run): New function.
19191 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
19192 (ppc_breakpoint_at): Handle SPU breakpoints.
19194 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19196 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
19197 (SPUFS_MAGIC): Define.
19198 (spu_enumerate_spu_ids): New function.
19199 (linux_qxfer_spu): New function.
19200 (linux_target_ops): Install linux_qxfer_spu.
19202 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19204 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
19205 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
19206 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
19207 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
19208 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
19209 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
19210 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
19211 (init_registers_powerpc_cell32l): Add prototype.
19212 (init_registers_powerpc_cell64l): Likewise.
19213 (ppc_arch_setup): Detect Cell/B.E. architecture.
19215 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19217 * Makefile.in (datarootdir): New variable.
19219 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19221 * linux-low.c (linux_write_memory): Update debugging output.
19222 * Makefile.in (clean): Add new descriptions.
19223 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
19224 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
19225 * configure.srv: Add new files for arm*-*-linux*.
19226 * linux-arm-low.c: Add new declarations.
19227 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
19228 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
19229 (HWCAP_VFPv3D16): New.
19230 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
19231 instead of __IWMMXT__.
19232 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
19233 (arm_arch_setup): New.
19234 (target_regsets): Remove #ifdef. Add VFP regset.
19235 (the_low_target): Use arm_arch_setup.
19237 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19239 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
19240 the main thread again.
19242 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
19244 Adding Neutrino gdbserver.
19245 * configure: Regenerated.
19246 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
19247 * configure.srv (i[34567]86-*-nto*): New target.
19248 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
19249 * remote-utils.c [__QNX__]: Include sys/iomgr.h
19250 (nto_comctrl) [__QNX__]: New function.
19251 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
19253 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
19255 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
19258 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19259 Pedro Alves <pedro@codesourcery.com>
19261 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19262 don't support CONTEXT_EXTENDED_REGISTERS.
19263 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19264 (the_low_target): Install them.
19265 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19266 failing with ERROR_PIPE_NOT_CONNECTED.
19268 2009-06-30 Doug Evans <dje@google.com>
19269 Pierre Muller <muller@ics.u-strasbg.fr>
19271 Add h/w watchpoint support to x86-linux, win32-i386.
19272 * Makefile.in (SFILES): Add i386-low.c
19273 (i386_low_h): Define.
19274 (i386-low.o): Add dependencies.
19275 (linux-x86-low.o): Add i386-low.h dependency.
19276 (win32-i386-low.o): Ditto.
19277 * i386-low.c: New file.
19278 * i386-low.h: New file.
19279 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19280 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19281 * linux-low.c (linux_add_process): Initialize arch_private.
19282 (linux_remove_process): Free arch_private.
19283 (add_lwp): Initialize arch_private.
19284 (delete_lwp): Free arch_private.
19285 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19287 * linux-low.h (process_info_private): New member arch_private.
19288 (lwp_info): New member arch_private.
19289 (linux_target_ops): New members new_process, new_thread,
19291 (ptid_of): New macro.
19292 * linux-x86-low.c: Include stddef.h, i386-low.h.
19293 (arch_process_info): New struct.
19294 (arch_lwp_info): New struct.
19295 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19296 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19297 (i386_dr_low_get_status): New function.
19298 (x86_insert_point, x86_remove_point): New functions.
19299 (x86_stopped_by_watchpoint): New function.
19300 (x86_stopped_data_address): New function.
19301 (x86_linux_new_process, x86_linux_new_thread): New functions.
19302 (x86_linux_prepare_to_resume): New function.
19303 (the_low_target): Add entries for insert_point, remove_point,
19304 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19306 * server.c (debug_hw_points): New global.
19307 (monitor_show_help): Document set debug-hw-points.
19308 (handle_query): Process "set debug-hw-points".
19309 * server.h (debug_hw_points): Declare.
19310 (paddress): Declare.
19311 * utils.c (NUMCELLS, CELLSIZE): New macros.
19312 (get_sell, xsnprintf, paddress): New functions.
19313 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19314 remove_point, stopped_by_watchpoint, stopped_data_address.
19315 * win32-i386-low.c: Include i386-low.h.
19316 (debug_reg_state): Replaces dr.
19317 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19318 (i386_dr_low_get_status): New function.
19319 (i386_insert_point, i386_remove_point): New functions.
19320 (i386_stopped_by_watchpoint): New function.
19321 (i386_stopped_data_address): New function.
19322 (i386_initial_stuff): Update.
19323 (get_thread_context,set_thread_context,i386_thread_added): Update.
19324 (the_low_target): Add entries for insert_point,
19325 remove_point, stopped_by_watchpoint, stopped_data_address.
19326 * win32-low.c (win32_insert_watchpoint): New function.
19327 (win32_remove_watchpoint): New function.
19328 (win32_stopped_by_watchpoint): New function.
19329 (win32_stopped_data_address): New function.
19330 (win32_target_ops): Add entries for insert_watchpoint,
19331 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19332 * win32-low.h (win32_target_ops): New members insert_point,
19333 remove_point, stopped_by_watchpoint, stopped_data_address.
19335 2009-06-25 Pedro Alves <pedro@codesourcery.com>
19337 * server.c (process_serial_event): Re-return unsupported, not
19338 error, if the type isn't recognized. Re-allow supporting only
19339 insert or remove packets. Also call require_running for
19340 breakpoints. Add missing break statement to default case. Tidy.
19341 * target.h (struct target_ops): Rename insert_watchpoint to
19342 insert_point, and remove_watchpoint to remove_point.
19344 * linux-low.h (struct linux_target_ops): Likewise.
19345 * linux-low.c (linux_insert_watchpoint): Rename to ...
19346 (linux_insert_point): ... this. Adjust.
19347 (linux_remove_watchpoint): Rename to ...
19348 (linux_remove_point): ... this. Adjust.
19349 (linux_target_ops): Adjust.
19350 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19351 (cris_insert_point): ... this.
19352 (cris_remove_watchpoint): Rename to ...
19353 (cris_remove_point): ... this.
19354 (the_low_target): Adjust.
19356 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19358 * server.c (handle_v_kill): Pass signal_pid to
19359 kill_inferior if multi_process is zero.
19361 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19363 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19364 * target.h (target_ops): Comment for *_watchpoint to make it clear
19365 the functions can get types '0' and '1'.
19367 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19369 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19370 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19371 * regcache.c (get_regcache): Likewise.
19372 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19373 * win32-low.c (child_fetch_inferior_registers): Remove check for
19376 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19377 Pedro Alves <pedro@codesourcery.com>
19379 * target.h (struct target_ops) <supports_multi_process>: New
19381 (target_supports_multi_process): New.
19382 * server.c (handle_query): Even if GDB reports support, only
19383 enable multi-process if the target also supports it. Report
19384 multi-process support only if the target backend supports it.
19385 * linux-low.c (linux_supports_multi_process): New function.
19386 (linux_target_ops): Install it as target_supports_multi_process
19389 2009-05-24 Doug Evans <dje@google.com>
19391 Global renaming of find_thread_pid to find_thread_ptid.
19392 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19393 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19394 All callers updated.
19396 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19397 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19400 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19401 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19402 (linux_resume_one_lwp): Ditto.
19404 2009-05-23 Doug Evans <dje@google.com>
19406 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19407 from struct inferior_list_entry * to struct lwp_info *.
19408 All callers updated.
19410 2009-05-13 Doug Evans <dje@google.com>
19412 * linux-x86-low.c: Don't include assert.h.
19413 (x86_siginfo_fixup): Use fatal, not assert.
19414 (x86_arch_setup): Fix comment.
19416 2009-05-12 Doug Evans <dje@google.com>
19418 Biarch support for i386/amd64 gdbserver.
19419 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19420 Add linux-x86-low.c.
19421 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19422 (linux-x86-low.o): Add.
19423 * linux-x86-64-low.c: Delete.
19424 * linux-i386-low.c: Delete.
19425 * linux-x86-low.c: New file.
19426 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19428 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19430 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19431 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19432 (linux_child_pid_to_exec_file): New function.
19433 (elf_64_header_p, elf_64_file_p): New functions.
19434 (siginfo_fixup): New function.
19435 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19436 give target a chance to convert layout.
19437 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19438 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19440 2009-05-07 Doug Evans <dje@google.com>
19442 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19443 (regsets_store_inferior_registers): Ditto.
19445 2009-05-06 Pedro Alves <pedro@codesourcery.com>
19449 * linux-low.c (must_set_ptrace_flags): Delete.
19450 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19452 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19453 `lwp->must_set_ptrace_flags' instead.
19454 (linux_wait_for_event_1): Set ptrace options here.
19455 (linux_wait_1): ... not here.
19457 2009-04-30 Doug Evans <dje@google.com>
19459 * inferiors.c (started_inferior_callback): New function.
19460 (attached_inferior_callback): New function.
19461 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19462 * server.c (print_started_pid, print_attached_pid): New functions.
19463 (detach_or_kill_for_exit): New function.
19464 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19465 * server.h (have_started_inferiors_p): Declare.
19466 (have_attached_inferiors_p): Declare.
19468 * inferiors.c (remove_process): Fix memory leak, free process.
19469 * linux-low.c (linux_remove_process): New function.
19470 (linux_kill): Call it instead of remove_process.
19471 (linux_detach, linux_wait_1): Ditto.
19473 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19475 * configure.srv: Add x86 Windows CE target.
19477 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19479 * inferiors.c (get_thread_process): Make global.
19480 * server.h (get_thread_process): Add prototype.
19481 * thread-db.c (find_one_thread): Use get_thread_process
19482 instead of current_process.
19483 (thread_db_get_tls_address): Do not crash if called when
19484 thread layer is not yet initialized.
19486 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19488 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19489 * spu-low.c (current_tid): Rename to ...
19490 (current_ptid): ... this.
19491 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19492 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19493 ptid_get_lwp (current_ptid) instead of current_tid.
19494 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19495 instead of current_tid. Use find_process_pid to verify pid
19496 argument is valid. Pass proper argument to remove_process.
19497 (spu_thread_alive): Compare current_ptid instead of current_tid.
19498 (spu_resume): Likewise.
19500 2009-04-02 Pedro Alves <pedro@codesourcery.com>
19502 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19505 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19507 Implement the multiprocess extensions, and add linux multiprocess
19510 * server.h (ULONGEST): Declare.
19511 (struct ptid, ptid_t): New.
19512 (minus_one_ptid, null_ptid): Declare.
19513 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19514 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19515 (struct inferior_list_entry): Change `id' type from unsigned from
19517 (struct sym_cache, struct breakpoint, struct
19518 process_info_private): Forward declare.
19519 (struct process_info): Declare.
19520 (current_process): Declare.
19521 (all_processes): Declare.
19522 (initialize_inferiors): Declare.
19523 (add_thread): Adjust to use ptid_t.
19524 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19525 (add_process, remove_process, find_thread_pid): Declare.
19526 (find_inferior_id): Adjust to use ptid_t.
19527 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19528 (multi_process): Declare.
19529 (push_event): Adjust to use ptid_t.
19530 (read_ptid, write_ptid): Declare.
19531 (prepare_resume_reply): Adjust to use ptid_t.
19532 (clear_symbol_cache): Declare.
19533 * inferiors.c (all_processes): New.
19534 (null_ptid, minus_one_ptid): New.
19535 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19536 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19537 (add_thread): Change unsigned long to ptid. Remove gdb_id
19539 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19540 (gdb_id_to_thread): Rename to ...
19541 (find_thread_pid): ... this. Change unsigned long to ptid.
19542 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19543 (loaded_dll, pull_pid_from_list): Adjust.
19544 (add_process, remove_process, find_process_pid)
19545 (get_thread_process, current_process, initialize_inferiors): New.
19546 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19547 (struct target_waitstatus) <related_pid>: Ditto.
19548 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19549 return type to int.
19550 (struct target_ops) <join>: Add `pid' argument.
19551 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19552 (struct target_ops) <wait>: Add `ptid' field. Change return type
19554 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19555 (mywait): Add `ptid' argument. Change return type to ptid_t.
19556 (target_pid_to_str): Declare.
19557 * target.c (set_desired_inferior): Adjust to use ptids.
19558 (mywait): Add new `ptid' argument. Adjust.
19559 (target_pid_to_str): New.
19560 * mem-break.h (free_all_breakpoints): Declare.
19561 * mem-break.c (breakpoints): Delelete.
19562 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19563 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19564 to use per-process breakpoint list.
19565 (free_all_breakpoints): New.
19566 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19567 (symbol_cache, all_symbols_looked_up): Delete.
19569 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19571 (prepare_resume_reply): Change ptid argument's type from unsigned
19572 long to ptid_t. Adjust. Implement W;process and X;process.
19573 (free_sym_cache, clear_symbol_cache): New.
19574 (look_up_one_symbol): Adjust to per-process symbol cache. *
19575 * server.c (cont_thread, general_thread, step_thread): Change type
19577 (attached): Delete.
19578 (multi_process): New.
19579 (last_ptid): Change type to ptid_t.
19580 (struct vstop_notif) <ptid>: Change type to ptid_t.
19581 (queue_stop_reply, push_event): Change `ptid' argument's type to
19583 (discard_queued_stop_replies): Add `pid' argument.
19584 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19585 changes. Don't reference the `attached' global.
19586 (attach_inferior): Adjust to mywait interface changes.
19587 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19588 features. Handle and report "multiprocess+". Handle
19590 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19592 (handle_v_kill): New.
19593 (handle_v_stopped): Adjust to use target_pid_to_str.
19594 (handle_v_requests): Allow multiple attaches and runs when
19595 multiprocess extensions are in effect. Handle "vKill".
19596 (myresume): Adjust to use ptids.
19597 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19598 (handle_status): Adjust to discard_queued_stop_replies interface
19600 (first_thread_of, kill_inferior_callback)
19601 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19602 (main): Call initialize_inferiors. Adjust to use ptids, killing
19603 and detaching from all inferiors. Handle multiprocess packet
19605 * linux-low.h: Include gdb_proc_service.h.
19606 (struct process_info_private): New.
19607 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19608 <lwpid_of>: Use ptid_get_lwp.
19609 (get_lwp_thread): Adjust.
19610 (struct lwp_info): Add `dead' member.
19611 (find_lwp_pid): Declare.
19612 * linux-low.c (thread_db_active): Delete.
19613 (new_inferior): Adjust comment.
19614 (inferior_pid): Delete.
19615 (linux_add_process): New.
19616 (handle_extended_wait): Adjust.
19617 (add_lwp): Change unsigned long to ptid.
19618 (linux_create_inferior): Add process to processes table. Adjust
19619 to use ptids. Don't set new_inferior here.
19620 (linux_attach_lwp): Rename to ...
19621 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19622 it. Adjust to use ptids.
19623 (linux_attach_lwp): New.
19624 (linux_attach): Add process to processes table. Don't set
19626 (struct counter): New.
19627 (second_thread_of_pid_p, last_thread_of_process_p): New.
19628 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19629 multiple processes.
19630 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19631 processes. Remove process from process table.
19632 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19633 to multiple processes.
19634 (any_thread_of): New.
19635 (linux_detach): Add `pid' argument, and handle it. Remove process
19636 from processes table.
19637 (linux_join): Add `pid' argument. Handle it.
19638 (linux_thread_alive): Change unsighed long argument to ptid_t.
19639 Consider dead lwps as not being alive.
19640 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19641 threads we're not interested in.
19642 (same_lwp, find_lwp_pid): New.
19643 (linux_wait_for_lwp): Change `pid' argument's type from int to
19645 (linux_wait_for_event): Rename to ...
19646 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19647 from int to ptid_t. Adjust.
19648 (linux_wait_for_event): New.
19649 (linux_wait_1): Add `ptid' argument. Change return type to
19650 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19651 that exit from the process table.
19652 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19654 (mark_lwp_dead): New.
19655 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19656 stopping all threads, mark its main lwp as dead.
19657 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19659 (fetch_register, usr_store_inferior_registers)
19660 (regsets_fetch_inferior_registers)
19661 (regsets_store_inferior_registers, linux_read_memory)
19662 (linux_write_memory): Inline `inferior_pid'.
19663 (linux_look_up_symbols): Adjust to use per-process
19664 `thread_db_active'.
19665 (linux_request_interrupt): Adjust to use ptids.
19666 (linux_read_auxv): Inline `inferior_pid'.
19667 (initialize_low): Don't reference thread_db_active.
19668 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19669 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19670 (ps_getpid): Return the pid of the current inferior.
19671 * thread-db.c (proc_handle, thread_agent): Delete.
19672 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19674 (find_one_thread): Change argument type to ptid_t. Adjust to
19676 (maybe_attach_thread): Adjust to per-process data and ptids.
19677 (thread_db_find_new_threads): Ditto.
19678 (thread_db_init): Ditto.
19679 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19680 processes table. Adjust to use ptids.
19681 (spu_kill, spu_detach): Adjust interface. Remove process from
19683 (spu_join, spu_thread_alive): Adjust interface.
19684 (spu_wait): Adjust interface. Remove process from processes
19685 table. Adjust to use ptids.
19686 * win32-low.c (current_inferior_tid): Delete.
19687 (current_inferior_ptid): New.
19688 (debug_event_ptid): New.
19689 (thread_rec): Take a ptid. Adjust.
19690 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19691 (child_delete_thread): Ditto.
19692 (do_initial_child_stuff): Add `attached' argument. Add process to
19694 (child_fetch_inferior_registers, child_store_inferior_registers):
19696 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19697 (win32_attach): Pass 1 to do_initial_child_stuff.
19698 (win32_kill): Adjust interface. Remove process from processes
19700 (win32_detach): Ditto.
19701 (win32_join): Adjust interface.
19702 (win32_thread_alive): Take a ptid.
19703 (win32_resume): Adjust to use ptids.
19704 (get_child_debug_event): Ditto.
19705 (win32_wait): Adjust interface. Remove exiting process from
19708 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19710 Non-stop mode support.
19712 * server.h (non_stop): Declare.
19713 (gdb_client_data, handler_func): Declare.
19714 (delete_file_handler, add_file_handler, start_event_loop):
19716 (handle_serial_event, handle_target_event, push_event)
19717 (putpkt_notif): Declare.
19718 * target.h (enum resume_kind): New.
19719 (struct thread_resume): Replace `step' field by `kind' field.
19720 (TARGET_WNOHANG): Define.
19721 (struct target_ops) <wait>: Add `options' argument.
19722 <supports_non_stop, async, start_non_stop>: New fields.
19723 (target_supports_non_stop, target_async): New.
19724 (start_non_stop): Declare.
19725 (mywait): Add `options' argument.
19726 * target.c (mywait): Add `options' argument. Print child exit
19727 notifications here.
19728 (start_non_stop): New.
19729 * server.c (non_stop, own_buf, mem_buf): New globals.
19730 (struct vstop_notif): New.
19731 (notif_queue): New global.
19732 (queue_stop_reply, push_event, discard_queued_stop_replies)
19733 (send_next_stop_reply): New.
19734 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19736 (attach_inferior): In non-stop mode, don't wait for the target
19738 (handle_general_set): Handle QNonStop.
19739 (handle_query): When handling qC, return the current general
19740 thread, instead of the first thread of the list.
19741 (handle_query): If the backend supports non-stop mode, include
19742 QNonStop+ in the qSupported query response.
19743 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19745 (handle_v_attach, handle_v_run): Handle non-stop mode.
19746 (handle_v_stopped): New.
19747 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19748 (myresume): Adjust to use resume_kind. Handle non-stop.
19749 (queue_stop_reply_callback): New.
19750 (handle_status): Handle non-stop mode.
19751 (main): Clear non_stop flag on reconnection. Use the event-loop.
19752 Refactor serial protocol handling from here ...
19753 (process_serial_event): ... to this new function. When GDB
19754 selects any thread, select one here. In non-stop mode, wait until
19755 GDB acks all pending events before exiting.
19756 (handle_serial_event, handle_target_event): New.
19757 * remote-utils.c (remote_open): Install remote_desc in the event
19759 (remote_close): Remove remote_desc from the event loop.
19760 (putpkt_binary): Rename to...
19761 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19762 (putpkt_binary): New as wrapper around putpkt_binary_1.
19763 (putpkt_notif): New.
19764 (prepare_resume_reply): In non-stop mode, don't change the
19766 * event-loop.c: New.
19767 * Makefile.in (OBJ): Add event-loop.o.
19768 (event-loop.o): New rule.
19770 * linux-low.h (pid_of): Moved here.
19772 (get_lwp_thread): Use lwpid_of.
19773 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19774 * linux-low.c (pid_of): Delete.
19775 (inferior_pid): Use lwpid_of.
19776 (linux_event_pipe): New.
19777 (target_is_async_p): New.
19779 (handle_extended_wait): Use lwpid_of.
19780 (add_lwp): Don't set lwpid field.
19781 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19782 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19783 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19784 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19785 first. Adjust to linux_wait_for_event interface changes. Use
19787 (linux_detach): Don't delete the main lwp here.
19788 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19789 (status_pending_p): Don't consider explicitly suspended lwps.
19790 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19791 pointer. Add OPTIONS argument. Change return type to int. Use
19792 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19793 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19794 pointer. Add status pointer argument. Return a pid instead of a
19795 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19796 changes. In non-stop mode, don't switch to a random thread.
19797 (linux_wait): Rename to...
19798 (linux_wait_1): ... this. Add target_options argument, and handle
19799 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19800 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19801 clean exit and signal exit code. Don't stop all threads in
19802 non-stop mode. In all-stop mode, only stop all threads when
19803 reporting a stop to GDB. Handle explicit thread stop requests.
19804 (async_file_flush, async_file_mark): New.
19806 (send_sigstop): Use lwpid_of.
19807 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19808 interface changes. In non-stop mode, don't switch to a random
19810 (linux_resume_one_lwp): Use lwpid_of.
19811 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19812 (linux_resume_one_thread): ... this. Handle resume_stop. In
19813 non-stop mode, don't look for pending flag in all threads.
19814 (resume_status_pending_p): Don't consider explicitly suspended
19816 (my_waitpid): Reimplement. Emulate __WALL.
19817 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19819 (sigchld_handler, linux_supports_non_stop, linux_async)
19820 (linux_start_non_stop): New.
19821 (linux_target_ops): Register linux_supports_non_stop, linux_async
19822 and linux_start_non_stop.
19823 (initialize_low): Install SIGCHLD handler.
19824 * thread-db.c (thread_db_create_event, find_one_thread)
19825 (thread_db_get_tls_address): Use lwpid_of.
19826 * win32-low.c (win32_detach): Adjust to use resume_kind.
19827 (win32_wait): Add `options' argument.
19828 * spu-low.c (spu_resume): Adjust to use resume_kind.
19829 (spu_wait): Add `options' argument.
19831 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19833 Decouple target code from remote protocol.
19835 * target.h (enum target_waitkind): New.
19836 (struct target_waitstatus): New.
19837 (struct target_ops) <wait>: Return an unsigned long. Take a
19838 target_waitstatus pointer instead of a char pointer.
19839 (mywait): Likewise.
19840 * target.c (mywait): Change prototype to return an unsigned long.
19841 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19842 * server.h (thread_from_wait, old_thread_from_wait): Delete
19844 (prepare_resume_reply): Change prototype to take a
19846 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19847 (last_status, last_ptid): New.
19848 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19849 pid instead of a signal.
19850 (attach_inferior): Remove "status" and "signal" parameters.
19852 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19854 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19855 (handle_v_requests, myresume): Remove "status" and "signal"
19856 parameters. Adjust.
19857 (handle_status): New.
19858 (main): Delete local `status'. Adjust.
19859 * remote-utils.c: Include target.h.
19860 (prepare_resume_reply): Change prototype to take a
19861 target_waitstatus. Adjust.
19863 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19865 * spu-low.c (spu_wait): Adjust.
19866 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19868 (win32_wait): Adjust.
19870 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19872 * target.h (struct thread_resume): Delete leave_stopped member.
19873 (struct target_ops): Add a `n' argument to the `resume' callback.
19874 * server.c (start_inferior): Adjust.
19875 (handle_v_cont, myresume): Adjust.
19876 * linux-low.c (check_removed_breakpoint): Adjust to resume
19877 interface change, and to removed leave_stopped field.
19878 (resume_ptr): Delete.
19879 (struct thread_resume_array): New.
19880 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19881 resume interface change.
19882 (linux_continue_one_thread, linux_queue_one_thread)
19883 (resume_status_pending_p): Check if the resume field is NULL
19884 instead of checking the leave_stopped member.
19885 (linux_resume): Adjust to the target resume interface change.
19886 * spu-low.c (spu_resume): Adjust to the target resume interface
19888 * win32-low.c (win32_detach, win32_resume): Ditto.
19890 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19892 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19894 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19896 (linux_continue_one_thread): Only preserve the stepping flag if
19897 there's a pending breakpoint.
19899 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19901 * server.c (main): After the inferior having exited, call
19902 remote_close before exiting gdbserver.
19904 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19906 Fix size of FPSCR in Power 7 processors.
19907 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19908 (PPC_FEATURE_HAS_DFP): New #define.
19909 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19912 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19914 * server.c (handle_query) Whitespace and formatting.
19916 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19918 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19919 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19920 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19921 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19922 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19923 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19924 Makefile.in, configure.ac: Fix whitespace throughout.
19925 * configure: Regenerate.
19927 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19929 * inferiors.c (find_inferior): Make it safe for the callback
19930 function to delete the currently iterated inferior.
19932 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19934 * Makefile.in (linuw_low_h): Move higher.
19935 (thread-db.o): Depend on $(linux_low_h).
19937 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19939 Rename "process" to "lwp" throughout.
19941 * linux-low.c (all_processes): Rename to...
19942 (all_lwps): ... this.
19943 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19944 (add_process): Rename to ...
19945 (add_lwp): ... this. Adjust.
19946 (linux_create_inferior): Adjust.
19947 (linux_attach_lwp): Adjust.
19948 (linux_attach): Adjust.
19949 (linux_kill_one_process): Rename to ...
19950 (linux_kill_one_lwp): ... this. Adjust.
19951 (linux_kill): Adjust.
19952 (linux_detach_one_process): Rename to ...
19953 (linux_detach_one_lwp): ... this. Adjust.
19954 (linux_detach): Adjust.
19955 (check_removed_breakpoint): Adjust.
19956 (status_pending_p): Adjust.
19957 (linux_wait_for_process): Rename to ...
19958 (linux_wait_for_lwp): ... this. Adjust.
19959 (linux_wait_for_event): Adjust.
19960 (send_sigstop): Adjust.
19961 (wait_for_sigstop): Adjust.
19962 (stop_all_processes): Rename to ...
19963 (stop_all_lwps): ... this.
19964 (linux_resume_one_process): Rename to ...
19965 (linux_resume_one_lwp): ... this. Adjust.
19966 (linux_set_resume_request, linux_continue_one_thread)
19967 (linux_queue_one_thread, resume_status_pending_p)
19968 (usr_store_inferior_registers, regsets_store_inferior_registers)
19969 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19971 * linux-low.h (get_process): Rename to ...
19972 (get_lwp): ... this. Adjust.
19973 (get_thread_process): Rename to ...
19974 (get_thread_lwp): ... this. Adjust.
19975 (get_process_thread): Rename to ...
19976 (get_lwp_thread): ... this. Adjust.
19977 (struct process_info): Rename to ...
19978 (struct lwp_info): ... this.
19979 (all_processes): Rename to ...
19980 (all_lwps): ... this.
19981 * proc-service.c (ps_lgetregs): Adjust.
19982 * thread-db.c (thread_db_create_event, find_one_thread)
19983 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19985 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19987 * server.c (handle_query): Handle "qAttached".
19989 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19991 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19992 GPLv3, update license URL.
19994 2009-03-01 Doug Evans <dje@google.com>
19996 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19997 (server_h): Add gdb_signals.h.
19998 (signals.o): Update.
19999 * server.h (target_signal_from_host,target_signal_to_host_p)
20000 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
20002 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
20004 * remote-utils.c (getpkt): Also generate remote-debug
20005 information if noack_mode is set.
20007 2009-02-06 Pedro Alves <pedro@codesourcery.com>
20009 * server.c (handle_query): Report qXfer:siginfo:read and
20010 qXfer:siginfo:write as supported and handle them.
20011 * target.h (struct target_ops) <qxfer_siginfo>: New field.
20012 * linux-low.c (linux_xfer_siginfo): New.
20013 (linux_target_ops): Set it.
20015 2009-01-26 Pedro Alves <pedro@codesourcery.com>
20017 * server.c (gdbserver_usage): Mention --remote-debug.
20018 (main): Accept '--remote-debug' switch.
20020 2009-01-18 Doug Evans <dje@google.com>
20022 * regcache.c (new_register_cache): No need to check result of xcalloc.
20023 * server.c (handle_search_memory): Back out calls to xmalloc,
20024 result is checked and error is returned to user upon failure.
20025 (handle_query): Ditto. Add more checks for result of malloc.
20026 (handle_v_cont): Check result of malloc, report error back to
20028 (handle_v_run): Ditto. Call freeargv.
20029 * server.h (freeargv): Declare.
20030 * utils.c (freeargv): New fn.
20032 2009-01-15 Doug Evans <dje@google.com>
20034 * gdbreplay.c (perror_with_name): Make arg const char *.
20035 * server.h (target_signal_to_name): Make return type const char *.
20036 * thread-db.c (thread_db_err_str): Make return type const char *.
20037 * utils.c (perror_with_name): Make arg const char *.
20039 2009-01-14 Pedro Alves <pedro@codesourcery.com>
20041 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
20042 when handling a EXIT_PROCESS_DEBUG_EVENT.
20044 2009-01-06 Joel Brobecker <brobecker@adacore.com>
20046 * gdbreplay.c (gdbreplay_version): Update copyright year.
20047 * server.c (gdbserver_version): Likewise.
20049 2009-01-05 Doug Evans <dje@google.com>
20051 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
20052 (handle_extended_wait): Improve comment.
20054 2008-12-13 Doug Evans <dje@google.com>
20056 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
20057 * server.h (ATTR_MALLOC): New macro.
20058 (xmalloc,xcalloc,xstrdup): Declare.
20059 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
20060 * inferiors.c: Ditto.
20061 * linux-low.c: Ditto.
20062 * mem-break.c: Ditto.
20063 * regcache.c: Ditto.
20064 * remote-utils.c: Ditto.
20067 * win32-low.c: Ditto.
20069 2008-12-12 Doug Evans <dje@google.com>
20071 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
20072 in debugging printf.
20074 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
20076 2008-12-09 Doug Evans <dje@google.com>
20078 * linux-low.h (struct process_info): Delete member tid, unused.
20079 * thread-db.c (find_one_thread): Update.
20080 (maybe_attach_thread): Update.
20082 2008-12-02 Pedro Alves <pedro@codesourcery.com>
20084 * target.h (struct target_ops): Add qxfer_osdata member.
20085 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
20087 (linux_qxfer_osdata): New functions.
20088 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
20090 * server.c (handle_query): Handle "qXfer:osdata:read:".
20091 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
20092 (buffer_xml_printf): New functions.
20093 * server.h (struct buffer): New.
20094 (buffer_grow_str, buffer_grow_str0): New macros.
20095 (buffer_grow, buffer_free, buffer_init, buffer_finish)
20096 (buffer_xml_printf): Declare.
20098 2008-11-24 Doug Evans <dje@google.com>
20100 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
20102 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
20104 * server.c (handle_v_run): Always use the supplied argument list.
20106 2008-11-19 Bob Wilson <bob.wilson@acm.org>
20108 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
20109 (xtensa_regmap_table): Add entry for scompare1.
20111 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
20113 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
20114 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
20115 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
20116 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
20117 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
20118 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
20119 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
20120 XML target descriptions.
20121 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
20122 when inferior is running on an ISA 2.05 or later processor. Add
20123 special case to return offset for full 64-bit slot of FPSCR when
20126 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
20128 * Makefile.in (SFILES, clean): Added sparc64 files.
20129 (reg-sparc64.o, reg-sparc64.c): New.
20130 * configure.srv (sparc*-*-linux*): New configuration.
20131 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
20132 syscall arguments for SPARC.
20133 (regsets_store_inferior_registers): Likewise.
20134 * linux-sparc-low.c: New file.
20136 2008-10-21 Doug Evans <dje@google.com>
20138 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
20139 (READLINE_DIR,READLINE_DEP): Delete.
20140 (INTERNAL_CFLAGS): Update.
20141 (LINTFLAGS): Update.
20143 2008-10-10 Pedro Alves <pedro@codesourcery.com>
20145 * server.c (handle_v_run): If GDB didn't specify an argv, use the
20146 whole argv from the last run, not just argv[0].
20148 2008-09-08 Pedro Alves <pedro@codesourcery.com>
20150 * regcache.c (new_register_cache): Return NULL if the register
20151 cache size isn't known yet.
20152 (free_register_cache): Avoid dereferencing a NULL regcache.
20154 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20156 * configure.srv: Merge MIPS and MIPS64.
20158 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
20160 * Makefile.in (uninstall): Apply $(EXEEXT) too.
20162 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
20164 * Makefile.in: Add required vsx dependencies.
20166 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
20167 Declare init_registers_powerpc_vsx32l.
20168 Declare init_registers_powerpc_vsx64l.
20169 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
20170 (ppc_arch_setup): Check for VSX in hwcap.
20171 (ppc_fill_vsxregset): New function.
20172 (ppc_store_vsxregset): New function.
20173 Add new VSX entry in regset_info target_regsets.
20175 * configure.srv: Add new VSX dependencies.
20177 2008-08-12 Pedro Alves <pedro@codesourcery.com>
20179 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
20180 (remote_open): Set or clear transport_is_reliable.
20181 (putpkt_binary): Don't expect acks in noack mode.
20182 (getpkt): Don't send ack/nac in noack mode.
20183 * server.c (handle_general_set): Handle QStartNoAckMode.
20184 (handle_query): If connected by tcp pass QStartNoAckMode+ in
20186 (main): Reset noack_mode on every connection.
20187 * server.h (noack_mode): Declare.
20189 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20191 * Makefile.in (GDBREPLAY_OBS): New variable.
20192 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
20194 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
20195 Daniel Jacobowitz <dan@codesourcery.com>
20197 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
20198 (usr_store_inferior_registers): Likewise.
20199 (regsets_store_inferior_registers): Likewise.
20201 2008-07-31 Rolf Jansen <rj@surtec.com>
20202 Pedro Alves <pedro@codesourcery.com>
20204 * configure.ac: Check for memmem declaration.
20205 * server.c [HAVE_MALLOC_H]: Include malloc.h.
20206 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
20207 (disable_packet_qfThreadInfo): Unconditionally compile.
20208 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
20209 * configure, config.in: Regenerate.
20211 2008-07-28 Doug Kwan <dougkwan@google.com>
20213 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
20214 (linux_write_memory): Remove declaration of errno.
20216 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
20218 * linux-low.c (handle_extended_wait): Do not use "status"
20219 variable uninitialized.
20221 2008-07-07 Pedro Alves <pedro@codesourcery.com>
20223 * server.c (handle_v_attach): Inhibit reporting dll changes.
20225 2008-06-27 Pedro Alves <pedro@codesourcery.com>
20227 * remote-utils.c (prepare_resume_reply): If requested, don't
20228 output "thread:TID" in the T stop reply.
20230 * server.c (disable_packet_vCont, disable_packet_Tthread)
20231 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
20232 (handle_query): If requested, disable support for qC, qfThreadInfo
20234 (handle_v_requests): If requested, disable support for vCont.
20235 (gdbserver_show_disableable): New.
20236 (main): Handle --disable-packet and --disable-packet=LIST.
20238 * server.h (disable_packet_vCont, disable_packet_Tthread)
20239 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
20241 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
20243 * server.c (gdbserver_usage): Mention --version.
20245 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
20247 * Makefile.in (gdbreplay.o): New rule.
20249 2008-06-06 Joseph Myers <joseph@codesourcery.com>
20251 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
20252 message, not gdbserver.
20254 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
20255 Nathan Sidwell <nathan@codesourcery.com>
20256 Joseph Myers <joseph@codesourcery.com>
20258 * acinclude.m4: Include ../../config/acx.m4.
20259 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20260 * configure, config.in: Regenerate.
20261 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20262 * server.c (gdbserver_version): Print PKGVERSION.
20263 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20264 (main): Adjust gdbserver_usage calls.
20265 * gdbreplay.c (version, host_name): Add declarations.
20266 (gdbreplay_version, gdbreplay_usage): New.
20267 (main): Accept --version and --help options.
20269 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20271 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20272 (arm_breakpoint_at): Handle Thumb.
20273 (the_low_target): Add comment.
20275 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20277 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20279 2008-05-09 Doug Evans <dje@google.com>
20281 * server.h (decode_search_memory_packet): Declare.
20282 * remote-utils.c (decode_search_memory_packet): New fn.
20283 * server.c (handle_search_memory_1): New fn.
20284 (handle_search_memory): New fn.
20285 (handle_query): Process qSearch:memory packets.
20287 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20289 * regcache.c (registers_length): Remove.
20290 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20291 full register packet.
20292 * regcache.h (registers_length): Remove prototype.
20293 * server.h (PBUFSIZ): Define to 16384.
20295 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20297 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20298 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20299 powerpc-64l.o, and powerpc-altivec64l.o.
20300 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20301 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20302 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20303 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20304 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20307 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20308 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20309 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20310 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20311 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20312 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20313 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20314 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20315 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20316 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20319 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20320 (init_registers_powerpc_32l): ... this new prototype.
20321 (init_registers_powerpc_32): Remove, replace by ...
20322 (init_registers_powerpc_altivec32l): ... this new prototype.
20323 (init_registers_powerpc_e500): Remove, replace by ...
20324 (init_registers_powerpc_e500l): ... this new prototype.
20325 (init_registers_ppc64): Remove, replace by ...
20326 (init_registers_powerpc_64l): ... this new prototype.
20327 (init_registers_powerpc_64): Remove, replace by ...
20328 (init_registers_powerpc_altivec64l): ... this new prototype.
20329 (ppc_num_regs): Set to 73.
20330 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20331 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20332 (ppc_cannot_store_register): Handle orig_r3 and trap.
20333 (ppc_arch_setup): Update init_registers_... calls.
20334 (ppc_fill_gregset): Handle orig_r3 and trap.
20336 * inferiors.c (clear_inferiors): Reset current_inferior.
20338 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
20340 * acinclude.m4: Add override.m4.
20341 * configure: Regenerate.
20343 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20345 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20346 initial call to init_register_ppc64.
20348 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20350 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20351 single powerpc*-*-linux* case.
20352 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20354 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20356 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
20357 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
20359 * linux-ppc-low.c: Include <elf.h>.
20360 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20361 (ppc_hwcap): New global variable.
20362 (ppc_regmap): Remove __SPE__ #ifdef sections.
20363 (ppc_regmap_e500): New global variable.
20364 (ppc_cannot_store_register): Update __SPE__ special case.
20365 (ppc_get_hwcap): New function.
20366 (ppc_arch_setup): Use it to determine whether inferior supports
20367 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20368 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20369 Do not access registers if target does not support AltiVec.
20370 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20371 Do not access registers if target does not support SPE.
20372 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20374 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20376 * linux-low.c (disabled_regsets, num_regsets): New.
20377 (use_regsets_p): Delete.
20378 (linux_wait_for_process): Clear disabled_regsets.
20379 (regsets_fetch_inferior_registers): Check and set it.
20380 (regsets_store_inferior_registers): Likewise.
20381 (linux_fetch_registers, linux_store_registers): Do not use
20383 (initialize_low): Allocate disabled_regsets.
20385 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20387 * Makefile.in (LIBOBJS): New.
20388 (OBS): Use LIBOBJS.
20389 (memmem.o): New rule.
20390 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20391 * configure: Regenerated.
20393 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20395 * server.c (handle_query): Never return "unsupported" for
20396 qXfer:features:read queries.
20398 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20400 * server.c (get_features_xml): Fix inverted condition.
20401 (handle_query): Always support qXfer:feature:read.
20403 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20405 * server.c (wrapper_argv): New.
20406 (start_inferior): Handle wrapper_argv. If set, expect an extra
20408 (gdbserver_usage): Document --wrapper.
20409 (main): Parse --wrapper.
20411 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20413 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20414 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20415 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20416 (ppc_set_pc): Likewise.
20417 (ppc_arch_setup): New function.
20418 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20419 of collect_register.
20420 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
20422 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20424 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20425 instead of linux-ppc64-low.o.
20426 * linux-ppc64-low.c: Remove file.
20427 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20428 (linux-ppc64-low.o): Remove rule.
20430 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20431 (init_registers_powerpc_64): Likewise.
20432 (ppc_regmap): Conditionally define depending on __powerpc64__.
20433 (ppc_cannot_store_register): Do not special-case "fpscr" when
20434 compiled on __powerpc64__.
20435 (ppc_collect_ptrace_register): New function.
20436 (ppc_supply_ptrace_register): New function.
20437 (ppc_breakpoint): Change type to "unsigned int".
20438 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20439 (the_low_target): Conditionally provide initializers for the
20440 arch_setup member depending on __powerpc64__. Install
20441 collect_ptrace_register and supply_ptrace_register members.
20443 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20445 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20446 * server.c (gdbserver_xmltarget): Define.
20447 (get_features_xml): Use it to replace "target.xml" and arch_string.
20449 * configure.srv: Remove srv_xmltarget. Add XML files that were
20450 mentioned there to srv_xmlfiles instead. Remove conditional tests
20451 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20452 srv_xmlfiles and srv_regobj to include all possible choices.
20453 * configure.ac (srv_xmltarget): Remove.
20454 (srv_xmlfiles): Do not add "target.xml".
20455 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20456 checks for supplementary target information.
20457 * configure: Regenerate.
20458 * Makefile.in (XML_TARGET): Remove.
20459 (target.xml): Remove rule.
20460 (clean): Do not clean up target.xml.
20461 (.PRECIOUS): Do not mention target.xml.
20463 * target.h (struct target_ops): Remove arch_string member.
20464 * linux-low.c (linux_arch_string): Remove.
20465 (linux_target_ops): Remove arch_string initializer.
20466 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20467 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20468 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20469 * spu-low.c (spu_arch_string): Remove.
20470 (spu_target_ops): Remove arch_string initializer.
20471 * win32-low.c (win32_arch_string): Remove.
20472 (win32_target_ops): Remove arch_string initializer.
20473 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20474 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20475 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20477 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20479 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20480 by collect_ptrace_register and supply_ptrace_register hooks.
20481 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20482 instead of checking for the_low_target.left_pad_xfer.
20483 (usr_store_inferior_registers): Use collect_ptrace_register callback
20484 instead of checking for the_low_target.left_pad_xfer.
20486 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20487 (s390_supply_ptrace_register): Likewise.
20488 (s390_fill_gregset): Call s390_collect_ptrace_register.
20489 (the_low_target): Update.
20491 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20492 (ppc_supply_ptrace_register): Likewise.
20493 (the_low_target): Update.
20495 * linux-i386-low.c (the_low_target): Update.
20496 * linux-x86-64-low.c (the_low_target): Update.
20498 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20500 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20501 reg-s390.o and reg-s390x.o.
20503 * linux-low.c (new_inferior): New global variable.
20504 (linux_create_inferior, linux_attach): Set it.
20505 (linux_wait_for_process): Call the_low_target.arch_setup after the
20506 target has stopped for the first time.
20507 (initialize_low): Do not call the_low_target.arch_setup.
20509 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20510 (s390_set_pc): Likewise.
20511 (s390_arch_setup): New function.
20512 (the_low_target): Use s390_arch_setup as arch_setup routine.
20514 * regcache.c (realloc_register_cache): New function.
20515 (set_register_cache): Call it for each existing regcache.
20517 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20519 * server.h (init_registers): Remove prototype.
20521 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20522 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20523 instead of init_registers ().
20524 * linux-arm-low.c (init_registers_arm): Add prototype.
20525 (init_registers_arm_with_iwmmxt): Likewise.
20526 (the_low_target): Add initializer for arch_setup field.
20527 * linux-cris-low.c (init_registers_cris): Add prototype.
20528 (the_low_target): Add initializer for arch_setup field.
20529 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20530 (the_low_target): Add initializer for arch_setup field.
20531 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20532 (the_low_target): Add initializer for arch_setup field.
20533 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20534 (the_low_target): Add initializer for arch_setup field.
20535 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20536 (the_low_target): Add initializer for arch_setup field.
20537 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20538 (the_low_target): Add initializer for arch_setup field.
20539 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20540 (init_registers_mips64_linux): Likewise.
20541 (the_low_target): Add initializer for arch_setup field.
20542 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20543 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20544 (the_low_target): Add initializer for arch_setup field.
20545 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20546 (init_registers_powerpc_64): Likewise.
20547 (the_low_target): Add initializer for arch_setup field.
20548 * linux-s390-low.c (init_registers_s390): Add prototype.
20549 (init_registers_s390x): Likewise.
20550 (the_low_target): Add initializer for arch_setup field.
20551 * linux-sh-low.c (init_registers_sh): Add prototype.
20552 (the_low_target): Add initializer for arch_setup field.
20553 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20554 (the_low_target): Add initializer for arch_setup field.
20555 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20556 (the_low_target): Add initializer for arch_setup field.
20558 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20559 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20560 instead of init_registers ().
20561 * win32-arm-low.c (init_registers_arm): Add prototype.
20562 (the_low_target): Add initializer for arch_setup field.
20563 * win32-i386-low.c (init_registers_i386): Add prototype.
20564 (the_low_target): Add initializer for arch_setup field.
20566 * spu-low.c (init_registers_spu): Add prototype.
20567 (initialize_low): Call initialie_registers_spu () instead of
20568 initialize_registers ().
20570 2008-02-19 Pedro Alves <pedro@codesourcery.com>
20572 * server.c (handle_v_requests): When handling the vRun and vAttach
20573 packets, if already debugging a process, don't kill it. Return an
20576 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20578 * server.c (handle_query): Correct length check.
20580 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20582 * win32-low.c (do_initial_child_stuff): Add process handle
20583 parameter. Set current_process_handle and current_process_id from the
20584 parameters. Clear globals.
20585 (win32_create_inferior): Don't set current_process_handle and
20586 current_process_id here. Instead pass them on the call to
20587 do_initial_child_stuff.
20588 (win32_attach): Likewise.
20589 (win32_clear_inferiors): New.
20590 (win32_kill): Don't close the current process handle or the
20591 current thread handle here. Instead call win32_clear_inferiors.
20592 (win32_detach): Don't open a new handle to the process. Call
20593 win32_clear_inferiors.
20594 (win32_join): Don't rely on current_process_handle; open a new
20595 handle using the process id.
20596 (win32_wait): Call win32_clear_inferiors when the inferior process
20599 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20601 * server.c (monitor_show_help): Add "exit".
20603 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20605 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20606 (clean): Add reg-xtensa.c.
20607 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20608 * configure.srv (xtensa*-*-linux*) New target.
20609 * linux-xtensa-low.c: New.
20610 * xtensa-xtregs.c: New.
20612 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20614 * hostio.c: Don't include errno.h.
20615 (errno_to_fileio_errno): Move to hostio-errno.
20616 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20617 error number outputting to the target->hostio_last_error callback.
20618 (hostio_packet_error): Use FILEIO_EINVAL directly.
20619 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20620 calls to hostio_error.
20621 * hostio-errno.c: New.
20622 * server.h (hostio_last_error_from_errno): Declare.
20623 * target.h (target_ops): Add hostio_last_error member.
20624 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20625 as hostio_last_error handler.
20626 * spu-low.c (spu_target_ops): Likewise.
20627 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20628 (wince_hostio_last_error): New functions.
20629 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20630 as hostio_last_error handler.
20631 (win32_target_ops) [!_WIN32_WCE]: Register
20632 hostio_last_error_from_errno as hostio_last_error handler.
20633 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20634 (hostio-errno.o): New rule.
20635 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20636 * configure.srv (srv_hostio_err_objs): New variable. Default to
20638 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20639 * configure: Regenerate.
20641 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20643 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20644 (linux_kill, linux_detach): Clean up the process list.
20645 * remote-utils.c (remote_open): Improve port number parsing.
20646 (putpkt_binary, input_interrupt): Only send interrupts if the target
20648 * server.c (extended_protocol): Make static.
20649 (attached): Define earlier.
20650 (exit_requested, response_needed, program_argv): New variables.
20651 (target_running): New.
20652 (start_inferior): Clear attached here.
20653 (attach_inferior): Set attached here.
20654 (require_running): Define.
20655 (handle_query): Use require_running and target_running. Implement
20657 (handle_v_attach, handle_v_run): New.
20658 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20659 (gdbserver_usage): Update.
20660 (main): Redo argument parsing. Handle --debug and --multi. Handle
20661 --attach along with other options or after the port. Save
20662 program_argv. Support no initial program. Resynchronize
20663 communication with GDB after an error. Handle "monitor exit".
20664 Use require_running and target_running. Always allow the extended
20665 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20666 restart in extended mode.
20667 * README: Refer to the GDB manual. Update --attach usage.
20669 2007-12-20 Andreas Schwab <schwab@suse.de>
20671 * linux-low.c (STACK_SIZE): Define.
20672 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20673 (linux_test_for_tracefork): Likewise.
20675 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20677 * linux-low.c (linux_wait_for_event): Update messages. Do not
20678 reinsert auto-delete breakpoints.
20679 * mem-break.c (struct breakpoint): Change return type of handler to
20681 (set_breakpoint_at): Update handler type.
20682 (reinsert_breakpoint_handler): Return 1 instead of calling
20684 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20686 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20687 * mem-break.h (set_breakpoint_at): Update handler type.
20688 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20689 * win32-low.c (auto_delete_breakpoint): New.
20690 (get_child_debug_event): Use it.
20692 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20694 * configure.ac: Check for pread and pwrite.
20695 * hostio.c (handle_pread): Fall back to lseek and read.
20696 (handle_pwrite): Fall back to lseek and write.
20697 * config.in, configure: Regenerated.
20699 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20701 * server.c (myresume): Add own_buf argument.
20702 (main): Update calls.
20704 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20706 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20707 * remote-utils.c (remote_open): Do not call disable_async_io.
20708 (block_async_io): Delete.
20709 (unblock_async_io): Make static.
20710 (initialize_async_io): New.
20711 * server.c (handle_v_cont): Handle async I/O here.
20712 (myresume): Likewise. Move other common resume tasks here...
20713 (main): ... from here. Call initialize_async_io. Disable async
20714 I/O before the main loop.
20715 * server.h (initialize_async_io): Declare.
20716 (block_async_io, unblock_async_io): Delete prototypes.
20717 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20719 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20721 * remote-utils.c (readchar): Allow binary data in received messages.
20723 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20725 * win32-low.c (attaching): New global.
20726 (win32_create_inferior): Clear the `attaching' global.
20727 (win32_attach): Set the `attaching' global.
20728 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20729 attaching. Only set a breakpoint at the entry point if not
20732 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20734 * server.c (main): Don't report dll events on the initial
20735 connection on attaches.
20737 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20739 * server.c (main): Relax numerical bases supported for the pid of
20740 the --attach command line argument.
20742 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20744 * win32-low.c (win32_attach): Call OpenProcess before
20745 DebugActiveProcess, not after. Add last error output to error
20748 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20750 * win32-low.c (win32_get_thread_context)
20751 (win32_set_thread_context): New functions.
20752 (thread_rec): Use win32_get_thread_context.
20753 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20754 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20757 2007-12-03 Leo Zayas
20758 Pedro Alves <pedro_alves@portugalmail.pt>
20760 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20762 (child_add_thread): Minor cleanup.
20763 (child_continue): Resume artificially suspended threads before
20764 calling ContinueDebugEvent.
20765 (suspend_one_thread): New.
20766 (fake_breakpoint_event): New.
20767 (get_child_debug_event): Change return type to int. Check here if
20768 gdb sent an interrupt request. If a soft interrupt was requested,
20769 fake a breakpoint event. Return 0 if there is no event to handle,
20771 (win32_wait): Don't check here if gdb sent an interrupt request.
20772 Ensure there is a valid event to handle.
20773 (win32_request_interrupt): Add soft interruption method as last
20776 2007-12-03 Leo Zayas
20777 Pedro Alves <pedro_alves@portugalmail.pt>
20779 * win32-low.h (win32_thread_info): Add descriptions to the
20780 structure members. Replace `suspend_count' counter by a
20782 * win32-low.c (thread_rec): Update condition of when to get the
20783 context from the inferior. Rely on ContextFlags being set if it
20784 has already been retrieved. Only suspend the inferior thread if
20785 we haven't already. Warn if that fails.
20786 (continue_one_thread): s/suspend_count/suspended/. Only call
20787 ResumeThread once. Warn if that fails.
20789 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20791 * win32-low.c (win32_wait): Don't read from the inferior when it
20792 has already exited.
20794 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20796 * Makefile.in (win32_low_h): New variable.
20797 (win32-low.o): Add dependency on $(win32_low_h).
20798 (win32-arm-low.o, win32-i386-low.o): New rules.
20800 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20802 * hostio.c: Correct copyright year.
20804 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20806 * Makefile.in (OBS): Add hostio.o.
20807 (hostio.o): New rule.
20808 * server.h (handle_vFile): Declare.
20809 * hostio.c: New file.
20810 * server.c (handle_v_requests): Take packet_len and new_packet_len
20811 for binary packets. Call handle_vFile.
20812 (main): Update call to handle_v_requests.
20814 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20816 * linux-low.c: Include <sched.h>.
20818 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20820 * linux-low.c (linux_tracefork_grandchild): New.
20821 (linux_tracefork_child): Use clone.
20822 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20824 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20826 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20828 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20830 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20832 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20834 * inferiors.c (change_inferior_id): Delete.
20835 (add_pid_to_list, pull_pid_from_list): New.
20836 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20837 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20838 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20839 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20840 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20841 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20842 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20843 (using_threads): Always set to 1.
20844 (handle_extended_wait): New.
20845 (add_process): Do not set TID.
20846 (linux_create_inferior): Set must_set_ptrace_flags.
20847 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20848 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20849 (linux_thread_alive): Rename TID argument to LWPID.
20850 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20851 (linux_wait_for_event): Do not use TID or check using_threads. Update
20852 call to dead_thread_notify. Call handle_extended_wait.
20853 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20854 (send_sigstop): Delete sigstop_sent.
20855 (wait_for_sigstop): Avoid TID.
20856 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20857 (linux_test_for_tracefork): New.
20858 (linux_lookup_signals): Use thread_db_active and
20859 linux_supports_tracefork_flag.
20860 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20861 * linux-low.h (get_process_thread): Avoid TID.
20862 (struct process_ifo): Move thread_known and tid to the end. Remove
20864 (linux_attach_lwp, thread_db_init): Update prototypes.
20865 * server.h (change_inferior_id): Delete prototype.
20866 (add_pid_to_list, pull_pid_from_list): New prototypes.
20867 * thread-db.c (thread_db_use_events): New.
20868 (find_first_thread): Rename to...
20869 (find_one_thread): ...this. Update callers and messages. Do not
20870 call fatal. Check thread_db_use_events. Do not call
20871 change_inferior_id or new_thread_notify.
20872 (maybe_attach_thread): Update. Do not call new_thread_notify.
20873 (thread_db_init): Set thread_db_use_events. Check use_events.
20874 * utils.c (fatal, warning): Correct message prefix.
20876 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20878 * Makefile.in (clean): Remove new files.
20879 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20880 (powerpc-64.o, powerpc-64.c): New rules.
20881 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20882 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20884 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20886 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20887 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20888 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20889 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20890 (target_regsets): Add AltiVec and SPE register sets.
20891 * configure.ac: Check for AltiVec and SPE.
20892 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20893 (ppc_fill_vrregset, ppc_store_vrregset): New.
20894 (target_regsets): Add AltiVec register set.
20895 * configure: Regenerated.
20897 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20899 * linux-low.c (O_LARGEFILE): Define.
20900 (linux_read_memory): Use /proc/PID/mem.
20901 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20902 * configure, config.in: Regenerated.
20904 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20906 * linux-low.c (linux_wait_for_event): Do not pass signals while
20909 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20911 * win32-low.c (create_process): New.
20912 (win32_create_inferior): Use create_process instead of
20913 CreateProcess. If create_process failed retry appending an ".exe"
20914 suffix. Store the GetLastError result immediatelly after
20915 create_process calls and use it on the call to error.
20917 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20919 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20921 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20923 * configure.ac: Switch license to GPLv3.
20925 2007-08-01 Michael Snyder <msnyder@access-company.com>
20927 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20929 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20931 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20933 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20934 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20935 CloseToolhelp32Snapshot.
20936 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20937 CloseToolhelp32Snapshot.
20939 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20941 * server.c (main): Check for inferior exit before main loop.
20943 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20945 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20946 instead of on tmp_desc.
20948 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20949 Daniel Jacobowitz <dan@codesourcery.com>
20951 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20952 (add_thread): Minor cleanups.
20953 (clear_inferiors): Move lower in the file. Clear the DLL
20955 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20956 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20957 (xml_escape_text): New.
20958 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20960 (handle_v_cont): Report errors.
20961 (gdbserver_version): Update.
20962 (main): Correct size of own_buf. Do not report initial DLL events.
20963 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20964 (unloaded_dll, xml_escape_text): New.
20965 * win32-low.c (enum target_waitkind): Update comments.
20966 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20967 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20968 (win32_EnumProcessModules, win32_GetModuleInformation)
20969 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20970 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20971 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20972 (win32_Module32First, win32_Module32Next, load_toolhelp)
20973 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20974 (get_child_debug_event): Handle DLL events.
20975 (win32_wait): Likewise.
20977 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20979 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20980 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20982 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20984 * win32-low.c (handle_output_debug_string): Ignore event if not
20987 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20989 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20991 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20993 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20995 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20997 * inferiors.c (change_inferior_id): Add comment.
20998 * linux-low.c (check_removed_breakpoint): Add an early
20999 prototype. Improve debug output.
21000 (linux_attach): Doc update.
21001 (linux_detach_one_process, linux_detach): Clean up before releasing
21003 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
21004 * linux-low.h (struct process_info): Doc improvement.
21005 * mem-break.c (delete_all_breakpoints): New.
21006 * mem-break.h (delete_all_breakpoints): New prototype.
21007 * thread-db.c (find_first_thread): New.
21008 (thread_db_create_event): Call it instead of
21009 thread_db_find_new_threads. Clean up unused variables.
21010 (maybe_attach_thread): Remove first thread handling.
21011 (thread_db_find_new_threads): Use find_first_thread.
21012 (thread_db_get_tls_address): Likewise.
21014 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
21016 * thread-db.c (thread_db_find_new_threads): Add prototype.
21017 (thread_db_create_event): Check for the main thread before adding
21019 (maybe_attach_thread): Only enable event reporting if TID == 0.
21020 (thread_db_get_tls_address): Check for new threads.
21022 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
21024 * linux-low.c (linux_create_inferior): Try execv before execvp.
21025 * spu-low.c (spu_create_inferior): Likewise.
21027 2007-06-13 Mike Frysinger <vapier@gentoo.org>
21029 * linux-low.c (linux_create_inferior): Change execv to execvp.
21030 * spu-low.c (spu_create_inferior): Likewies.
21032 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
21034 * Makefile.in (clean): Clean new files instead of deleted ones.
21035 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
21036 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
21038 * configure.srv: Specify XML files and new regformats for MIPS and
21040 * linux-mips-low.c (mips_num_regs): Set to only used registers.
21041 (mips_regmap): Do not fetch $0. Remove unused registers. Add
21042 an entry for the restart register.
21043 (mips_cannot_fetch_register, mips_cannot_store_register)
21044 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
21045 register names to match the XML descriptions.
21046 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
21047 restart register instead of $0.
21049 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21050 Markus Deuling <deuling@de.ibm.com>
21052 * remote-utils.c (decode_xfer_write): New function.
21053 * server.h (decode_xfer_write): Add prototype.
21054 * server.c (handle_query): Add PACKET_LEN argument. Support
21055 qXfer:spu:read and qXfer:spu:write packets.
21056 (main): Pass packet_len to handle_query.
21057 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
21058 * target.h (target_ops): Add qxfer_spu.
21060 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21062 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
21063 accessing non-seekable spufs files.
21065 2007-05-16 Markus Deuling <deuling@de.ibm.com>
21067 * server.c (handle_query): Add reply for qC packet.
21069 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21070 Leo Zayas <lerele@champenstudios@com>
21072 * server.h (check_remote_input_interrupt_request): New function.
21073 * remote_utils.c (INVALID_DESCRIPTOR): New define.
21074 (remote_desc): Initialize with INVALID_DESCRIPTOR.
21075 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
21076 (check_remote_input_interrupt_request): New function.
21077 * server.h (check_remote_input_interrupt_request): Declare.
21078 * win32-low.c (winapi_DebugBreakProcess,
21079 winapi_GenerateConsoleCtrlEvent): New typedefs.
21080 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
21082 (win32_wait): Check for remote interrupt request
21083 with check_remote_input_interrupt_request.
21084 (win32_request_interrupt): New function.
21085 (win32_target_op): Set request_interrupt to win32_request_interrupt.
21087 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21089 * win32-low.c (debug_registers_changed,
21090 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
21091 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
21092 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
21093 (thread_rec): Get context using the low target.
21094 (child_add_thread): Call thread_added on the low target,
21095 which does the same thing.
21097 (do_initial_child_stuff): Remove debug registers references.
21098 Set context using the low target. Resume threads after
21099 setting the contexts.
21100 (child_continue): Remove dead variable. Remove debug
21101 registers references.
21102 (child_fetch_inferior_registers): Go through the low target.
21103 (do_child_store_inferior_registers): Remove.
21104 (child_store_inferior_registers): Go through the low target.
21105 (win32_resume): Remove debug registers references.
21106 Set context using the low target.
21107 (handle_exception): Change return type to void. Don't record
21108 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
21109 first chance exception.
21110 (get_child_debug_event): Change return type to void. Remove
21111 goto loop. Always return after waiting for debug event.
21112 (win32_wait): Convert to switch statement. Handle spurious
21115 * win32-i386-low.c (debug_registers_changed,
21116 debug_registers_used): New.
21117 (initial_stuff): Rename to ...
21118 (i386_initial_stuff): ... this. Clear debug registers
21120 (store_debug_registers): Delete.
21121 (i386_get_thread_context): New.
21122 (load_debug_registers): Delete.
21123 (i386_set_thread_context): New.
21124 (i386_thread_added): New.
21125 (single_step): Rename to ...
21126 (i386_single_step): ... this.
21127 (do_fetch_inferior_registers): Rename to ...
21128 (i386_fetch_inferior_register): ... this.
21129 (i386_store_inferior_register): New.
21130 (the_low_target): Adapt to new interface.
21132 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
21133 (arm_get_thread_context): New.
21134 (arm_set_thread_context): New.
21136 (do_fetch_inferior_registers): Rename to ...
21137 (arm_fetch_inferior_register): ... this.
21138 (arm_store_inferior_register): New.
21139 (arm_wince_breakpoint): Reimplement as unsigned long.
21140 (arm_wince_breakpoint_len): Define.
21141 (the_low_target): Adapt to new interface.
21143 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
21144 load_debug_registers. Add get_thread_context, set_thread_context,
21145 thread_added and store_inferior_register. Rename
21146 fetch_inferior_registers to fetch_inferior_register.
21147 (regptr): Remove declaration.
21149 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21151 * linux-low.c (linux_detach): Change return type to int. Return 0.
21152 * spu-low.c (spu_detach): Likewise.
21154 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21156 * target.h (target_ops): Change return type of detach to int.
21158 (join_inferior): New.
21159 * server.c (main): Don't skip detach support on mingw32.
21160 If the inferior doesn't support detaching return error.
21161 Call join_inferior instead of using waitpid.
21162 * linux-low.c (linux_join): New.
21163 (linux_target_op): Add linux_join.
21164 * spu-low.c (spu_join): New.
21165 (spu_target_ops): Add spu_join.
21166 * win32-low.c (win32_detach): Adapt to new interface.
21167 Reopen current_process_handle before detaching. Issue a child
21168 resume before detaching.
21170 (win32_target_op): Add win32_join.
21172 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21174 * win32-low.c (win32-attach): Fix return value.
21175 * target.h (target_ops): Describe ATTACH return values.
21177 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21179 * win32-low.c (GETPROCADDRESS): Define.
21180 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
21181 (winapi_DebugSetProcessKillOnExit): Likewise.
21182 (win32_create_inferior): Force usage of ansi CreateProcessA.
21183 (win32_attach): Use GETPROCADDRESS.
21184 (win32_detach): Likewise.
21186 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21188 * win32-low.c (win32_wait): Don't use WSTOPSIG.
21190 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
21192 * win32-low.c: Commit leftover changes from 2007-03-29.
21194 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21196 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
21197 fields short instead of int. Add explicit padding.
21198 (i387_cache_to_fsave): Remove unnecessary casts.
21199 (i387_fsave_to_cache): Doc fix.
21200 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
21202 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21204 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
21205 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
21207 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21209 * configure.srv (arm*-*-mingw32ce*): Move near the other
21212 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21214 * configure.ac: Add errno checking.
21215 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
21216 sys/file.h and malloc.h.
21217 (AC_CHECK_DECLS): Add perror.
21218 (srv_mingwce): Handle.
21219 * configure.srv (i[34567]86-*-cygwin*): Add
21220 win32-i386-low.o to srv_tgtobj.
21221 (i[34567]86-*-mingw*): Likewise.
21222 (arm*-*-mingw32ce*): Add case.
21223 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21224 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
21225 [__MINGW32CE__] (strerror): New function.
21226 [__MINGW32CE__] (errno): Define to GetLastError.
21227 [__MINGW32CE__] (COUNTOF): New macro.
21228 (remote_open): Remove extra close call.
21229 * mem-break.c (delete_breakpoint_at): New function.
21230 * mem-break.h (delete_breakpoint_at): Declare.
21231 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21232 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
21233 [USE_WIN32API] (read, write): Add char* casts.
21234 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
21235 * server.h: Include wincecompat.h on Windows CE.
21236 [HAVE_ERRNO_H]: Check.
21237 (perror): Declare if not declared.
21238 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
21239 (perror_with_name): Remove errno declaration.
21240 * wincecompat.h: New.
21241 * wincecompat.c: New.
21242 * win32-low.h: New.
21243 * win32-arm-low.c: New.
21244 * win32-i386-low.c: New.
21245 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
21246 (OUTMSG2): Make it safe.
21248 (COUNTOF): New macro.
21249 (NUM_REGS): Get it from the low target.
21250 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
21251 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
21252 (thread_rec): Let low target handle debug registers.
21253 (child_add_thread): Likewise.
21254 (child_init_thread_list): Likewise.
21255 (continue_one_thread): Likewise.
21257 (do_child_fetch_inferior_registers): Move to ...
21258 * win32-i386-low.c: ... here, and rename to ...
21259 (do_fetch_inferior_registers): ... this.
21260 * win32-low.c (child_fetch_inferior_registers):
21261 Go through the low target.
21262 (do_child_store_inferior_registers): Use regptr.
21263 (strwinerror): New function.
21264 (win32_create_inferior): Handle Windows CE.
21265 Use strwinerror instead of strerror on Windows error
21266 codes. Add program to the error output.
21267 Don't close the main thread handle on Windows CE.
21268 (win32_attach): Use coredll.dll on Windows CE.
21269 (win32_kill): Close current process and current
21271 (win32_detach): Use coredll.dll on Windows CE.
21272 (win32_resume): Let low target handle debug registers, and
21274 (handle_exception): Add/Remove initial breakpoint. Avoid
21275 non-existant WSTOPSIG on Windows CE.
21276 (win32_read_inferior_memory): Cast to remove warning.
21277 (win32_arch_string): Go through the low target.
21278 (initialize_low): Call set_breakpoint_data with the low
21279 target's breakpoint.
21280 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21281 FOP_REGNUM, mappings): Move to ...
21282 * win32-i386-low.c: ... here.
21283 * win32-low.c (win32_thread_info): Move to ...
21284 * win32-low.h: ... here.
21285 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21286 win32-arm-low.c and wincecompat.c.
21287 (all:): Add $EXEEXT.
21288 (install-only:): Likewise.
21289 (gdbserver:): Likewise.
21290 (gdbreplay:): Likewise.
21291 * config.in: Regenerate.
21292 * configure: Regenerate.
21294 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21296 * win32-low.c: Rename typedef thread_info to
21297 win32_thread_info throughout.
21299 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21301 * win32-i386-low.c: Rename to ...
21302 * win32-low.c: ... this.
21303 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21304 * Makefile.in: Likewise.
21306 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21308 * remote-utils.c (monitor_output): Constify msg parameter.
21309 * server.h (monitor_output): Likewise.
21310 * win32-i386-low.c (handle_output_debug_string): New.
21311 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21312 handle_output_debug_string.
21313 (get_child_debug_event): Likewise.
21315 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21317 * server.c (main): Correct strtoul check.
21319 2007-03-27 Jon Ringle <jon@ringle.org>
21321 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21323 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21325 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21327 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21329 * terminal.h: Check HAVE_SGTTY_H.
21331 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
21333 * remote-utils.c (remote_open): Print out the assigned port number.
21335 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21337 * remote-utils.c (monitor_output): New function.
21338 * server.c (debug_threads): Define here.
21339 (monitor_show_help): New function.
21340 (handle_query): Handle qRcmd.
21341 (main): Do not handle 'd' packet.
21342 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21343 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21346 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21348 * Makefile.in (EXEEXT): New.
21349 (clean): Use $(EXEEXT).
21351 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21353 * target.h (target_ops): Rename send_signal to request_interrupt,
21354 and remove enum target_signal parameter.
21355 * linux-low.c (linux_request_interrupt): Rename from
21356 linux_send_signal, and always send SIGINT.
21357 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21358 and always send SIGINT.
21359 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21361 (input_interrupt): Likewise.
21363 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21365 * server.c (get_features_xml): Check if target implemented
21367 * win32-i386-low.c (win32_arch_string): New.
21368 (win32_target_ops): Add win32_arch_string as arch_string member.
21370 2007-02-22 Markus Deuling <deuling@de.ibm.com>
21372 * spu-low.c (spu_arch_string): New.
21373 (spu_target_ops): Add spu_arch_string.
21375 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21377 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21378 * configure.ac: Do not check for terminal.h.
21379 * configure, config.in: Regenerated.
21381 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21383 * Makefile.in (OBS): Add $(XML_BUILTIN).
21384 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21386 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21387 (arm-with-iwmmxt.c): New.
21388 * config.in, configure: Regenerate.
21389 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21390 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21391 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21392 (arm*-*-linux*): Add iWMMXt and regset support.
21393 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21394 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21395 (arm_store_wmmxregset, target_regsets): New.
21396 * server.c (get_features_xml): Take annex argument. Check builtin
21398 (handle_query): Handle multiple annexes.
21400 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21402 * remote-utils.c [USE_WIN32API] (read, write): Define.
21403 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21406 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21408 * linux-i386-low.c (the_low_target): Set arch_string.
21409 * linux-x86-64-low.c (the_low_target): Likewise.
21410 * linux-low.c (linux_arch_string): New.
21411 (linux_target_ops): Add it.
21412 * linux-low.h (struct linux_target_ops): Add arch_string.
21413 * server.c (write_qxfer_response): Use const void * for DATA.
21414 (get_features_xml): New.
21415 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21416 * target.h (struct target_ops): Add arch_string method.
21418 2007-01-03 Denis Pilat <denis.pilat@st.com>
21419 Daniel Jacobowitz <dan@codesourcery.com>
21421 * linux-low.c (linux_kill): Handle being called with no threads.
21422 * win32-i386-low.c (win32_kill): Likewise.
21423 (get_child_debug_event): Clear current_process_handle.
21425 2006-12-30 Denis PILAT <denis.pilat@st.com>
21426 Daniel Jacobowitz <dan@codesourcery.com>
21428 * remote-utils.c (remote_open): Check the type of specified
21429 serial port devices before opening them.
21430 * server.c (main): Kill the inferior if an error occurs during
21431 the first remote_open.
21433 2006-12-05 Markus Deuling <deuling@de.ibm.com>
21435 * README: Update supported targets.
21437 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21439 * Makefile.in (clean): Remove reg-mips64.c.
21440 (reg-mips64.c, reg-mips64.o): New rules.
21441 * configure.srv: Handle mips64. Include regset support for mips.
21442 * linux-mips-low.c (union mips_register): New.
21443 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21444 (mips_breakpoint, mips_breakpoint_at): Use int.
21445 (mips_collect_register, mips_supply_register)
21446 (mips_collect_register_32bit, mips_supply_register_32bit)
21447 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21448 (mips_store_fpregset, target_regsets): New.
21449 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21451 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21453 * configure.srv: Add target "spu*-*-*".
21454 * Makefile.in (clean): Remove reg-spu.c.
21455 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21456 * spu-low.c: New file.
21458 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21460 * configure.ac: Correct td_thr_tls_get_addr test.
21461 * configure: Regenerated.
21463 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21465 * linux-low.c (linux_wait_for_event): Reformat. Use the
21466 pass_signals array.
21467 * remote-utils.c (decode_address_to_semicolon): New.
21468 * server.c (pass_signals, handle_general_set): New.
21469 (handle_query): Mention QPassSignals for qSupported.
21470 (main): Call handle_general_set.
21471 * server.h (pass_signals, decode_address_to_semicolon): New.
21473 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21475 * server.c (handle_query): Correct error handling for read_auxv.
21477 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21479 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21480 and srv_linux_thread_db to yes.
21481 * linux-s390-low.c (s390_fill_gregset): New function.
21482 (target_regsets): Define data structure.
21484 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21486 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21487 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21488 * config.in, configure: Regenerated.
21489 * inferiors.c (gdb_id_to_thread): New function.
21490 (gdb_id_to_thread_id): Use it.
21491 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21492 * linux-low.h (struct process_info): Add th member.
21493 (thread_db_get_tls_address): New prototype.
21494 * remote-utils.c (decode_address): Make non-static.
21495 * server.c (handle_query): Handle qGetTLSAddr.
21496 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21497 * target.h (struct target_ops): Add get_tls_address.
21498 * thread-db.c (maybe_attach_thread): Save the thread handle.
21499 (thread_db_get_tls_address): New.
21501 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21503 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21504 (linux_resume_one_process): Take a siginfo_t *. Update all
21505 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21506 (struct pending_signals): Add a siginfo_t.
21507 (linux_wait_for_process): Always set last_status.
21508 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21509 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21510 * linux-low.h (struct process_info): Add last_status.
21512 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21514 * remote-utils.c (try_rle): New function.
21515 (putpkt_binary): Use it.
21517 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21519 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21520 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21521 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21522 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21523 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21526 2006-08-08 Richard Sandiford <richard@codesourcery.com>
21528 * server.c (terminal_fd): New variable.
21529 (old_foreground_pgrp): Likewise.
21530 (restore_old_foreground_pgrp): New function.
21531 (start_inferior): Record the terminal file descriptor in terminal_fd
21532 and its original foreground group in old_foreground_pgrp. Register
21533 restore_old_foreground_pgrp with atexit().
21535 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21537 * server.c (handle_query): Correct qPart to qXfer.
21539 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21541 * configure.ac: Check for more headers which are missing on
21542 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21543 * configure.srv: Add Cygwin and mingw32.
21544 * remote-utils.c: Don't include headers unconditionally which
21545 are missing on mingw32. Include <winsock.h> for mingw32.
21546 (remote_open): Adjust for mingw32 support. Flush
21547 standard error after writing to it.
21548 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21549 (unblock_async_io, enable_async_io, disable_async_io)
21550 (readchar, getpkt): Update for Winsock support.
21551 (prepare_resume_reply): Expect a protocol signal number.
21552 * server.c: Disable <sys/wait.h> on mingw32.
21553 (start_inferior): Adjust for mingw32 support. Flush
21554 standard error after writing to it.
21555 (attach_inferior): Likewise. Use protocol signal
21557 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21559 * win32-i386-low.c: New file.
21560 * Makefile.in (XM_CLIBS): Set.
21561 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21562 (win32-i386-low.o): New dependency rule.
21563 * linux-low.c (linux_wait): Use target signal numbers.
21564 * target.h (struct target_ops): Doc fix.
21565 * server.h (target_signal_to_name): New prototype.
21566 * gdbreplay.c: Don't include headers unconditionally which
21567 are missing on mingw32. Include <winsock.h> for mingw32.
21568 (remote_close, remote_open): Adjust for Winsock support.
21569 * configure, config.in: Regenerated.
21571 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21573 * server.c (decode_xfer_read, write_qxfer_response): New.
21574 (handle_query): Take a packet length argument. Handle
21575 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21576 the qSupported response.
21577 (main): Update call to handle_query.
21579 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21581 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21582 (putpkt_binary): Renamed from putpkt and adjusted for binary
21584 (putpkt): New wrapper for putpkt_binary.
21585 (readchar): Don't mask off the high bit.
21586 (decode_X_packet): New function.
21587 * server.c (main): Call putpkt_binary if a handler sets the packet
21588 length. Save the length of the incoming packet. Handle 'X'.
21589 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21591 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21593 * server.c (handle_query): Handle qSupported.
21595 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21597 * remote-utils.c (all_symbols_looked_up): New variable.
21598 (look_up_one_symbol): Check it.
21599 * server.h (look_up_one_symbol): New declaration.
21600 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21602 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21604 * Makefile.in (linux-arm-low.o): Update dependencies.
21605 * linux-arm-low.c: Include "gdb_proc_service.h".
21606 (PTRACE_GET_THREAD_AREA): Define.
21607 (ps_get_thread_area): New function.
21609 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21611 * configure.srv (m68k*-*-uclinux*): New target.
21612 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21613 (linux_resume_one_process): Remove extraneous cast.
21614 (linux_read_offsets): New.
21615 (linux_target_op): Add linux_read_offsets on mmuless systems.
21616 * server.c (handle_query): Add qOffsets logic.
21617 * target.h (struct target_ops): Add read_offsets.
21619 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21621 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21622 (PTRACE_GET_THREAD_AREA): Define.
21623 (ps_get_thread_area): New function.
21624 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21625 (linux-x86-64-low.o): Update.
21627 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21629 * configure.ac: Remove checks for prfpregset_t.
21630 * gdb_proc_service.h: New file.
21631 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21632 new "gdb_proc_service.h".
21633 * proc-service.c: Likewise.
21634 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21635 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21636 * Makefile.in (gdb_proc_service_h): Updated.
21637 * configure, config.in: Regenerated.
21639 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21641 * remote-utils.c (prepare_resume_reply): Move declaration
21642 of gdb_id_from_wait to the top of the block.
21644 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21646 * linux-low.c (regsets_store_inferior_registers): Read the regset
21647 from the target before filling it.
21649 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21651 * server.c (attach_inferior): Return SIGTRAP for a successful
21654 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21656 * Makefile.in (OBS): Add version.o.
21657 (STAGESTUFF): Delete.
21658 (version.o): Add dependencies.
21659 (version.c): Replace rule.
21660 (clean): Remove version.c.
21661 * server.c (gdbserver_version): New.
21662 (gdbserver_usage): Use printf.
21663 (main): Handle --version and --help.
21664 * server.h (version, host_name): Add declarations.
21666 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21678 * linux-x86-64-low.c:
21680 * linux-s390-low.c:
21681 * linux-ppc64-low.c:
21683 * linux-mips-low.c:
21684 * linux-m68k-low.c:
21685 * linux-m32r-low.c:
21688 * linux-ia64-low.c:
21689 * linux-i386-low.c:
21690 * linux-crisv32-low.c:
21702 * gdbserver.1: Add (C) after Copyright. Update the FSF
21705 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21707 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21708 (arm_breakpoint_at): Recognize both breakpoints.
21709 (the_low_target): Use the correct breakpoint instruction.
21711 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21713 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21714 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21715 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21716 (the_low_target): Update.
21718 2005-10-25 Andreas Schwab <schwab@suse.de>
21720 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21722 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21723 (ia64_num_regs): Reduce to 462.
21725 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21727 * acinclude.m4: Correct quoting.
21728 * aclocal.m4: Regenerated.
21730 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21731 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21732 (thread_db_init): Call thread_db_err_str.
21733 * configure.ac: Check for TD_VERSION.
21734 * config.in, configure: Regenerated.
21736 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21738 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21740 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21742 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21743 is not available. Define HAVE_PTRACE_GETREGS if it is.
21744 * config.in, configure: Regenerated.
21745 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21746 * linux-i386-low.c, linux-m68k-low.c: Update to use
21747 HAVE_PTRACE_GETREGS.
21748 * linux-low.c (regsets_fetch_inferior_registers)
21749 (regsets_store_inferior_registers): Only return 0 if we processed
21751 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21752 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21754 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21756 * inferiors.c (struct thread_info): Add gdb_id.
21757 (add_thread): Add gdb_id argument.
21758 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21759 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21760 calls to add_thread.
21761 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21762 * server.c (handle_query): Use thread_to_gdb_id.
21763 (handle_v_cont, main): Use gdb_id_to_thread_id.
21764 * server.h (add_thread): Update prototype.
21765 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21768 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21770 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21771 left-padded registers.
21772 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21773 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21775 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21777 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21778 * configure: Regenerate.
21779 * config.in: Regenerate.
21780 * server.h (NEED_DECLARATION_STRERROR):
21781 Replace with !HAVE_DECL_STRERROR.
21783 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21785 * linux-low.c (linux_wait, linux_send_signal): Don't test
21786 an unsigned long variable for > 0 if it could be MAX_ULONG.
21787 * server.c (myresume): Likewise.
21788 * target.c (set_desired_inferior): Likewise.
21790 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21792 * configure.ac: Simplify and improve check for socklen_t.
21793 * configure, config.in: Regenerate.
21795 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21797 * acconfig.h: Remove.
21798 * configure.ac: Add a test for socklen_t. Use three-argument
21799 AC_DEFINE throughout.
21800 * config.in: Regenerated using autoheader 2.59.
21801 * configure: Regenerated.
21803 * gdbreplay.c (socklen_t): Provide a default.
21804 (remote_open): Use socklen_t.
21805 * remote-utils.c (socklen_t): Provide a default.
21806 (remote_open): Use socklen_t.
21807 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21810 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21812 * linux-low.c (linux_read_memory, linux_write_memory)
21813 (linux_read_auxv): Likewise.
21814 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21815 (check_mem_write): Likewise.
21816 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21818 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21819 (registers_from_string, register_data): Likewise.
21820 * server.c (handle_query, main): Likewise.
21821 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21822 (decode_M_packet): Likewise.
21823 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21824 * target.h (struct target_ops): Update read_memory, write_memory,
21826 (read_inferior_memory, write_inferior_memory): Update.
21827 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21828 to unsigned char *.
21829 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21830 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21831 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21832 linux-s390-low.c, linux-sh-low.c: Update for changes in
21833 read_inferior_memory and the_low_target->breakpoint.
21835 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21837 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21838 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21839 * configure.srv: Add powerpc64-*-linux*.
21840 * linux-ppc64-low.c: New file.
21842 2005-05-23 Orjan Friberg <orjanf@axis.com>
21844 * linux-cris-low.c: New file with support for CRIS.
21845 * linux-crisv32-low.c: Ditto for CRISv32.
21846 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21847 (clean): Add reg-cris.c and reg-crisv32.c.
21848 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21849 reg-crisv32.o, and reg-crisv32.c to make rules.
21850 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21851 recognized targets.
21853 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21855 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21856 of sizeof (PTRACE_XFER_TYPE).
21857 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21859 2005-05-12 Orjan Friberg <orjanf@axis.com>
21861 * target.h (struct target_ops): Add insert_watchpoint,
21862 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21863 pointers for hardware watchpoint support.
21864 * linux-low.h (struct linux_target_ops): Ditto.
21865 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21866 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21867 to linux_target_ops.
21868 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21870 * server.c (main): Recognize 'Z' and 'z' packets.
21872 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21874 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21875 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21876 (the_low_target): Add new members.
21878 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21880 * proc-service.c (ps_lgetregs): Search all_processes instead of
21883 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21885 * server.c (start_inferior): Change return type to int.
21886 (attach_inferior): Change sigptr to int *.
21887 (handle_v_cont, handle_v_requests): Change signal to int *.
21888 (main): Change signal to int.
21890 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21892 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21893 * configure.srv: Add m32r*-*-linux*.
21894 * linux-m32r-low.c: New file.
21896 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21898 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21900 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21902 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21903 Take unsigned long arguments for PIDs.
21904 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21905 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21906 (wait_for_sigstop, linux_resume_one_process)
21907 (regsets_fetch_inferior_registers, linux_send_signal)
21908 (linux_read_auxv): Likewise. Update the types of variables holding
21909 PIDs. Update format string specifiers.
21910 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21911 * remote-utils.c (prepare_resume_reply): Likewise.
21912 * server.c (cont_thread, general_thread, step_thread)
21913 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21915 (handle_query): Update format specifiers.
21916 (handle_v_cont, main): Use strtoul for thread IDs.
21917 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21918 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21919 (general_thread, step_thread, thread_from_wait)
21920 (old_thread_from_wait): Update.
21921 * target.h (struct thread_resume): Use unsigned long for THREAD.
21922 (struct target_ops): Use unsigned long for arguments to attach and
21925 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21927 * acinclude.m4: Include bfd/bfd.m4 directly.
21928 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21929 <agriffis@toolchain.org>.
21930 * aclocal.m4, configure: Regenerated.
21932 2005-01-07 Andrew Cagney <cagney@gnu.org>
21934 * configure.ac: Rename configure.in, require autoconf 2.59.
21935 * configure: Re-generate.
21937 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21939 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21940 LIBS when finished.
21941 * aclocal.m4: Regenerated.
21942 * configure: Regenerated.
21944 2004-11-21 Andreas Schwab <schwab@suse.de>
21946 * linux-m68k-low.c (m68k_num_gregs): Define.
21947 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21948 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21949 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21950 (m68k_breakpoint_at): New. Add to the_low_target.
21952 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21953 srv_linux_thread_db to yes.
21955 2004-10-20 Joel Brobecker <brobecker@gnat.com>
21957 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21958 (ARCH_SET_FS): Likewise.
21959 (ARCH_GET_FS): Likewise.
21960 (ARCH_GET_GS): Likewise.
21962 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21964 * linux-i386-low.c (ps_get_thread_area): New.
21965 * linux-x86-64-low.c (ps_get_thread_area): New.
21966 * linux-low.c: Include <sys/syscall.h>.
21967 (linux_kill_one_process): Don't kill the first thread here.
21968 (linux_kill): Kill the first thread here.
21969 (kill_lwp): New function.
21970 (send_sigstop, linux_send_signal): Use it.
21971 * proc-service.c: Clean up #ifdefs.
21972 (fpregset_info): Delete.
21973 (ps_lgetregs): Update and enable implementation.
21974 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21976 * remote-utils.c (struct sym_cache, symbol_cache): New.
21977 (input_interrupt): Print a clearer message.
21978 (async_io_enabled): New variable.
21979 (enable_async_io, disable_async_io): Use it. Update comments.
21980 (look_up_one_symbol): Use the symbol cache.
21981 * thread-db.c (thread_db_look_up_symbols): New function.
21982 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21984 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21986 * configure.in: Test for -rdynamic.
21987 * configure: Regenerated.
21988 * Makefile (INTERNAL_LDFLAGS): New.
21989 (gdbserver, gdbreplay): Use it.
21991 2004-09-02 Andrew Cagney <cagney@gnu.org>
21993 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21995 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21997 * linux-low.c (linux_wait): Clear all_processes list also.
21999 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
22001 * linux-low.c: Include <errno.h>. Remove extern declaration of
22004 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
22006 * gdbreplay.c, server.h, utils.c: Update copyright years.
22008 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22010 * server.c (main): Print child status or termination signal from
22011 variable 'signal', not 'sig'.
22013 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22015 * linux-low.c (linux_read_memory): Change return type to
22016 int. Check for and return error from ptrace().
22017 * target.c (read_inferior_memory): Change return type to int. Pass
22018 back return status from the_target->read_memory().
22019 * target.h (struct target_ops): Adapt *read_memory() prototype.
22021 (read_inferior_memory): Adapt prototype.
22022 * server.c (main): Return an error packet if
22023 read_inferior_memory() returns an error.
22025 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
22027 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
22028 Unify with other clean targets.
22030 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22032 * server.c (handle_v_cont): Call set_desired_inferior.
22034 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22036 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
22038 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22040 * linux-low.c (linux_wait): Unblock async I/O.
22041 (linux_resume): Block and enable async I/O.
22042 * remote-utils.c (block_async_io, unblock_async_io): New functions.
22043 * server.h (block_async_io, unblock_async_io): Add prototypes.
22045 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22047 * remote-utils.c (remote_open): Print a status notice after
22048 opening a TCP port.
22049 * server.c (attach_inferior): Print a status notice after
22052 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22054 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
22056 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
22058 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
22060 * server.c, target.h: Update copyright years.
22062 2004-02-25 Roland McGrath <roland@redhat.com>
22064 * target.h (struct target_ops): New member `read_auxv'.
22065 * server.c (handle_query): Handle qPart:auxv:read: query using that.
22066 * linux-low.c (linux_read_auxv): New function.
22067 (linux_target_ops): Initialize `read_auxv' member to that.
22069 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22071 Committed by Jim Blandy <jimb@redhat.com>.
22073 * linux-s390-low.c (s390_num_regs): Update.
22074 (s390_regmap): Remove control registers. Use __s390x__ predefine
22075 instead of GPR_SIZE to distiguish s390 and s390x targets.
22077 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
22079 * linux-low.c: Update copyright year.
22080 (check_removed_breakpoint): Clear pending_is_breakpoint.
22081 (linux_set_resume_request, linux_queue_one_thread)
22082 (resume_status_pending_p): New functions.
22083 (linux_continue_one_thread): Use process->resume.
22084 (linux_resume): Only resume threads if there are no pending events.
22085 * linux-low.h (struct process_info): Add resume request
22088 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
22090 * regcache.c (new_register_cache): Clear the allocated register
22091 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
22093 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
22095 * linux-low.c (linux_resume): Take a struct thread_resume *
22097 (linux_wait): Update call.
22098 (resume_ptr): New static variable.
22099 (linux_continue_one_thread): Renamed from
22100 linux_continue_one_process. Use resume_ptr.
22101 (linux_resume): Use linux_continue_one_thread.
22102 * server.c (handle_v_cont, handle_v_requests): New functions.
22103 (myresume): New function.
22104 (main): Handle 'v' case.
22105 * target.h (struct thread_resume): New type.
22106 (struct target_ops): Change argument of "resume" to struct
22108 (myresume): Delete macro.
22110 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
22112 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
22113 (uninstall): Support DESTDIR.
22115 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
22117 * configure.srv: Add xscale*linux copy of arm*linux entry.
22119 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
22121 * linux-arm-low.c (arm_reinsert_addr): New function.
22122 (the_low_target): Add arm_reinsert_addr.
22124 2003-07-08 Mark Kettenis <kettenis@gnu.org>
22126 * mem-break.c: Remove whitespace at end of file.
22128 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
22130 * configure.in: Check whether we need to prototype strerror.
22131 * server.h: Optionally prototype strerror.
22132 * gdbreplay.c (perror_with_name): Use strerror.
22133 * linux-low.c (linux_attach_lwp): Use strerror.
22134 * utils.c (perror_with_name): Use strerror.
22135 * config.in, configure: Regenerated.
22137 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
22139 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
22140 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
22142 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
22144 * Makefile.in (SFILES): Update.
22145 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
22146 low-sun3.c: Remove files.
22148 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
22150 * linux-low.c: Move comment to linux_thread_alive where it belonged.
22151 (linux_detach_one_process, linux_detach): New functions.
22152 (linux_target_ops): Add linux_detach.
22153 * server.c (main): Handle 'D' packet.
22154 * target.h (struct target_ops): Add "detach" member.
22155 (detach_inferior): Define.
22157 2003-06-13 Mark Kettenis <kettenis@gnu.org>
22159 From Kelley Cook <kelleycook@wideopenwest.com>:
22160 * configure.srv: Accept i[34567]86 variants.
22162 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
22164 * linux-low.c (linux_wait_for_event): Correct comment typos.
22165 (linux_resume_one_process): Call check_removed_breakpoint.
22166 (linux_send_signal): New function.
22167 (linux_target_ops): Add linux_send_signal.
22168 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
22170 * target.h (struct target_ops): Add send_signal.
22172 2003-05-29 Jim Blandy <jimb@redhat.com>
22174 * linux-low.c (usr_store_inferior_registers): Transfer buf in
22175 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
22176 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
22177 away part of the register's value.
22179 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
22181 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
22182 (linux_wait_for_event, linux_init_signals): Likewise.
22184 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
22186 * configure.in: Check for stdlib.h.
22187 * configure: Regenerated.
22188 * config.in: Regenerated.
22190 2003-01-04 Andreas Schwab <schwab@suse.de>
22192 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
22194 2003-01-02 Andrew Cagney <ac131313@redhat.com>
22196 * Makefile.in: Remove obsolete code.
22198 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
22200 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
22201 defined(PT_FPR0_HI).
22203 2002-11-17 Stuart Hughes <seh@zee2.com>
22205 * linux-arm-low.c (arm_num_regs): Increase.
22206 (arm_regmap): Include status register.
22208 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
22210 * linux-low.c (register_addr): Remove incorrect -1 check.
22212 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
22214 * linux-low.c (linux_create_inferior): Call setpgid. Return
22216 (unstopped_p, linux_signal_pid): Remove.
22217 (linux_target_ops): Remove linux_signal_pid.
22218 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
22219 global instead of target method.
22220 * target.h (struct target_ops): Remove signal_pid. Update comment
22221 for create_inferior.
22222 * server.c (signal_pid): New variable.
22223 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
22224 gdbserver. Set the child to be the foreground process group.
22225 (attach_inferior): Set signal_pid.
22227 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
22229 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
22231 2002-08-20 Jim Blandy <jimb@redhat.com>
22233 * Makefile.in (LDFLAGS): Allow the configure script to establish a
22236 2002-08-01 Andrew Cagney <cagney@redhat.com>
22238 * Makefile.in: Make chill references obsolete.
22240 2002-07-24 Kevin Buettner <kevinb@redhat.com>
22242 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
22243 * configure: Regenerate.
22244 * config.in: Regenerate.
22246 2002-07-09 David O'Brien <obrien@FreeBSD.org>
22248 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
22249 (perror_with_name, remote_close, remote_open, expect, play): Static.
22251 2002-07-04 Michal Ludvig <mludvig@suse.cz>
22253 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
22254 byte offsets instead of an array of indexes.
22255 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
22257 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
22259 * regcache.c: Add comment.
22261 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
22263 * thread-db.c: New file.
22264 * proc-service.c: New file.
22265 * acinclude.m4: New file.
22266 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22267 proc-service.o, and thread-db.o.
22268 (linux-low.o): Add USE_THREAD_DB.
22269 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22270 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22271 * aclocal.m4: Regenerated.
22272 * config.in: Regenerated.
22273 * configure: Regenerated.
22274 * configure.in: Check for proc_service.h, sys/procfs.h,
22275 thread_db.h, and linux/elf.h headrs.
22276 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22277 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22278 Check for -lthread_db and thread support.
22279 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22280 PowerPC, and SuperH.
22281 * i387-fp.c: Constify arguments.
22282 * i387-fp.h: Likewise.
22283 * inferiors.c: (struct thread_info): Renamed from
22284 `struct inferior_info'. Remove PID member. Use generic inferior
22285 list header. All uses updated.
22286 (inferiors, signal_pid): Removed.
22287 (all_threads): New variable.
22288 (get_thread): Define.
22289 (add_inferior_to_list): New function.
22290 (for_each_inferior): New function.
22291 (change_inferior_id): New function.
22292 (add_inferior): Removed.
22293 (remove_inferior): New function.
22294 (add_thread): New function.
22295 (free_one_thread): New function.
22296 (remove_thread): New function.
22297 (clear_inferiors): Use for_each_inferior and free_one_thread.
22298 (find_inferior): New function.
22299 (find_inferior_id): New function.
22300 (inferior_target_data): Update argument type.
22301 (set_inferior_target_data): Likewise.
22302 (inferior_regcache_data): Likewise.
22303 (set_inferior_regcache_data): Likewise.
22304 * linux-low.c (linux_bp_reinsert): Remove.
22305 (all_processes, stopping_threads, using_thrads)
22306 (struct pending_signals, debug_threads, pid_of): New.
22307 (inferior_pid): Replace with macro.
22308 (struct inferior_linux_data): Remove.
22309 (get_stop_pc, add_process): New functions.
22310 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22311 Use add_process and add_thread.
22312 (linux_attach_lwp): New function, based on old linux_attach. Use
22313 add_process and add_thread. Set stop_expected for new threads.
22314 (linux_attach): New function.
22315 (linux_kill_one_process): New function.
22316 (linux_kill): Kill all LWPs.
22317 (linux_thread_alive): Use find_inferior_id.
22318 (check_removed_breakpoints, status_pending_p): New functions.
22319 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22320 Update. Use WNOHANG. Wait for cloned processes also. Update process
22321 struct for the found process.
22322 (linux_wait_for_event): New function.
22323 (linux_wait): Use it. Support LWPs.
22324 (send_sigstop, wait_for_sigstop, stop_all_processes)
22325 (linux_resume_one_process, linux_continue_one_process): New functions.
22326 (linux_resume): Support LWPs.
22327 (REGISTER_RAW_SIZE): Remove.
22328 (fetch_register): Use register_size instead. Call supply_register.
22329 (usr_store_inferior_registers): Likewise. Call collect_register.
22330 Fix recursive case.
22331 (regsets_fetch_inferior_registers): Improve error message.
22332 (regsets_store_inferior_registers): Add debugging.
22333 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22334 (unstopped_p, linux_signal_pid): New functions.
22335 (linux_target_ops): Add linux_signal_pid.
22336 (linux_init_signals): New function.
22337 (initialize_low): Call it. Initialize using_threads.
22338 * regcache.c (inferior_regcache_data): Add valid
22340 (get_regcache): Fetch registers lazily. Add fetch argument
22341 and update all callers.
22342 (regcache_invalidate_one, regcache_invalidate): New
22344 (new_register_cache): Renamed from create_register_cache.
22345 Return the new regcache.
22346 (free_register_cache): Change argument to a void *.
22347 (registers_to_string, registers_from_string): Call get_regcache
22348 with fetch flag set.
22349 (register_data): Make static. Pass fetch flag to get_regcache.
22350 (supply_register): Call get_regcache with fetch flag clear.
22351 (collect_register): Call get_regcache with fetch flag set.
22352 (collect_register_as_string): New function.
22353 * regcache.h: Update.
22354 * remote-utils.c (putpkt): Flush after debug output and use
22356 Handle input interrupts while waiting for an ACK.
22357 (input_interrupt): Use signal_pid method.
22358 (getpkt): Flush after debug output and use stderr.
22359 (outreg): Use collect_register_as_string.
22360 (new_thread_notify, dead_thread_notify): New functions.
22361 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22362 and general_thread.
22363 (look_up_one_symbol): Flush after debug output.
22364 * server.c (step_thread, server_waiting): New variables.
22365 (start_inferior): Don't use signal_pid. Update call to mywait.
22366 (attach_inferior): Update call to mywait.
22367 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22368 (main): Don't fetch/store registers explicitly. Use
22369 set_desired_inferior. Support proposed ``Hs'' packet. Update
22371 * server.h: Update.
22372 (struct inferior_list, struct_inferior_list_entry): New.
22373 * target.c (set_desired_inferior): New.
22374 (write_inferior_memory): Constify.
22375 (mywait): New function.
22376 * target.h: Update.
22377 (struct target_ops): New signal_pid method.
22378 (mywait): Removed macro, added prototype.
22380 * linux-low.h (regset_func): Removed.
22381 (regset_fill_func, regset_store_func): New.
22382 (enum regset_type): New.
22383 (struct regset_info): Add type field. Use new operation types.
22384 (struct linux_target_ops): stop_pc renamed to get_pc.
22385 Add decr_pc_after_break and breakpoint_at.
22386 (get_process, get_thread_proess, get_process_thread)
22387 (strut process_info, all_processes, linux_attach_lwp)
22388 (thread_db_init): New.
22390 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22391 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22392 (the_low_target): Add new members.
22393 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22394 (i386_store_fpxregset): Constify.
22395 (target_regsets): Add new kind identifier.
22396 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22397 (i386_set_pc): Add debugging.
22398 (i386_breakpoint_at): New function.
22399 (the_low_target): Add new members.
22400 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22401 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22402 (mips_breakpoint_at): New.
22403 (the_low_target): Add new members.
22404 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22405 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22406 (the_low_target): Add new members.
22407 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22408 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22409 (the_low_target): Add new members.
22410 * linux-x86-64-low.c (target_regsets): Add new kind
22413 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
22415 From Martin Pool <mbp@samba.org>:
22416 * server.c (gdbserver_usage): New function.
22419 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
22421 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22422 stop_at -> stop_pc.
22424 2002-05-04 Andrew Cagney <ac131313@redhat.com>
22426 * Makefile.in: Remove obsolete code.
22428 2002-04-24 Michal Ludvig <mludvig@suse.cz>
22430 * linux-low.c (regsets_fetch_inferior_registers),
22431 (regsets_store_inferior_registers): Removed cast to int from
22433 * regcache.h: Added declaration of struct inferior_info.
22435 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22437 * inferiors.c (struct inferior_info): Add regcache_data.
22438 (add_inferior): Call create_register_cache.
22439 (clear_inferiors): Call free_register_cache.
22440 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22441 * regcache.c (struct inferior_regcache_data): New.
22442 (registers): Remove.
22443 (get_regcache): New function.
22444 (create_register_cache, free_register_cache): New functions.
22445 (set_register_cache): Don't initialize the register cache here.
22446 (registers_to_string, registers_from_string, register_data): Call
22448 * regcache.h: Add prototypes.
22449 * server.h: Likewise.
22451 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22453 * mem-break.c: New file.
22454 * mem-break.h: New file.
22455 * Makefile.in: Add mem-break.o rule; update server.h
22457 * inferiors.c (struct inferior_info): Add target_data
22459 (clear_inferiors): Free target_data member if set.
22460 (inferior_target_data, set_inferior_target_data): New functions.
22461 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22462 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22463 * linux-low.c (linux_bp_reinsert): New variable.
22464 (struct inferior_linux_data): New.
22465 (linux_create_inferior): Use set_inferior_target_data.
22466 (linux_attach): Likewise. Call add_inferior.
22467 (linux_wait_for_one_inferior): New function.
22468 (linux_wait): Call it.
22469 (linux_write_memory): Add const.
22470 (initialize_low): Call set_breakpoint_data.
22471 * linux-low.h (struct linux_target_ops): Add breakpoint
22473 * server.c (attach_inferior): Remove extra add_inferior
22475 * server.h: Include mem-break.h. Update inferior.c
22477 * target.c (read_inferior_memory)
22478 (write_inferior_memory): New functions.
22479 * target.h (read_inferior_memory)
22480 (write_inferior_memory): Change macros to prototypes.
22481 (struct target_ops): Update comments. Add const to write_memory
22484 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
22486 * linux-low.c (usr_store_inferior_registers): Support
22487 registers which are allowed to fail to store.
22488 * linux-low.h (linux_target_ops): Likewise.
22489 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22490 (ppc_cannot_store_register): FPSCR may not be storable.
22492 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22494 * server.h: Include <string.h> if HAVE_STRING_H.
22495 * ChangeLog: Correct paths in last ChangeLog entry.
22497 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22499 * linux-low.h: Remove obsolete prototypes.
22500 (struct linux_target_ops): New.
22501 (extern the_low_target): New.
22502 * linux-low.c (num_regs, regmap): Remove declarations.
22503 (register_addr): Use the_low_target explicitly.
22504 (fetch_register): Likewise.
22505 (usr_fetch_inferior_registers): Likewise.
22506 (usr_store_inferior_registers): Likewise.
22507 * linux-arm-low.c (num_regs): Remove.
22508 (arm_num_regs): Define.
22509 (arm_regmap): Renamed from regmap, made static.
22510 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22512 (arm_cannot_store_register): Renamed from cannot_store_register,
22514 (the_low_target): New.
22515 * linux-i386-low.c (num_regs): Remove.
22516 (i386_num_regs): Define.
22517 (i386_regmap): Renamed from regmap, made static.
22518 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22520 (i386_cannot_store_register): Renamed from cannot_store_register,
22522 (the_low_target): New.
22523 * linux-ia64-low.c (num_regs): Remove.
22524 (ia64_num_regs): Define.
22525 (ia64_regmap): Renamed from regmap, made static.
22526 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22528 (ia64_cannot_store_register): Renamed from cannot_store_register,
22530 (the_low_target): New.
22531 * linux-m68k-low.c (num_regs): Remove.
22532 (m68k_num_regs): Define.
22533 (m68k_regmap): Renamed from regmap, made static.
22534 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22536 (m68k_cannot_store_register): Renamed from cannot_store_register,
22538 (the_low_target): New.
22539 * linux-mips-low.c (num_regs): Remove.
22540 (mips_num_regs): Define.
22541 (mips_regmap): Renamed from regmap, made static.
22542 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22544 (mips_cannot_store_register): Renamed from cannot_store_register,
22546 (the_low_target): New.
22547 * linux-ppc-low.c (num_regs): Remove.
22548 (ppc_num_regs): Define.
22549 (ppc_regmap): Renamed from regmap, made static.
22550 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22552 (ppc_cannot_store_register): Renamed from cannot_store_register,
22554 (the_low_target): New.
22555 * linux-s390-low.c (num_regs): Remove.
22556 (s390_num_regs): Define.
22557 (s390_regmap): Renamed from regmap, made static.
22558 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22560 (s390_cannot_store_register): Renamed from cannot_store_register,
22562 (the_low_target): New.
22563 * linux-sh-low.c (num_regs): Remove.
22564 (sh_num_regs): Define.
22565 (sh_regmap): Renamed from regmap, made static.
22566 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22568 (sh_cannot_store_register): Renamed from cannot_store_register,
22570 (the_low_target): New.
22571 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22572 (the_low_target): New.
22574 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22576 * Makefile.in: Add stamp-h target.
22577 * configure.in: Create stamp-h.
22578 * configure: Regenerated.
22580 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22582 * inferiors.c: New file.
22583 * target.c: New file.
22584 * target.h: New file.
22585 * Makefile.in: Add target.o and inferiors.o. Update
22587 * linux-low.c (inferior_pid): New static variable,
22588 moved from server.c.
22589 (linux_create_inferior): Renamed from create_inferior.
22590 Call add_inferior. Return 0 on success instead of a PID.
22591 (linux_attach): Renamed from myattach.
22592 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22593 (linux_thread_alive): Renamed from mythread_alive.
22594 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22596 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22597 (regsets_store_inferior_registers): Correct error message.
22598 Add missing ``return 0''.
22599 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22600 (linux_store_registers): Renamed from store_inferior_registers.
22601 (linux_read_memory): Renamed from read_inferior_memory.
22602 (linux_write_memory): Renamed from write_inferior_memory.
22603 (linux_target_ops): New structure.
22604 (initialize_low): Call set_target_ops ().
22605 * remote-utils.c (unhexify): New function.
22606 (hexify): New function.
22607 (input_interrupt): Send signals to ``signal_pid''.
22608 * server.c (inferior_pid): Remove.
22609 (start_inferior): Update create_inferior call.
22610 (attach_inferior): Call add_inferior.
22611 (handle_query): New function.
22612 (main): Call handle_query for `q' packets.
22613 * server.h: Include "target.h". Remove obsolete prototypes.
22614 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22616 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22618 * Makefile.in: Add WARN_CFLAGS. Update configury
22620 * configure.in: Check for <string.h>
22621 * configure: Regenerate.
22622 * config.in: Regenerate.
22623 * gdbreplay.c: Include needed system headers.
22624 (remote_open): Remove strchr prototype.
22625 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22626 * regcache.c (supply_register): Change buf argument to const void *.
22627 (supply_register_by_name): Likewise.
22628 (collect_register): Change buf argument to void *.
22629 (collect_register_by_name): Likewise.
22630 * regcache.h: Add missing prototypes.
22631 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22632 * server.c (handle_query): New function.
22633 (attached): New static variable, moved out of main.
22634 (main): Quiet longjmp clobber warnings.
22635 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22636 * utils.c (error): Remove NORETURN.