1 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3 * linux-low.h (struct linux_target_ops): Update the comment for
4 'cannot_store_register' to return 0 or 1.
5 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
8 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
10 * config.in: Re-generate.
11 * configure: Re-generate.
13 2020-03-17 Kamil Rytarowski <n54@gmx.com>
15 * regcache.cc (find_register_by_number): Update.
16 * tdesc.cc (init_target_desc): Likewise.
17 * tdesc.h (target_desc::reg_defs): Likewise.
19 2020-03-12 Tom Tromey <tom@tromey.com>
22 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
23 (WIN32APILIBS): New subst.
24 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
26 (gdbsupport/%.o): Remove target.
27 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
28 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
29 (WIN32APILIBS): New variable.
30 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
31 (gdbreplay$(EXEEXT)): Likewise.
33 2020-03-12 Tom Tromey <tom@tromey.com>
35 * config.in, configure: Rebuild.
36 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
37 * acinclude.m4: Include gettext-sister.m4.
38 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
40 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
41 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
43 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
45 * acinclude.m4: Update path to selftest.m4.
47 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
49 * configure.ac: Don't source bfd/development.sh, move
51 * configure: Re-generate.
53 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
55 * configure: Re-generate.
57 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
59 * configure: Re-generate.
61 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
63 * .dir-locals.el: New file.
65 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
67 * .gitattributes: New file.
69 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
71 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
72 reply into an S reply.
73 * server.cc (disable_packet_T): New global.
74 (captured_main): Set new global when appropriate.
75 * server.h (disable_packet_T): Declare.
77 2020-02-21 Tom Tromey <tom@tromey.com>
79 * Makefile.in (mostlyclean): New target.
81 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
83 * target.h (struct process_stratum_target): Remove.
84 (class process_target): Rename to ...
85 (class process_stratum_target): ... this.
86 * linux-low.h (class linux_process_target): Derive from
87 'process_stratum_target'.
88 * linux-low.cc (linux_target_ops): Remove.
89 (initialize_low): Set the_target to the singleton instance of
91 * lynx-low.h (class lynx_process_target): Derive from
92 'process_stratum_target'.
93 * lynx-low.cc (lynx_target_ops): Remove.
94 (initialize_low): Set the_target to the singleton instance of
96 * nto-low.h (class nto_process_target): Derive from
97 'process_stratum_target'.
98 * nto-low.cc (nto_target_ops): Remove.
99 (initialize_low): Set the_target to the singleton instance of
101 * win32-low.h (class win32_process_target): Derive from
102 'process_stratum_target'.
103 * win32-low.cc (win32_target_ops): Remove.
104 (initialize_low): Set the_target to the singleton instance of
105 win32_process_target.
107 Replace 'the_target->pt' with 'the_target' in the uses below.
109 * hostio.cc (hostio_error)
114 * linux-aarch32-low.cc (arm_breakpoint_at)
115 * linux-aarch64-low.cc (aarch64_breakpoint_at)
116 * linux-arm-low.cc (arm_sigreturn_next_pc)
118 (arm_get_syscall_trapinfo)
119 * linux-cris-low.cc (cris_breakpoint_at)
120 * linux-crisv32-low.cc (cris_breakpoint_at)
121 * linux-low.cc (handle_extended_wait)
124 (linux_process_target::breakpoint_kind_from_pc)
126 * linux-m32r-low.cc (m32r_breakpoint_at)
127 * linux-mips-low.cc (mips_breakpoint_at)
128 * linux-nios2-low.cc (nios2_breakpoint_at)
129 * linux-ppc-low.cc (ppc_breakpoint_at)
130 * linux-s390-low.cc (s390_get_hwcap)
131 * linux-sh-low.cc (sh_breakpoint_at)
132 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
133 (sparc_store_gregset_from_stack)
134 (sparc_breakpoint_at)
135 * linux-tic6x-low.cc (tic6x_breakpoint_at)
136 * linux-tile-low.cc (tile_breakpoint_at)
137 * linux-x86-low.cc (x86_breakpoint_at)
138 * linux-xtensa-low.cc (xtensa_breakpoint_at)
139 * mem-break.cc (bp_size)
141 (insert_memory_breakpoint)
142 (set_raw_breakpoint_at)
143 (delete_raw_breakpoint)
145 (uninsert_raw_breakpoint)
146 (reinsert_raw_breakpoint)
147 (validate_inserted_breakpoint)
148 * regcache.cc (regcache_read_pc)
150 * remote-utils.cc (putpkt_binary_1)
153 (prepare_resume_reply)
154 * server.cc (handle_general_set)
157 (handle_qxfer_exec_file)
158 (handle_qxfer_libraries_svr4)
159 (handle_qxfer_osdata)
160 (handle_qxfer_siginfo)
165 (queue_stop_reply_callback)
167 * target.cc (prepare_to_access_memory)
168 (done_accessing_memory)
169 (read_inferior_memory)
170 (target_write_memory)
171 (target_stop_and_wait)
173 (target_mourn_inferior)
174 (target_continue_no_signal)
176 (target_supports_multi_process)
179 (target_create_inferior)
180 (target_post_create_inferior)
182 (target_supports_fork_events)
183 (target_supports_vfork_events)
184 (target_supports_exec_events)
185 (target_handle_new_gdb_connection)
188 (fetch_inferior_registers)
189 (store_inferior_registers)
191 (target_supports_non_stop)
193 (target_process_qsupported)
194 (target_supports_catch_syscall)
195 (target_get_ipa_tdesc_idx)
196 (target_supports_tracepoints)
197 (target_supports_fast_tracepoints)
198 (target_get_min_fast_tracepoint_insn_len)
199 (target_thread_stopped)
202 (target_stabilize_threads)
203 (target_install_fast_tracepoint_jump_pad)
205 (target_supports_disable_randomization)
206 (target_supports_agent)
207 (target_enable_btrace)
208 (target_disable_btrace)
210 (target_read_btrace_conf)
211 (target_supports_range_stepping)
212 (target_supports_stopped_by_sw_breakpoint)
213 (target_stopped_by_sw_breakpoint)
214 (target_supports_stopped_by_hw_breakpoint)
215 (target_supports_hardware_single_step)
216 (target_stopped_by_hw_breakpoint)
217 (target_breakpoint_kind_from_pc)
218 (target_breakpoint_kind_from_current_state)
219 (target_supports_software_single_step)
220 (target_core_of_thread)
222 (target_thread_handle)
223 * win32-low.cc (do_initial_child_stuff)
225 Rename target op default definitions listed below.
227 * target.cc (process_target::post_create_inferior): Rename as ...
228 (process_stratum_target::post_create_inferior): ... this.
229 (process_target::prepare_to_access_memory): Rename as ...
230 (process_stratum_target::prepare_to_access_memory): ... this.
231 (process_target::done_accessing_memory): Rename as ...
232 (process_stratum_target::done_accessing_memory): ... this.
233 (process_target::look_up_symbols): Rename as ...
234 (process_stratum_target::look_up_symbols): ... this.
235 (process_target::supports_read_auxv): Rename as ...
236 (process_stratum_target::supports_read_auxv): ... this.
237 (process_target::read_auxv): Rename as ...
238 (process_stratum_target::read_auxv): ... this.
239 (process_target::supports_z_point_type): Rename as ...
240 (process_stratum_target::supports_z_point_type): ... this.
241 (process_target::insert_point): Rename as ...
242 (process_stratum_target::insert_point): ... this.
243 (process_target::remove_point): Rename as ...
244 (process_stratum_target::remove_point): ... this.
245 (process_target::stopped_by_sw_breakpoint): Rename as ...
246 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
247 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
248 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
249 (process_target::stopped_by_hw_breakpoint): Rename as ...
250 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
251 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
252 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
253 (process_target::supports_hardware_single_step): Rename as ...
254 (process_stratum_target::supports_hardware_single_step): ... this.
255 (process_target::stopped_by_watchpoint): Rename as ...
256 (process_stratum_target::stopped_by_watchpoint): ... this.
257 (process_target::stopped_data_address): Rename as ...
258 (process_stratum_target::stopped_data_address): ... this.
259 (process_target::supports_read_offsets): Rename as ...
260 (process_stratum_target::supports_read_offsets): ... this.
261 (process_target::read_offsets): Rename as ...
262 (process_stratum_target::read_offsets): ... this.
263 (process_target::supports_get_tls_address): Rename as ...
264 (process_stratum_target::supports_get_tls_address): ... this.
265 (process_target::get_tls_address): Rename as ...
266 (process_stratum_target::get_tls_address): ... this.
267 (process_target::hostio_last_error): Rename as ...
268 (process_stratum_target::hostio_last_error): ... this.
269 (process_target::supports_qxfer_osdata): Rename as ...
270 (process_stratum_target::supports_qxfer_osdata): ... this.
271 (process_target::qxfer_osdata): Rename as ...
272 (process_stratum_target::qxfer_osdata): ... this.
273 (process_target::supports_qxfer_siginfo): Rename as ...
274 (process_stratum_target::supports_qxfer_siginfo): ... this.
275 (process_target::qxfer_siginfo): Rename as ...
276 (process_stratum_target::qxfer_siginfo): ... this.
277 (process_target::supports_non_stop): Rename as ...
278 (process_stratum_target::supports_non_stop): ... this.
279 (process_target::async): Rename as ...
280 (process_stratum_target::async): ... this.
281 (process_target::start_non_stop): Rename as ...
282 (process_stratum_target::start_non_stop): ... this.
283 (process_target::supports_multi_process): Rename as ...
284 (process_stratum_target::supports_multi_process): ... this.
285 (process_target::supports_fork_events): Rename as ...
286 (process_stratum_target::supports_fork_events): ... this.
287 (process_target::supports_vfork_events): Rename as ...
288 (process_stratum_target::supports_vfork_events): ... this.
289 (process_target::supports_exec_events): Rename as ...
290 (process_stratum_target::supports_exec_events): ... this.
291 (process_target::handle_new_gdb_connection): Rename as ...
292 (process_stratum_target::handle_new_gdb_connection): ... this.
293 (process_target::handle_monitor_command): Rename as ...
294 (process_stratum_target::handle_monitor_command): ... this.
295 (process_target::core_of_thread): Rename as ...
296 (process_stratum_target::core_of_thread): ... this.
297 (process_target::supports_read_loadmap): Rename as ...
298 (process_stratum_target::supports_read_loadmap): ... this.
299 (process_target::read_loadmap): Rename as ...
300 (process_stratum_target::read_loadmap): ... this.
301 (process_target::process_qsupported): Rename as ...
302 (process_stratum_target::process_qsupported): ... this.
303 (process_target::supports_tracepoints): Rename as ...
304 (process_stratum_target::supports_tracepoints): ... this.
305 (process_target::read_pc): Rename as ...
306 (process_stratum_target::read_pc): ... this.
307 (process_target::write_pc): Rename as ...
308 (process_stratum_target::write_pc): ... this.
309 (process_target::supports_thread_stopped): Rename as ...
310 (process_stratum_target::supports_thread_stopped): ... this.
311 (process_target::thread_stopped): Rename as ...
312 (process_stratum_target::thread_stopped): ... this.
313 (process_target::supports_get_tib_address): Rename as ...
314 (process_stratum_target::supports_get_tib_address): ... this.
315 (process_target::get_tib_address): Rename as ...
316 (process_stratum_target::get_tib_address): ... this.
317 (process_target::pause_all): Rename as ...
318 (process_stratum_target::pause_all): ... this.
319 (process_target::unpause_all): Rename as ...
320 (process_stratum_target::unpause_all): ... this.
321 (process_target::stabilize_threads): Rename as ...
322 (process_stratum_target::stabilize_threads): ... this.
323 (process_target::supports_fast_tracepoints): Rename as ...
324 (process_stratum_target::supports_fast_tracepoints): ... this.
325 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
326 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
327 (process_target::emit_ops): Rename as ...
328 (process_stratum_target::emit_ops): ... this.
329 (process_target::supports_disable_randomization): Rename as ...
330 (process_stratum_target::supports_disable_randomization): ... this.
331 (process_target::supports_qxfer_libraries_svr4): Rename as ...
332 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
333 (process_target::qxfer_libraries_svr4): Rename as ...
334 (process_stratum_target::qxfer_libraries_svr4): ... this.
335 (process_target::supports_agent): Rename as ...
336 (process_stratum_target::supports_agent): ... this.
337 (process_target::enable_btrace): Rename as ...
338 (process_stratum_target::enable_btrace): ... this.
339 (process_target::disable_btrace): Rename as ...
340 (process_stratum_target::disable_btrace): ... this.
341 (process_target::read_btrace): Rename as ...
342 (process_stratum_target::read_btrace): ... this.
343 (process_target::read_btrace_conf): Rename as ...
344 (process_stratum_target::read_btrace_conf): ... this.
345 (process_target::supports_range_stepping): Rename as ...
346 (process_stratum_target::supports_range_stepping): ... this.
347 (process_target::supports_pid_to_exec_file): Rename as ...
348 (process_stratum_target::supports_pid_to_exec_file): ... this.
349 (process_target::pid_to_exec_file): Rename as ...
350 (process_stratum_target::pid_to_exec_file): ... this.
351 (process_target::supports_multifs): Rename as ...
352 (process_stratum_target::supports_multifs): ... this.
353 (process_target::multifs_open): Rename as ...
354 (process_stratum_target::multifs_open): ... this.
355 (process_target::multifs_unlink): Rename as ...
356 (process_stratum_target::multifs_unlink): ... this.
357 (process_target::multifs_readlink): Rename as ...
358 (process_stratum_target::multifs_readlink): ... this.
359 (process_target::breakpoint_kind_from_pc): Rename as ...
360 (process_stratum_target::breakpoint_kind_from_pc): ... this.
361 (process_target::breakpoint_kind_from_current_state): Rename as ...
362 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
363 (process_target::thread_name): Rename as ...
364 (process_stratum_target::thread_name): ... this.
365 (process_target::thread_handle): Rename as ...
366 (process_stratum_target::thread_handle): ... this.
367 (process_target::supports_software_single_step): Rename as ...
368 (process_stratum_target::supports_software_single_step): ... this.
369 (process_target::supports_catch_syscall): Rename as ...
370 (process_stratum_target::supports_catch_syscall): ... this.
371 (process_target::get_ipa_tdesc_idx): Rename as ...
372 (process_stratum_target::get_ipa_tdesc_idx): ... this.
374 2020-02-20 Pedro Alves <palves@redhat.com>
376 * target.cc (set_target_ops): Simply copy the given target pointer
377 instead of creating a copy of the pointed object.
379 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
381 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
384 * target.h (struct process_stratum_target): Remove the target op.
385 (class process_target): Add the target op.
386 (target_get_ipa_tdesc_idx): Update the macro.
387 * target.cc (process_target::get_ipa_tdesc_idx): Define.
389 Update the derived classes and callers below.
391 * linux-low.cc (linux_target_ops): Update.
392 (linux_get_ipa_tdesc_idx): Turn into ...
393 (linux_process_target::get_ipa_tdesc_idx): ... this.
394 * linux-low.h (class linux_process_target): Update.
395 * lynx-low.cc (lynx_target_ops): Update.
396 * nto-low.cc (nto_target_ops): Update.
397 * win32-low.cc (win32_target_ops): Update.
399 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
401 Turn process_stratum_target's supports_catch_syscall op into a
402 method of process_target.
404 * target.h (struct process_stratum_target): Remove the target op.
405 (class process_target): Add the target op.
406 (target_supports_catch_syscall): Update the macro.
407 * target.cc (process_target::supports_catch_syscall): Define.
409 Update the derived classes and callers below.
411 * linux-low.cc (linux_target_ops): Update.
412 (linux_supports_catch_syscall): Turn into ...
413 (linux_process_target::supports_catch_syscall): ... this.
414 * linux-low.h (class linux_process_target): Update.
415 * lynx-low.cc (lynx_target_ops): Update.
416 * nto-low.cc (nto_target_ops): Update.
417 * win32-low.cc (win32_target_ops): Update.
419 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
421 Turn process_stratum_target's supports_software_single_step op
422 into a method of process_target.
424 * target.h (struct process_stratum_target): Remove the target op.
425 (class process_target): Add the target op.
426 (target_supports_software_single_step): Update the macro.
427 * target.cc (process_target::supports_software_single_step): Define.
429 Update the derived classes and callers below.
431 * linux-low.cc (linux_target_ops): Update.
432 (linux_supports_software_single_step): Turn into ...
433 (linux_process_target::supports_software_single_step): ... this.
434 * linux-low.h (class linux_process_target): Update.
435 * lynx-low.cc (lynx_target_ops): Update.
436 * nto-low.cc (nto_target_ops): Update.
437 * win32-low.cc (win32_target_ops): Update.
439 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
441 Turn process_stratum_target's thread_name and thread_handle ops
442 into methods of process_target.
444 * target.h (struct process_stratum_target): Remove the target ops.
445 (class process_target): Add the target ops.
446 (target_thread_name): Update the macro.
447 (target_thread_handle): Update the macro.
448 * target.cc (process_target::thread_name): Define.
449 (process_target::thread_handle): Define.
451 Update the derived classes and callers below.
453 * linux-low.cc (linux_target_ops): Update.
454 (linux_process_target::thread_name): Define.
455 (linux_process_target::thread_handle): Define.
456 * linux-low.h (class linux_process_target): Update.
457 * lynx-low.cc (lynx_target_ops): Update.
458 * nto-low.cc (nto_target_ops): Update.
459 * win32-low.cc (win32_target_ops): Update.
461 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
463 Turn process_stratum_target's breakpoint_kind_from_pc,
464 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
465 ops into methods of process_target.
467 * target.h (struct process_stratum_target): Remove the target op.
468 (class process_target): Add the target op.
469 (target_breakpoint_kind_from_pc): Update the macro.
470 (target_breakpoint_kind_from_current_state): Update the macro.
471 (default_breakpoint_kind_from_pc): Remove declaration.
472 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
473 (process_target::breakpoint_kind_from_pc): ... this.
474 (process_target::breakpoint_kind_from_current_state): Define.
476 Update the derived classes and callers below.
478 * mem-break.cc (bp_size): Update.
480 * linux-low.cc (linux_target_ops): Update.
481 (linux_wait_1): Update.
482 (linux_breakpoint_kind_from_pc): Turn into ...
483 (linux_process_target::breakpoint_kind_from_pc): ... this.
484 (linux_sw_breakpoint_from_kind): Turn into ...
485 (linux_process_target::sw_breakpoint_from_kind): ... this.
486 (linux_breakpoint_kind_from_current_state): Turn into ...
487 (linux_process_target::breakpoint_kind_from_current_state): ... this.
488 * linux-low.h (class linux_process_target): Update.
489 * lynx-low.cc (lynx_target_ops): Update.
490 (lynx_process_target::sw_breakpoint_from_kind): Define.
491 * lynx-low.h (class lynx_process_target): Update.
492 * nto-low.cc (nto_target_ops): Update.
493 (nto_sw_breakpoint_from_kind): Turn into ...
494 (nto_process_target::sw_breakpoint_from_kind): ... this.
495 * nto-low.h (class nto_process_target): Update.
496 * win32-low.cc (win32_target_ops): Update.
497 (win32_sw_breakpoint_from_kind): Turn into ...
498 (win32_process_target::sw_breakpoint_from_kind): ... this.
499 * win32-low.h (class win32_process_target): Update.
501 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
503 Turn process_stratum_target's multifs_open, multifs_readlink,
504 multifs_unlink ops into methods of process_target.
506 * target.h (struct process_stratum_target): Remove the target ops.
507 (class process_target): Add the target ops. Also add
509 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
511 (process_target::supports_multifs): Define.
512 (process_target::multifs_open): Define.
513 (process_target::multifs_readlink): Define.
514 (process_target::multifs_unlink): Define.
516 Update the derived classes and callers below.
518 * hostio.cc (handle_setfs): Update.
519 (handle_open): Update.
520 (handle_unlink): Update.
521 (handle_readlink): Update.
522 * linux-low.cc (linux_target_ops): Update.
523 (linux_process_target::supports_multifs): Define.
524 (linux_process_target::multifs_open): Define.
525 (linux_process_target::multifs_readlink): Define.
526 (linux_process_target::multifs_unlink): Define.
527 * linux-low.h (class linux_process_target): Update.
528 * lynx-low.cc (lynx_target_ops): Update.
529 * nto-low.cc (nto_target_ops): Update.
530 * win32-low.cc (win32_target_ops): Update.
532 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
534 Turn process_stratum_target's pid_to_exec_file op into a method
537 * target.h (struct process_stratum_target): Remove the target op.
538 (class process_target): Add the target op. Also add
539 'supports_pid_to_exec_file'.
540 * target.cc (process_target::pid_to_exec_file): Define.
541 (process_target::supports_pid_to_exec_file): Define.
543 Update the derived classes and callers below.
545 * server.cc (handle_qxfer_exec_file): Update.
546 (handle_query): Update.
547 * linux-low.cc (linux_target_ops): Update.
548 (linux_process_target::supports_pid_to_exec_file): Define.
549 (linux_process_target::pid_to_exec_file): Define.
550 * linux-low.h (class linux_process_target): Update.
551 * lynx-low.cc (lynx_target_ops): Update.
552 * nto-low.cc (nto_target_ops): Update.
553 * win32-low.cc (win32_target_ops): Update.
555 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
557 Turn process_stratum_target's supports_range_stepping op into a
558 method of process_target.
560 * target.h (struct process_stratum_target): Remove the target op.
561 (class process_target): Add the target op.
562 (target_supports_range_stepping): Update the macro.
563 * target.cc (process_target::supports_range_stepping): Define.
565 Update the derived classes and callers below.
567 * linux-low.cc (linux_target_ops): Update.
568 (linux_supports_range_stepping): Turn into ...
569 (linux_process_target::supports_range_stepping): ... this.
570 * linux-low.h (class linux_process_target): Update.
571 * lynx-low.cc (lynx_target_ops): Update.
572 * nto-low.cc (nto_target_ops): Update.
573 * win32-low.cc (win32_target_ops): Update.
575 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
577 Turn process_stratum_target's btrace-related ops (enable_btrace,
578 disable_btrace, read_btrace, read_btrace_conf) into methods of
581 * target.h (struct process_stratum_target): Remove the target ops.
582 (class process_target): Add the target ops.
583 (target_enable_btrace): Update.
584 (target_disable_btrace): Update.
585 (target_read_btrace): Update.
586 (target_read_btrace_conf): Update.
587 * target.cc (process_target::enable_btrace): Define.
588 (process_target::disable_btrace): Define.
589 (process_target::read_btrace): Define.
590 (process_target::read_btrace_conf): Define.
592 Update the derived classes and callers below.
594 * linux-low.cc (linux_target_ops): Update.
595 (linux_process_target:enable_btrace): Define as a wrapper around
597 (linux_low_disable_btrace): Turn into ...
598 (linux_process_target::disable_btrace): ... this.
599 (linux_low_read_btrace): Turn into ...
600 (linux_process_target::read_btrace): ... this.
601 (linux_low_btrace_conf): Turn into ...
602 (linux_process_target::read_btrace_conf): ... this.
603 * linux-low.h (class linux_process_target): Update.
604 * lynx-low.cc (lynx_target_ops): Update.
605 * nto-low.cc (nto_target_ops): Update.
606 * win32-low.cc (win32_target_ops): Update.
608 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
610 Turn process_stratum_target's supports_agent op into a method of
613 * target.h (struct process_stratum_target): Remove the target op.
614 (class process_target): Add the target op.
615 (target_supports_agent): Update the macro.
616 * target.cc (process_target::supports_agent): Define.
618 Update the derived classes and callers below.
620 * linux-low.cc (linux_target_ops): Update.
621 (linux_supports_agent): Turn into ...
622 (linux_process_target::supports_agent): ... this.
623 * linux-low.h (class linux_process_target): Update.
624 * lynx-low.cc (lynx_target_ops): Update.
625 * nto-low.cc (nto_target_ops): Update.
626 * win32-low.cc (win32_target_ops): Update.
628 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
630 Turn process_stratum_target's qxfer_libraries_svr4 op into a
631 method of process_target.
633 * target.h (struct process_stratum_target): Remove the target op.
634 (class process_target): Add the target op. Also add
635 'supports_qxfer_libraries_svr4'.
636 * target.cc (process_target::qxfer_libraries_svr4): Define.
637 (process_target::supports_qxfer_libraries_svr4): Define.
639 Update the derived classes and callers below.
641 * server.cc (handle_qxfer_libraries_svr4): Update.
642 (handle_query): Update.
643 * linux-low.cc (linux_target_ops): Update.
644 (linux_process_target::supports_qxfer_libraries_svr4): Define.
645 (linux_qxfer_libraries_svr4): Turn into ...
646 (linux_process_target::qxfer_libraries_svr4): ... this.
647 * linux-low.h (class linux_process_target): Update.
648 * lynx-low.cc (lynx_target_ops): Update.
649 * nto-low.cc (nto_target_ops): Update.
650 * win32-low.cc (win32_target_ops): Update.
652 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
654 Turn process_stratum_target's supports_disable_randomization op
655 into a method of process_target.
657 * target.h (struct process_stratum_target): Remove the target op.
658 (class process_target): Add the target op.
659 (target_supports_disable_randomization): Update the macro.
660 * target.cc (process_target::supports_disable_randomization): Define.
662 Update the derived classes and callers below.
664 * linux-low.cc (linux_target_ops): Update.
665 (linux_supports_disable_randomization): Turn into ...
666 (linux_process_target::supports_disable_randomization): ... this.
667 * linux-low.h (class linux_process_target): Update.
668 * lynx-low.cc (lynx_target_ops): Update.
669 * nto-low.cc (nto_target_ops): Update.
670 * win32-low.cc (win32_target_ops): Update.
672 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
674 Turn process_stratum_target's emit_ops op into a method of
677 * target.h (struct process_stratum_target): Remove the target op.
678 (class process_target): Add the target op.
679 (target_emit_ops): Update the macro.
680 * target.cc (process_target::emit_ops): Define.
682 Update the derived classes and callers below.
684 * linux-low.cc (linux_target_ops): Update.
685 (linux_emit_ops): Turn into ...
686 (linux_process_target::emit_ops): ... this.
687 * linux-low.h (class linux_process_target): Update.
688 * lynx-low.cc (lynx_target_ops): Update.
689 * nto-low.cc (nto_target_ops): Update.
690 * win32-low.cc (win32_target_ops): Update.
692 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
694 Turn process_stratum_target's install_fast_tracepoint_jump_pad
695 and get_min_fast_tracepoint_insn_len ops into methods of
698 * target.h (struct process_stratum_target): Remove the target ops.
699 (class process_target): Add the target ops. Also add
700 'supports_fast_tracepoints'.
701 (target_supports_fast_tracepoints): Update the macro.
702 (target_get_min_fast_tracepoint_insn_len): Update the macro.
703 (install_fast_tracepoint_jump_pad): Update and rename the macro
705 (target_install_fast_tracepoint_jump_pad): ... this.
706 * target.cc (process_target::supports_fast_tracepoints): Define.
707 (process_target::install_fast_tracepoint_jump_pad): Define.
708 (process_target::get_min_fast_tracepoint_insn_len): Define.
710 Update the derived classes and callers below.
712 * tracepoint.cc (install_fast_tracepoint): Update.
713 * linux-low.cc (linux_target_ops): Update.
714 (linux_process_target::supports_fast_tracepoints): Define.
715 (linux_install_fast_tracepoint_jump_pad): Turn into ...
716 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
717 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
718 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
719 * linux-low.h (class linux_process_target): Update.
720 * lynx-low.cc (lynx_target_ops): Update.
721 * nto-low.cc (nto_target_ops): Update.
722 * win32-low.cc (win32_target_ops): Update.
724 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
726 Turn process_stratum_target's stabilize_threads op into a
727 method of process_target.
729 * target.h (struct process_stratum_target): Remove the target op.
730 (class process_target): Add the target op.
731 (target_stabilize_threads): Update the macro.
732 * target.cc (process_target::stabilize_threads): Define.
734 Update the derived classes and callers below.
736 * server.cc (handle_status): Update.
737 * tracepoint.cc (cmd_qtdp): Update.
738 (cmd_qtstart): Update.
739 * linux-low.cc (linux_target_ops): Update.
740 (linux_stabilize_threads): Turn into ...
741 (linux_process_target::stabilize_threads): ... this.
742 (linux_wait_1): Update.
743 * linux-low.h (class linux_process_target): Update.
744 * lynx-low.cc (lynx_target_ops): Update.
745 * nto-low.cc (nto_target_ops): Update.
746 * win32-low.cc (win32_target_ops): Update.
748 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
750 Turn process_stratum_target's pause_all and unpause_all ops
751 into methods of process_target.
753 * target.h (struct process_stratum_target): Remove the target ops.
754 (class process_target): Add the target ops.
755 (pause_all): Update the macro and rename to...
756 (target_pause_all): ... this.
757 (unpause_all): Update the macro and rename to...
758 (target_unpause_all): ... this.
759 * target.cc (process_target::pause_all): Define.
760 (process_target::unpause_all): Define.
762 Update the derived classes and callers below.
764 * server.cc (handle_status): Update.
765 * tracepoint.cc (clear_installed_tracepoints): Update.
767 (cmd_qtstart): Update.
768 (stop_tracing): Update.
769 (cmd_qtstatus): Update.
770 (upload_fast_traceframes): Update.
771 (run_inferior_command): Update.
772 * linux-low.cc (linux_target_ops): Update.
773 (linux_pause_all): Turn into ...
774 (linux_process_target::pause_all): ... this.
775 (linux_unpause_all): Turn into ...
776 (linux_process_target::unpause_all): ... this.
777 (linux_process_target::prepare_to_access_memory): Update.
778 (linux_process_target::done_accessing_memory): Update.
779 * linux-low.h (class linux_process_target): Update.
780 * lynx-low.cc (lynx_target_ops): Update.
781 * nto-low.cc (nto_target_ops): Update.
782 * win32-low.cc (win32_target_ops): Update.
784 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
786 Turn process_stratum_target's get_tib_address op into a method of
789 * target.h (struct process_stratum_target): Remove the target op.
790 (class process_target): Add the target op. Also add
791 'supports_get_tib_address'.
792 * target.cc (process_target::get_tib_address): Define.
793 (process_target::supports_get_tib_address): Define.
795 Update the derived classes and callers below.
797 * server.cc (handle_query): Update.
798 * linux-low.cc (win32_target_ops): Update.
799 * lynx-low.cc (lynx_target_ops): Update.
800 * nto-low.cc (nto_target_ops): Update.
801 * win32-low.cc (win32_target_ops): Update.
802 (win32_process_target::supports_get_tib_address): Define.
803 (win32_get_tib_address): Turn into ...
804 (win32_process_target::get_tib_address): ... this.
805 * win32-low.h (class win32_process_target): Update.
807 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
809 Turn process_stratum_target's thread_stopped op into a method of
812 * target.h (struct process_stratum_target): Remove the target op.
813 (class process_target): Add the target op. Also add
814 'supports_thread_stopped'.
815 (target_thread_stopped): Update the macro.
816 * target.cc (process_target::thread_stopped): Define.
817 (process_target::supports_thread_stopped): Define.
818 (prepare_to_access_memory): Update.
820 Update the derived classes and callers below.
822 * server.cc (queue_stop_reply_callback): Update.
823 * linux-low.cc (linux_target_ops): Update.
824 (linux_process_target::supports_thread_stopped): Define.
825 (linux_thread_stopped): Turn into ...
826 (linux_process_target::thread_stopped): ... this.
827 * linux-low.h (class linux_process_target): Update.
828 * lynx-low.cc (lynx_target_ops): Update.
829 * nto-low.cc (nto_target_ops): Update.
830 * win32-low.cc (win32_target_ops): Update.
832 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
834 Turn process_stratum_target's read_pc and write_pc ops into
835 methods of process_target.
837 * target.h (struct process_stratum_target): Remove the target ops.
838 (class process_target): Add the target ops.
839 * target.cc (process_target::read_pc): Define.
840 (process_target::write_pc): Define.
842 Update the derived classes and callers below.
844 * regcache.cc (regcache_read_pc): Update.
845 (regcache_write_pc): Update.
846 * linux-low.cc (linux_target_ops): Update.
847 (linux_read_pc): Turn into ...
848 (linux_process_target::read_pc): ... this.
849 (linux_write_pc): Turn into ...
850 (linux_process_target::write_pc): ... this.
851 * linux-low.h (class linux_process_target): Update.
852 * lynx-low.cc (lynx_target_ops): Update.
853 * nto-low.cc (nto_target_ops): Update.
854 * win32-low.cc (win32_target_ops): Update.
856 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
858 Turn process_stratum_target's supports_tracepoints op into a
859 method of process_target.
861 * target.h (struct process_stratum_target): Remove the target op.
862 (class process_target): Add the target op.
863 (target_supports_tracepoints): Update the macro.
864 * target.cc (process_target::supports_tracepoints): Define.
866 Update the derived classes and callers below.
868 * linux-low.cc (linux_target_ops): Update.
869 (linux_supports_tracepoints): Turn into ...
870 (linux_process_target::supports_tracepoints): ... this.
871 * linux-low.h (class linux_process_target): Update.
872 * lynx-low.cc (lynx_target_ops): Update.
873 * nto-low.cc (nto_target_ops): Update.
874 * win32-low.cc (win32_target_ops): Update.
876 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
878 Turn process_stratum_target's process_qsupported op into a method
881 * target.h (struct process_stratum_target): Remove the target op.
882 (class process_target): Add the target op.
883 (target_process_qsupported): Update the macro.
884 * target.cc (process_target::process_qsupported): Define.
886 Update the derived classes and callers below.
888 * linux-low.cc (linux_target_ops): Update.
889 (linux_process_qsupported): Turn into ...
890 (linux_process_target::process_qsupported): ... this.
891 * linux-low.h (class linux_process_target): Update.
892 * lynx-low.cc (lynx_target_ops): Update.
893 * nto-low.cc (nto_target_ops): Update.
894 * win32-low.cc (win32_target_ops): Update.
896 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
898 Turn process_stratum_target's read_loadmap op into a method of
901 * target.h (struct process_stratum_target): Remove the target op.
902 (class process_target): Add the target op. Also add
903 'supports_read_loadmap'.
904 * target.cc (process_target::read_loadmap): Define.
905 (process_target::supports_read_loadmap): Define.
907 Update the derived classes and callers below.
909 * server.cc (handle_qxfer_fdpic): Update.
910 (handle_query): Update.
911 * linux-low.cc (linux_target_ops): Update.
912 (linux_process_target::supports_read_loadmap): Define.
913 (linux_read_loadmap): Turn into ...
914 (linux_process_target::read_loadmap): ... this.
915 * linux-low.h (class linux_process_target): Update.
916 * lynx-low.cc (lynx_target_ops): Update.
917 * nto-low.cc (nto_target_ops): Update.
918 * win32-low.cc (win32_target_ops): Update.
920 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
922 Turn process_stratum_target's core_of_thread op into a method of
925 * target.h (struct process_stratum_target): Remove the target op.
926 (class process_target): Add the target op.
927 (target_core_of_thread): Update the macro.
928 * target.cc (process_target::core_of_thread): Define.
930 Update the derived classes and callers below.
932 * linux-low.cc (linux_target_ops): Update.
933 (linux_process_target::core_of_thread): Define.
934 * linux-low.h (class linux_process_target): Update.
935 * lynx-low.cc (lynx_target_ops): Update.
936 * nto-low.cc (nto_target_ops): Update.
937 * win32-low.cc (win32_target_ops): Update.
939 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
941 Turn process_stratum_target's handle_monitor_command op into a
942 method of process_target.
944 * target.h (struct process_stratum_target): Remove the target op.
945 (class process_target): Add the target op.
946 (target_handle_monitor_command): Update the macro.
947 * target.cc (process_target::handle_monitor_command): Define.
949 Update the derived classes and callers below.
951 * server.cc (handle_query): Update.
952 * linux-low.cc (linux_target_ops): Update.
953 (linux_process_target::handle_monitor_command): Define.
954 * linux-low.h (class linux_process_target): Update.
955 * lynx-low.cc (lynx_target_ops): Update.
956 * nto-low.cc (nto_target_ops): Update.
957 * win32-low.cc (win32_target_ops): Update.
959 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
961 Turn process_stratum_target's handle_new_gdb_connection op into a
962 method of process_target.
964 * target.h (struct process_stratum_target): Remove the target op.
965 (class process_target): Add the target op.
966 (target_handle_new_gdb_connection): Update the macro.
967 * target.cc (process_target::handle_new_gdb_connection): Define.
969 Update the derived classes and callers below.
971 * linux-low.cc (linux_target_ops): Update.
972 (linux_handle_new_gdb_connection): Turn into ...
973 (linux_process_target::handle_new_gdb_connection): ... this.
974 * linux-low.h (class linux_process_target): Update.
975 * lynx-low.cc (lynx_target_ops): Update.
976 * nto-low.cc (nto_target_ops): Update.
977 * win32-low.cc (win32_target_ops): Update.
979 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
981 Turn process_stratum_target's supports_fork_events,
982 supports_vfork_events, and supports_exec_events ops into methods
985 * target.h (struct process_stratum_target): Remove the target ops.
986 (class process_target): Add the target ops.
987 (target_supports_fork_events): Update the macro.
988 (target_supports_vfork_events): Update the macro.
989 (target_supports_exec_events): Update the macro.
990 * target.cc (process_target::supports_fork_events): Define.
991 (process_target::supports_vfork_events): Define.
992 (process_target::supports_exec_events): Define.
994 Update the derived classes and callers below.
996 * linux-low.cc (linux_target_ops): Update.
997 (linux_supports_fork_events): Turn into ...
998 (linux_process_target::supports_fork_events): ... this.
999 (linux_supports_vfork_events): Turn into ...
1000 (linux_process_target::supports_vfork_events): ... this.
1001 (linux_supports_exec_events): Turn into ...
1002 (linux_process_target::supports_exec_events): ... this.
1003 * linux-low.h (class linux_process_target): Update.
1004 * lynx-low.cc (lynx_target_ops): Update.
1005 * nto-low.cc (nto_target_ops): Update.
1006 * win32-low.cc (win32_target_ops): Update.
1008 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1010 Turn process_stratum_target's supports_multi_process op into a
1011 method of process_target.
1013 * target.h (struct process_stratum_target): Remove the target op.
1014 (class process_target): Add the target op.
1015 * target.cc (process_target::supports_multi_process): Define.
1016 (target_supports_multi_process): Update.
1018 Update the derived classes and callers below.
1020 * linux-low.cc (linux_target_ops): Update.
1021 (linux_supports_multi_process): Turn into ...
1022 (linux_process_target::supports_multi_process): ... this.
1023 * linux-low.h (class linux_process_target): Update.
1024 * lynx-low.cc (lynx_target_ops): Update.
1025 * nto-low.cc (nto_target_ops): Update.
1026 * win32-low.cc (win32_target_ops): Update.
1028 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1030 Turn process_stratum_target's supports_non_stop, async, and
1031 start_non_stop ops into methods of process_target.
1033 * target.h (struct process_stratum_target): Remove the target ops.
1034 (class process_target): Add the target ops.
1035 (target_supports_non_stop): Update the macro.
1036 (target_async): Update the macro.
1037 (start_non_stop): Remove declaration.
1038 * target.cc (process_target::supports_non_stop): Define.
1039 (process_target::async): Define.
1040 (process_target::start_non_stop): Define.
1041 (start_non_stop): Remove.
1043 Update the derived classes and callers below.
1045 * server.cc (handle_qxfer_siginfo): Update.
1046 (handle_query): Update.
1047 * linux-low.cc (linux_target_ops): Update.
1048 (linux_supports_non_stop): Turn into ...
1049 (linux_process_target::supports_non_stop): ... this.
1050 (linux_async): Turn into ...
1051 (linux_process_target::async): ... this.
1052 (linux_start_non_stop): Turn into ...
1053 (linux_process_target::start_non_stop): ... this.
1054 * linux-low.h (class linux_process_target): Update.
1055 * lynx-low.cc (lynx_target_ops): Update.
1056 * nto-low.cc (nto_target_ops): Update.
1057 (nto_supports_non_stop): Remove; rely on the default behavior
1059 * win32-low.cc (win32_target_ops): Update.
1061 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1063 Turn process_stratum_target's qxfer_siginfo op into a method of
1066 * target.h (struct process_stratum_target): Remove the target op.
1067 (class process_target): Add the target op. Also add
1068 'supports_qxfer_siginfo'.
1069 * target.cc (process_target::qxfer_siginfo): Define.
1070 (process_target::supports_qxfer_siginfo): Define.
1072 Update the derived classes and callers below.
1074 * server.cc (handle_qxfer_siginfo): Update.
1075 (handle_query): Update.
1076 * linux-low.cc (linux_target_ops): Update.
1077 (linux_process_target::supports_qxfer_siginfo): Define.
1078 (linux_xfer_siginfo): Turn into ...
1079 (linux_process_target::qxfer_siginfo): ... this.
1080 * linux-low.h (class linux_process_target): Update.
1081 * lynx-low.cc (lynx_target_ops): Update.
1082 * nto-low.cc (nto_target_ops): Update.
1083 * win32-low.cc (win32_target_ops): Update.
1085 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1087 Turn process_stratum_target's qxfer_osdata op into a method of
1090 * target.h (struct process_stratum_target): Remove the target op.
1091 (class process_target): Add the target op. Also add
1092 'supports_qxfer_osdata'.
1093 * target.cc (process_target::qxfer_osdata): Define.
1094 (process_target::supports_qxfer_osdata): Define.
1096 Update the derived classes and callers below.
1098 * server.cc (handle_qxfer_osdata): Update.
1099 (handle_query): Update.
1100 * linux-low.cc (linux_target_ops): Update.
1101 (linux_process_target::supports_qxfer_osdata): Define.
1102 (linux_qxfer_osdata): Turn into ...
1103 (linux_process_target::qxfer_osdata): ... this.
1104 * linux-low.h (class linux_process_target): Update.
1105 * lynx-low.cc (lynx_target_ops): Update.
1106 * nto-low.cc (nto_target_ops): Update.
1107 * win32-low.cc (win32_target_ops): Update.
1109 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1111 Turn process_stratum_target's hostio_last_error op into a
1112 method of process_target.
1114 * target.h (struct process_stratum_target): Remove the target op.
1115 (class process_target): Add the target op.
1116 * target.cc: Add "hostio.h" to includes.
1117 (process_target::hostio_last_error): Define.
1119 Update the derived classes and callers below.
1121 * hostio.cc (hostio_error): Update.
1122 * linux-low.cc: Remove "hostio.h" from includes.
1123 (linux_target_ops): Update.
1124 * lynx-low.cc (lynx_target_ops): Update.
1125 * nto-low.cc (nto_target_ops): Update.
1126 * win32-low.h (class win32_process_target): Update.
1127 * win32-low.cc (win32_target_ops): Update.
1128 (wince_hostio_last_error): Turn into ...
1129 (win32_process_target::hostio_last_error): ... this.
1131 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1133 Turn process_stratum_target's get_tls_address op into a method of
1136 * target.h (struct process_stratum_target): Remove the target op.
1137 (class process_target): Add the target op. Also add
1138 'supports_get_tls_address'.
1139 * target.cc (process_target::get_tls_address): Define.
1140 (process_target::supports_get_tls_address): Define.
1142 Update the derived classes and callers below.
1144 * server.cc (handle_query): Update.
1145 * linux-low.cc (linux_target_ops): Update.
1146 (linux_process_target::supports_get_tls_address): Define.
1147 (linux_process_target::get_tls_address): Define.
1148 * linux-low.h (class linux_process_target): Update.
1149 * lynx-low.cc (lynx_target_ops): Update.
1150 * nto-low.cc (nto_target_ops): Update.
1151 * win32-low.cc (win32_target_ops): Update.
1153 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1155 Turn process_stratum_target's read_offsets op into a method of
1158 * target.h (struct process_stratum_target): Remove the target op.
1159 (class process_target): Add the target op. Also add
1160 'supports_read_offsets'.
1161 * target.cc (process_target::read_offsets): Define.
1162 (process_target::supports_read_offsets): Define.
1164 Update the derived classes and callers below.
1166 * server.cc (handle_query): Update.
1167 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
1168 (linux_target_ops): Update.
1169 (linux_process_target::supports_read_offsets): Define.
1170 (linux_read_offsets): Turn into ...
1171 (linux_process_target::read_offsets): ... this.
1172 * linux-low.h (class linux_process_target): Update.
1173 * lynx-low.cc (lynx_target_ops): Update.
1174 * nto-low.cc (nto_target_ops): Update.
1175 * win32-low.cc (win32_target_ops): Update.
1177 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1179 Turn process_stratum_target's stopped_by_watchpoint and
1180 stopped_data_address ops into methods of process_target.
1182 * target.h (struct process_stratum_target): Remove the target ops.
1183 (class process_target): Add the target ops.
1184 * target.cc (process_target::stopped_by_watchpoint): Define.
1185 (process_target::stopped_data_address): Define.
1187 Update the derived classes and callers below.
1189 * remote-utils.cc (prepare_resume_reply): Update.
1190 * linux-low.cc (linux_target_ops): Update.
1191 (linux_stopped_by_watchpoint): Turn into ...
1192 (linux_process_target::stopped_by_watchpoint): ... this.
1193 (linux_stopped_data_address): Turn into ...
1194 (linux_process_target::stopped_data_address): ... this.
1195 * linux-low.h (class linux_process_target): Update.
1196 * lynx-low.cc (lynx_target_ops): Update.
1197 * nto-low.cc (nto_target_ops): Update.
1198 (nto_stopped_by_watchpoint): Turn into ...
1199 (nto_process_target::stopped_by_watchpoint): ... this.
1200 (nto_stopped_data_address): Turn into ...
1201 (nto_process_target::stopped_data_address): ... this.
1202 * nto-low.h (class nto_process_target): Update.
1203 * win32-low.cc (win32_target_ops): Update.
1204 (win32_stopped_by_watchpoint): Turn into ...
1205 (win32_process_target::stopped_by_watchpoint): ... this.
1206 (win32_stopped_data_address): Turn into ...
1207 (win32_process_target::stopped_data_address): ... this.
1208 * win32-low.h (class win32_process_target): Update.
1210 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1212 Turn process_stratum_target's supports_hardware_single_step op into
1213 a method of process_target.
1215 * target.h (struct process_stratum_target): Remove the target op.
1216 (class process_target): Add the target op.
1217 (target_supports_hardware_single_step): Update the macro.
1218 (target_can_do_hardware_single_step): Remove declaration.
1219 * target.cc (process_target::supports_hardware_single_step): Define.
1220 (target_can_do_hardware_single_step): Remove.
1222 Update the derived classes and callers below.
1224 * linux-low.h (class linux_process_target): Update.
1225 * linux-low.cc (linux_target_ops): Update.
1226 (linux_supports_hardware_single_step): Turn into ...
1227 (linux_process_target::supports_hardware_single_step): ... this.
1228 * lynx-low.h (class lynx_process_target): Update.
1229 * lynx-low.cc (lynx_target_ops): Update.
1230 (lynx_process_target::supports_hardware_single_step): Define.
1231 * nto-low.h (class nto_process_target): Update.
1232 * nto-low.cc (nto_target_ops): Update.
1233 (nto_process_target::supports_hardware_single_step): Define.
1234 * win32-low.h (class win32_process_target): Update.
1235 * win32-low.cc (win32_target_ops): Update.
1236 (win32_process_target::supports_hardware_single_step): Define.
1238 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1240 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
1241 ops into methods of process_target.
1243 * target.h (struct process_stratum_target): Remove the target ops.
1244 (class process_target): Add the target ops.
1245 (target_stopped_by_hw_breakpoint): Update the macro.
1246 (target_supports_stopped_by_hw_breakpoint): Update the macro.
1247 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
1248 (process_target::supports_stopped_by_hw_breakpoint): Define.
1250 Update the derived classes and callers below.
1252 * linux-low.cc (linux_target_ops): Update.
1253 (linux_stopped_by_hw_breakpoint): Turn into ...
1254 (linux_process_target::stopped_by_hw_breakpoint): ... this.
1255 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
1256 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
1257 * linux-low.h (class linux_process_target): Update.
1258 * lynx-low.cc (lynx_target_ops): Update.
1259 * nto-low.cc (nto_target_ops): Update.
1260 * win32-low.cc (win32_target_ops): Update.
1262 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1264 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
1265 ops into methods of process_target.
1267 * target.h (struct process_stratum_target): Remove the target ops.
1268 (class process_target): Add the target ops.
1269 (target_stopped_by_sw_breakpoint): Update the macro.
1270 (target_supports_stopped_by_sw_breakpoint): Update the macro.
1271 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
1272 (process_target::supports_stopped_by_sw_breakpoint): Define.
1274 Update the derived classes and callers below.
1276 * linux-low.cc (linux_target_ops): Update.
1277 (linux_stopped_by_sw_breakpoint): Turn into ...
1278 (linux_process_target::stopped_by_sw_breakpoint): ... this.
1279 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
1280 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
1281 * linux-low.h (class linux_process_target): Update.
1282 * lynx-low.cc (lynx_target_ops): Update.
1283 * nto-low.cc (nto_target_ops): Update.
1284 * win32-low.cc (win32_target_ops): Update.
1286 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1288 Turn process_stratum_target's insert_point and remove_point ops
1289 into methods of process_target.
1291 * target.h (struct process_stratum_target): Remove the target ops.
1292 (class process_target): Add the target ops.
1293 * target.cc (process_target::insert_point): Define.
1294 (process_target::remove_point): Define.
1296 Update the derived classes and callers below.
1298 * mem-break.cc (set_raw_breakpoint_at): Update.
1299 (delete_raw_breakpoint): Update.
1300 (uninsert_raw_breakpoint): Update.
1301 (reinsert_raw_breakpoint): Update.
1302 * linux-low.cc (linux_target_ops): Update.
1303 (linux_insert_point): Turn into ...
1304 (linux_process_target::insert_point): ... this.
1305 (linux_remove_point): Turn into ...
1306 (linux_process_target::remove_point): ... this.
1307 * linux-low.h (class linux_process_target): Update.
1308 * lynx-low.cc (lynx_target_ops): Update.
1309 * nto-low.cc (nto_target_ops): Update.
1310 (nto_insert_point): Turn into ...
1311 (nto_process_target::insert_point): ... this.
1312 (nto_remove_point): Turn into ...
1313 (nto_process_target::remove_point): ... this.
1314 * nto-low.h (class nto_process_target): Update.
1315 * win32-low.cc (win32_target_ops): Update.
1316 (win32_insert_point): Turn into ...
1317 (win32_process_target::insert_point): ... this.
1318 (win32_remove_point): Turn into ...
1319 (win32_process_target::remove_point): ... this.
1320 * win32-low.h (class win32_process_target): Update.
1322 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1324 Turn process_stratum_target's supports_z_point_type op into a
1325 method of process_target.
1327 * target.h (struct process_stratum_target): Remove the target op.
1328 (class process_target): Add the target op.
1329 * target.cc (process_target::supports_z_point_type): Define.
1331 Update the derived classes and callers below.
1333 * mem-break.cc (z_type_supported): Update.
1334 * linux-low.cc (linux_target_ops): Update.
1335 (linux_supports_z_point_type): Turn into ...
1336 (linux_process_target::supports_z_point_type): ... this.
1337 * linux-low.h (class linux_process_target): Update.
1338 * lynx-low.cc (lynx_target_ops): Update.
1339 * nto-low.cc (nto_target_ops): Update.
1340 (nto_supports_z_point_type): Turn into ...
1341 (nto_process_target::supports_z_point_type): ... this.
1342 * nto-low.h (class nto_process_target): Update.
1343 * win32-low.cc (win32_target_ops): Update.
1344 (win32_supports_z_point_type): Turn into ...
1345 (win32_process_target::supports_z_point_type): ... this.
1346 * win32-low.h (class win32_process_target): Update.
1348 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1350 Turn process_stratum_target's read_auxv op into a method of
1353 * target.h (class process_stratum_target): Remove the target op.
1354 (struct process_target): Add the target op. Also add
1355 'supports_read_auxv'.
1356 * target.cc (process_target::read_auxv): Define.
1357 (process_target::supports_read_auxv): Define.
1359 Update the derived classes and callers below.
1361 * server.cc (handle_qxfer_auxv): Update.
1362 (handle_query): Update.
1363 * linux-low.cc (linux_target_ops): Update.
1364 (linux_process_target::supports_read_auxv): Define.
1365 (linux_read_auxv): Turn into ...
1366 (linux_process_target::read_auxv): ... this.
1367 * linux-low.h (class linux_process_target): Update.
1368 * lynx-low.cc (lynx_target_ops): Update.
1369 * nto-low.cc (nto_target_ops): Update.
1370 (nto_process_target::supports_read_auxv): Define.
1371 (nto_read_auxv): Turn into ...
1372 (nto_process_target::read_auxv): ... this.
1373 * nto-low.h (class nto_process_target): Update.
1374 * win32-low.cc (win32_target_ops): Update.
1376 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1378 Turn process_stratum_target's request_interrupt op into a method of
1381 * target.h (struct process_stratum_target): Remove the target op.
1382 (class process_target): Add the target op.
1384 Update the derived classes and callers below.
1386 * remote-utils.cc (putpkt_binary_1): Update.
1387 (input_interrupt): Update.
1389 * server.cc (handle_v_requests): Update.
1390 * linux-low.cc (linux_target_ops): Update.
1391 (linux_request_interrupt): Turn into ...
1392 (linux_process_target::request_interrupt): ... this.
1393 * linux-low.h (class linux_process_target): Update.
1394 * lynx-low.cc (lynx_target_ops): Update.
1395 (lynx_request_interrupt): Turn into ...
1396 (lynx_process_target::request_interrupt): ... this.
1397 * lynx-low.h (class lynx_process_target): Update.
1398 * nto-low.cc (nto_target_ops): Update.
1399 (nto_request_interrupt): Turn into ...
1400 (nto_process_target::request_interrupt): ... this.
1401 * nto-low.h (class nto_process_target): Update.
1402 * win32-low.cc (win32_target_ops): Update.
1403 (win32_request_interrupt): Turn into ...
1404 (win32_process_target::request_interrupt): ... this.
1405 * win32-low.h (class win32_process_target): Update.
1407 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1409 Turn process_stratum_target's look_up_symbols op into a method of
1412 * target.h (struct process_stratum_target): Remove the target op.
1413 (class process_target): Add the target op.
1414 * target.cc (process_target::look_up_symbols): Define.
1416 Update the derived classes and callers below.
1418 * server.cc (handle_query): Update.
1419 * linux-low.cc (linux_target_ops): Update.
1420 (linux_look_up_symbols): Turn into ...
1421 (linux_process_target::look_up_symbols): ... this.
1422 * linux-low.h (class linux_process_target): Update.
1423 * lynx-low.cc (lynx_target_ops): Update.
1424 * nto-low.cc (nto_target_ops): Update.
1425 * win32-low.cc (win32_target_ops): Update.
1427 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1429 Turn process_stratum_target's read_memory and write_memory
1430 ops into methods of process_target.
1432 * target.h (struct process_stratum_target): Remove the target ops.
1433 (class process_target): Add the target ops.
1435 Update the derived classes and callers below.
1437 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
1438 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
1439 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
1440 (arm_get_syscall_trapinfo): Update.
1441 * linux-cris-low.cc (cris_breakpoint_at): Update.
1442 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
1443 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
1444 * linux-mips-low.cc (mips_breakpoint_at): Update.
1445 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
1446 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
1447 * linux-sh-low.cc (sh_breakpoint_at): Update.
1448 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
1449 (sparc_store_gregset_from_stack): Update.
1450 (sparc_breakpoint_at): Update.
1451 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
1452 * linux-tile-low.cc (tile_breakpoint_at): Update.
1453 * linux-x86-low.cc (x86_breakpoint_at): Update.
1454 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
1455 * mem-brea.cc (insert_memory_breakpoint): Update.
1456 (validate_inserted_breakpoint): Update.
1457 * target.cc (read_inferior_memory): Update.
1458 (target_write_memory): Update.
1459 * linux-low.cc (linux_target_ops): Update.
1460 (linux_read_memory): Make a wrapper around the read_memory target
1462 (linux_process_target::read_memory): Rename from linux_read_memory.
1463 (linux_write_memory): Turn into ...
1464 (linux_process_target::write_memory): ... this.
1465 * linux-low.h (class linux_process_target): Update.
1466 * lynx-low.cc (lynx_target_ops): Update.
1467 (lynx_read_memory): Turn into ...
1468 (lynx_process_target::read_memory): ... this.
1469 (lynx_write_memory): Turn into ...
1470 (lynx_process_target::write_memory): ... this.
1471 * lynx-low.h (class lynx_process_target): Update.
1472 * nto-low.cc (nto_target_ops): Update.
1473 (nto_read_memory): Turn into ...
1474 (nto_process_target::read_memory): ... this.
1475 (nto_write_memory): Turn into ...
1476 (nto_process_target::write_memory): ... this.
1477 * nto-low.h (class nto_process_target): Update.
1478 * win32-low.cc (win32_target_ops): Update.
1479 (win32_read_inferior_memory): Turn into ...
1480 (win32_process_target::read_memory): ... this.
1481 (win32_write_inferior_memory): Turn into ...
1482 (win32_process_target::write_memory): ... this.
1483 * win32-low.h (class win32_process_target): Update.
1485 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1487 Turn process_stratum_target's prepare_to_access_memory and
1488 done_accessing_memory ops into methods of process_target.
1490 * target.h (struct process_stratum_target): Remove the target ops.
1491 (class process_target): Add the target ops.
1492 * target.cc (process_target::prepare_to_access_memory): Define.
1493 (process_target::done_accessing_memory): Define.
1494 (prepare_to_access_memory): Update.
1495 (done_accessing_memory): Update.
1497 Update the derived classes and callers below.
1499 * linux-low.cc (linux_target_ops): Update.
1500 (linux_prepare_to_access_memory): Turn into ...
1501 (linux_process_target::prepare_to_access_memory): ... this.
1502 (linux_done_accessing_memory): Turn into ...
1503 (linux_process_target::done_accessing_memory): ... this.
1504 * linux-low.h (class linux_process_target): Update.
1505 * lynx-low.cc (lynx_target_ops): Update.
1506 * nto-low.cc (nto_target_ops): Update.
1507 * win32-low.cc (win32_target_ops): Update.
1509 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1511 Turn process_stratum_target's fetch_registers and store_registers
1512 ops into methods of process_target.
1514 * target.h (struct process_stratum_target): Remove the target ops.
1515 (class process_target): Add the target ops.
1516 (fetch_inferior_registers): Update the macro.
1517 (store_inferior_registers): Update the macro.
1519 Update the derived classes and callers below.
1521 * linux-low.cc (linux_target_ops): Update.
1522 (linux_fetch_registers): Turn into ...
1523 (linux_process_target::fetch_registers): ... this.
1524 (linux_store_registers): Turn into ...
1525 (linux_process_target::store_registers): ... this.
1526 * linux-low.h (class linux_process_target): Update.
1527 * lynx-low.cc (lynx_target_ops): Update.
1528 (lynx_fetch_registers): Turn into ...
1529 (lynx_process_target::fetch_registers): ... this.
1530 (lynx_store_registers): Turn into ...
1531 (lynx_process_target::store_registers): ... this.
1532 * lynx-low.h (class lynx_process_target): Update.
1533 * nto-low.cc (nto_target_ops): Update.
1534 (nto_fetch_registers): Turn into ...
1535 (nto_process_target::fetch_registers): ... this.
1536 (nto_store_registers): Turn into ...
1537 (nto_process_target::store_registers): ... this.
1538 * nto-low.h (class nto_process_target): Update.
1539 * win32-low.cc (win32_target_ops): Update.
1540 (win32_fetch_inferior_registers): Turn into ...
1541 (win32_process_target::fetch_registers): ... this.
1542 (win32_store_inferior_registers): Turn into ...
1543 (win32_process_target::store_registers): ... this.
1544 * win32-low.h (class win32_process_target): Update.
1546 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1548 Turn process_stratum_target's wait op into a method of
1551 * target.h (struct process_stratum_target): Remove the target op.
1552 (class process_target): Add the target op.
1554 Update the derived classes and callers below.
1556 * target.cc (target_wait): Update.
1557 * linux-low.cc (linux_target_ops): Update.
1558 (linux_wait): Turn into ...
1559 (linux_process_target::wait): ... this.
1560 * linux-low.h (class linux_process_target): Update.
1561 * lynx-low.cc (lynx_target_ops): Update.
1562 (lynx_wait): Turn into ...
1563 (lynx_process_target::wait): ... this.
1564 * lynx-low.h (class lynx_process_target): Update.
1565 * nto-low.cc (nto_target_ops): Update.
1566 (nto_wait): Turn into ...
1567 (nto_process_target::wait): ... this.
1568 * nto-low.h (class nto_process_target): Update.
1569 * win32-low.cc (win32_target_ops): Update.
1570 (win32_wait): Turn into ...
1571 (win32_process_target::wait): ... this.
1572 (do_initial_child_stuff): Update.
1573 * win32-low.h (class win32_process_target): Update.
1575 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1577 Turn process_stratum_target's resume op into a method of
1580 * target.h (struct process_stratum_target): Remove the target op.
1581 (class process_target): Add the target op.
1583 Update the derived classes and callers below.
1585 * server.cc (resume): Update.
1586 * target.cc (target_stop_and_wait): Update.
1587 (target_continue_no_signal): Update.
1588 (target_continue): Update.
1589 * linux-low.cc (linux_target_ops): Update.
1590 (linux_resume): Turn into ...
1591 (linux_process_target::resume): ... this.
1592 * linux-low.h (class linux_process_target): Update.
1593 * lynx-low.cc (lynx_target_ops): Update.
1594 (lynx_resume): Turn into ...
1595 (lynx_process_target::resume): ... this.
1596 * lynx-low.h (class lynx_process_target): Update.
1597 * nto-low.cc (nto_target_ops): Update.
1598 (nto_resume): Turn into ...
1599 (nto_process_target::resume): ... this.
1600 * nto-low.h (class nto_process_target): Update.
1601 * win32-low.cc (win32_target_ops): Update.
1602 (win32_resume): Turn into ...
1603 (win32_process_target::resume): ... this.
1604 (win32_process_target::detach): Update.
1605 (do_initial_child_stuff): Update.
1606 * win32-low.h (class win32_process_target): Update.
1608 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1610 Turn process_stratum_target's thread_alive op into a method of
1613 * target.h (struct process_stratum_target): Remove the target op.
1614 (class process_target): Add the target op.
1615 (mythread_alive): Update the macro.
1617 Update the derived classes and callers below.
1619 * linux-low.cc (linux_target_ops): Update.
1620 (linux_thread_alive): Turn into ...
1621 (linux_process_target::thread_alive): ... this.
1622 (wait_for_sigstop): Update.
1623 * linux-low.h (class linux_process_target): Update.
1624 * lynx-low.cc (lynx_target_ops): Update.
1625 (lynx_thread_alive): Turn into ...
1626 (lynx_process_target::thread_alive): ... this.
1627 * lynx-low.h (class lynx_process_target): Update.
1628 * nto-low.cc (nto_target_ops): Update.
1629 (nto_thread_alive): Turn into ...
1630 (nto_process_target::thread_alive): ... this.
1631 * nto-low.h (class nto_process_target): Update.
1632 * win32-low.cc (win32_target_ops): Update.
1633 (win32_thread_alive): Turn into ...
1634 (win32_process_target::thread_alive): ... this.
1635 * win32-low.h (class win32_process_target): Update.
1637 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1639 Turn process_stratum_target's join op into a method of
1642 * target.h (struct process_stratum_target): Remove the target op.
1643 (class process_target): Add the target op.
1644 (join_inferior): Update the macro.
1646 Update the derived classes and callers below.
1648 * linux-low.cc (linux_target_ops): Update.
1649 (linux_join): Turn into ...
1650 (linux_process_target::join): ... this.
1651 * linux-low.h (class linux_process_target): Update.
1652 * lynx-low.cc (lynx_target_ops): Update.
1653 (lynx_join): Turn into ...
1654 (lynx_process_target::join): ... this.
1655 * lynx-low.h (class lynx_process_target): Update.
1656 * nto-low.cc (nto_target_ops): Update.
1657 (nto_process_target::join): Define.
1658 * nto-low.h (class nto_process_target): Update.
1659 * win32-low.cc (win32_target_ops): Update.
1660 (win32_join): Turn into ...
1661 (win32_process_target::join): ... this.
1662 * win32-low.h (class win32_process_target): Update.
1664 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1666 Turn process_stratum_target's mourn op into a method of
1669 * target.h (struct process_stratum_target): Remove the target op.
1670 (class process_target): Add the target op.
1672 Update the derived classes and callers below.
1674 * target.cc (target_mourn_inferior): Update.
1675 * linux-low.cc (linux_target_ops): Update.
1676 (linux_mourn): Turn into ...
1677 (linux_process_target::mourn): ... this.
1678 (handle_extended_wait): Update.
1679 (linux_process_target::kill): Update.
1680 (linux_process_target::detach): Update.
1681 * linux-low.h (class linux_process_target): Update.
1682 * lynx-low.cc (lynx_target_ops): Update.
1683 (lynx_mourn): Turn into ...
1684 (lynx_process_target::mourn): ... this.
1685 * lynx-low.h (class lynx_process_target): Update.
1686 * nto-low.cc (nto_target_ops): Update.
1687 (nto_mourn): Turn into ...
1688 (nto_process_target::mourn): ... this.
1689 * nto-low.h (class nto_process_target): Update.
1690 * win32-low.cc (win32_target_ops): Update.
1691 (win32_mourn): Turn into ...
1692 (win32_process_target::mourn): ... this.
1693 * win32-low.h (class win32_process_target): Update.
1695 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1697 Turn process_stratum_target's detach op into a method of
1700 * target.h (struct process_stratum_target): Remove the target op.
1701 (class process_target): Add the target op.
1702 (detach_inferior): Update the macro.
1704 Update the derived classes and callers below.
1706 * linux-low.cc (linux_target_ops): Update.
1707 (linux_detach): Turn into ...
1708 (linux_process_target::detach): ... this.
1709 * linux-low.h (class linux_process_target): Update.
1710 * lynx-low.cc (lynx_target_ops): Update.
1711 (lynx_detach): Turn into ...
1712 (lynx_process_target::detach): ... this.
1713 * lynx-low.h (class lynx_process_target): Update.
1714 * nto-low.cc (nto_target_ops): Update.
1715 (nto_detach): Turn into ...
1716 (nto_process_target::detach): ... this.
1717 * nto-low.h (class nto_process_target): Update.
1718 * win32-low.cc (win32_target_ops): Update.
1719 (win32_detach): Turn into ...
1720 (win32_process_target::detach): ... this.
1721 * win32-low.h (class win32_process_target): Update.
1723 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1725 Turn process_stratum_target's kill op into a method of
1728 * target.h (struct process_stratum_target): Remove the target op.
1729 (class process_target): Add the target op.
1731 Update the derived classes and callers below.
1733 * target.cc (kill_inferior): Update.
1734 * linux-low.cc (linux_target_ops): Update.
1735 (linux_kill): Turn into ...
1736 (linux_process_target::kill): ... this.
1737 * linux-low.h (class linux_process_target): Update.
1738 * lynx-low.cc (lynx_target_ops): Update.
1739 (lynx_kill): Turn into ...
1740 (lynx_process_target::kill): ... this.
1741 * lynx-low.h (class lynx_process_target): Update.
1742 * nto-low.cc (nto_target_ops): Update.
1743 (nto_kill): Turn into ...
1744 (nto_process_target::kill): ... this.
1745 * nto-low.h (class nto_process_target): Update.
1746 * win32-low.cc (win32_target_ops): Update.
1747 (win32_kill): Turn into ...
1748 (win32_process_target::kill): ... this.
1749 * win32-low.h (class win32_process_target): Update.
1751 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1753 Turn process_stratum_target's attach op into a method of
1756 * target.h (struct process_stratum_target): Remove the target op.
1757 (class process_target): Add the target op.
1758 (myattach): Update the macro.
1760 Update the derived classes and callers below.
1762 * linux-low.cc (linux_target_ops): Update.
1763 (linux_attach): Turn into ...
1764 (linux_process_target::attach): ... this.
1765 * linux-low.h (class linux_process_target): Update.
1766 * lynx-low.cc (lynx_target_ops): Update.
1767 (lynx_attach): Turn into ...
1768 (lynx_process_target::attach): ... this.
1769 * lynx-low.h (class lynx_process_target): Update.
1770 * nto-low.cc (nto_target_ops): Update.
1771 (nto_attach): Turn into ...
1772 (nto_process_target::attach): ... this.
1773 * nto-low.h (class nto_process_target): Update.
1774 * win32-low.cc (win32_target_ops): Update.
1775 (win32_attach): Turn into ...
1776 (win32_process_target::attach): ... this.
1777 * win32-low.h (class win32_process_target): Update.
1779 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1781 Turn process_stratum_target's post_create_inferior op into a method
1784 * target.h (struct process_stratum_target): Remove the target op.
1785 (class process_target): Add the target op.
1786 (target_post_create_inferior): Update the macro.
1787 * target.cc (process_target::post_create_inferior): Define.
1789 Update the derived classes and callers below.
1791 * linux-low.cc (linux_target_ops): Update.
1792 (linux_post_create_inferior): Turn into ...
1793 (linux_process_target::post_create_inferior): ... this.
1794 * linux-low.h (class linux_process_target): Update.
1795 * lynx-low.cc (lynx_target_ops): Update.
1796 * nto-low.cc (nto_target_ops): Update.
1797 * win32-low.cc (win32_target_ops): Update.
1799 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1801 Turn process_stratum_target's create_inferior op into a method of
1804 * target.h (struct process_stratum_target): Remove the target op.
1805 (class process_target): Add the target op.
1806 (create_inferior): Rename the macro to ...
1807 (target_create_inferior): ... this.
1809 Update the derived classes and callers below.
1811 * server.cc (handle_v_run): Update.
1812 (captured_main): Update.
1813 (process_serial_event): Update.
1814 * linux-low.cc (linux_target_ops): Update.
1815 (linux_create_inferior): Turn into ...
1816 (linux_process_target::create_inferior): ... this.
1817 * linux-low.h (class linux_process_target): Update.
1818 * lynx-low.cc (lynx_target_ops): Update.
1819 (lynx_create_inferior): Turn into ...
1820 (lynx_process_target::create_inferior): ... this.
1821 * lynx-low.h (class lynx_process_target): Update.
1822 * nto-low.cc (nto_target_ops): Update.
1823 (nto_create_inferior): Turn into ...
1824 (nto_process_target::create_inferior): ... this.
1825 * nto-low.h (class nto_process_target): Update.
1826 * win32-low.cc (win32_target_ops): Update.
1827 (win32_create_inferior): Turn into ...
1828 (win32_process_target::create_inferior): ... this.
1829 * win32-low.h (class win32_process_target): Update.
1831 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1833 * target.h (class process_target): New class definition.
1834 (struct process_stratum_target) <pt>: New field with type
1836 * linux-low.h (class linux_process_target): Define as a derived
1837 class of 'process_target'.
1838 * linux-low.cc (linux_target_ops): Add a linux_process_target*
1840 * lynx-low.h (class lynx_process_target): Define as a derived
1841 class of 'process_target'.
1842 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
1844 * nto-low.h (class nto_process_target): Define as a derived
1845 class of 'process_target'.
1846 * nto-low.cc (nto_target_ops): Add an nto_process_target*
1848 * win32-low.h (class win32_process_target): Define as a derived
1849 class of 'process_target'.
1850 * win32-low.cc (win32_target_ops): Add a win32_process_target*
1853 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1855 * configure: Regenerate.
1857 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
1858 Andrew Burgess <andrew.burgess@embecosm.com>
1860 * linux-riscv-low.cc: New file.
1861 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
1862 and nat/riscv-linux-tdesc.c.
1863 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
1864 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
1867 2020-02-14 Tom Tromey <tom@tromey.com>
1869 * acinclude.m4: Don't include acx_configure_dir.m4.
1870 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
1871 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
1872 (all, install-only, uninstall, clean-info, clean)
1873 (maintainer-clean): Don't recurse.
1874 (subdir_do, all-lib): Remove.
1875 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
1877 (generated_files): Update.
1878 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
1879 * configure: Rebuild.
1880 * configure.ac: Don't configure gnulib or libiberty.
1883 2020-02-14 Eli Zaretskii <eliz@gnu.org>
1885 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
1886 preparing the command line for CreateProcess.
1887 (win32_create_inferior): Reflect the program name in debugging
1888 output that shows the process and its command line.
1890 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
1892 * Makefile.in: Rename source files from .c to .cc.
1893 * %.c: Rename to %.cc.
1894 * configure.ac: Rename server.c to server.cc.
1895 * configure: Re-generate.
1897 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
1899 * Makefile.in: Rename gdbsupport source files from .c to .cc.
1901 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
1903 * win32-low.c (win32_create_inferior): Set signal_pid.
1905 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
1906 Pedro Alves <palves@redhat.com>
1908 Skip building gdbserver in a cross-configuration.
1909 * configure.srv: Set $gdbserver_host depending on whether $target
1910 is $host. Use $gdbserver_host instead of $host.
1912 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
1914 * configure: Re-generate.
1916 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
1918 * configure: Re-generate.
1920 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
1922 * acinclude.m4: Update warning.m4 path.
1924 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
1926 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
1927 (handle_exception): Set siginfo_er.
1928 (win32_xfer_siginfo): New function.
1930 2020-02-07 Tom Tromey <tom@tromey.com>
1931 Pedro Alves <palves@redhat.com>
1933 * README: Update build documentation.
1934 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
1936 * configure.ac: Update paths.
1937 * configure: Rebuild.
1938 * acinclude.m4: Update paths.
1939 * Makefile.in: Update include paths.
1940 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
1941 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
1942 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
1943 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
1944 (%-generated.c): Update paths.
1945 * Move entire directory from ../gdb/gdbserver.
1947 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
1949 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
1951 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1953 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
1954 assignment instead of srv_linux_obj.
1956 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
1958 * server.c (handle_qxfer_libraries): Write segment-address with
1961 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
1963 * Makefile.in (install-strip): New target.
1964 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
1965 * aclocal.m4: Regenerate.
1966 * configure: Regenerate.
1967 * configure.ac: Add AM_PROG_INSTALL_STRIP.
1969 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
1971 * Makefile.in (SFILES): Adjust paths to point to real files.
1972 (OBS): Move waitstatus.o to target/waitstatus.o.
1973 (TAGS): Transform paths appropriately.
1975 (nat/%.o): ... this pattern rule.
1977 (target/%.o): ... this pattern rule.
1978 * configure.srv: Adjust paths throughout to include nat/ prefix
1979 with the revant files.
1980 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
1981 * configure: Regenerate.
1983 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
1985 * Makefile.in (TAGS): Remove config files from the recipe.
1987 2020-01-14 Tom Tromey <tom@tromey.com>
1989 * configure: Rebuild.
1990 * configure.ac: Remove any checks that were added to common.m4.
1991 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
1994 2020-01-14 Tom Tromey <tom@tromey.com>
1996 * server.h: Include config.h.
1997 * gdbreplay.c: Include config.h.
1998 * configure: Rebuild.
1999 * configure.ac: Don't source common.host.
2000 * acinclude.m4: Update path.
2001 * Makefile.in (INCSUPPORT): New variable.
2002 (INCLUDE_CFLAGS): Add INCSUPPORT.
2003 (SFILES): Update paths.
2004 (version-generated.c): Update path to create-version.sh.
2005 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
2007 2020-01-14 Tom Tromey <tom@tromey.com>
2009 * configure.ac (LIBS): Use WIN32APILIBS.
2010 (USE_WIN32API): Don't define.
2011 * configure: Rebuild.
2013 2020-01-14 Tom Tromey <tom@tromey.com>
2015 * configure: Rebuild.
2017 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2019 * Makefile.in (%-generated.c): Remove rule for files from
2022 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2024 * configure: Re-generate.
2026 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2028 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
2030 * tracepoint.c (stop_tracing, flush_trace_buffer,
2031 about_to_request_buffer_space, get_trace_state_variable_value,
2032 set_trace_state_variable_value, gdb_collect): Add declaration.
2034 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2036 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
2037 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
2038 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
2039 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
2040 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
2043 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2045 * inferiors.c: Include gdbsupport/common-inferior.h.
2047 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2049 * hostio-errno.c: Include hostio.h.
2051 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2053 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
2056 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2058 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
2059 * linux-arm-tdesc.h: Include arch/arm.h.
2061 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2063 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
2065 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2067 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
2068 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
2070 2020-01-10 Pedro Alves <palves@redhat.com>
2072 * fork-child.c (post_fork_inferior): Pass target down to
2074 * inferiors.c (switch_to_thread): Add process_stratum_target
2076 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
2077 * nto-low.c (nto_target_ops): Now a process_stratum_target.
2078 * linux-low.c (linux_target_ops): Now a process_stratum_target.
2079 * remote-utils.c (prepare_resume_reply): Pass the target to
2081 * target.c (the_target): Now a process_stratum_target.
2082 (done_accessing_memory): Pass the target to switch_to_thread.
2083 (set_target_ops): Ajust to use process_stratum_target.
2084 * target.h (struct target_ops): Rename to ...
2085 (struct process_stratum_target): ... this.
2086 (the_target, set_target_ops): Adjust.
2087 (prepare_to_access_memory): Adjust comment.
2088 * win32-low.c (child_xfer_memory): Adjust to use
2089 process_stratum_target.
2090 (win32_target_ops): Now a process_stratum_target.
2092 2020-01-06 Eli Zaretskii <eliz@gnu.org>
2093 Pedro Alves <palves@redhat.com>
2095 * win32-low.c (get_child_debug_event): Extract the fatal exception
2096 from the exit status and convert to the equivalent Posix signal
2098 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
2099 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
2101 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
2103 * Makefile.in: Use INSTALL_PROGRAM_ENV.
2105 2020-01-01 Joel Brobecker <brobecker@adacore.com>
2107 * server.c (gdbserver_version): Change copyright year to 2020.
2108 * gdbreplay.c (gdbreplay_version): Likewise.
2110 2019-12-19 Christian Biesinger <cbiesinger@google.com>
2112 * configure: Regenerate.
2113 * configure.ac: Quote variable arguments of test.
2115 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
2117 * Makefile.in: Fix build with GNU Make 3.81
2119 2019-12-16 Tom Tromey <tromey@adacore.com>
2121 * server.c (get_exec_file): Constify result.
2123 2019-12-10 Christian Biesinger <cbiesinger@google.com>
2125 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
2126 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
2127 * config.in: Regenerate.
2128 * configure: Regenerate.
2129 * configure.ac: Don't check for strerror.
2130 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
2131 Call safe_strerror instead of strerror.
2132 * server.h (strerror): Remove this now-unnecessary declaration.
2133 * tracepoint.c (init_named_socket): Call safe_strerror instead of
2135 (gdb_agent_helper_thread): Likewise.
2136 * utils.c (perror_with_name): Likewise.
2138 2019-11-26 Tom Tromey <tom@tromey.com>
2140 * configure, config.in: Rebuild.
2142 2019-11-26 Tom Tromey <tom@tromey.com>
2144 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
2145 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
2147 * configure, config.in: Rebuild.
2149 2019-11-26 Tom Tromey <tom@tromey.com>
2151 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
2152 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
2153 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
2154 * acinclude.m4: Include ax_pthread.m4.
2155 * config.in, configure: Rebuild.
2157 2019-11-26 Christian Biesinger <cbiesinger@google.com>
2159 * debug.c (debug_set_output): Call safe_strerror instead of
2161 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
2162 (linux_kill_one_lwp): Likewise.
2163 (linux_detach_one_lwp): Likewise.
2164 (linux_wait_for_event_filtered): Likewise.
2165 (store_register): Likewise.
2166 * lynx-low.c (lynx_attach): Likewise.
2167 * mem-break.c (insert_memory_breakpoint): Likewise.
2168 (remove_memory_breakpoint): Likewise.
2169 (delete_fast_tracepoint_jump): Likewise.
2170 (set_fast_tracepoint_jump): Likewise.
2171 (uninsert_fast_tracepoint_jumps_at): Likewise.
2172 (reinsert_fast_tracepoint_jumps_at): Likewise.
2173 * nto-low.c (nto_xfer_memory): Likewise.
2174 (nto_resume): Likewise.
2176 2019-11-20 Luis Machado <luis.machado@linaro.org>
2178 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
2179 instead of register count.
2180 * tdesc.c (tdesc_contains_feature): New function.
2181 * tdesc.h (tdesc_contains_feature): New prototype.
2183 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2185 * Makefile.in: Add safe-strerror.c.
2186 * configure: Regenerate.
2187 * configure.ac: Don't source common.host.
2189 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2191 * config.in: Regenerate.
2192 * configure: Regenerate.
2194 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
2196 * ax.c (ax_printf): Handle size_t_arg.
2198 2019-11-06 Christian Biesinger <cbiesinger@google.com>
2200 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
2201 * mi/mi-main.c (output_cores): Likewise.
2202 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
2203 (linux_xfer_osdata_modules): Likewise.
2204 * remote.c (register_remote_support_xml): Likewise.
2205 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
2206 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
2208 2019-11-01 Christian Biesinger <cbiesinger@google.com>
2210 * configure: Regenerate.
2211 * configure.ac: Remove check for strerror_r.
2213 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2215 * config.in: Regenerate.
2216 * configure: Regenerate.
2217 * configure.ac: Also check for strerror_r.
2219 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2221 * ax.h (debug_agent): Remove duplicate declaration.
2223 2019-10-26 Tom de Vries <tdevries@suse.de>
2225 * linux-aarch64-low.c: Fix typos in comments.
2226 * linux-arm-low.c: Same.
2227 * linux-low.c: Same.
2228 * linux-ppc-low.c: Same.
2229 * proc-service.c: Same.
2232 * tracepoint.c: Same.
2233 * win32-low.c: Same.
2235 2019-10-25 Tom Tromey <tromey@adacore.com>
2237 * utils.c (xstrdup): Remove.
2239 2019-10-23 Tom Tromey <tom@tromey.com>
2241 * configure, config.in: Rebuild.
2243 2019-10-23 Tom Tromey <tom@tromey.com>
2245 * configure: Rebuild.
2246 * acinclude.m4: Use m4_include, not sinclude.
2248 2019-10-17 Tom Tromey <tromey@adacore.com>
2250 * configure: Rebuild.
2251 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2252 in AC_CONFIG_FILES invocation.
2253 * Makefile.in (stamp-h, Makefile): Use new-style config.status
2256 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2258 * server.c: Include xml-builtin.h.
2259 (get_xml_features): Don't declare xml_builtins here.
2261 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2263 * Makefile.in: Remove references to vec-ipa.o.
2265 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2267 * Makefile.in: Remove references to vec.c.
2269 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2271 * server.c (server_waiting): Change to bool.
2272 (extended_protocol): Likewise.
2273 (response_needed): Likewise.
2274 (exit_requested): Likewise.
2275 (run_once): Likewise.
2276 (report_no_resumed): Likewise.
2277 (non_stop): Likewise.
2278 (disable_packet_vCont): Likewise.
2279 (disable_packet_Tthread): Likewise.
2280 (disable_packet_qC): Likewise.
2281 (disable_packet_qfThreadInfo): Likewise.
2282 (handle_general_set): Update.
2283 (handle_detach): Update.
2284 (handle_monitor_command): Update.
2285 (handle_query): Update.
2286 (captured_main): Update.
2287 (process_serial_event): Update.
2288 * server.h (server_waiting): Change to bool.
2289 (disable_packet_vCont): Likewise.
2290 (disable_packet_Tthread): Likewise.
2291 (disable_packet_qC): Likewise.
2292 (disable_packet_qfThreadInfo): Likewise.
2293 (run_once): Likewise.
2294 (non_stop): Likewise.
2295 * target.c (target_stop_and_wait): Update.
2297 2019-10-02 Tom Tromey <tromey@adacore.com>
2299 * Makefile.in (SFILES): Add common-inferior.c.
2300 (OBS): Add common-inferior.o.
2301 * server.c (startup_with_shell): Don't define.
2303 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2305 * linux-low.c (linux_low_read_btrace): Update for change to
2308 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2310 * debug.c (debug_threads): Remove comment in favor of the header.
2311 * debug.h (using_threads): Add declaration.
2312 (debug_threads): Add comment.
2313 * linux-aarch64-low.c: Include debug.h and remove declaration of
2315 * nto-low.c: Likewise.
2316 * remote-utils.c: Likewise.
2317 * thread-db.c: Likewise.
2319 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2321 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
2322 and powerpc-cell64l-ipa.o.
2323 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
2324 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
2325 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
2328 * spu-low.c: Remove file.
2330 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
2331 (parse_spufs_run): Remove.
2332 (ppc_get_pc): Remove Cell/B.E. support.
2333 (ppc_set_pc): Likewise.
2334 (ppc_breakpoint_at): Likewise.
2335 (ppc_arch_setup): Likewise.
2336 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
2337 tdesc_powerpc_cell32l.
2338 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
2339 or init_registers_powerpc_cell32l.
2340 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
2341 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
2342 or init_registers_powerpc_cell32l.
2343 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
2344 (init_registers_powerpc_cell32l): Remove prototype.
2345 (init_registers_powerpc_cell64l): Likewise.
2347 * target.h (struct target_ops): Remove qxfer_spu member.
2348 * server.c (handle_qxfer_spu): Remove.
2349 (qxfer_packets): Remove entry for "spu".
2350 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
2351 * linux-low.c (SPUFS_MAGIC): Remove.
2352 (spu_enumerate_spu_ids): Remove.
2353 (linux_qxfer_spu): Remove.
2354 (linux_target_ops): Remove qxfer_spu member.
2355 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
2356 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
2357 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
2359 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2361 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
2362 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
2363 * config.in: Regenerate.
2364 * configure: Regenerate.
2366 2019-08-15 Tom Tromey <tromey@adacore.com>
2368 * target.c (target_write_memory): Use gdb::byte_vector.
2370 2019-08-15 Tom Tromey <tromey@adacore.com>
2372 * tracepoint.c (write_inferior_data_pointer)
2373 (write_inferior_integer, write_inferior_int8)
2374 (write_inferior_uinteger, m_tracepoint_action_download)
2375 (r_tracepoint_action_download, x_tracepoint_action_download)
2376 (l_tracepoint_action_download, clear_inferior_trace_buffer)
2377 (download_agent_expr, download_tracepoint_1)
2378 (download_trace_state_variables, upload_fast_traceframes): Update.
2379 * server.c (gdb_write_memory): Update.
2380 * remote-utils.c (relocate_instruction): Update.
2381 * proc-service.c (ps_pdwrite): Update.
2382 * mem-break.c (remove_memory_breakpoint)
2383 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
2384 (uninsert_fast_tracepoint_jumps_at)
2385 (reinsert_fast_tracepoint_jumps_at): Update.
2386 * linux-x86-low.c (append_insns)
2387 (i386_install_fast_tracepoint_jump_pad)
2388 (amd64_write_goto_address, i386_write_goto_address): Update.
2389 * linux-s390-low.c (append_insns, s390_write_goto_address):
2391 * linux-ppc-low.c (ppc_relocate_instruction)
2392 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
2393 (ppc_write_goto_address): Update.
2394 * linux-aarch64-low.c (append_insns): Update.
2395 * target.h (struct target_ops): Update.
2396 (write_inferior_memory): Don't declare.
2397 * target.c (target_write_memory): Rename from
2398 write_inferior_memory. Remove old target_write_memory.
2400 2019-08-15 Tom Tromey <tromey@adacore.com>
2402 * target.c (write_inferior_memory): Use std::vector.
2404 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
2407 * configure.ac: Drop enable-libmcheck support.
2408 * configure, config.in: Rebuild.
2409 * acinclude.m4: Don't include it.
2411 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2413 * configure.srv: Remove Arm xml files.
2415 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2417 * configure.srv: Add new files. Remove xml generated files.
2418 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
2420 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
2421 * linux-aarch32-tdesc.c: New file.
2422 * linux-aarch32-tdesc.h: New file.
2423 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
2424 * linux-arm-low.c (init_registers_arm, tdesc_arm)
2425 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
2426 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
2427 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
2428 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
2429 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
2430 (arm_read_description): Call arm_linux_read_description.
2431 (initialize_low_arch): Don't init registers.
2432 * linux-arm-tdesc.c: New file.
2433 * linux-arm-tdesc.h: New file.
2435 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2437 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
2438 Move counter inside for.
2439 (arm_read_description): Check ptrace earlier.
2440 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
2442 2019-07-09 Tom Tromey <tom@tromey.com>
2444 * configure: Rebuild.
2445 * configure.ac: Change common to gdbsupport.
2446 * acinclude.m4: Change common to gdbsupport.
2447 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
2448 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
2449 common to gdbsupport.
2450 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
2451 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
2452 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
2453 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
2454 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
2455 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
2456 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
2457 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
2458 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
2459 common to gdbsupport.
2461 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2463 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
2465 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
2467 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2469 * configure.srv: Remove legacy xml.
2470 * linux-aarch64-low.c (initialize_low_arch): Remove
2471 initialize_low_tdesc call.
2472 * linux-aarch64-tdesc-selftest.c: Remove file.
2473 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
2474 * linux-x86-low.c (initialize_low_arch): Remove
2475 initialize_low_tdesc call.
2476 * linux-x86-tdesc-selftest.c: Remove file.
2477 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
2479 2019-06-20 Tom de Vries <tdevries@suse.de>
2481 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
2482 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
2484 2019-06-19 Tom de Vries <tdevries@suse.de>
2486 * debug.h (debug_write): Change return type to ssize_t.
2487 * debug.c (debug_write): Same.
2489 2019-06-14 Tom Tromey <tom@tromey.com>
2491 * configure.ac: Use new path to gnulib.
2492 * configure: Rebuild.
2493 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
2496 2019-06-11 Tom Tromey <tom@tromey.com>
2498 * Makefile.in (SFILES): Add alloc.c.
2500 (IPA_OBJS): Add alloc-ipa.o.
2501 (alloc-ipa.o): New target.
2502 (%.o: ../%.c): New pattern rule.
2504 2019-06-10 Tom Tromey <tromey@adacore.com>
2506 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
2507 end warning with a newline.
2508 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
2510 * thread-db.c (attach_thread): Don't end warning with a newline.
2511 (thread_db_notice_clone): Likewise.
2512 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
2514 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
2515 end warning with a newline.
2517 2019-06-04 Pedro Alves <palves@redhat.com>
2519 * server.c (captured_main): Use make_unique_xstrdup.
2521 2019-06-02 Tom Tromey <tom@tromey.com>
2523 * gdbreplay.c (fromhex): Remove.
2524 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
2526 2019-05-29 Tom Tromey <tromey@adacore.com>
2528 * configure: Rebuild.
2530 2019-05-06 Kevin Buettner <kevinb@redhat.com>
2532 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
2533 sign extension code on 32-bit builds.
2535 2019-05-03 Eli Zaretskii <eliz@gnu.org>
2538 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
2540 2019-04-19 Tom Tromey <tom@tromey.com>
2542 * server.c (struct vstop_notif): Derive from notif_event.
2544 (queue_stop_reply): Update.
2545 (remove_all_on_match_ptid): Change type. Rewrite.
2546 (discard_queued_stop_replies): Rewrite.
2547 (in_queued_stop_replies_ptid): Change type.
2548 (in_queued_stop_replies): Rewrite.
2549 (notif_stop): Update.
2550 (queue_stop_reply_callback): Update.
2551 (captured_main): Don't call initialize_notif.
2552 (push_stop_notification): Update.
2553 * notif.c (notif_write_event, handle_notif_ack)
2554 (notif_event_enque, notif_push): Update.
2555 (notif_event_xfree, initialize_notif): Remove.
2556 * notif.h (struct notif_event): Include <list>, not
2558 (struct notif_server) <queue>: Now a std::list.
2559 (notif_event_p): Remove typedef.
2560 (initialize_notif): Don't declare.
2561 (struct notif_event): Add virtual destructor.
2563 2019-04-17 Alan Hayward <alan.hayward@arm.com>
2565 * ax.c (ax_vdebug): Call debug_printf.
2566 * debug.c (debug_write): New function.
2567 * debug.h (debug_write): New declaration.
2568 * linux-low.c (sigchld_handler): Call debug_write.
2570 2019-04-17 Alan Hayward <alan.hayward@arm.com>
2572 * debug.c (debug_set_output): New function.
2573 (debug_vprintf): Send output to debug_file.
2574 (debug_flush): Likewise.
2575 * debug.h (debug_set_output): New declaration.
2576 * server.c (handle_monitor_command): Add debug-file option.
2577 (captured_main): Likewise.
2579 2019-04-17 Alan Hayward <alan.hayward@arm.com>
2581 * debug.c (remote_debug): Add definition.
2582 * debug.h (remote_debug): Add declaration.
2583 * hostio.c (remote_debug): Remove declaration.
2584 * remote-utils.c (struct ui_file): Likewise.
2585 (remote_debug): Likewise.
2586 * remote-utils.h (remote_debug): Likewise,
2587 * server.c (remote_debug): Remove definition.
2589 2019-04-10 Kevin Buettner <kevinb@redhat.com>
2591 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
2592 when using a 64-bit gdbserver.
2594 2019-04-09 Tom Tromey <tromey@adacore.com>
2596 * linux-low.c (select_event_lwp): Use find_thread_in_random.
2598 2019-04-08 Tom Tromey <tom@tromey.com>
2600 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
2602 (linux_resume_one_lwp): Likewise.
2604 2019-04-08 Tom Tromey <tom@tromey.com>
2606 * gdbreplay.c: Update.
2607 * linux-low.c: Update.
2610 2019-04-08 Tom Tromey <tom@tromey.com>
2612 * server.c: Use C++ exception handling.
2613 * linux-low.c: Use C++ exception handling.
2614 * gdbreplay.c: Use C++ exception handling.
2616 2019-04-08 Tom Tromey <tom@tromey.com>
2618 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
2619 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
2620 (captured_main, main): Update.
2621 * gdbreplay.c (main): Update.
2623 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2625 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
2626 value in argument pointer, return 1 if the entry is found and 0
2627 otherwise. Move comment.
2628 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
2629 * linux-low.h (linux_get_auxv): Declare.
2630 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
2632 2019-04-05 Tom Tromey <tromey@adacore.com>
2634 * server.c (gdbserver_usage): Use upper-case for metasyntactic
2637 2019-03-28 Alan Hayward <alan.hayward@arm.com>
2639 * linux-low.c (AT_HWCAP2): Add define if not already included.
2641 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2643 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
2644 (aarch64_arch_setup): Call linux_get_hwcap.
2645 * linux-arm-low.c (arm_get_hwcap): Remove function.
2646 (arm_read_description): Call linux_get_hwcap.
2647 * linux-low.c (linux_get_auxv): New function.
2648 (linux_get_hwcap): Likewise.
2649 (linux_get_hwcap2): Likewise.
2650 * linux-low.h (linux_get_hwcap): New declaration.
2651 (linux_get_hwcap2): Likewise.
2652 * linux-ppc-low.c (ppc_get_auxv): Remove function.
2653 (ppc_arch_setup): Call linux_get_hwcap.
2654 * linux-s390-low.c (s390_get_hwcap): Remove function.
2655 (s390_arch_setup): Call linux_get_hwcap.
2657 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2658 Jiong Wang <jiong.wang@arm.com>
2660 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
2661 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
2663 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
2665 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2666 Jiong Wang <jiong.wang@arm.com>
2668 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
2669 (aarch64_get_hwcap): New function.
2670 (aarch64_arch_setup): Read APIA hwcap.
2672 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2673 Jiong Wang <jiong.wang@arm.com>
2675 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
2676 (initialize_low_tracepoint): Likewise.
2677 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
2678 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
2679 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
2680 (aarch64_linux_read_description): Likewise.
2681 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
2683 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2685 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
2686 i386_create_target_description for 'segments' parameter.
2687 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
2688 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
2689 * win32-i386-low.c (i386_arch_setup): Likewise.
2691 2019-03-12 Tom Tromey <tromey@adacore.com>
2693 * linux-low.c (iterate_over_lwps): Update.
2695 2019-03-06 Tom Tromey <tom@tromey.com>
2697 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
2698 (captured_main): Use SCOPE_EXIT.
2700 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
2702 * configure.srv: Use '$enable_unittest' instead of '$development'
2703 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
2706 2019-02-27 Tom Tromey <tromey@adacore.com>
2708 * gdbreplay.c (logchar): Handle \r\n.
2710 2019-02-07 Alan Hayward <alan.hayward@arm.com>
2712 * linux-low.c (linux_attach): Add process before lwp.
2713 * server.c (attach_inferior): Check if already attached.
2715 2019-02-07 Tom Tromey <tom@tromey.com>
2717 * x86-tdesc.h: Rename include guard.
2718 * x86-low.h: Add include guard.
2719 * wincecompat.h: Rename include guard.
2720 * win32-low.h: Add include guard.
2721 * utils.h: Rename include guard.
2722 * tracepoint.h: Rename include guard.
2723 * tdesc.h: Rename include guard.
2724 * target.h: Rename include guard.
2725 * server.h: Rename include guard.
2726 * remote-utils.h: Rename include guard.
2727 * regcache.h: Rename include guard.
2728 * nto-low.h: Rename include guard.
2729 * notif.h: Add include guard.
2730 * mem-break.h: Rename include guard.
2731 * lynx-low.h: Add include guard.
2732 * linux-x86-tdesc.h: Add include guard.
2733 * linux-s390-tdesc.h: Add include guard.
2734 * linux-ppc-tdesc-init.h: Add include guard.
2735 * linux-low.h: Add include guard.
2736 * linux-aarch64-tdesc.h: Add include guard.
2737 * linux-aarch32-low.h: Add include guard.
2738 * inferiors.h: Rename include guard.
2739 * i387-fp.h: Rename include guard.
2740 * hostio.h: Rename include guard.
2741 * gdbthread.h: Rename include guard.
2742 * gdb_proc_service.h: Rename include guard.
2743 * event-loop.h: Rename include guard.
2744 * dll.h: Rename include guard.
2745 * debug.h: Rename include guard.
2746 * ax.h: Rename include guard.
2748 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
2751 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
2752 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
2754 2019-01-25 Tom Tromey <tom@tromey.com>
2756 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
2758 2019-01-25 Tom Tromey <tom@tromey.com>
2760 * win32-low.c: Fix common/ includes.
2761 * win32-i386-low.c: Fix common/ includes.
2762 * tracepoint.c: Fix common/ includes.
2763 * thread-db.c: Fix common/ includes.
2764 * target.h: Fix common/ includes.
2765 * symbol.c: Fix common/ includes.
2766 * spu-low.c: Fix common/ includes.
2767 * server.h: Fix common/ includes.
2768 * server.c: Fix common/ includes.
2769 * remote-utils.c: Fix common/ includes.
2770 * regcache.h: Fix common/ includes.
2771 * regcache.c: Fix common/ includes.
2772 * nto-x86-low.c: Fix common/ includes.
2773 * notif.h: Fix common/ includes.
2774 * mem-break.h: Fix common/ includes.
2775 * lynx-low.c: Fix common/ includes.
2776 * lynx-i386-low.c: Fix common/ includes.
2777 * linux-x86-tdesc-selftest.c: Fix common/ includes.
2778 * linux-x86-low.c: Fix common/ includes.
2779 * linux-low.c: Fix common/ includes.
2780 * inferiors.h: Fix common/ includes.
2781 * i387-fp.c: Fix common/ includes.
2782 * hostio.c: Fix common/ includes.
2783 * hostio-errno.c: Fix common/ includes.
2784 * gdbthread.h: Fix common/ includes.
2785 * gdbreplay.c: Fix common/ includes.
2786 * fork-child.c: Fix common/ includes.
2787 * event-loop.c: Fix common/ includes.
2789 (enum gdb_agent_op): Fix common/ includes.
2791 2019-01-21 Tom Tromey <tom@tromey.com>
2793 * tracepoint.c: Fix includes.
2794 * remote-utils.c: Fix includes.
2795 * linux-x86-low.c: Fix includes.
2797 2019-01-01 Joel Brobecker <brobecker@adacore.com>
2799 * gdbreplay.c (gdbreplay_version): Update copyright year in
2801 * server.c (gdbserver_version): Likewise.
2803 2018-12-05 Alan Hayward <alan.hayward@arm.com>
2805 * linux-low.c (add_lwp): Switch ordering.
2807 2018-11-29 Tom Tromey <tom@tromey.com>
2809 * win32-low.c (win32_join): Take pid, not process.
2810 * target.h (struct target_ops) <join>: Change argument type.
2811 (join_inferior): Change argument name.
2812 * spu-low.c (spu_join): Take pid, not process.
2813 * server.c (handle_detach): Preserve pid before destroying
2815 * lynx-low.c (lynx_join): Take pid, not process.
2816 * linux-low.c (linux_join): Take pid, not process.
2818 2018-11-23 Alan Hayward <alan.hayward@arm.com>
2820 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
2821 (aarch64_cannot_fetch_register): Likewise.
2822 (struct linux_target_ops): Update references.
2824 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2826 * linux-ppc-low.c: Include nat/linux-ptrace.h.
2828 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2830 * configure.srv (ipa_ppc_linux_regobj): Add
2831 powerpc-isa207-htm-vsx32l-ipa.o and
2832 powerpc-isa207-htm-vsx64l-ipa.o.
2833 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
2834 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
2835 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
2836 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
2837 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
2838 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
2839 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
2840 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
2841 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2842 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
2843 (init_registers_powerpc_isa207_htm_vsx32l)
2844 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
2845 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
2846 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
2847 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
2848 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
2849 (ppc_store_tm_ctarregset): New functions.
2850 (ppc_regsets): Add entries for HTM regsets.
2851 (ppc_arch_setup): Set htm in features struct when needed. Set
2852 sizes for the HTM regsets.
2853 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
2854 (initialize_low_arch): Call
2855 init_registers_powerpc_isa207_htm_vsx32l and
2856 init_registers_powerpc_isa207_htm_vsx64l.
2857 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
2858 PPC_TDESC_ISA207_HTM_VSX.
2859 (initialize_low_tracepoint): Call
2860 init_registers_powerpc_isa207_htm_vsx32l and
2861 init_registers_powerpc_isa207_htm_vsx64l.
2863 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2865 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
2866 rs6000/power-linux-pmu.xml to srv_xmlfiles.
2867 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
2868 (ppc_store_pmuregset): New functions.
2869 (ppc_regsets): Add entries for ebb and pmu regsets.
2870 (ppc_arch_setup): Set isa207 in features struct if the ebb and
2871 pmu regsets are available. Set sizes for these regsets.
2873 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2875 * configure.srv (ipa_ppc_linux_regobj): Add
2876 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
2877 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
2878 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
2879 rs6000/powerpc-isa207-vsx32l.xml, and
2880 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
2881 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2882 <PPC_TDESC_ISA207_VSX>: New enum value.
2883 (init_registers_powerpc_isa207_vsx32l): Declare.
2884 (init_registers_powerpc_isa207_vsx64l): Declare.
2885 * linux-ppc-low.c (ppc_fill_tarregset): New function.
2886 (ppc_store_tarregset): New function.
2887 (ppc_regsets): Add entry for the TAR regset.
2888 (ppc_arch_setup): Set isa207 in features struct when needed. Set
2889 size for the TAR regsets.
2890 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
2891 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
2892 and init_registers_powerpc_isa207_vsx64l.
2893 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
2894 (initialize_low_tracepoint): Call
2895 init_registers_powerpc_isa207_vsx32l and
2896 init_registers_powerpc_isa207_vsx64l.
2898 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2899 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2901 * configure.srv (ipa_ppc_linux_regobj): Add
2902 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
2903 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
2904 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
2905 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
2906 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
2907 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
2908 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
2909 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2910 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
2911 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
2912 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
2913 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
2914 (ppc_hwcap): Add comment.
2915 (ppc_hwcap2): New global.
2916 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
2917 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
2918 (ppc_regsets): Add entries for the DSCR and PPR regsets.
2919 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
2920 when needed. Set sizes for the the DSCR and PPR regsets.
2921 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
2922 (initialize_low_arch): Call
2923 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
2924 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
2925 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
2926 PPC_TDESC_ISA205_PPR_DSCR_VSX.
2927 (initialize_low_tracepoint): Call
2928 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
2929 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
2931 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2933 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
2935 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
2936 Simon Marchi <simark@simark.ca>
2938 * acinclude.m4: Include "../selftest.m4".
2939 * configure: Regenerate.
2940 * configure.ac: Use "GDB_AC_SELFTEST".
2941 * configure.srv: Use "$enable_unittests" instead of
2942 "$development" when checking whether unit tests have been
2944 * server.c (captured_main): Update message informing that
2945 selftests have been disabled.
2947 2018-10-04 Tom Tromey <tom@tromey.com>
2949 * configure: Rebuild.
2951 2018-10-04 Tom Tromey <tom@tromey.com>
2953 * server.c (handle_status): Rename inner "thread".
2954 (process_serial_event): Declare "res" in 'm' case.
2955 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
2956 (iterate_over_lwps): Rename inner "thread".
2957 (linux_qxfer_libraries_svr4): Rename inner "len".
2958 * gdbthread.h (find_thread_in_random): Rename inner "thread".
2960 2018-10-01 Gary Benson <gbenson@redhat.com>
2962 * gdb_proc_service.h: Moved common code to
2963 common/gdb_proc_service.h.
2965 2018-10-01 Gary Benson <gbenson@redhat.com>
2967 * gdb_proc_service.h: Synchronize comments and whitespace with
2968 GDB's version of this file.
2970 2018-09-25 Tom Tromey <tom@tromey.com>
2972 * configure: Rebuild.
2973 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
2975 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2977 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
2978 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
2979 ($(IPA_LIB)): Sort IPA_OBJS.
2981 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2983 * Makefile.in: Remove references to $(ADD_DEPS).
2985 2018-09-16 Tom Tromey <tom@tromey.com>
2987 * remote-utils.c (remote_open): Use GNU style for metasyntactic
2989 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
2992 2018-09-05 Tom Tromey <tom@tromey.com>
2994 * configure: Rebuild.
2996 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2999 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
3001 2018-08-27 Tom Tromey <tom@tromey.com>
3004 * configure: Rebuild.
3006 2018-08-27 Tom Tromey <tom@tromey.com>
3008 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
3009 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
3010 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
3011 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
3012 (s390x_emit_stack_adjust): Add casts to unsigned char.
3014 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
3018 * server.h (struct client_state) <disable_randomization>:
3021 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3023 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
3025 (mips_supply_ptrace_register): Likewise.
3027 2018-07-22 Tom Tromey <tom@tromey.com>
3029 * configure: Rebuild.
3031 2018-07-22 Tom Tromey <tom@tromey.com>
3033 * win32-low.c (win32_create_inferior): Remove unused variables.
3034 * gdbreplay.c (remote_open): Remove unused variable.
3035 * remote-utils.c (remote_prepare): Remove unused variable.
3036 * x86-tdesc.h (X86_TDESC_H): Define.
3037 (amd64_expedite_regs): Define conditionally.
3038 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
3039 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
3040 * remote-utils.c (readchar): Remove unused variable.
3042 2018-07-13 Pedro Alves <palves@redhat.com>
3044 * linux-low.c (linux_kill): Change parameter to process_info
3045 pointer instead of pid. Adjust.
3046 * lynx-low.c (lynx_kill): Likewise.
3047 * nto-low.c (nto_kill): Likewise.
3048 * spu-low.c (spu_kill): Likewise.
3049 * win32-low.c (win32_kill): Likewise.
3050 * server.c (handle_v_kill, kill_inferior_callback)
3051 (detach_or_kill_for_exit): Adjust.
3052 * target.c (kill_inferior): Change parameter to process_info
3053 pointer instead of pid. Adjust.
3054 * target.h (struct target_ops) <kill>: Change parameter to
3055 process_info pointer instead of pid. Adjust all implementations
3057 (kill_inferior): Likewise.
3059 2018-07-13 Pedro Alves <palves@redhat.com>
3061 * linux-low.c (linux_detach, linux_join): Change parameter to
3062 process_info pointer instead of pid. Adjust.
3063 * lynx-low.c (lynx_detach, lynx_join): Likewise.
3064 * nto-low.c (nto_detach): Likewise.
3065 * spu-low.c (spu_detach, spu_join): Likewise.
3066 * win32-low.c (win32_detach, win32_join): Likewise.
3067 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
3068 * target.h (struct target_ops) <detach, join>: Change parameter to
3069 process_info pointer instead of pid. Adjust all implementations
3071 (detach_inferior, join_inferior): Rename 'pid' parameter to
3074 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3075 Jan Kratochvil <jan.kratochvil@redhat.com>
3076 Paul Fertser <fercerpav@gmail.com>
3077 Tsutomu Seki <sekiriki@gmail.com>
3079 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
3080 (OBS): Add 'common/netstuff.o'.
3081 (GDBREPLAY_OBS): Likewise.
3082 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
3083 (remote_open): Implement support for IPv6
3085 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
3087 (handle_accept_event): Accept connections from IPv6 sources.
3088 (remote_prepare): Handle IPv6-style hostnames; implement
3089 support for IPv6 connections.
3090 (remote_open): Implement support for printing connections from
3093 2018-07-11 Pedro Alves <palves@redhat.com>
3096 * mem-break.c (any_persistent_commands): Add process_info
3097 parameter and use it instead of relying on the current process.
3098 Change return type to bool.
3099 * mem-break.h (any_persistent_commands): Add process_info
3100 parameter and change return type to bool.
3101 * server.c (handle_detach): Remove require_running_or_return call.
3102 Look up the process_info for the process we're about to detach.
3103 If not found, return back error to GDB. Adjust
3104 any_persistent_commands call to pass down a process pointer.
3106 2018-07-11 Pedro Alves <palves@redhat.com>
3108 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
3109 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
3110 instead of collect_register_by_name.
3111 * regcache.c (regcache_raw_get_unsigned_by_name): New.
3112 * regcache.h (regcache_raw_get_unsigned_by_name): New.
3114 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
3115 Pedro Alves <palves@redhat.com>
3117 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
3119 2018-07-03 Tom Tromey <tom@tromey.com>
3121 * linux-low.c: Update.
3122 * lynx-low.c: Update.
3123 * mem-break.c: Update.
3124 * nto-low.c: Update.
3125 * remote-utils.c: Update.
3127 * spu-low.c: Update.
3129 * win32-low.c: Update.
3131 2018-07-03 Tom Tromey <tom@tromey.com>
3135 2018-07-03 Tom Tromey <tom@tromey.com>
3137 * linux-low.c: Update.
3139 2018-07-03 Tom Tromey <tom@tromey.com>
3143 2018-07-03 Tom Tromey <tom@tromey.com>
3145 * linux-low.c: Update.
3146 * linux-mips-low.c: Update.
3147 * lynx-low.c: Update.
3148 * nto-low.c: Update.
3149 * remote-utils.c: Update.
3151 * spu-low.c: Update.
3153 * thread-db.c: Update.
3155 2018-07-03 Tom Tromey <tom@tromey.com>
3157 * linux-low.c: Update.
3158 * linux-mips-low.c: Update.
3159 * lynx-low.c: Update.
3160 * mem-break.c: Update.
3161 * nto-low.c: Update.
3162 * remote-utils.c: Update.
3164 * spu-low.c: Update.
3166 * tracepoint.c: Update.
3168 2018-07-03 Tom Tromey <tom@tromey.com>
3170 * linux-low.c: Update.
3171 * linux-ppc-low.c: Update.
3172 * linux-x86-low.c: Update.
3173 * proc-service.c: Update.
3175 * spu-low.c: Update.
3176 * thread-db.c: Update.
3177 * win32-low.c: Update.
3179 2018-07-03 Tom Tromey <tom@tromey.com>
3181 * linux-low.c: Update.
3182 * lynx-low.c: Update.
3183 * nto-low.c: Update.
3184 * remote-utils.c: Update.
3185 * spu-low.c: Update.
3186 * thread-db.c: Update.
3187 * win32-low.c: Update.
3189 2018-06-29 Joel Brobecker <brobecker@adacore.com>
3191 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
3192 parameter in call to 'amd64_create_target_description'.
3194 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3196 * x86-tdesc.h: Remove executable permission flag.
3198 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
3200 * configure.ac: Remove AC_PREREQ, add missing quoting.
3201 * configure: Re-generate.
3202 * config.in: Re-generate.
3203 * aclocal.m4: Re-generate.
3205 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
3207 * tracepoint.h (current_traceframe): Remove declaration.
3209 2018-06-18 Alan Hayward <alan.hayward@arm.com>
3211 * linux-aarch64-low.c (is_sve_tdesc): New function.
3212 (aarch64_sve_regs_copy_to_regcache): Likewise.
3213 (aarch64_sve_regs_copy_from_regcache): Likewise.
3214 (aarch64_regs_info): Add SVE checks.
3215 (initialize_low_arch): Initialize SVE.
3217 2018-06-18 Alan Hayward <alan.hayward@arm.com>
3219 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
3221 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3223 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
3224 (initialize_low_tracepoint): Likewise
3225 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
3226 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
3228 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
3230 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
3232 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3234 * server.h (PBUFSIZ): Increase size
3236 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3238 * regcache.c (regcache::raw_compare): New function.
3239 * regcache.h (regcache::raw_compare): New declaration.
3241 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3243 * regcache.c (new_register_cache): Use new.
3244 (free_register_cache): Use delete.
3245 (register_data): Use const.
3246 (supply_register): Move body inside regcache.
3247 (regcache::raw_supply): New override function.
3248 (collect_register): Move body inside regcache.
3249 (regcache::raw_collect): New override function.
3250 (regcache::get_register_status): New override function.
3251 * regcache.h (struct regcache): Inherit from reg_buffer_common.
3253 2018-06-09 Tom Tromey <tom@tromey.com>
3255 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
3257 (event_queue): Use std::queue.
3258 (gdb_event_xfree): Remove.
3259 (initialize_event_loop, process_event, wait_for_event): Update.
3261 2018-06-08 Stan Cox <scox@redhat.com>
3263 * win32-low.c (win32_create_inferior): last_ptid and last_status
3264 moved to client_state.
3266 2018-06-08 Pedro Alves <palves@redhat.com>
3268 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
3269 common/common-exceptions.o, common/common-utils.o,
3270 common/errors.o, common/print-utils.o and utils.o.
3271 * gdbreplay.c: Include "common-defs.h" instead of the two
3272 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
3273 string.h or alloca.h.
3274 (perror_with_name): Delete.
3275 (remote_open): Use xstrdup instead of strdup.
3276 (main): Rename to ...
3277 (captured_main): ... this.
3280 2018-06-08 Tom Tromey <tom@tromey.com>
3282 * linux-low.c (linux_low_read_btrace): Update.
3284 2018-06-04 Stan Cox <scox@redhat.com>
3286 * server.h (struct client_state): New.
3287 * server.c (cont_thread, general_thread, multi_process)
3288 (report_fork_events, report_vfork_events, report_exec_events)
3289 (report_thread_events, swbreak_feature, hwbreak_feature)
3290 (vCont_supported, disable_randomization, pass_signals)
3291 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
3292 Moved to client_state.
3293 * remote-utils.c (remote_debug, noack_mode)
3294 (transport_is_reliable): Moved to client_state.
3295 * tracepoint.c (current_traceframe): Moved to client_state.
3298 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
3299 linux-low.c, remote-utils.h, target.c: Use client_state.
3301 2018-05-31 Alan Hayward <alan.hayward@arm.com>
3303 * configure.srv: Add new c/h file.
3305 2018-05-31 Alan Hayward <alan.hayward@arm.com>
3307 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
3310 2018-05-25 Maciej W. Rozycki <macro@mips.com>
3312 * gdb.arch/mips-fpregset-core.exp: New test.
3313 * gdb.arch/mips-fpregset-core.c: New test source.
3315 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
3318 * hostio.c (require_int): Do not report overflow for integers
3319 between 0xfffffff and 0x7fffffff.
3321 2018-05-22 Maciej W. Rozycki <macro@mips.com>
3323 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
3324 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
3325 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
3327 (the_low_target): Wire them.
3329 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3331 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
3332 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
3333 mode. Call collect_register_by_name with vscr using
3334 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
3335 (ppc_store_vrregset): Add and set vscr_offset variable as in
3336 ppc_fill_vrregset. Call supply_register_by_name with vscr using
3339 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3341 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
3342 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
3343 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
3345 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3347 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
3348 (ppc_store_vsxregset): Likewise.
3349 (ppc_fill_vrregset): Likewise.
3350 (ppc_store_vrregset): Likewise.
3351 (ppc_fill_evrregset): Likewise.
3352 (ppc_store_evrregset): Likewise.
3353 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
3354 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
3357 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3359 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
3360 wordsize of the inferior. Call ppc_linux_target_wordsize.
3362 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3364 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
3365 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
3366 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
3367 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
3368 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
3369 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
3370 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
3371 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
3372 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
3373 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
3374 (tdesc_powerpc_e500l): Remove.
3375 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
3376 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
3377 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
3378 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
3380 (ppc_arch_setup): Remove target description matching code. Fill a
3381 ppc_linux_features struct and call ppc_linux_match_description
3384 2018-05-22 Maciej W. Rozycki <macro@mips.com>
3386 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
3387 width of the requested register exceeds the width of the
3389 (mips_cannot_store_register): Likewise.
3391 2018-05-21 Maciej W. Rozycki <macro@mips.com>
3393 * linux-mips-low.c (mips_fetch_register): New function. Update
3395 (mips_store_gregset): Supply 0 rather than $restart for $zero.
3396 (the_low_target): Wire `mips_fetch_register'.
3398 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3400 * lynx-i386-low.c (LYNXOS_178): New macro.
3401 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
3402 the layout on LynxOS-178.
3403 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
3404 handle floating point registers that are not supported by
3407 2018-05-10 Tom Tromey <tom@tromey.com>
3409 * configure: Rebuild.
3411 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3414 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
3415 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
3416 Use it to set the expedite_regs field in the given tdesc.
3417 * x86-tdesc.h: New file.
3418 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
3419 Adjust following the addition of the new expedite_regs parameter
3420 to init_target_desc.
3421 * linux-tic6x-low.c (tic6x_read_description): Likewise.
3422 * linux-x86-tdesc.c: #include "x86-tdesc.h".
3423 (i386_linux_read_description, amd64_linux_read_description):
3424 Adjust following the addition of the new expedite_regs parameter
3425 to init_target_desc.
3426 * lynx-i386-low.c: #include "x86-tdesc.h".
3427 (lynx_i386_arch_setup): Adjust following the addition of the new
3428 expedite_regs parameter to init_target_desc.
3429 * nto-x86-low.c: #include "x86-tdesc.h".
3430 (nto_x86_arch_setup): Adjust following the addition of the new
3431 expedite_regs parameter to init_target_desc.
3432 * win32-i386-low.c: #include "x86-tdesc.h".
3433 (i386_arch_setup): Adjust following the addition of the new
3434 expedite_regs parameter to init_target_desc.
3436 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3439 * win32-low.c (win32_create_inferior): Add call to my_wait
3440 setting last_status global.
3442 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3445 * win32-low.c (create_process): Only call gdb_tilde_expand if
3446 inferior_cwd is not NULL.
3448 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
3450 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
3451 registers to the cache if their values have changed.
3452 (i387_xsave_to_cache): Provide default values for x87 control
3453 registers when these features are available, but disabled.
3454 * regcache.c (supply_register_by_name_zeroed): New function.
3455 * regcache.h (supply_register_by_name_zeroed): Declare new
3458 2018-05-07 Tom Tromey <tom@tromey.com>
3460 * configure: Rebuild.
3462 2018-05-04 Tom Tromey <tom@tromey.com>
3464 * configure: Rebuild.
3466 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3467 Pedro Alves <palves@redhat.com>
3469 * linux-aarch64-low.c (aarch64_stopped_data_address):
3472 2018-04-27 Tom Tromey <tom@tromey.com>
3474 * configure: Rebuild.
3476 2018-04-23 Tom Tromey <tom@tromey.com>
3478 * configure: Rebuild.
3480 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
3482 * Makefile.in (depcomp): Add "..".
3483 (all_deps_files): New and use it.
3485 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3487 * configure.srv (aarch64*-*-linux*): Don't include xml.
3488 (i[34567]86-*-cygwin*): Likewise.
3489 (i[34567]86-*-linux*): Likewise.
3490 (i[34567]86-*-lynxos*): Likewise.
3491 (i[34567]86-*-mingw32ce*): Likewise.
3492 (i[34567]86-*-mingw*): Likewise.
3493 (i[34567]86-*-nto*): Likewise.
3494 (tic6x-*-uclinux): Likewise.
3495 (x86_64-*-linux*): Likewise.
3496 (x86_64-*-mingw*): Likewise.
3497 (x86_64-*-cygwin*): Likewise.
3499 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3501 * tdesc.c: Remove xml parameter.
3503 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3505 * server.c (get_features_xml): Remove cast.
3506 * tdesc.c (void target_desc::accept): Fill in function.
3507 (tdesc_get_features_xml): Remove old xml creation.
3508 (print_xml_feature::visit_pre): Add xml vistor.
3509 * tdesc.h (struct target_desc): Make xmltarget mutable.
3510 (tdesc_get_features_xml): Remove declaration.
3512 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3514 * tdesc.c (tdesc_architecture_name): Add new function.
3515 (tdesc_osabi_name): Likewise.
3516 (tdesc_get_features_xml): Use new functions.
3518 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3520 * tdesc.c (tdesc_create_flags): Remove.
3521 (tdesc_add_flag): Likewise.
3522 (tdesc_named_type): Likewise.
3523 (tdesc_create_union): Likewise.
3524 (tdesc_create_struct): Likewise.
3525 (tdesc_create_vector): Likewise.
3526 (tdesc_add_bitfield): Likewise.
3527 (tdesc_add_field): Likewise.
3528 (tdesc_set_struct_size): Likewise.
3530 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3532 * tdesc.c (~target_desc): Remove implictly deleted items.
3533 (init_target_desc): Iterate all features.
3534 (tdesc_get_features_xml): Use vector.
3535 (tdesc_create_feature): Create feature.
3536 * tdesc.h (tdesc_feature) Remove
3537 (target_desc): Add features.
3539 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3541 * Makefile.in: Add common/tdesc.c
3542 * tdesc.c (init_target_desc): init all reg_defs from register
3544 (tdesc_create_reg): Create tdesc_reg.
3545 * tdesc.h (tdesc_feature): Add register vector.
3547 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
3549 * tdesc.h (struct target_desc) <features>: Change type to
3550 std::vector<std::string>.
3551 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
3553 (tdesc_get_features_xml): Likewise.
3554 (tdesc_create_feature): Likewise.
3556 2018-03-26 Alan Hayward <alan.hayward@arm.com>
3558 * regcache.c (find_register_by_number): Return a ref.
3559 (find_regno): Use references.
3560 (register_size): Likewise.
3561 (register_data): Likewise.
3562 * tdesc.c (target_desc::~target_desc): Remove free calls.
3563 (target_desc::operator==): Use std::vector compare.
3564 (init_target_desc): Use reference.
3565 (tdesc_create_reg): Use reg constructors.
3566 * tdesc.h (struct target_desc): Replace pointer with object.
3568 2018-03-23 Alan Hayward <alan.hayward@arm.com>
3570 * regcache.c (find_register_by_number): Make static.
3571 (find_regno): Use find_register_by_number
3572 * regcache.h (struct reg): Remove declaration.
3574 2018-03-23 Alan Hayward <alan.hayward@arm.com>
3576 * tdesc.c (target_desc::~target_desc): Move to here.
3577 (target_desc::operator==): Likewise.
3578 * tdesc.h (target_desc::~target_desc): Move from here.
3579 (target_desc::operator==): Likewise.
3581 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
3583 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
3585 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3587 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
3589 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
3590 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
3591 and init_registers_s390_gs_linux64.
3593 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3595 * linux-s390-low.c (s390_fill_gs): Remove function.
3596 (s390_fill_gsbc): Remove function.
3597 (s390_regsets): Set fill functions for the guarded storage regsets
3600 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3602 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
3603 the word size. Add comment.
3604 (s390_get_wordsize): New function.
3605 (s390_arch_setup): No longer select a temporary tdesc to fetch the
3606 pswm with it. Instead, use s390_get_wordsize to determine the
3607 word size first and derive the correct tdesc from that directly.
3609 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
3611 * Makefile.in: Include silent-rules.mk.
3612 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
3613 (COMPILE): Add ECHO_CXX.
3614 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
3615 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
3616 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
3617 (version-generated.c): Add ECHO_GEN.
3618 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
3619 (IPAGENT_COMPILE): Add ECHO_CXX.
3620 (%-generated.c): Add ECHO_REGDAT.
3622 2018-03-14 Tom Tromey <tom@tromey.com>
3625 * ax.c (ax_printf): Special case for NULL.
3627 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
3629 * linux-low.c (linux_qxfer_libraries_svr4): Use
3630 xml_escape_text_append.
3632 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
3634 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
3636 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3638 * server.c (handle_general_set): Remove unnecessary xstrdup.
3640 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3642 * server.c (parse_debug_format_options): Adjust to
3643 delim_string_to_char_ptr_vec changes.
3644 * thread-db.c (thread_db_load_search): Adjust to
3645 dirnames_to_char_ptr_vec changes.
3647 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
3649 * target.h (target_enable_btrace, target_disable_btrace)
3650 (target_read_btrace, target_read_btrace_conf): Turn macro into
3651 inline function. Throw error if target method is not defined.
3652 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
3653 check for btrace target method. Be prepared to handle exceptions
3654 from btrace target methods.
3656 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3658 * server.c (captured_main): Change order of error message printed
3659 when the current working directory cannot be found.
3661 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3663 * server.c: Include "filenames.h" and "pathstuff.h".
3664 (program_name): Delete variable.
3665 (program_path): New anonymous class.
3666 (get_exec_wrapper): Use "program_path" instead of
3668 (handle_v_run): Likewise.
3669 (captured_main): Likewise.
3670 (process_serial_event): Likewise.
3672 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3674 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
3675 (OBJS): Add "pathstuff.o".
3676 * server.c (current_directory): New global variable.
3677 (captured_main): Initialize "current_directory".
3679 2018-02-26 Alan Hayward <alan.hayward@arm.com>
3681 * tdesc.c: Use common/tdesc.h.
3682 * tdesc.h: Likewise.
3684 2018-02-20 Alan Hayward <alan.hayward@arm.com>
3685 Simon Marchi <simon.marchi@ericsson.com>
3687 * Makefile.in: Switch order of make rules.
3689 2018-02-19 Alan Hayward <alan.hayward@arm.com>
3691 * Makefile.in: Add common directory in build.
3692 * configure.ac: Add common reference.
3693 * configure: Regenerate.
3695 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
3697 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
3698 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
3699 * spu-low.c (spu_target_ops): Likewise.
3700 * win32-low.c (win32_target_ops): Likewise.
3701 * server.c (supported_btrace_packets): Report packets unconditionally.
3702 * target.h (target_ops) <supports_btrace>: Remove.
3703 (target_supports_btrace): Remove.
3705 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
3707 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
3708 (handle_btrace_disable): Change return type to void. Use exceptions
3710 (handle_btrace_general_set): Catch exception and copy message to
3713 2018-02-08 Tom Tromey <tom@tromey.com>
3715 * linux-low.c (install_software_single_step_breakpoints): Use
3716 make_scoped_restore.
3717 * inferiors.c (make_cleanup_restore_current_thread): Remove.
3718 (do_restore_current_thread_cleanup): Remove.
3719 * gdbthread.h (make_cleanup_restore_current_thread): Don't
3722 2018-02-08 Tom Tromey <tom@tromey.com>
3724 * mem-break.c (set_raw_breakpoint_at): Use
3725 gdb::unique_xmalloc_ptr.
3727 2018-01-30 Pedro Alves <palves@redhat.com>
3730 * target.c (target_terminal::terminal_state): Rename to ...
3731 (target_terminal::m_terminal_state): ... this.
3733 2018-01-19 James Clarke <jrtc27@jrtc27.com>
3735 * linux-low.c (handle_extended_wait): Surround call to
3736 thread_db_notice_clone with #ifdef USE_THREAD_DB.
3738 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
3740 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
3741 linux_ptrace_attach_fail_reason_string now returning an
3743 (linux_attach): Likewise.
3744 * thread-db.c (attach_thread): Likewise.
3746 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
3749 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
3750 checking for fs_base/gs_base fields in struct user_regs_struct.
3751 * configure: Regenerate.
3753 2018-01-16 Yao Qi <yao.qi@linaro.org>
3756 * linux-low.c (fetch_register): Call supply_register instead of
3759 2018-01-08 Yao Qi <yao.qi@linaro.org>
3760 Simon Marchi <simon.marchi@ericsson.com>
3762 * Makefile.in (OBS): Remove selftest.o.
3763 * configure.ac: Set srv_selftest_objs if $development is true.
3764 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
3765 * configure: Re-generated.
3766 * server.c (captured_main): Wrap variable selftest_filter with
3769 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3771 * server.c (parse_debug_format_options): Return std::string.
3772 (handle_monitor_command, captured_main): Adjust.
3774 2018-01-05 Pedro Alves <palves@redhat.com>
3777 * server.c (captured_main): Pass quiet=false to
3778 save_original_signals_state.
3780 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3782 * gdbreplay.c (gdbreplay_version): Update copyright year in
3784 * server.c (gdbserver_version): Likewise.
3786 2017-12-08 Tom Tromey <tom@tromey.com>
3788 * ax.c (ax_printf): Update.
3790 2017-12-07 Yao Qi <yao.qi@linaro.org>
3792 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
3793 aarch64_linux_read_description.
3794 * linux-amd64-ipa.c (idx2mask): New array.
3795 (get_ipa_tdesc): Move idx2mask out.
3796 (initialize_low_tracepoint): Initialize target descriptions.
3797 * linux-i386-ipa.c (idx2mask): New array.
3798 (get_ipa_tdesc): Move idx2mask out.
3799 (initialize_low_tracepoint): Initialize target descriptions.
3801 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
3803 * tdesc.c (struct tdesc_type): Change return type.
3804 (tdesc_add_flag): Change parameter type.
3805 (tdesc_add_bitfield): Likewise.
3806 (tdesc_add_field): Likewise.
3807 (tdesc_set_struct_size): Likewise.
3809 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
3811 * regcache.c (registers_to_string): Remove unused variable.
3813 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3815 * inferiors.c (for_each_inferior_with_data): Remove.
3816 * inferiors.h (for_each_inferior_with_data): Remove.
3817 * server.c (handle_qxfer_threads_worker): Change parameter type.
3818 (handle_qxfer_threads_proper): Use for_each_thread.
3820 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3822 * inferiors.c (for_each_inferior): Remove.
3823 (clear_inferiors): Use for_each_thread.
3824 * inferiors.h (for_each_inferior): Remove.
3825 * linux-low.c (linux_wait_for_event_filtered): Use
3827 (linux_stabilize_threads): Likewise.
3828 * regcache.c (regcache_release): Likewise.
3829 * server.c (gdb_wants_all_threads_stopped): Likewise.
3830 (clear_pending_status_callback): Remove.
3831 (handle_status): Use for_each_thread.
3832 (captured_main): Likewise.
3833 * win32-low.c (child_init_thread_list): Likewise.
3834 (win32_clear_inferiors): Likewise.
3835 (fake_breakpoint_event): Likewise.
3837 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3839 * inferiors.h (find_inferior): Remove.
3840 * inferiors.c (find_inferior): Remove.
3842 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3844 * linux-low.c (resume_status_pending_p): Update comment.
3845 (need_step_over_p): Update comment.
3847 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3849 * linux-low.c (proceed_one_lwp): Return void, change parameter
3851 (unsuspend_and_proceed_one_lwp): Likewise.
3852 (proceed_all_lwps): Use for_each_thread.
3853 (unstop_all_lwps): Likewise.
3855 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3857 * linux-low.c (linux_resume_one_thread): Return void, take
3859 (linux_resume): Use for_each_thread.
3861 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3863 * linux-low.c (send_sigstop_callback): Return void, change
3864 parameter type. Rename to...
3865 (send_sigstop): ... this.
3866 (suspend_and_send_sigstop_callback): Return void, change parameter
3868 (suspend_and_send_sigstop): ... this.
3869 (stop_all_lwps): Use for_each_thread.
3871 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3873 * linux-low.c (lwp_running): Return bool, remove unused
3875 (linux_stabilize_threads): Use find_thread.
3877 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3879 * linux-low.c (select_singlestep_lwp_callback): Remove.
3880 (count_events_callback): Remove.
3881 (select_event_lwp_callback): Remove.
3882 (select_event_lwp): Use find_thread/for_each_thread.
3884 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3886 * linux-low.c (not_stopped_callback): Return bool, take filter
3888 (linux_wait_for_event_filtered): Use find_thread.
3889 (linux_wait_1): Likewise.
3891 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3893 * linux-low.c (same_lwp): Remove.
3894 (find_lwp_pid): Use find_thread.
3896 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3898 * linux-low.c (delete_lwp_callback): Remove.
3899 (linux_mourn): Use for_each_thread.
3901 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3903 * linux-low.c (linux_detach_lwp_callback): Return void, remove
3904 args parameter, don't check for pid.
3905 (linux_detach): Use for_each_thread.
3907 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3909 * linux-low.c (struct counter): Remove.
3910 (second_thread_of_pid_p): Remove.
3911 (last_thread_of_process_p): Use find_thread.
3913 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3915 * inferiors.c (find_inferior_in_random): Remove.
3916 * inferiors.h (find_inferior_in_random): Remove.
3917 * linux-low.c (status_pending_p_callback): Return bool, accept
3918 parameter ptid directly.
3919 (linux_wait_for_event_filtered): Use find_thread_in_random.
3920 (linux_wait_1): Likewise.
3922 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3924 * inferiors.c (find_inferior_id): Remove.
3925 (find_thread_ptid): Move implemention from find_inferior_id to
3927 * inferiors.h (find_inferior_id): Remove.
3928 * server.c (handle_status): Use find_thread_ptid.
3929 (process_serial_event): Likewise.
3930 * thread-db.c (find_one_thread): Likewise.
3931 (thread_db_thread_handle): Likewise.
3932 * win32-low.c (thread_rec): Likewise.
3933 (child_delete_thread): Likewise.
3934 (win32_thread_alive): Likewise.
3935 (get_child_debug_event): Likewise.
3937 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3939 * linux-mips-low.c (update_watch_registers_callback): Return
3940 void, remove pid_p parameter, don't check for pid.
3941 (mips_insert_point, mips_remove_point): Use for_each_thread.
3943 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3945 * lynx.low (lynx_delete_thread_callback): Remove.
3946 (lynx_mourn): Use for_each_thread.
3948 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3950 * regcache.c (regcache_invalidate_one): Remove.
3951 (regcache_invalidate_pid): use for_each_thread.
3953 2017-11-26 Tom Tromey <tom@tromey.com>
3955 * linux-low.c (linux_create_inferior): Update.
3957 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
3959 * spu-low.c (spu_create_inferior): Fix typo in argument name.
3961 2017-11-24 Alan Hayward <alan.hayward@arm.com>
3963 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
3964 * linux-aarch64-low.c (initialize_low_arch): Call init func.
3965 * linux-aarch64-tdesc-selftest.c: New file.
3966 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
3968 2017-11-24 Alan Hayward <alan.hayward@arm.com>
3970 * configure.srv: Add new file.
3971 * linux-aarch64-low.c (initialize_low_arch): Call init func.
3972 * linux-aarch64-tdesc-selftest.c: New file.
3973 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
3975 2017-11-24 Alan Hayward <alan.hayward@arm.com>
3977 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
3978 * linux-aarch64-low.c (initialize_low_arch): Remove init.
3979 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
3981 2017-11-24 Alan Hayward <alan.hayward@arm.com>
3983 * configure.srv: Add new files.
3984 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
3985 aarch64_linux_read_description.
3986 * linux-aarch64-low.c (aarch64_linux_read_description):
3987 Merge with aarch64_arch_setup.
3988 (aarch64_arch_setup): Call aarch64_linux_read_description.
3989 * linux-aarch64-tdesc.c: New file.
3990 * linux-aarch64-tdesc.h: New file.
3992 2017-11-24 Yao Qi <yao.qi@linaro.org>
3994 * configure.srv: Set $srv_regobj for tic6x-linux.
3995 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
3996 (tic6x_read_description): Move some code to tic6x_arch_setup.
3997 (tic6x_tdesc_test): New function.
3998 (initialize_low_arch): Call selftests::register_test.
4000 2017-11-22 Yao Qi <yao.qi@linaro.org>
4002 * remote-utils.c (prepare_resume_reply): Use memcpy.
4004 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4006 * linux-low.c (kill_one_lwp_callback): Return void, take
4007 argument directly, don't filter on pid.
4008 (linux_kill): Use for_each_thread.
4010 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4012 * linux-low.c (need_step_over_p): Return bool, remove dummy
4014 (linux_resume, proceed_all_lwps): Use find_thread.
4016 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4018 * linux-low.c (resume_status_pending_p): Return bool, remove
4020 (linux_resume): Use find_thread.
4022 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4024 * linux-low.c (struct thread_resume_array): Remove.
4025 (linux_set_resume_request): Return void, take arguments
4027 (linux_resume): Use for_each_thread.
4029 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4031 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
4032 return bool, remove data argument.
4033 (linux_stabilize_threads): Use find_thread.
4035 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4037 * linux-low.c (unsuspend_one_lwp): Remove.
4038 (unsuspend_all_lwps): Use for_each_thread, inline code from
4041 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4043 * gdbthread.h (find_thread): Add overload with ptid_t filter.
4044 * linux-low.c (struct iterate_over_lwps_args): Remove.
4045 (iterate_over_lwps_filter): Remove.
4046 (iterate_over_lwps): Use find_thread.
4048 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4050 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
4051 (linux_handle_new_gdb_connection): Use for_each_thread, inline
4052 code from reset_lwp_ptrace_options_callback.
4054 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4056 * linux-arm-low.c (struct update_registers_data): Remove.
4057 (update_registers_callback): Return void, take arguments
4058 directly, don't check thread's pid.
4059 (arm_insert_point, arm_remove_point): Use for_each_thread.
4061 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4063 * win32-low.c (continue_one_thread): Return void, take argument
4065 (child_continue): Use for_each_thread.
4067 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4069 * win32-i386-low.c (update_debug_registers_callback): Rename
4071 (update_debug_registers): ... this, return void, remove pid_p arg.
4072 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
4074 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
4076 * inferiors.h (struct process_info): Add constructor, initialize
4078 <syscalls_to_catch>: Change type to std::vector<int>.
4079 * inferiors.c (add_process): Allocate process_info with new.
4080 (remove_process): Free process_info with delete.
4081 * linux-low.c (handle_extended_wait): Adjust.
4082 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
4083 * server.c (handle_general_set): Adjust.
4085 2017-11-16 Pedro Alves <palves@redhat.com>
4087 * remote-utils.c (remote_close): Block SIGIO signals instead of
4088 uninstalling the SIGIO handler.
4090 2017-11-16 Alan Hayward <alan.hayward@arm.com>
4092 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
4094 2017-11-16 Yao Qi <yao.qi@linaro.org>
4096 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
4097 (tic6x_store_gregset): Likewise.
4098 (tic6x_usrregs_info): Move it up.
4100 2017-11-15 Alan Hayward <alan.hayward@arm.com>
4102 * Makefile.in: Update arch rules.
4103 * configure.srv: Explicitly mark arch/ files.
4105 2017-11-13 Andreas Schwab <schwab@suse.de>
4107 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
4109 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4111 2017-11-06 Pedro Alves <palves@redhat.com>
4113 * config.in, configure: Regenerate.
4115 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4117 * target.c (struct thread_search): Remove.
4118 (thread_search_callback): Remove.
4119 (prepare_to_access_memory): Use for_each_thread instead of
4120 find_inferior. Inline code from thread_search_callback.
4122 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4124 * server.c (struct visit_actioned_threads_data): Remove.
4125 (visit_actioned_threads): Change prototype to take arguments
4127 (resume): Use find_thread instead of find_inferior.
4129 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4131 * server.c (queue_stop_reply_callback): Change prototype, return
4133 (find_status_pending_thread_callback): Remove.
4134 (handle_status): Replace find_inferior with find_thread and
4137 2017-10-25 Alan Hayward <alan.hayward@arm.com>
4139 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
4141 (aarch64_store_gregset): Likewise.
4142 (aarch64_fill_fpregset): Likewise.
4143 (aarch64_store_fpregset): Likewise.
4145 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4147 * gdbthread.h (find_thread, for_each_thread): New functions.
4148 * inferiors.c (thread_of_pid): Remove.
4149 (find_any_thread_of_pid): Use find_thread.
4150 * linux-low.c (num_lwps): Use for_each_thread.
4152 2017-10-17 Yao Qi <yao.qi@linaro.org>
4154 * Makefile.in: Remove one rule.
4155 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
4157 2017-10-17 Yao Qi <yao.qi@linaro.org>
4159 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
4160 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
4162 2017-10-17 Yao Qi <yao.qi@linaro.org>
4164 * configure.srv: Rename arm.o with arch/arm.o.
4166 2017-10-17 Yao Qi <yao.qi@linaro.org>
4168 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
4169 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
4170 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
4171 (arch-i386.o, arch-amd64.o): Remove rules.
4172 (arch/%.o): New rule.
4173 Update POSTCOMPILE and COMPILE.pre.
4174 * configure.ac: Invoke AC_CONFIG_COMMANDS.
4175 * configure: Re-generated.
4176 * configure.srv: Replace arch-i386.o with arch/i386.o.
4177 Replace arch-amd64.o with arch/amd64.o.
4179 2017-10-16 Yao Qi <yao.qi@linaro.org>
4181 * configure: Regenerated.
4183 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4185 * inferiors.h: (struct inferior_list): Remove.
4186 (struct inferior_list_entry); Remove.
4187 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
4188 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
4189 get_first_inferior): Remove.
4190 (for_each_inferior, for_each_inferior_with_data, find_inferior,
4191 find_inferior_id, find_inferior_in_random): Change signature.
4192 * inferiors.c (all_threads): Change type to
4193 std::list<thread_info *>.
4194 (get_thread): Remove macro.
4195 (find_inferior, find_inferior_id): Change signature, implement
4197 (find_inferior_in_random): Change signature, implement using
4198 find_thread_in_random.
4199 (for_each_inferior, for_each_inferior_with_data): Change
4200 signature, implement using for_each_thread.
4201 (add_inferior_to_list, remove_inferior): Remove.
4202 (add_thread, get_first_thread, thread_of_pid,
4203 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
4204 (get_first_inferior, one_inferior_p, clear_inferior_list):
4206 (clear_inferiors, get_thread_process): Update.
4207 * gdbthread.h: Include <list>.
4208 (struct thread_info) <entry>: Remove field.
4210 (all_threads): Change type to std::list<thread_info *>.
4211 (get_first_inferior): Add doc.
4212 (find_thread, for_each_thread, find_thread_in_random): New
4214 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
4215 * linux-arm-low.c (update_registers_callback): Update.
4216 * linux-low.c (second_thread_of_pid_p): Update.
4217 (kill_one_lwp_callback, linux_detach_lwp_callback,
4218 delete_lwp_callback, status_pending_p_callback, same_lwp,
4219 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
4220 iterate_over_lwps, not_stopped_callback,
4221 resume_stopped_resumed_lwps, count_events_callback,
4222 select_singlestep_lwp_callback, select_event_lwp_callback,
4223 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
4224 suspend_and_send_sigstop_callback, wait_for_sigstop,
4225 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
4226 lwp_running, linux_set_resume_request, resume_status_pending_p,
4227 need_step_over_p, start_step_over, linux_resume_one_thread,
4228 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
4229 reset_lwp_ptrace_options_callback): Update.
4230 * linux-mips-low.c (update_watch_registers_callback): Update.
4231 * regcache.c (regcache_invalidate_one, regcache_invalidate):
4233 (free_register_cache_thread_one): Remove.
4234 (regcache_release): Update.
4235 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
4236 handle_qxfer_threads_worker): Update.
4237 (handle_query): Update, use list iterator.
4238 (visit_actioned_threads, handle_pending_status,
4239 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
4240 clear_pending_status_callback, set_pending_status_callback,
4241 find_status_pending_thread_callback, handle_status,
4242 process_serial_event): Update.
4243 * target.c (thread_search_callback): Update.
4244 * thread-db.c (thread_db_get_tls_address): Update.
4245 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
4247 * win32-i386-low.c (update_debug_registers_callback): Update.
4248 * win32-low.c (delete_thread_info, child_delete_thread,
4249 continue_one_thread, suspend_one_thread,
4250 get_child_debug_event): Adjust.
4252 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4254 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
4255 * inferiors.h: Include <list>.
4256 (struct process_info) <entry>: Remove field.
4258 (pid_of): Change macro to function.
4259 (ptid_of, lwpid_of): Remove macro.
4260 (all_processes): Change type to std::list<process_info *>.
4261 (ALL_PROCESSES): Remove macro.
4262 (for_each_process, find_process): New function.
4263 * inferiors.c (all_processes): Change type to
4264 std::list<process_info *>.
4265 (find_thread_process): Adjust.
4266 (add_process): Likewise.
4267 (remove_process): Likewise.
4268 (find_process_pid): Likewise.
4269 (get_first_process): Likewise.
4270 (started_inferior_callback): Remove.
4271 (have_started_inferiors_p): Adjust.
4272 (attached_inferior_callback): Remove.
4273 (have_attached_inferiors_p): Adjust.
4274 * linux-low.c (check_zombie_leaders): Likewise.
4275 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
4276 (x86_linux_update_xmltarget): Adjust.
4277 * server.c (handle_query): Likewise.
4278 (gdb_reattached_process): Remove.
4279 (handle_status): Adjust.
4280 (kill_inferior_callback): Likewise.
4281 (detach_or_kill_inferior): Remove.
4282 (print_started_pid): Likewise.
4283 (print_attached_pid): Likewise.
4284 (detach_or_kill_for_exit): Update.
4285 (process_serial_event): Likewise.
4286 * linux-arm-low.c (arm_new_fork): Likewise.
4288 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4290 * dll.h: Include <list>.
4291 (struct dll_info): Add constructor.
4292 <entry>: Remove field.
4293 (all_dlls): Change type to std::list<dll_info>.
4294 * dll.c: Include <algorithm>.
4295 (get_dll): Remove macro.
4296 (all_dlls): Change type to std::list<dll_info *>.
4297 (free_one_dll): Remove.
4298 (match_dll): Likewise.
4299 (loaded_dll): Adjust.
4300 (unloaded_dll): Adjust to all_dlls type change, use
4301 std::find_if. Inline code from match_dll.
4302 (clear_dlls): Adjust to all_dlls type change.
4303 * server.c (emit_dll_description): Remove.
4304 (handle_qxfer_libraries): Adjust to all_dlls type change,
4305 integrate emit_dll_description's functionality.
4307 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4309 * linux-low.h (struct linux_target_ops) <delete_process>: New
4311 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
4312 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
4313 (struct linux_target_ops): Add delete_process callback.
4314 * linux-arm-low.c (arm_delete_process): New.
4315 (struct linux_target_ops): Add delete_process callback.
4316 * linux-bfin-low.c (struct linux_target_ops): Likewise.
4317 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
4318 * linux-m32r-low.c (struct linux_target_ops): Likewise.
4319 * linux-mips-low.c (mips_linux_delete_process): New.
4320 (struct linux_target_ops): Add delete_process callback.
4321 * linux-ppc-low.c (struct linux_target_ops): Likewise.
4322 * linux-s390-low.c (struct linux_target_ops): Likewise.
4323 * linux-sh-low.c (struct linux_target_ops): Likewise.
4324 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
4325 * linux-tile-low.c (struct linux_target_ops): Likewise.
4326 * linux-x86-low.c (x86_linux_delete_process): New.
4327 (struct linux_target_ops): Add delete_process callback.
4328 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
4330 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4332 * linux-aarch64-low.c (the_low_target): Add thread delete
4334 * linux-arm-low.c (arm_delete_thread): New function.
4335 (the_low_target): Add thread delete callback.
4336 * linux-bfin-low.c (the_low_target): Likewise.
4337 * linux-crisv32-low.c (the_low_target): Likewise.
4338 * linux-low.c (delete_lwp): Invoke delete_thread callback if
4340 * linux-low.h (struct linux_target_ops) <delete_thread>: New
4342 * linux-m32r-low.c (the_low_target): Add thread delete callback.
4343 * linux-mips-low.c (mips_linux_delete_thread): New function.
4344 (the_low_target): Add thread delete callback.
4345 * linux-ppc-low.c (the_low_target): Likewise.
4346 * linux-s390-low.c (the_low_target): Likewise.
4347 * linux-sh-low.c (the_low_target): Likewise.
4348 * linux-tic6x-low.c (the_low_target): Likewise.
4349 * linux-tile-low.c (the_low_target): Likewise.
4350 * linux-x86-low.c (the_low_target): Likewise.
4351 * linux-xtensa-low.c (the_low_target): Likewise.
4353 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
4355 * win32-low.c: Include "common-inferior.h".
4357 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4359 * inferiors.c (set_inferior_cwd): New function.
4360 * server.c (handle_general_set): Handle QSetWorkingDir packet.
4361 (handle_query): Inform that QSetWorkingDir is supported.
4362 * win32-low.c (create_process): Pass the inferior's cwd to
4365 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4367 * inferiors.c (current_inferior_cwd): New global variable.
4368 (get_inferior_cwd): New function.
4369 * inferiors.h (struct process_info) <cwd>: New field.
4371 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4373 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
4374 (OBS): Add gdb_tilde_expand.o.
4376 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
4378 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
4379 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4381 2017-09-29 Pedro Alves <palves@redhat.com>
4383 * ax.c (gdb_parse_agent_expr): Constify.
4384 * ax.h (gdb_parse_agent_expr): Constify.
4385 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
4387 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
4388 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
4389 * remote-utils.h (read_ptid): Constify.
4390 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
4391 (process_point_options, process_serial_event): Constify.
4392 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
4393 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
4394 (cmd_qtbuffer): Constify.
4396 2017-09-29 Pedro Alves <palves@redhat.com>
4398 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
4401 2017-09-29 Pedro Alves <palves@redhat.com>
4403 * linux-low.c (handle_extended_wait): Pass parent thread instead
4404 of process to thread_db_notice_clone.
4405 * linux-low.h (thread_db_notice_clone): Replace parent process
4406 parameter with parent thread parameter.
4407 * thread-db.c (find_one_thread): Add comment.
4408 (thread_db_notice_clone): Replace parent process parameter with
4409 parent thread parameter. Temporarily switch to the parent thread.
4411 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
4413 * gdbthread.h: Include "common-gdbthread.h".
4414 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
4415 "if" when validating the ptid.
4416 * remote-utils.c: Include "gdbthread.h".
4417 (prepare_resume_reply): Use "switch_to_thread".
4418 * target.c (done_accessing_memory): Likewise.
4420 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
4422 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
4423 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
4424 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
4425 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
4426 s390x-gs-linux64-ipa.o to ipa_obj.
4427 * linux-s390-low.c (HWCAP_S390_GS): New define.
4428 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
4430 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
4431 (s390_arch_setup): Check for guarded-storage support and choose
4433 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
4434 init_registers_s390x_gs_linux64.
4435 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
4437 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
4438 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
4440 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
4442 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
4444 2017-09-21 Kevin Buettner <kevinb@redhat.com>
4446 * linux-low.h (struct lwp_info): Add new field, thread_handle.
4447 (thread_db_thread_handle): Declare.
4448 * linux-low.c (linux_target_ops): Initialize thread_handle.
4449 * server.c (handle_qxfer_threads_worker): Add support for
4451 * target.h (struct target_ops): Add new function pointer,
4453 (target_thread_handle): Define.
4454 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
4456 (thread_db_thread_handle): New function.
4458 2017-09-21 Kevin Buettner <kevinb@redhat.com>
4460 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
4461 * linux-low.h (thread_db_notice_clone): Declare.
4462 * thread-db.c (thread_db_notice_clone): New function.
4464 2017-09-21 Pedro Alves <palves@redhat.com>
4466 * server.c (gdb_read_memory, handle_status, process_serial_event)
4467 (handle_serial_event, handle_target_event): Adjust to
4468 set_desired_thread prototype change.
4469 * target.c (set_desired_thread): Remove 'use_general' parameter
4471 * target.h (set_desired_thread): Remove 'use_general' parameter.
4473 2017-09-20 Tom Tromey <tom@tromey.com>
4475 * target.c (target_terminal::terminal_state): Define.
4476 (target_terminal::init): Rename from target_terminal_init.
4477 (target_terminal::inferior): Rename from
4478 target_terminal_inferior.
4479 (target_terminal::ours): Rename from target_terminal_ours.
4480 (target_terminal::ours_for_output, target_terminal::info): New.
4482 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4484 * server.c (accumulate_file_name_length): Remove.
4485 (emit_dll_description): Adjust to std::string change.
4486 (handle_qxfer_libraries): Use std::string to hold document.
4488 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4490 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
4491 return type of xml_escape_text.
4492 * server.c (emit_dll_description): Likewise.
4494 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4496 * server.c (captured_main): Accept argument for --selftest.
4497 Update run_tests call.
4498 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
4499 when registering selftests.
4501 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
4503 * regcache.c (get_thread_regcache): Update code to use "std::vector"
4504 instead of "VEC" for "target_desc.reg_defs".
4505 (regcache_cpy): Likewise.
4506 (registers_to_string): Likewise.
4507 (registers_from_string): Likewise.
4508 (find_regno): Likewise.
4509 (supply_regblock): Likewise.
4510 (regcache_raw_read_unsigned): Likewise.
4511 * tdesc.c (init_target_desc): Likewise.
4512 (tdesc_create_reg): Likewise.
4513 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
4514 (struct target_desc) <reg_defs>: Convert to "std::vector".
4515 (target_desc): Do not initialize "reg_defs".
4516 (~target_desc): Update code to use "std::vector" instead of "VEC"
4517 for "target_desc.reg_defs".
4518 (operator==): Likewise.
4520 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4522 * inferiors.h (thread_to_gdb_id): Remove.
4523 * inferiors.c (thread_to_gdb_id): Remove.
4524 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
4525 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
4526 lynx_store_registers, lynx_read_memory, lynx_write_memory):
4528 * nto-low.c (nto_fetch_registers, nto_store_registers,
4529 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
4531 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4533 * inferiors.h (gdb_id_to_thread_id): Remove.
4534 * inferiors.c (gdb_id_to_thread_id): Remove.
4535 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
4536 removal. Move pid declaration closer to where it's used.
4538 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4540 * server.c (handle_detach): New function.
4541 (process_serial_event): Move code out, call handle_detach.
4543 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4545 * server.c (require_running): Rename to ...
4546 (require_running_or_return): ... this ...
4547 (require_running_or_break): ... and this.
4548 (handle_query, process_serial_event): Adjust.
4550 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4552 * linux-low.c (linux_set_resume_request): Remove unused
4555 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4557 * server.c (first_thread_of): Remove.
4558 (process_serial_event): Replace usage of first_thread_of with
4559 find_any_thread_of_pid.
4560 * tracepoint.c (same_process_p): Remove.
4561 (gdb_agent_about_to_close): Replace usage of same_process_p with
4562 find_any_thread_of_pid.
4563 * linux-x86-low.c (same_process_callback): Remove.
4564 (x86_arch_setup_process_callback): Replace usage of
4565 same_process_callback with find_any_thread_of_pid.
4566 * thread-db.c (any_thread_of): Remove.
4567 (switch_to_process): Replace usage of any_thread_of with
4568 find_any_thread_of_pid.
4569 * inferiors.c (thread_pid_matches_callback): Remove.
4570 (find_thread_process): Adjust to use find_any_thread_of_pid.
4572 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
4574 * regcache.c (get_thread_regcache): Guard calls to "memset"
4577 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
4579 * linux-low.c (handle_extended_wait): Use
4580 "allocate_target_description" instead of "XNEW".
4581 * linux-x86-low.c (initialize_low_arch): Likewise.
4583 2017-09-05 Yao Qi <yao.qi@linaro.org>
4585 * configure.srv (srv_i386_regobj): Remove.
4586 (srv_amd64_regobj): Remove.
4587 (srv_regobj): Set it to "" for x86 non-linux targets.
4588 * linux-x86-tdesc.c (i386_linux_read_description):
4589 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
4590 (init_registers_i386): Remove the declaration.
4591 (tdesc_i386): Remove the declaration.
4592 (lynx_i386_arch_setup): Call i386_create_target_description.
4593 * nto-x86-low.c: Likewise.
4594 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
4595 [!__x86_64__]: include arch/i386.h.
4596 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
4598 2017-09-05 Yao Qi <yao.qi@linaro.org>
4600 * configure.srv (srv_amd64_linux_xmlfiles): Remove
4601 i386/amd64-XXX-linux from it.
4603 2017-09-05 Yao Qi <yao.qi@linaro.org>
4605 * configure.srv: Empty srv_amd64_linux_regobj if $development is
4607 (ipa_amd64_linux_regobj): Remove.
4608 (ipa_x32_linux_regobj): Remove.
4610 2017-09-05 Yao Qi <yao.qi@linaro.org>
4612 * Makefile.in (arch-amd64.o): New rule.
4613 * configure.srv: Append arch-amd64.o.
4614 * linux-amd64-ipa.c: Include common/x86-xstate.h.
4615 (get_ipa_tdesc): Call amd64_linux_read_description.
4616 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
4617 and init_registers_amd64_XXX.
4618 * linux-x86-low.c (x86_linux_read_description): Call
4619 amd64_linux_read_description.
4620 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
4621 (initialize_low_arch): Don't call init_registers_x32_XXX and
4622 init_registers_amd64_XXX.
4623 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
4624 and tdesc_amd64_XXX.
4625 [__x86_64__] (amd64_tdesc_test): New function.
4626 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
4627 and init_registers_amd64_XXX.
4628 * linux-x86-tdesc.c: Include arch/amd64.h.
4629 (xcr0_to_tdesc_idx): New function.
4630 (i386_linux_read_description): New function.
4631 (amd64_get_ipa_tdesc_idx): New function.
4632 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
4633 (amd64_get_ipa_tdesc): Declare.
4635 2017-09-05 Yao Qi <yao.qi@linaro.org>
4637 * configure.srv (srv_i386_linux_xmlfiles): Remove
4638 i386/i386-XXX-linux.xml from it.
4640 2017-09-05 Yao Qi <yao.qi@linaro.org>
4642 * configure.srv: Set srv_i386_linux_regobj empty if $development
4644 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
4645 initialize_low_tdesc.
4646 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
4647 with #if initialize_low_tdesc.
4648 * linux-x86-tdesc-selftest.c: New file.
4649 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
4651 2017-09-05 Yao Qi <yao.qi@linaro.org>
4653 * Makefile.in (arch-i386.o): New rule.
4654 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
4655 (x86_64-*-linux*): Likewise.
4656 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
4657 include arch/i386.h.
4658 (i386_linux_read_description): Remove code and call
4659 i386_create_target_description.
4660 * tdesc.c (allocate_target_description): New function.
4661 * tdesc.h (set_tdesc_architecture): Remove declaration.
4662 (set_tdesc_osabi): Likewise.
4664 2017-09-05 Yao Qi <yao.qi@linaro.org>
4666 * linux-x86-tdesc.c: Don't include <inttypes.h>.
4667 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
4668 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
4670 * server.c (get_features_xml): Call tdesc_get_features_xml.
4671 * tdesc.c (set_tdesc_architecture): New function.
4672 (set_tdesc_osabi): New function.
4673 (tdesc_get_features_xml): New function.
4674 (tdesc_create_feature): Add an argument.
4675 * tdesc.h (struct target_desc) <features>: New field.
4676 <arch, osabi>: New field.
4677 (~target_desc): xfree features, arch, and osabi.
4678 (target_desc::oerator==): Don't compare .xmltarget.
4679 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
4680 (set_tdesc_osabi): Likewise.
4681 (tdesc_get_features_xml): Likewise.
4683 2017-09-05 Yao Qi <yao.qi@linaro.org>
4685 * linux-x86-tdesc.c: Include selftest.h.
4686 (i386_tdesc_test): New function.
4687 (initialize_low_tdesc): Call selftests::register_test.
4688 * tdesc.h: Include regdef.h.
4689 (target_desc): Override operator == and !=.
4691 2017-09-05 Yao Qi <yao.qi@linaro.org>
4693 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
4694 (ipa_obj): Likewise.
4695 * linux-i386-ipa.c: Include common/x86-xstate.h
4696 (get_ipa_tdesc): Call i386_linux_read_description.
4697 (initialize_low_tracepoint): Don't call init_registers_XXX
4698 functions, call initialize_low_tdesc instead.
4699 * linux-x86-low.c (x86_linux_read_description): Call
4700 i386_linux_read_description.
4701 (initialize_low_arch): Don't call init_registers_i386_XXX
4702 functions, call initialize_low_tdesc.
4703 * linux-x86-tdesc.c: New file.
4704 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
4705 (i386_get_ipa_tdesc_idx): Declare.
4706 (i386_get_ipa_tdesc): Declare.
4707 (initialize_low_tdesc): Declare.
4709 2017-09-05 Yao Qi <yao.qi@linaro.org>
4711 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
4714 2017-09-05 Yao Qi <yao.qi@linaro.org>
4716 * Makefile.in (IPA_OBJS): Add vec-ipa.o
4717 * regcache.c (get_thread_regcache): Use VEC_length.
4718 (init_register_cache): Likewise.
4719 (regcache_cpy): Likewise.
4720 (registers_to_string): Iterate reg_defs via VEC_iterate.
4721 (find_regno): Likewise.
4722 (find_register_by_number): Use VEC_index.
4723 (register_size): Call find_register_by_number.
4724 (register_data): Call find_register_by_number.
4725 (supply_regblock): Use VEC_length.
4726 (regcache_raw_read_unsigned): Likewise.
4727 * tdesc.c (init_target_desc): Iterate reg_defs via
4729 (default_description): Update initializer.
4730 (copy_target_description): Don't update field num_registers.
4731 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
4732 <num_registers>: Remove.
4734 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4736 * Makefile.in (.SECONDARY): Define target.
4738 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
4740 * linux-low.c (linux_wait_1): Adjust.
4741 * server.c (queue_stop_reply_callback): Adjust.
4743 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
4745 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
4746 QEnvironmentUnset and QEnvironmentReset packets.
4747 (handle_query): Inform remote that QEnvironmentHexEncoded,
4748 QEnvironmentUnset and QEnvironmentReset are supported.
4750 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
4752 * inferiors.h (inferior_target_data): Rename to ...
4753 (thread_target_data): ... this.
4754 (inferior_regcache_data): Rename to ...
4755 (thread_regcache_data): ... this.
4756 (set_inferior_regcache_data): Rename to ...
4757 (set_thread_regcache_data): ... this.
4758 * inferiors.c (inferior_target_data): Rename to ...
4759 (thread_target_data): ... this.
4760 (inferior_regcache_data): Rename to ...
4761 (thread_regcache_data): ... this.
4762 (set_inferior_regcache_data): Rename to ...
4763 (set_thread_regcache_data): ... this.
4764 (free_one_thread): Update.
4765 * linux-low.h (get_thread_lwp): Update.
4766 * regcache.c (get_thread_regcache): Update.
4767 (regcache_invalidate_thread): Update.
4768 (free_register_cache_thread): Update.
4769 * win32-i386-low.c (update_debug_registers_callback): Update.
4770 (win32_get_current_dr): Update.
4771 * win32-low.c (thread_rec): Update.
4772 (delete_thread_info): Update.
4773 (continue_one_thread): Update.
4774 (suspend_one_thread): Update.
4776 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
4778 * inferiors.c (set_inferior_target_data): Remove.
4779 * inferiors.h (set_inferior_target_data): Remove.
4781 2017-08-18 Yao Qi <yao.qi@linaro.org>
4783 * Makefile.in (OBS): Add selftest.o.
4784 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
4785 * configure, config.in: Re-generated.
4786 * server.c: Include common/sefltest.h.
4787 (captured_main): Handle option --selftest.
4789 2017-08-09 Yao Qi <yao.qi@linaro.org>
4791 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
4792 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
4793 i386-avx-mpx.o and i386-mmx.o.
4794 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
4795 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
4796 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
4797 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
4798 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
4799 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
4800 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
4801 i386/amd64-avx-mpx.xml.
4803 2017-08-09 Yao Qi <yao.qi@linaro.org>
4805 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
4806 and x32-avx-avx512.o.
4807 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
4808 i386/x32-avx-avx512.xml.
4810 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
4812 * tracepoint.h (enum class fast_tpoint_collect_result): New
4814 (fast_tracepoint_collecting): Change return type to
4815 fast_tpoint_collect_result.
4816 * tracepoint.c (fast_tracepoint_collecting): Likewise.
4817 * linux-low.h: Include tracepoint.h.
4818 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
4819 fast_tpoint_collect_result.
4820 * linux-low.c (handle_tracepoints): Adjust.
4821 (linux_fast_tracepoint_collecting): Change return type to
4822 fast_tpoint_collect_result.
4823 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
4824 linux_wait_1, stuck_in_jump_pad_callback,
4825 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
4826 proceed_one_lwp): Adjust to type change.
4828 2017-07-10 Yao Qi <yao.qi@linaro.org>
4830 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
4832 2017-06-29 Yao Qi <yao.qi@linaro.org>
4834 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
4836 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
4838 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
4840 * Makefile.in (IPA_OBJS): Sort and format one item per line.
4842 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
4844 * linux-low.c (linux_create_inferior): Adjust code to access the
4845 environment information via 'gdb_environ' class.
4846 * lynx-low.c (lynx_create_inferior): Likewise.
4847 * server.c (our_environ): Make it an instance of 'gdb_environ'.
4848 (get_environ): Return a pointer to 'our_environ'.
4849 (captured_main): Initialize 'our_environ'.
4850 * server.h (get_environ): Adjust prototype.
4851 * spu-low.c (spu_create_inferior): Adjust code to access the
4852 environment information via 'gdb_environ' class.
4854 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4856 * linux-low.c (linux_read_memory, linux_write_memory): Remove
4857 usage of "register" keyword.
4859 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4861 * configure: Re-generate.
4863 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4865 * configure: Re-generate.
4867 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4869 * Makefile.in (COMPILE.pre): Add "-x c++".
4871 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
4873 * fork-child.c: Conditionally include <signal.h>.
4875 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4877 * server.c (handle_general_set): Handle new packet
4878 "QStartupWithShell".
4879 (handle_query): Add "QStartupWithShell" to the list of supported
4881 (gdbserver_usage): Add help text explaining the
4882 new "--startup-with-shell" and "--no-startup-with-shell" CLI
4884 (captured_main): Recognize and act upon the presence of the new
4887 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4888 Pedro Alves <palves@redhat.com>
4890 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
4891 * configure: Regenerate.
4892 * configure.srv (srv_linux_obj): Add "fork-child.o" and
4894 (i[34567]86-*-lynxos*): Likewise.
4895 (spu*-*-*): Likewise.
4896 * fork-child.c: New file.
4897 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
4899 (linux_ptrace_fun): New function.
4900 (linux_create_inferior): Adjust function prototype to reflect
4901 change on "target.h". Adjust function code to use
4903 (linux_request_interrupt): Delete "signal_pid".
4904 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
4905 (lynx_ptrace_fun): New function.
4906 (lynx_create_inferior): Adjust function prototype to reflect
4907 change on "target.h". Adjust function code to use
4909 * nto-low.c (nto_create_inferior): Adjust function prototype and
4910 code to reflect change on "target.h". Update comments.
4911 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
4912 "common-terminal.h" and "environ.h".
4913 (terminal_fd): Moved to fork-child.c.
4914 (old_foreground_pgrp): Likewise.
4915 (restore_old_foreground_pgrp): Likewise.
4916 (last_status): Make it global.
4917 (last_ptid): Likewise.
4918 (our_environ): New variable.
4919 (startup_with_shell): Likewise.
4920 (program_name): Likewise.
4921 (program_argv): Rename to...
4922 (program_args): ...this.
4923 (wrapper_argv): New variable.
4924 (start_inferior): Delete function.
4925 (get_exec_wrapper): New function.
4926 (get_exec_file): Likewise.
4927 (get_environ): Likewise.
4928 (prefork_hook): Likewise.
4929 (post_fork_inferior): Likewise.
4930 (postfork_hook): Likewise.
4931 (postfork_child_hook): Likewise.
4932 (handle_v_run): Update code to deal with arguments coming from the
4933 remote host. Update calls from "start_inferior" to
4935 (captured_main): Likewise. Initialize environment variable. Call
4937 * server.h (post_fork_inferior): New prototype.
4938 (get_environ): Likewise.
4939 (last_status): Declare.
4940 (last_ptid): Likewise.
4941 (signal_pid): Likewise.
4942 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
4943 (spu_ptrace_fun): New function.
4944 (spu_create_inferior): Adjust function prototype to reflect change
4945 on "target.h". Adjust function code to use "fork_inferior".
4946 * target.c (target_terminal_init): New function.
4947 (target_terminal_inferior): Likewise.
4948 (target_terminal_ours): Likewise.
4949 * target.h: Include <vector>.
4950 (struct target_ops) <create_inferior>: Update prototype.
4951 (create_inferior): Update macro.
4952 * utils.c (gdb_flush_out_err): New function.
4953 * win32-low.c (win32_create_inferior): Adjust function prototype
4954 and code to reflect change on "target.h".
4956 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4958 * inferiors.c (switch_to_thread): New function.
4960 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4962 * Makefile.in (SFILE): Add "common/job-control.c".
4963 (OBS): Add "job-control.o".
4965 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
4967 * Makefile: Remove "@host_makefile_frag@".
4969 2017-05-05 Pedro Alves <palves@redhat.com>
4971 * configure: Regenerate.
4973 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
4975 * configure: Regenerate.
4977 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
4979 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
4980 software_single_step change of return type to
4981 std::vector<CORE_ADDR>.
4982 * linux-low.c (install_software_single_step_breakpoints):
4984 * linux-low.h (install_software_single_step_breakpoints):
4987 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
4989 * remote-utils.c: Include "gdb_termios.h" instead of
4991 * terminal.h: Delete file.
4993 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
4995 * server.c: Include <vector>.
4996 <program_argv, wrapper_argv>: Convert to std::vector.
4997 (start_inferior): Rewrite function to use C++.
4998 (handle_v_run): Likewise. Update code that calculates the argv
4999 based on the vRun packet; use C++.
5000 (captured_main): Likewise.
5002 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
5004 * server.c (handle_v_cont): Initialize thread_resume::thread
5007 2017-04-05 Pedro Alves <palves@redhat.com>
5009 * configure: Regenerate.
5011 2017-04-05 Pedro Alves <palves@redhat.com>
5013 * gdbreplay.c (sync_error): Constify.
5014 * linux-x86-low.c (push_opcode): Constify.
5016 2017-04-05 Pedro Alves <palves@redhat.com>
5018 * win32-low.c (get_child_debug_event)
5019 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
5020 Report TARGET_WAITKIND_SPURIOUS instead.
5022 2017-04-05 Pedro Alves <palves@redhat.com>
5024 * remote-utils.c (remote_prepare, remote_open): Constify.
5025 * remote-utils.h (remote_prepare, remote_open): Constify.
5026 * server.c (captured_main): Constify 'port' handling.
5028 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
5030 * Makefile.in (clean): Clear .deps.
5032 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
5034 * .gitignore: Remove generated files, replace with wildcard.
5035 * (clean): Replace removal of generated files with wildcard.
5036 (version.c): Replace with...
5037 (version-generated.c): ...this.
5038 (xml-builtin.c): Replace with...
5039 (xml-builtin-generated.c): ...this.
5040 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
5041 (%.c: *regformats*): Replace with...
5042 (%-generated.c: *regformats*): ...this.
5044 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
5046 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
5047 (xtensa_fill_gregset): Call collect_register_by_name for
5049 (xtensa_store_gregset): Call supply_register_by_name for
5052 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
5054 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
5055 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
5056 (xtensa_store_gregset): Call supply_register for all registers in
5057 a0_regnum..a0_regnum + C0_NREGS range.
5059 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5061 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
5062 (ax-ipa.o: ax.c): Remove.
5063 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
5064 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
5065 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
5066 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
5067 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
5069 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5071 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
5072 (print-utils-ipa.o: ../common/print-utils.c): Remove.
5073 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
5074 (errors-ipa.o: ../common/errors.c): Remove.
5075 (format-ipa.o: ../common/format.c): Remove.
5076 (common-utils-ipa.o: ../common/common-utils.c): Remove.
5078 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5080 * Makefile.in (%-ipa.o: %.c): New rule.
5081 (tracepoint-ipa.o: tracepoint.c): Remove.
5082 (utils-ipa.o: utils.c): Remove.
5083 (remote-utils-ipa.o: remote-utils.c): Remove.
5084 (regcache-ipa.o: regcache.c): Remove.
5085 (i386-linux-ipa.o: i386-linux.c): Remove.
5086 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
5087 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
5088 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
5089 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
5090 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
5091 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
5092 (amd64-linux-ipa.o: amd64-linux.c): Remove.
5093 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
5094 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
5095 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
5096 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
5097 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
5098 (aarch64-ipa.o: aarch64.c): Remove.
5099 (s390-linux32-ipa.o: s390-linux32.c): Remove.
5100 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
5101 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
5102 (s390-linux64-ipa.o: s390-linux64.c): Remove.
5103 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
5104 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
5105 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
5106 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
5107 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
5108 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
5109 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
5110 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
5111 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
5112 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
5113 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
5114 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
5115 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
5116 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
5117 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
5118 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
5119 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
5120 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
5121 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
5122 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
5123 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
5124 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
5125 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
5126 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
5127 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
5128 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
5129 (tdesc-ipa.o: tdesc.c): Remove.
5130 (x32-linux-ipa.o: x32-linux.c): Remove.
5131 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
5132 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
5134 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5136 * Makefile.in (%.o: ../arch/%.c): New rule.
5137 (arm.o: ../arch/arm.c): Remove.
5138 (arm-linux.o: ../arch/arm-linux.c): Remove.
5139 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
5140 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
5142 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5144 * Makefile.in (%.o: ../nat/%.c): New rule.
5145 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
5146 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
5147 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
5148 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
5149 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
5150 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
5151 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
5152 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
5153 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
5154 (linux-personality.o: ../nat/linux-personality.c): Remove.
5155 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
5156 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
5157 (x86-linux.o: ../nat/x86-linux.c): Remove.
5158 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
5159 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
5161 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5163 * Makefile.in (%.o: ../common/%.c): New rule.
5164 (signals.o: ../common/signals.c): Remove.
5165 (print-utils.o: ../common/print-utils.c): Remove.
5166 (rsp-low.o: ../common/rsp-low.c): Remove.
5167 (common-utils.o: ../common/common-utils.c): Remove.
5168 (posix-strerror.o: ../common/posix-strerror.c): Remove.
5169 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
5170 (vec.o: ../common/vec.c): Remove.
5171 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
5172 (xml-utils.o: ../common/xml-utils.c): Remove.
5173 (ptid.o: ../common/ptid.c): Remove.
5174 (buffer.o: ../common/buffer.c): Remove.
5175 (format.o: ../common/format.c): Remove.
5176 (filestuff.o: ../common/filestuff.c): Remove.
5177 (agent.o: ../common/agent.c): Remove.
5178 (errors.o: ../common/errors.c): Remove.
5179 (environ.o: ../common/environ.c): Remove.
5180 (common-debug.o: ../common/common-debug.c): Remove.
5181 (cleanups.o: ../common/cleanups.c): Remove.
5182 (common-exceptions.o: ../common/common-exceptions.c): Remove.
5183 (fileio.o: ../common/fileio.c): Remove.
5184 (common-regcache.o: ../common/common-regcache.c): Remove.
5185 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
5186 (new-op.o: ../common/new-op.c): Remove.
5187 (btrace-common.o: ../common/btrace-common.c): Remove.
5189 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5191 * Makefile.in (%.o: ../target/%.c): New rule.
5192 (waitstatus.o: ../target/waitstatus.c): Remove.
5194 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5197 (%.c: ../regformats/%.dat,
5198 (%.c: ../regformats/arm/%.dat,
5199 (%.c: ../regformats/i386/%.dat,
5200 (%.c: ../regformats/rs6000/%.dat): New rules.
5201 (aarch64.c): Remove.
5202 (reg-arm.c): Remove.
5203 (arm-with-iwmmxt.c): Remove.
5204 (arm-with-vfpv2.c): Remove.
5205 (arm-with-vfpv3.c): Remove.
5206 (arm-with-neon.c): Remove.
5207 (reg-bfin.c): Remove.
5208 (reg-cris.c): Remove.
5209 (reg-crisv32.c): Remove.
5211 (i386-linux.c): Remove.
5212 (i386-avx.c): Remove.
5213 (i386-avx-linux.c): Remove.
5214 (i386-avx-avx512.c): Remove.
5215 (i386-avx-avx512-linux.c): Remove.
5216 (i386-mpx.c): Remove.
5217 (i386-mpx-linux.c): Remove.
5218 (i386-avx-mpx-avx512-pku.c): Remove.
5219 (i386-avx-mpx-avx512-pku-linux.c): Remove.
5220 (i386-avx-mpx.c): Remove.
5221 (i386-avx-mpx-linux.c): Remove.
5222 (i386-mmx.c): Remove.
5223 (i386-mmx-linux.c): Remove.
5224 (reg-ia64.c): Remove.
5225 (reg-m32r.c): Remove.
5226 (reg-m68k.c): Remove.
5228 (mips-linux.c): Remove.
5229 (mips-dsp-linux.c): Remove.
5230 (mips64-linux.c): Remove.
5231 (mips64-dsp-linux.c): Remove.
5232 (nios2-linux.c): Remove.
5233 (powerpc-32.c): Remove.
5234 (powerpc-32l.c): Remove.
5235 (powerpc-altivec32l.c): Remove.
5236 (powerpc-cell32l.c): Remove.
5237 (powerpc-vsx32l.c): Remove.
5238 (powerpc-isa205-32l.c): Remove.
5239 (powerpc-isa205-altivec32l.c): Remove.
5240 (powerpc-isa205-vsx32l.c): Remove.
5241 (powerpc-e500l.c): Remove.
5242 (powerpc-64l.c): Remove.
5243 (powerpc-altivec64l.c): Remove.
5244 (powerpc-cell64l.c): Remove.
5245 (powerpc-vsx64l.c): Remove.
5246 (powerpc-isa205-64l.c): Remove.
5247 (powerpc-isa205-altivec64l.c): Remove.
5248 (powerpc-isa205-vsx64l.c): Remove.
5249 (s390-linux32.c): Remove.
5250 (s390-linux32v1.c): Remove.
5251 (s390-linux32v2.c): Remove.
5252 (s390-linux64.c): Remove.
5253 (s390-linux64v1.c): Remove.
5254 (s390-linux64v2.c): Remove.
5255 (s390-te-linux64.c): Remove.
5256 (s390-vx-linux64.c): Remove.
5257 (s390-tevx-linux64.c): Remove.
5258 (s390x-linux64.c): Remove.
5259 (s390x-linux64v1.c): Remove.
5260 (s390x-linux64v2.c): Remove.
5261 (s390x-te-linux64.c): Remove.
5262 (s390x-vx-linux64.c): Remove.
5263 (s390x-tevx-linux64.c): Remove.
5264 (tic6x-c64xp-linux.c): Remove.
5265 (tic6x-c64x-linux.c): Remove.
5266 (tic6x-c62x-linux.c): Remove.
5268 (reg-sparc64.c): Remove.
5269 (reg-spu.c): Remove.
5271 (amd64-linux.c): Remove.
5272 (amd64-avx.c): Remove.
5273 (amd64-avx-linux.c): Remove.
5274 (amd64-avx-avx512.c): Remove.
5275 (amd64-avx-avx512-linux.c): Remove.
5276 (amd64-mpx.c): Remove.
5277 (amd64-mpx-linux.c): Remove.
5278 (amd64-avx-mpx-avx512-pku.c): Remove.
5279 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
5280 (amd64-avx-mpx.c): Remove.
5281 (amd64-avx-mpx-linux.c): Remove.
5283 (x32-linux.c): Remove.
5284 (x32-avx.c): Remove.
5285 (x32-avx-linux.c): Remove.
5286 (x32-avx-avx512.c): Remove.
5287 (x32-avx-avx512-linux.c): Remove.
5288 (reg-xtensa.c): Remove.
5289 (reg-tilegx.c): Remove.
5290 (reg-tilegx32.c): Remove.
5292 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
5294 * Makefile.in (SFILES): Add "common/environ.c".
5295 (OBJS): Add "common/environ.h".
5297 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5299 * configure.ac: Check if the fs_base and gs_base members of
5300 `struct user_regs_struct' exist.
5301 * config.in: Regenerated.
5302 * configure: Likewise.
5304 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
5306 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
5308 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
5309 (get_next_pcs_syscall_next_pc): Likewise.
5311 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
5313 * win32-i386-low.c: Fix incorrect reference to a couple source files.
5314 * nto-x86-low.c: Likewise.
5316 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
5318 * Makefile.in: Include disable-implicit-rules.mk.
5320 2016-11-23 Pedro Alves <palves@redhat.com>
5322 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
5323 (debug_vprintf): Use std::chrono::steady_clock instead of
5324 gettimeofday. Use '.' instead of ':'.
5325 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
5326 (get_timestamp): Use std::chrono::steady_clock instead of
5329 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
5331 * Makefile.in: Fix whitespace formatting.
5333 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
5335 * Makefile.in (SFILES, OBS): Flatten list and order
5338 2016-11-23 Pedro Alves <palves@redhat.com>
5340 * event-loop.c (handle_file_event): Use warning.
5341 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
5342 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
5345 2016-11-23 Pedro Alves <palves@redhat.com>
5347 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
5349 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
5350 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
5351 debug_printf and debug_flush for debug output.
5352 * server.c (handle_general_set): Likewise.
5353 * thread-db.c (try_thread_db_load): Use debug_printf for debug
5356 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5358 * Makefile.in (.c.o): Replace rule with ...
5359 (%.o: %.c): ... this one.
5361 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5363 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
5364 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
5366 * configure.ac: Remove checks for the make program.
5367 * configure: Re-generate.
5369 2016-10-28 Pedro Alves <palves@redhat.com>
5371 * Makefile.in (CXX_DIALECT): Get from configure.
5372 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
5373 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
5374 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
5375 * config.in: Regenerate.
5376 * configure: Regenerate.
5378 2016-10-27 Yao Qi <yao.qi@linaro.org>
5380 * linux-low.c (linux_supports_range_stepping): Return true if
5381 can_software_single_step return true.
5383 2016-10-27 Yao Qi <yao.qi@linaro.org>
5385 * inferiors.c (find_inferior_in_random): New function.
5386 * inferiors.h (find_inferior_in_random): Declare.
5387 * linux-low.c (linux_wait_for_event_filtered): Call
5388 find_inferior_in_random instead of find_inferior.
5390 2016-10-27 Yao Qi <yao.qi@linaro.org>
5392 * linux-low.c (linux_wait_1): If single-step breakpoints are
5393 inserted, remove them.
5395 2016-10-26 Pedro Alves <palves@redhat.com>
5397 * linux-low.c (handle_extended_wait): Link parent/child fork
5399 (linux_wait_1): Unlink them.
5400 (linux_set_resume_request): Ignore resume requests for
5401 already-resumed and unhandled fork child threads.
5402 * linux-low.h (struct lwp_info) <fork_relative>: New field.
5403 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
5405 (handle_v_requests) <vCont>: Don't call require_running.
5406 * server.h (in_queued_stop_replies): New declaration.
5408 2016-10-24 Yao Qi <yao.qi@linaro.org>
5411 * linux-aarch64-low.c (append_insns): Cast the return value to
5414 2016-10-10 Yao Qi <yao.qi@linaro.org>
5416 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
5418 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
5420 * target.c (target_supports_multi_process): New function, moved
5422 * target.h (target_supports_multi_process): ... here. Remove
5425 2016-10-05 Tom Tromey <tom@tromey.com>
5428 * tracepoint.c (handle_tracepoint_bkpts): Check
5429 ipa_error_tracepoint, not ipa_stopping_tracepoint.
5431 2016-10-05 Yao Qi <yao.qi@linaro.org>
5433 * configure.srv: Update the path of arm-*.xml files.
5435 2016-10-05 Terry Guo <terry.guo@arm.com>
5436 Yao Qi <yao.qi@linaro.org>
5438 * Makefile.in: Adjust the path of rules.
5439 * configure.srv: Update the path of xml files.
5440 * regformats/arm-with-iwmmxt.dat: Regenerated.
5441 * regformats/arm-with-neon.dat: Likewise.
5442 * regformats/arm-with-vfpv2.dat: Likewise.
5443 * regformats/arm-with-vfpv3.dat Likewise.
5445 2016-09-30 Yao Qi <yao.qi@linaro.org>
5448 * target.c (target_stop_and_wait): Don't call
5449 target_continue_no_signal, use resume_stop instead.
5451 2016-09-26 Yao Qi <yao.qi@linaro.org>
5453 * linux-low.c (linux_wait_1): Call debug_exit.
5455 2016-09-23 Pedro Alves <palves@redhat.com>
5457 * Makefile.in (SFILES): Add common/new-op.c.
5458 (OBS): Add common/new-op.o.
5459 (new-op.o): New rule.
5461 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
5463 * .gitinore: Ignore more files.
5465 2016-09-21 Yao Qi <yao.qi@linaro.org>
5467 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
5470 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
5472 * server.c (start_inferior): Call target_mourn_inferior instead of
5473 mourn_inferior; pass ptid_t argument to it.
5475 (handle_target_event): Likewise.
5476 * target.c (target_mourn_inferior): New function.
5477 * target.h (mourn_inferior): Delete macro.
5479 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
5481 * linux-low.c (lwp_is_stepping): New function.
5483 2016-09-06 Carl Love <cel@us.ibm.com>
5485 * server.c (start_inferior): Fixed comment, requested comment change
5486 didn't get updated correctly. Removed reference to ptrace () call as
5487 it is only true on Linux systems.
5489 2016-09-06 Carl Love <cel@us.ibm.com>
5491 * server.c (start_inferior): Do not call
5492 function target_post_create_inferior () if the
5493 inferior process has already exited.
5495 2016-09-05 Pedro Alves <palves@redhat.com>
5497 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
5498 (COMPILE.pre, CC_LD): Use CXX directly.
5499 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
5500 * acinclude.m4: Don't include build-with-cxx.m4.
5501 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
5502 * configure: Regenerate.
5504 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
5507 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
5508 call writing data to own_buf.
5510 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
5512 * target.c (mywait): Call target_wait instead of
5514 (target_wait): New function.
5516 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
5518 * server.c (start_inferior): New variable 'ptid'. Replace calls
5519 to the_target->resume by target_continue{,_no_signal}, depending
5521 * target.c (target_stop_and_wait): Call target_continue_no_signal
5522 instead of the_target->resume.
5523 (target_continue): New function.
5525 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
5527 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
5529 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5532 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
5534 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
5535 * linux-arm-low.c (ps_get_thread_area): Likewise.
5536 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
5537 * linux-m68k-low.c (ps_get_thread_area): Likewise.
5538 * linux-mips-low.c (ps_get_thread_area): Likewise.
5539 * linux-nios2-low.c (ps_get_thread_area): Likewise.
5540 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
5541 * linux-x86-low.c (ps_get_thread_area): Likewise.
5542 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
5544 2016-08-19 Pedro Alves <palves@redhat.com>
5546 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
5548 2016-08-19 Pedro Alves <palves@redhat.com>
5550 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
5551 comment. Use memcpy instead of casting through unsigned long.
5553 2016-08-19 Pedro Alves <palves@redhat.com>
5555 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
5556 allocating around 0x80000000.
5558 2016-08-19 Pedro Alves <palves@redhat.com>
5561 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
5562 (x32-avx512-linux-ipa.o): New rules.
5563 * configure.ac (x86_64-*-linux*): New x32 check.
5564 * configure.srv (ipa_x32_linux_regobj): New.
5565 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
5566 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
5568 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
5570 * configure: Regenerate.
5572 2016-08-09 Pedro Alves <palves@redhat.com>
5575 * Makefile.in (OBS): Add signals-state-save-restore.o.
5576 (signals-state-save-restore.o): New rule.
5577 * config.in: Regenerate.
5578 * configure: Regenerate.
5579 * linux-low.c: Include "signals-state-save-restore.h".
5580 (linux_create_inferior): Call
5581 restore_original_signals_state.
5582 * server.c: Include "dispositions-save-restore.h".
5583 (captured_main): Call save_original_signals_state.
5585 2016-08-05 Pedro Alves <palves@redhat.com>
5587 * configure: Regenerate.
5589 2016-08-04 Yao Qi <yao.qi@linaro.org>
5591 * linux-low.c (regsets_fetch_inferior_registers): Check
5592 errno is ESRCH or not.
5594 2016-08-02 Yao Qi <yao.qi@linaro.org>
5596 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
5597 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
5598 (thread_db_load_search): Update.
5599 (try_thread_db_load_1): Don't look for td_ta_event_addr,
5600 td_ta_set_event and td_ta_event_getmsg.
5602 2016-07-26 Pedro Alves <palves@redhat.com>
5605 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
5606 of unsigned long for 64-bit registers and use uint32_t instead of
5607 unsigned int for 32-bit registers.
5609 2016-07-26 Pedro Alves <palves@redhat.com>
5611 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
5614 2016-07-21 Tom Tromey <tom@tromey.com>
5616 * configure: Rebuild.
5618 2016-07-21 Yao Qi <yao.qi@linaro.org>
5620 * mem-break.c (find_gdb_breakpoint): Cast bp to
5621 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
5623 2016-07-21 Yao Qi <yao.qi@linaro.org>
5625 * server.c (handle_v_requests): Support s and S actions
5626 if target_supports_software_single_step return true.
5628 2016-07-21 Yao Qi <yao.qi@linaro.org>
5630 * linux-low.c (resume_stopped_resumed_lwps): If resume request
5631 is resume_step, call maybe_hw_step.
5632 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
5634 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
5636 (proceed_one_lwp): If resume request is resume_step, install
5637 reinsert breakpoints and call maybe_hw_step.
5639 2016-07-21 Yao Qi <yao.qi@linaro.org>
5641 * linux-low.c (proceed_one_lwp): Declare.
5642 (linux_resume_one_thread): Remove local variable 'step'.
5643 Lift code enqueue signal. Call proceed_one_lwp instead of
5644 linux_resume_one_lwp.
5646 2016-07-21 Yao Qi <yao.qi@linaro.org>
5648 * linux-low.c (linux_resume_one_thread): Call
5649 enqueue_pending_signal.
5651 2016-07-21 Yao Qi <yao.qi@linaro.org>
5653 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
5654 * inferiors.c (do_restore_current_thread_cleanup): New function.
5655 (make_cleanup_restore_current_thread): Likewise.
5656 * linux-low.c (install_software_single_step_breakpoints): Call
5657 make_cleanup_restore_current_thread. Switch current_thread to
5660 2016-07-21 Yao Qi <yao.qi@linaro.org>
5662 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
5663 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
5664 (clone_one_breakpoint): Likewise.
5665 (delete_reinsert_breakpoints): Change parameter to thread.
5667 (has_reinsert_breakpoints): Likewise.
5668 (uninsert_reinsert_breakpoints): Likewise.
5669 (reinsert_reinsert_breakpoints): Likewise.
5670 * mem-break.h (set_reinsert_breakpoint): Update declaration.
5671 (delete_reinsert_breakpoints): Likewise.
5672 (reinsert_reinsert_breakpoints): Likewise.
5673 (uninsert_reinsert_breakpoints): Likewise.
5674 (has_reinsert_breakpoints): Likewise.
5676 2016-07-21 Yao Qi <yao.qi@linaro.org>
5678 * inferiors.c (get_thread_process): Make parameter const.
5679 * inferiors.h (get_thread_process): Update declaration.
5680 * mem-break.c (clone_all_breakpoints): Remove all parameters.
5681 Add new parameters child_thread and parent_thread. Callers
5683 * mem-break.h (clone_all_breakpoints): Update declaration.
5685 2016-07-21 Yao Qi <yao.qi@linaro.org>
5687 * mem-break.c (struct breakpoint) <cond_list>: Remove.
5688 <command_list, handler>: Remove.
5689 (struct gdb_breakpoint): New.
5690 (struct other_breakpoint): New.
5691 (struct reinsert_breakpoint): New.
5692 (is_gdb_breakpoint): New function.
5693 (any_persistent_commands): Update command_list if
5694 is_gdb_breakpoint returns true.
5695 (set_breakpoint): Create breakpoints according to their types.
5696 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
5697 (set_gdb_breakpoint_1): Likewise.
5698 (set_gdb_breakpoint): Likewise.
5699 (clear_breakpoint_conditions): Change parameter type to
5700 'struct gdb_breakpoint *'.
5701 (clear_breakpoint_commands): Likewise.
5702 (clear_breakpoint_conditions_and_commands): Likewise.
5703 (add_condition_to_breakpoint): Likewise.
5704 (add_breakpoint_condition): Likewise.
5705 (add_commands_to_breakpoint): Likewise.
5706 (check_breakpoints): Check other_breakpoint.
5707 (clone_one_breakpoint): Clone breakpopint according to its type.
5708 * mem-break.h (struct gdb_breakpoint): Declare.
5709 (set_gdb_breakpoint): Update declaration.
5710 (clear_breakpoint_conditions_and_commands): Likewise.
5711 (add_breakpoint_condition): Likewise.
5712 (add_breakpoint_commands): Likewise.
5713 * server.c (process_point_options): Change parameter type to
5714 'struct gdb_breakpoint *'.
5716 2016-07-21 Yao Qi <yao.qi@linaro.org>
5718 * mem-break.c (set_breakpoint_at): Rename it to ...
5719 (set_breakpoint_type_at): ... it.
5720 (set_breakpoint_at): Call set_breakpoint_type_at.
5721 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
5722 * mem-break.h (set_breakpoint_at): Update comments.
5724 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
5726 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
5728 (nios2_store_gregset): Likewise.
5730 2016-07-01 Pedro Alves <palves@redhat.com>
5731 Antoine Tremblay <antoine.tremblay@ericsson.com>
5733 * linux-low.c: Change interface to take the target lwp_info
5734 pointer directly and return void. Handle detaching from a zombie
5736 (linux_detach_lwp_callback): New function.
5737 (linux_detach): Detach from the leader thread after detaching from
5740 2016-06-28 Yao Qi <yao.qi@linaro.org>
5742 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
5743 for variable new_offset.
5744 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
5745 (aarch64_ftrace_insn_reloc_cb): Likewise.
5746 (aarch64_ftrace_insn_reloc_tb): Likewise.
5747 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
5748 PRIx64 instead of PRIx32.
5750 2016-06-28 Yao Qi <yao.qi@linaro.org>
5752 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
5753 (the_low_target): Install arm_get_syscall_trapinfo.
5755 2016-06-28 Yao Qi <yao.qi@linaro.org>
5757 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
5759 (the_low_target): Install aarch64_get_syscall_trapinfo.
5761 2016-06-28 Yao Qi <yao.qi@linaro.org>
5763 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
5765 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
5766 Remove parameter sysno.
5767 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
5770 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5772 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
5773 (s390_emit_ne_goto): Likewise.
5774 (s390_emit_lt_goto): Likewise.
5775 (s390_emit_le_goto): Likewise.
5776 (s390_emit_gt_goto): Likewise.
5777 (s390_emit_ge_goto): Likewise.
5778 (s390x_emit_eq_goto): Likewise.
5779 (s390x_emit_ne_goto): Likewise.
5780 (s390x_emit_lt_goto): Likewise.
5781 (s390x_emit_le_goto): Likewise.
5782 (s390x_emit_gt_goto): Likewise.
5783 (s390x_emit_ge_goto): Likewise.
5784 (s390_emit_ops_impl): Mark variable static.
5785 (s390x_emit_ops): Likewise.
5787 2016-06-17 Yao Qi <yao.qi@linaro.org>
5789 * linux-low.c (handle_extended_wait): Call
5790 uninsert_reinsert_breakpoints for the parent process. Remove
5791 reinsert breakpoints from the child process. Reinsert them to
5792 the parent process when vfork is done.
5793 * mem-break.c (uninsert_reinsert_breakpoints): New function.
5794 (reinsert_reinsert_breakpoints): New function.
5795 * mem-break.h (uninsert_reinsert_breakpoints): Declare
5796 (reinsert_reinsert_breakpoints): Declare.
5798 2016-06-17 Yao Qi <yao.qi@linaro.org>
5800 * linux-low.c (handle_extended_wait): If the parent is doing
5801 step-over, remove the reinsert breakpoints from the forked child.
5803 2016-06-17 Yao Qi <yao.qi@linaro.org>
5805 * linux-low.c (unsuspend_all_lwps): Declare.
5806 (linux_low_filter_event): If thread exited, call finish_step_over.
5807 If step-over is finished, unsuspend other threads.
5809 2016-06-17 Yao Qi <yao.qi@linaro.org>
5811 * linux-low.c (linux_resume_one_lwp_throw): Assert
5812 has_reinsert_breakpoints returns false.
5813 * mem-break.c (delete_disabled_breakpoints): Assert
5814 bp type isn't reinsert_breakpoint.
5816 2016-06-17 Yao Qi <yao.qi@linaro.org>
5818 * linux-low.c (maybe_hw_step): New function.
5819 (linux_resume_one_lwp_throw): Call maybe_hw_step.
5820 (finish_step_over): Switch current_thread to lwp temporarily,
5821 and assert has_reinsert_breakpoints returns true.
5822 (proceed_one_lwp): Call maybe_hw_step.
5823 * mem-break.c (has_reinsert_breakpoints): New function.
5824 * mem-break.h (has_reinsert_breakpoints): Declare.
5826 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
5828 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
5830 2016-05-17 Yao Qi <yao.qi@linaro.org>
5832 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
5833 instead of find_inferior.
5835 2016-05-05 Yao Qi <yao.qi@linaro.org>
5837 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
5838 Initialize res to zero.
5840 2016-05-05 Yao Qi <yao.qi@linaro.org>
5842 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
5845 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5847 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
5848 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
5849 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
5851 2016-04-28 Par Olsson <par.olsson@windriver.com>
5852 Simon Marchi <simon.marchi@ericsson.com>
5854 * tracepoint.c (write_inferior_int8): New function.
5855 (cmd_qtenable_disable): Write enable flag using
5856 write_inferior_int8.
5858 2016-04-25 Yao Qi <yao.qi@linaro.org>
5860 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
5861 (need_step_over_p): Return zero if the LWP has pending signals
5862 can be delivered on software single step target.
5864 2016-04-25 Yao Qi <yao.qi@linaro.org>
5866 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
5867 return instead of error.
5869 2016-04-22 Yao Qi <yao.qi@linaro.org>
5871 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
5874 2016-04-22 Yao Qi <yao.qi@linaro.org>
5876 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
5877 signal when stepping over breakpoint with software single
5880 2016-04-21 Pedro Alves <palves@redhat.com>
5882 * linux-s390-low.c (s390_collect_ptrace_register)
5883 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
5885 (s390_check_regset): Use void * instead of gdb_byte *.
5887 2016-04-20 Pedro Alves <palves@redhat.com>
5889 * configure: Renegerate.
5891 2016-04-20 Yao Qi <yao.qi@linaro.org>
5893 * linux-aarch32-low.c: Include "arch/arm-linux.h".
5894 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
5896 (arm_store_gregset): Likewise.
5898 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
5900 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
5901 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
5902 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
5903 (amd64-avx-mpx-linux.c): New rules.
5904 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
5905 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
5906 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
5907 (srv_amd64_regobj): Add amd64-avx-mpx.o.
5908 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
5909 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
5910 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
5911 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
5912 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
5913 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
5914 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
5915 * linux-x86-low.c (x86_linux_read_description): Add case for
5916 X86_XSTATE_AVX_MPX_MASK.
5917 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
5918 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
5919 init_registers_i386_avx_mpx_linux.
5920 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
5921 (initialize_low_tracepoint): Call
5922 init_registers_i386_avx_mpx_linux.
5923 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
5924 (initialize_low_tracepoint): Call
5925 init_registers_amd64_avx_mpx_linux.
5926 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
5927 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
5928 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
5931 2016-04-18 Pedro Alves <palves@redhat.com>
5933 * configure: Regenerate.
5935 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
5937 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
5938 (aarch64_emit_sub): Likewise.
5940 2016-04-12 Pedro Alves <palves@redhat.com>
5942 * utils.c (prepare_to_throw_exception): Delete.
5944 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
5946 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
5948 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
5950 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
5952 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
5954 * linux-aarch64-ipa.c: Add <elf.h> include.
5955 * linux-ppc-ipa.c: Add <elf.h> include.
5956 * linux-s390-ipa.c: Add <elf.h> include.
5958 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
5960 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
5961 (get_raw_reg_ptr): Likewise.
5962 (get_trace_state_variable_value_ptr): Likewise.
5963 (set_trace_state_variable_value_ptr): Likewise.
5964 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
5967 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
5968 Marcin Kościelnicki <koriakin@0x04.net>
5971 * linux-ppc-low.c (emit_insns): New function.
5972 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
5973 (ppc_emit_prologue): New function.
5974 (ppc_emit_epilogue): New function.
5975 (ppc_emit_add): New function.
5976 (ppc_emit_sub): New function.
5977 (ppc_emit_mul): New function.
5978 (ppc_emit_lsh): New function.
5979 (ppc_emit_rsh_signed): New function.
5980 (ppc_emit_rsh_unsigned): New function.
5981 (ppc_emit_ext): New function.
5982 (ppc_emit_zero_ext): New function.
5983 (ppc_emit_log_not): New function.
5984 (ppc_emit_bit_and): New function.
5985 (ppc_emit_bit_or): New function.
5986 (ppc_emit_bit_xor): New function.
5987 (ppc_emit_bit_not): New function.
5988 (ppc_emit_equal): New function.
5989 (ppc_emit_less_signed): New function.
5990 (ppc_emit_less_unsigned): New function.
5991 (ppc_emit_ref): New function.
5992 (ppc_emit_const): New function.
5993 (ppc_emit_reg): New function.
5994 (ppc_emit_pop): New function.
5995 (ppc_emit_stack_flush): New function.
5996 (ppc_emit_swap): New function.
5997 (ppc_emit_stack_adjust): New function.
5998 (ppc_emit_call): New function.
5999 (ppc_emit_int_call_1): New function.
6000 (ppc_emit_void_call_2): New function.
6001 (ppc_emit_if_goto): New function.
6002 (ppc_emit_goto): New function.
6003 (ppc_emit_eq_goto): New function.
6004 (ppc_emit_ne_goto): New function.
6005 (ppc_emit_lt_goto): New function.
6006 (ppc_emit_le_goto): New function.
6007 (ppc_emit_gt_goto): New function.
6008 (ppc_emit_ge_goto): New function.
6009 (ppc_write_goto_address): New function.
6010 (ppc_emit_ops_impl): New static variable.
6011 (ppc64v1_emit_prologue): New function.
6012 (ppc64v2_emit_prologue): New function.
6013 (ppc64_emit_epilogue): New function.
6014 (ppc64_emit_add): New function.
6015 (ppc64_emit_sub): New function.
6016 (ppc64_emit_mul): New function.
6017 (ppc64_emit_lsh): New function.
6018 (ppc64_emit_rsh_signed): New function.
6019 (ppc64_emit_rsh_unsigned): New function.
6020 (ppc64_emit_ext): New function.
6021 (ppc64_emit_zero_ext): New function.
6022 (ppc64_emit_log_not): New function.
6023 (ppc64_emit_bit_and): New function.
6024 (ppc64_emit_bit_or): New function.
6025 (ppc64_emit_bit_xor): New function.
6026 (ppc64_emit_bit_not): New function.
6027 (ppc64_emit_equal): New function.
6028 (ppc64_emit_less_signed): New function.
6029 (ppc64_emit_less_unsigned): New function.
6030 (ppc64_emit_ref): New function.
6031 (ppc64_emit_const): New function.
6032 (ppc64v1_emit_reg): New function.
6033 (ppc64v2_emit_reg): New function.
6034 (ppc64_emit_pop): New function.
6035 (ppc64_emit_stack_flush): New function.
6036 (ppc64_emit_swap): New function.
6037 (ppc64v1_emit_call): New function.
6038 (ppc64v2_emit_call): New function.
6039 (ppc64v1_emit_int_call_1): New function.
6040 (ppc64v2_emit_int_call_1): New function.
6041 (ppc64v1_emit_void_call_2): New function.
6042 (ppc64v2_emit_void_call_2): New function.
6043 (ppc64_emit_if_goto): New function.
6044 (ppc64_emit_eq_goto): New function.
6045 (ppc64_emit_ne_goto): New function.
6046 (ppc64_emit_lt_goto): New function.
6047 (ppc64_emit_le_goto): New function.
6048 (ppc64_emit_gt_goto): New function.
6049 (ppc64_emit_ge_goto): New function.
6050 (ppc64v1_emit_ops_impl): New static variable.
6051 (ppc64v2_emit_ops_impl): New static variable.
6052 (ppc_emit_ops): New function.
6053 (linux_low_target): Wire in ppc_emit_ops.
6055 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
6056 Marcin Kościelnicki <koriakin@0x04.net>
6059 * Makefile.in: Add powerpc-*-ipa.o
6060 * configure.srv: Add ipa_obj for powerpc*-linux.
6061 * linux-ppc-ipa.c: New file.
6062 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
6064 (PPC_FIELD): New macro.
6065 (PPC_SEXT): New macro.
6066 (PPC_OP6): New macro.
6067 (PPC_BO): New macro.
6068 (PPC_LI): New macro.
6069 (PPC_BD): New macro.
6070 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
6071 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
6072 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
6073 (ppc_get_thread_area): New function.
6074 (is_elfv2_inferior): New function.
6075 (gen_ds_form): New function.
6076 (GEN_STD): New macro.
6077 (GEN_STDU): New macro.
6078 (GEN_LD): New macro.
6079 (GEN_LDU): New macro.
6080 (gen_d_form): New function.
6081 (GEN_ADDI): New macro.
6082 (GEN_ADDIS): New macro.
6083 (GEN_LI): New macro.
6084 (GEN_LIS): New macro.
6085 (GEN_ORI): New macro.
6086 (GEN_ORIS): New macro.
6087 (GEN_LWZ): New macro.
6088 (GEN_STW): New macro.
6089 (GEN_STWU): New macro.
6090 (gen_xfx_form): New function.
6091 (GEN_MFSPR): New macro.
6092 (GEN_MTSPR): New macro.
6093 (GEN_MFCR): New macro.
6094 (GEN_MTCR): New macro.
6095 (GEN_SYNC): New macro.
6096 (GEN_LWSYNC): New macro.
6097 (gen_x_form): New function.
6098 (GEN_OR): New macro.
6099 (GEN_MR): New macro.
6100 (GEN_LWARX): New macro.
6101 (GEN_STWCX): New macro.
6102 (GEN_CMPW): New macro.
6103 (gen_md_form): New function.
6104 (GEN_RLDICL): New macro.
6105 (GEN_RLDICR): New macro.
6106 (gen_i_form): New function.
6108 (GEN_BL): New macro.
6109 (gen_b_form): New function.
6110 (GEN_BNE): New macro.
6111 (GEN_LOAD): New macro.
6112 (GEN_STORE): New macro.
6113 (gen_limm): New function.
6114 (gen_atomic_xchg): New function.
6115 (gen_call): New function.
6116 (ppc_relocate_instruction): New function.
6117 (ppc_install_fast_tracepoint_jump_pad): New function.
6118 (ppc_get_min_fast_tracepoint_insn_len): New function.
6119 (ppc_get_ipa_tdesc_idx): New function.
6120 (the_low_target): Wire in the new functions.
6121 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
6123 * linux-ppc-tdesc.h: New file.
6125 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
6127 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
6128 (alloc_jump_pad_buffer): New function.
6129 * linux-amd64-ipa.c: Add <sys/mman.h> include.
6130 (alloc_jump_pad_buffer): New function.
6131 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
6132 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
6133 (alloc_jump_pad_buffer): New function.
6134 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
6135 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
6136 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
6137 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
6139 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
6141 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
6142 * linux-amd64-ipa.c: Likewise.
6143 * linux-i386-ipa.c: Likewise.
6144 * linux-s390-ipa.c: Likewise.
6145 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
6146 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
6147 set_trace_state_variable_value_ptr.
6148 (struct ipa_sym_addresses): Likewise.
6149 (symbol_list): Likewise.
6150 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
6151 accessing gdb_collect directly.
6152 (gdb_collect_ptr_type): New typedef.
6153 (get_raw_reg_ptr_type): New typedef.
6154 (get_trace_state_variable_value_ptr_type): New typedef.
6155 (set_trace_state_variable_value_ptr_type): New typedef.
6156 (gdb_collect_ptr): New global.
6157 (get_raw_reg_ptr): New global.
6158 (get_trace_state_variable_value_ptr): New global.
6159 (set_trace_state_variable_value_ptr): New global.
6160 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
6161 accessing get_raw_reg directly.
6162 (get_get_tsv_func_addr): Likewise for
6163 get_trace_state_variable_value_ptr.
6164 (get_set_tsv_func_addr): Likewise for
6165 set_trace_state_variable_value_ptr.
6166 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
6168 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
6170 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
6172 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
6174 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
6176 (relocate_instruction): Remove own_buf.
6177 * server.c (own_buf): Make global.
6178 (handle_v_requests): Make global.
6179 * server.h (own_buf): New declaration.
6180 (handle_v_requests): New prototype.
6182 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6185 * linux-s390-low.c (add_insns): New function.
6186 (s390_emit_prologue): New function.
6187 (s390_emit_epilogue): New function.
6188 (s390_emit_add): New function.
6189 (s390_emit_sub): New function.
6190 (s390_emit_mul): New function.
6191 (s390_emit_lsh): New function.
6192 (s390_emit_rsh_signed): New function.
6193 (s390_emit_rsh_unsigned): New function.
6194 (s390_emit_ext): New function.
6195 (s390_emit_log_not): New function.
6196 (s390_emit_bit_and): New function.
6197 (s390_emit_bit_or): New function.
6198 (s390_emit_bit_xor): New function.
6199 (s390_emit_bit_not): New function.
6200 (s390_emit_equal): New function.
6201 (s390_emit_less_signed): New function.
6202 (s390_emit_less_unsigned): New function.
6203 (s390_emit_ref): New function.
6204 (s390_emit_if_goto): New function.
6205 (s390_emit_goto): New function.
6206 (s390_write_goto_address): New function.
6207 (s390_emit_litpool): New function.
6208 (s390_emit_const): New function.
6209 (s390_emit_call): New function.
6210 (s390_emit_reg): New function.
6211 (s390_emit_pop): New function.
6212 (s390_emit_stack_flush): New function.
6213 (s390_emit_zero_ext): New function.
6214 (s390_emit_swap): New function.
6215 (s390_emit_stack_adjust): New function.
6216 (s390_emit_set_r2): New function.
6217 (s390_emit_int_call_1): New function.
6218 (s390_emit_void_call_2): New function.
6219 (s390_emit_eq_goto): New function.
6220 (s390_emit_ne_goto): New function.
6221 (s390_emit_lt_goto): New function.
6222 (s390_emit_le_goto): New function.
6223 (s390_emit_gt_goto): New function.
6224 (s390_emit_ge_goto): New function.
6225 (s390x_emit_prologue): New function.
6226 (s390x_emit_epilogue): New function.
6227 (s390x_emit_add): New function.
6228 (s390x_emit_sub): New function.
6229 (s390x_emit_mul): New function.
6230 (s390x_emit_lsh): New function.
6231 (s390x_emit_rsh_signed): New function.
6232 (s390x_emit_rsh_unsigned): New function.
6233 (s390x_emit_ext): New function.
6234 (s390x_emit_log_not): New function.
6235 (s390x_emit_bit_and): New function.
6236 (s390x_emit_bit_or): New function.
6237 (s390x_emit_bit_xor): New function.
6238 (s390x_emit_bit_not): New function.
6239 (s390x_emit_equal): New function.
6240 (s390x_emit_less_signed): New function.
6241 (s390x_emit_less_unsigned): New function.
6242 (s390x_emit_ref): New function.
6243 (s390x_emit_if_goto): New function.
6244 (s390x_emit_const): New function.
6245 (s390x_emit_call): New function.
6246 (s390x_emit_reg): New function.
6247 (s390x_emit_pop): New function.
6248 (s390x_emit_stack_flush): New function.
6249 (s390x_emit_zero_ext): New function.
6250 (s390x_emit_swap): New function.
6251 (s390x_emit_stack_adjust): New function.
6252 (s390x_emit_int_call_1): New function.
6253 (s390x_emit_void_call_2): New function.
6254 (s390x_emit_eq_goto): New function.
6255 (s390x_emit_ne_goto): New function.
6256 (s390x_emit_lt_goto): New function.
6257 (s390x_emit_le_goto): New function.
6258 (s390x_emit_gt_goto): New function.
6259 (s390x_emit_ge_goto): New function.
6260 (s390_emit_ops): New function.
6261 (struct linux_target_ops): Fill in emit_ops hook.
6263 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6266 * Makefile.in: Add s390 IPA files.
6267 * configure.srv: Build IPA for s390.
6268 * linux-s390-ipa.c: New file.
6269 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
6270 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
6271 (tdesc_s390_linux32): Likewise.
6272 (init_registers_s390_linux32v1): Likewise.
6273 (tdesc_s390_linux32v1): Likewise.
6274 (init_registers_s390_linux32v2): Likewise.
6275 (tdesc_s390_linux32v2): Likewise.
6276 (init_registers_s390_linux64): Likewise.
6277 (tdesc_s390_linux64): Likewise.
6278 (init_registers_s390_linux64v1): Likewise.
6279 (tdesc_s390_linux64v1): Likewise.
6280 (init_registers_s390_linux64v2): Likewise.
6281 (tdesc_s390_linux64v2): Likewise.
6282 (init_registers_s390_te_linux64): Likewise.
6283 (tdesc_s390_te_linux64): Likewise.
6284 (init_registers_s390_vx_linux64): Likewise.
6285 (tdesc_s390_vx_linux64): Likewise.
6286 (init_registers_s390_tevx_linux64): Likewise.
6287 (tdesc_s390_tevx_linux64): Likewise.
6288 (init_registers_s390x_linux64): Likewise.
6289 (tdesc_s390x_linux64): Likewise.
6290 (init_registers_s390x_linux64v1): Likewise.
6291 (tdesc_s390x_linux64v1): Likewise.
6292 (init_registers_s390x_linux64v2): Likewise.
6293 (tdesc_s390x_linux64v2): Likewise.
6294 (init_registers_s390x_te_linux64): Likewise.
6295 (tdesc_s390x_te_linux64): Likewise.
6296 (init_registers_s390x_vx_linux64): Likewise.
6297 (tdesc_s390x_vx_linux64): Likewise.
6298 (init_registers_s390x_tevx_linux64): Likewise.
6299 (tdesc_s390x_tevx_linux64): Likewise.
6300 (have_hwcap_s390_vx): New static variable.
6301 (s390_arch_setup): Fill have_hwcap_s390_vx.
6302 (s390_get_thread_area): New function.
6303 (s390_ft_entry_gpr_esa): New const.
6304 (s390_ft_entry_gpr_zarch): New const.
6305 (s390_ft_entry_misc): New const.
6306 (s390_ft_entry_fr): New const.
6307 (s390_ft_entry_vr): New const.
6308 (s390_ft_main_31): New const.
6309 (s390_ft_main_64): New const.
6310 (s390_ft_exit_fr): New const.
6311 (s390_ft_exit_vr): New const.
6312 (s390_ft_exit_misc): New const.
6313 (s390_ft_exit_gpr_esa): New const.
6314 (s390_ft_exit_gpr_zarch): New const.
6315 (append_insns): New function.
6316 (s390_relocate_instruction): New function.
6317 (s390_install_fast_tracepoint_jump_pad): New function.
6318 (s390_get_min_fast_tracepoint_insn_len): New function.
6319 (s390_get_ipa_tdesc_idx): New function.
6320 (struct linux_target_ops): Wire in the above functions.
6321 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
6322 * linux-s390-tdesc.h: New file.
6324 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6326 * linux-s390-low.c (s390_supports_tracepoints): New function.
6327 (struct linux_target_ops): Fill supports_tracepoints hook.
6329 2016-03-18 Yao Qi <yao.qi@linaro.org>
6331 * linux-low.c (lwp_signal_can_be_delivered): New function.
6332 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
6334 2016-03-18 Yao Qi <yao.qi@linaro.org>
6336 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
6337 0 if signal is enqueued. Remove 'signal' from one debugging
6338 message. Move one debugging message to some lines below.
6339 Remove code setting 'signal' to 0.
6341 2016-03-18 Yao Qi <yao.qi@linaro.org>
6343 * linux-low.c (linux_low_filter_event): Remove redundant
6344 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
6346 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
6348 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
6349 (struct linux_target_ops): Wire in the above.
6351 2016-03-03 Yao Qi <yao.qi@linaro.org>
6353 * linux-low.c: Update comments to start_step_over.
6355 2016-03-03 Yao Qi <yao.qi@linaro.org>
6358 * linux-low.c (handle_extended_wait): Set child suspended
6359 if event_lwp->bp_reinsert isn't zero.
6361 2016-03-02 Yao Qi <yao.qi@linaro.org>
6363 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
6364 enqueue_pending_signal.
6366 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
6368 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
6371 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
6373 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
6374 (s390_regmap_3264) [!__s390x__]: New global.
6375 (s390_collect_ptrace_register): Skip map entries containing -1.
6376 (s390_supply_ptrace_register): Ditto.
6377 (s390_fill_gprs_high): New function.
6378 (s390_store_gprs_high): New function.
6379 (s390_regsets): Add NT_S390_HIGH_GPRS.
6380 (s390_get_hwcap): Enable on 31-bit.
6381 (have_hwcap_s390_high_gprs): Enable on 31-bit.
6382 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
6383 Detect NT_S390_HIGH_GPRS.
6384 (s390_usrregs_info_3264): Enable on 31-bit.
6385 (s390_regs_info): Enable regs_info_3264 on 31-bit.
6386 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
6388 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
6391 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
6392 * configure.srv: Ditto.
6393 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
6394 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
6395 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
6396 (init_registers_amd64_linux): Remove prototype.
6397 (tdesc_amd64_linux): Remove declaration.
6398 (get_ipa_tdesc): New function.
6399 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
6400 initialize remaining tdescs.
6401 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
6402 (init_registers_i386_linux): Remove prototype.
6403 (tdesc_i386_linux): Remove declaration.
6404 (get_ipa_tdesc): New function.
6405 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
6406 initialize remaining tdescs.
6407 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
6408 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
6409 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
6410 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
6411 (x86_get_ipa_tdesc_idx): New function.
6412 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
6413 * linux-x86-tdesc.h: New file.
6414 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
6415 (target_get_ipa_tdesc_idx): New macro.
6416 * tracepoint.c (ipa_tdesc_idx): New macro.
6417 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
6418 (symbol_list): Add ipa_tdesc_idx.
6419 (cmd_qtstart): Write ipa_tdesc_idx in the target.
6420 (ipa_tdesc): Remove.
6421 (ipa_tdesc_idx): New variable.
6422 (get_context_regcache): Use get_ipa_tdesc.
6423 (gdb_collect): Ditto.
6425 * tracepoint.h (get_ipa_tdesc): New prototype.
6426 (ipa_tdesc): Remove.
6428 2016-02-24 Pedro Alves <palves@redhat.com>
6430 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
6431 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
6432 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
6433 Factor out common code between the USE_SIGTRAP_SIGINFO and
6434 !USE_SIGTRAP_SIGINFO blocks.
6435 (linux_low_filter_event): Call save_stop_reason instead of
6436 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
6438 (linux_wait_1): Update comments.
6440 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
6442 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
6443 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
6444 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
6445 ppc_insert_point, ppc_remove_point.
6447 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
6449 * linux-s390-low.c (s390_supports_z_point_type): New function.
6450 (struct linux_target_ops): Wire s390_supports_z_point_type in.
6452 2016-02-16 Yao Qi <yao.qi@linaro.org>
6454 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
6455 PC. Get pc from regcache_read_pc.
6457 2016-02-12 Yao Qi <yao.qi@linaro.org>
6459 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
6460 or linux_get_pc_32bit.
6461 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
6463 2016-02-12 Yao Qi <yao.qi@linaro.org>
6465 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
6466 arm_linux_get_next_pcs_fixup.
6468 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
6470 * tracepoint.c (x_tracepoint_action_download): Change
6471 write_inferior_data_ptr to write_inferior_data_pointer.
6472 (cmd_qtstart): Likewise.
6473 (write_inferior_data_ptr): Remove.
6474 (download_agent_expr): Change write_inferior_data_ptr to
6475 write_inferior_data_pointer.
6476 (download_tracepoint_1): Likewise.
6477 (download_tracepoint): Likewise.
6478 (download_trace_state_variables): Likewise.
6480 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
6481 Marcin Kościelnicki <koriakin@0x04.net>
6483 * tracepoint.c (struct tracepoint_action_ops): Remove.
6484 (struct tracepoint_action): Remove ops.
6485 (m_tracepoint_action_download, r_tracepoint_action_download)
6486 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
6487 size and offset accordingly.
6488 (m_tracepoint_action_ops, r_tracepoint_action_ops)
6489 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
6490 (tracepoint_action_send, tracepoint_action_download): New functions.
6491 Helpers for trace action handlers.
6492 (add_tracepoint_action): Remove setup actions ops.
6493 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
6495 2016-02-10 Yao Qi <yao.qi@linaro.org>
6497 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
6499 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
6501 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
6503 * configure: Regenerate.
6505 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
6507 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
6508 void * to gdb_byte *.
6509 * linux-low.c (siginfo_fixup): Likewise.
6510 (linux_xfer_siginfo): Likewise.
6511 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
6513 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
6515 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
6517 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
6519 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
6521 * linux-x86-low.c [__x86_64__]: Include
6522 "nat/amd64-linux-siginfo.h".
6523 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
6524 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
6525 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
6526 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
6527 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
6528 (cpt_si_fd, si_timerid, si_overrun): Move from
6529 nat/amd64-linux-siginfo.c.
6530 * Makefile.in (amd64-linux-siginfo.o:): New rule.
6532 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
6534 * server.c (skip_to_semicolon): Remove.
6535 (process_point_options): Use strchrnul instead of
6538 2016-01-26 Yao Qi <yao.qi@linaro.org>
6540 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
6541 * linux-low.c (install_software_single_step_breakpoints): Don't
6542 call regcache_read_pc.
6543 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
6546 2016-01-26 Yao Qi <yao.qi@linaro.org>
6548 * linux-low.c (install_software_single_step_breakpoints): Call
6549 regcache_read_pc instead of get_pc.
6551 2016-01-26 Yao Qi <yao.qi@linaro.org>
6553 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
6554 (unblock_async_io): Rename to ...
6555 (block_unblock_async_io): ... it. New function.
6556 (enable_async_io): Don't install SIGIO handler. Unblock it
6558 (disable_async_io): Don't ignore SIGIO. Block it instead.
6559 (initialize_async_io): Install SIGIO handler. Don't call
6562 2016-01-26 Yao Qi <yao.qi@linaro.org>
6564 * remote-utils.c (getpkt): If the buffer isn't empty, and the
6565 first character is '\003', call *the_target->request_interrupt.
6567 2016-01-25 Yao Qi <yao.qi@linaro.org>
6569 * remote-utils.c (new_thread_notify): Remove.
6570 (dead_thread_notify): Likewise.
6571 * remote-utils.h (new_thread_notify): Remove declaration.
6572 (dead_thread_notify): Likewise.
6574 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
6576 * gdb.trace/pending.exp: Fix expected message on continue.
6578 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
6580 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
6581 it works properly on big-endian machines where sizeof (CORE_ADDR)
6584 2016-01-21 Pedro Alves <palves@redhat.com>
6586 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
6587 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
6588 * configure: Regenerate.
6590 2016-01-21 Yao Qi <yao.qi@linaro.org>
6592 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
6593 is_thumb and set it according to CPSR saved on the stack.
6594 (get_next_pcs_syscall_next_pc): Pass is_thumb to
6595 arm_sigreturn_next_pc.
6597 2016-01-18 Yao Qi <yao.qi@linaro.org>
6599 * linux-low.c (linux_set_pc_64bit): New function.
6600 (linux_get_pc_64bit): New function.
6601 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
6603 * linux-sparc-low.c (debug_threads): Remove declaration.
6604 (sparc_get_pc): Remove.
6605 (the_low_target): Use linux_get_pc_64bit instead of
6607 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
6608 (the_low_target): Use linux_get_pc_64bit and
6611 2016-01-18 Yao Qi <yao.qi@linaro.org>
6613 * linux-arm-low.c (debug_threads): Remove declaration.
6614 (arm_get_pc, arm_set_pc): Remove.
6615 (the_low_target): Use linux_get_pc_32bit and
6617 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
6618 (the_low_target): Use linux_get_pc_32bit and
6620 * linux-cris-low.c (debug_threads): Remove declaration.
6621 (cris_get_pc, cris_set_pc,): Remove.
6622 (the_low_target): Use linux_get_pc_32bit and
6624 * linux-crisv32-low.c (debug_threads): Remove declaration.
6625 (cris_get_pc, cris_set_pc): Remove.
6626 (the_low_target): Use linux_get_pc_32bit and
6628 * linux-low.c: Include inttypes.h.
6629 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
6630 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
6631 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
6632 (the_low_target): Use linux_get_pc_32bit and
6634 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
6635 (the_low_target): Use linux_get_pc_32bit and
6637 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
6638 (the_low_target): Use linux_get_pc_32bit and
6640 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
6641 (the_low_target): Use linux_get_pc_32bit and
6643 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
6644 (the_low_target): Use linux_get_pc_32bit and
6647 2016-01-18 Gary Benson <gbenson@redhat.com>
6649 * configure.ac (AC_FUNC_FORK): New check.
6650 * config.in: Regenerate.
6651 * configure: Likewise.
6653 2016-01-14 Yao Qi <yao.qi@linaro.org>
6655 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
6656 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
6657 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
6658 arm_get_next_pcs_ctor.
6660 2016-01-12 Josh Stone <jistone@redhat.com>
6661 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6663 * inferiors.h: Include "gdb_vecs.h".
6664 (struct process_info): Add syscalls_to_catch.
6665 * inferiors.c (remove_process): Free syscalls_to_catch.
6666 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
6667 syscall_return stops.
6668 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
6669 * server.c (handle_general_set): Handle QCatchSyscalls.
6670 (handle_query): Report support for QCatchSyscalls.
6671 * target.h (struct target_ops): Add supports_catch_syscall.
6672 (target_supports_catch_syscall): New macro.
6673 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
6674 (struct lwp_info): Add syscall_state.
6675 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
6676 Maintain syscall_state and syscalls_to_catch across exec.
6677 (get_syscall_trapinfo): New function, proxy to the_low_target.
6678 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
6679 (linux_low_filter_event): Toggle syscall_state entry/return for
6680 syscall traps, and set it ignored for all others.
6681 (gdb_catching_syscalls_p): New function.
6682 (gdb_catch_this_syscall_p): New function.
6683 (linux_wait_1): Handle SYSCALL_SIGTRAP.
6684 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
6685 (linux_supports_catch_syscall): New function.
6686 (linux_target_ops): Install it.
6687 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
6688 (the_low_target): Install it.
6690 2016-01-12 Mike Frysinger <vapier@gentoo.org>
6692 * acinclude.m4: Include new ../warning.m4 file.
6693 * configure: Regenerated.
6694 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
6696 2016-01-12 Mike Frysinger <vapier@gentoo.org>
6698 * ax.c (is_goto_target): Mark static.
6699 * linux-low.c (register_addr): Likewise.
6700 (linux_fetch_registers, linux_store_registers): Likewise.
6701 * mem-break.c (any_persistent_commands): Fix old prototype.
6702 (add_commands_to_breakpoint): Mark static.
6703 * regcache.c (find_register_by_name): Delete unused func.
6704 * remote-utils.c (hex_or_minus_one): Mark static.
6705 * server.c (monitor_show_help): Mark static.
6706 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
6707 handle_v_requests): Likewise.
6709 2016-01-12 Pedro Alves <palves@redhat.com>
6711 Remove use of the registered trademark symbol throughout.
6713 2016-01-08 Yao Qi <yao.qi@linaro.org>
6715 * remote-utils.c (getpkt): If c is '\003', call target hook
6718 2016-01-06 Yao Qi <yao.qi@linaro.org>
6720 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
6721 linux-aarch32-low.c.
6722 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6723 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
6724 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6725 (thumb2_breakpoint): Declare.
6726 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
6727 linux-aarch32-low.h.
6728 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6729 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
6730 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6732 2016-01-01 Joel Brobecker <brobecker@adacore.com>
6734 * gdbreplay.c (gdbreplay_version): Change copyright year in
6736 * server.c (gdbserver_version): Likewise.
6738 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
6740 * server.c (crc32_table): Delete.
6741 (crc32): Use libiberty's xcrc32 function.
6743 2015-12-22 Joel Brobecker <brobecker@adacore.com>
6745 * lynx-low.c (lynx_delete_thread_callback): New function.
6746 (lynx_mourn): Properly delete our process and all of its
6747 threads. Remove call to clear_inferiors.
6749 2015-12-22 Joel Brobecker <brobecker@adacore.com>
6751 * target.c (thread_search_callback): Add check that
6752 the thread_stopped target callback is not NULL before
6755 2015-12-21 Yao Qi <yao.qi@linaro.org>
6757 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
6760 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6762 * server.c (handle_query): Call target_supports_software_single_step.
6764 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6766 * linux-low.c (single_step): New function.
6767 (linux_resume_one_lwp_throw): Call single_step.
6768 (start_step_over): Likewise.
6770 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6772 * Makefile.in (SFILES): Append arch/arm-linux.c,
6773 arch/arm-get-next-pcs.c.
6774 (arm-linux.o): New rule.
6775 (arm-get-next-pcs.o): New rule.
6776 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
6778 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
6779 to linux-aarch32-low.c.
6780 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6781 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6782 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6783 (thumb2_breakpoint_len): Likewise.
6784 (arm_is_thumb_mode): Make non-static.
6785 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
6786 from linux-aarch32-low.c.
6787 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6788 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6789 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6790 (thumb2_breakpoint_len): Likewise.
6791 (arm_is_thumb_mode): New declaration.
6792 * linux-arm-low.c: Include arch/arm-linux.h
6793 aarch/arm-get-next-pcs.h, sys/syscall.h.
6794 (get_next_pcs_ops): New struct.
6795 (get_next_pcs_addr_bits_remove): New function.
6796 (get_next_pcs_is_thumb): New function.
6797 (get_next_pcs_read_memory_unsigned_integer): Likewise.
6798 (arm_sigreturn_next_pc): Likewise.
6799 (get_next_pcs_syscall_next_pc): Likewise.
6800 (arm_gdbserver_get_next_pcs): Likewise.
6801 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
6803 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
6804 * server.h: Include gdb_vecs.h.
6806 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6808 * Makefile.in (SFILES): Append common/common-regcache.c.
6809 (OBS): Append common-regcache.o.
6810 (common-regcache.o): New rule.
6811 * regcache.c (init_register_cache): Initialize cache to
6813 (regcache_raw_read_unsigned): New function.
6814 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
6815 register_status enum.
6817 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6819 * linux-aarch64-low.c (the_low_targets): Rename
6820 breakpoint_reinsert_addr to get_next_pcs.
6821 * linux-arm-low.c (the_low_targets): Likewise.
6822 * linux-bfin-low.c (the_low_targets): Likewise.
6823 * linux-cris-low.c (the_low_targets): Likewise.
6824 * linux-crisv32-low.c (the_low_targets): Likewise.
6825 * linux-low.c (can_software_single_step): Likewise.
6826 (install_software_single_step_breakpoints): New function.
6827 (start_step_over): Use install_software_single_step_breakpoints.
6828 * linux-low.h: New CORE_ADDR vector.
6829 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
6831 * linux-mips-low.c (the_low_targets): Likewise.
6832 * linux-nios2-low.c (the_low_targets): Likewise.
6833 * linux-sparc-low.c (the_low_targets): Likewise.
6835 2015-12-17 Pedro Alves <palves@redhat.com>
6837 * linux-low.c (linux_kill_one_lwp): Remove references to
6839 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
6841 (linux_init_signals): Delete.
6842 (initialize_low): Adjust.
6843 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
6845 2015-12-16 Pedro Alves <palves@redhat.com>
6847 * configure.ac (compiler warning flags): When testing a
6848 -Wno-foo option, check whether -Wfoo works instead.
6849 * configure: Regenerate.
6851 2015-12-11 Don Breazeal <donb@codesourcery.com>
6853 * server.c (process_serial_event): Don't exit from gdbserver
6854 in remote mode if there are still active inferiors.
6856 2015-12-11 Yao Qi <yao.qi@linaro.org>
6858 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
6859 arm_breakpoint_at if the process is 32-bit.
6861 2015-12-11 Yao Qi <yao.qi@linaro.org>
6863 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
6866 2015-12-07 Yao Qi <yao.qi@linaro.org>
6868 * configure.srv: Append arm.o to srv_tgtobj for
6869 aarch64*-*-linux* target.
6870 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
6871 from linux-arm-low.c.
6872 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6873 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6874 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6875 (thumb2_breakpoint_len): Likewise.
6876 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
6877 (arm_breakpoint_kinds): Likewise.
6878 (arm_breakpoint_kind_from_pc): Likewise.
6879 (arm_sw_breakpoint_from_kind): Likewise.
6880 (arm_breakpoint_kind_from_current_state): Likewise.
6881 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
6882 (arm_sw_breakpoint_from_kind): Declare.
6883 (arm_breakpoint_kind_from_current_state): Declare.
6884 (arm_breakpoint_at): Declare.
6885 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
6886 arm_sw_breakpoint_from_kind if process is 32-bit.
6887 (aarch64_breakpoint_kind_from_pc): New function.
6888 (aarch64_breakpoint_kind_from_current_state): New function.
6889 (the_low_target): Initialize fields breakpoint_kind_from_pc
6890 and breakpoint_kind_from_current_state.
6891 * linux-arm-low.c (arm_breakpoint_kinds): Move to
6892 linux-aarch32-low.c.
6893 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
6894 (arm_breakpoint, arm_breakpoint_len): Likewise.
6895 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
6896 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6897 (arm_is_thumb_mode): Likewise.
6898 (arm_breakpoint_at): Likewise.
6899 (arm_breakpoint_kind_from_pc): Likewise.
6900 (arm_sw_breakpoint_from_kind): Likewise.
6901 (arm_breakpoint_kind_from_current_state): Likewise.
6904 2015-08-04 Yao Qi <yao.qi@linaro.org>
6906 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
6907 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
6908 * server.c (extended_protocol): Remove "static".
6909 * server.h (extended_protocol): Declare it.
6911 2015-12-04 Josh Stone <jistone@redhat.com>
6913 * target.h (struct target_ops) <arch_setup>: Rename to ...
6914 (struct target_ops) <post_create_inferior>: ... this.
6915 (target_arch_setup): Rename to ...
6916 (target_post_create_inferior): ... this, calling post_create_inferior.
6917 * server.c (start_inferior): Update target_arch_setup calls to
6918 target_post_create_inferior.
6919 * linux-low.c (linux_low_ptrace_options): Forward declare.
6920 (linux_arch_setup): Update its comment for general use.
6921 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
6922 (struct linux_target_ops): Use linux_post_create_inferior.
6923 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
6924 to post_create_inferior.
6925 * nto-low.c (struct nto_target_ops): Likewise.
6926 * spu-low.c (struct spu_target_ops): Likewise.
6927 * win32-low.c (struct win32_target_ops): Likewise.
6929 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
6931 * linux-arm-low.c: Remove duplicate arch/arm.h include.
6933 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6935 * linux-arm-low.c (arm_reinsert_addr): Remove function.
6936 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
6937 * linux-cris-low.c (cris_reinsert_addr> Remove function.
6938 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6939 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
6940 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6941 * linux-mips-low.c (mips_reinsert_addr): Remove function.
6942 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6943 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
6944 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6945 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
6946 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6948 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6950 * linux-low.c (linux_look_up_symbols): Don't call
6951 linux_supports_traceclone.
6952 * linux-low.h (thread_db_init): Remove use_events argument.
6953 * thread-db.c (thread_db_use_event): Remove global variable.
6954 (struct thread_db) <td_thr_event_enable_p>: Remove field.
6955 (struct thread_db) <td_create_bp>: Remove field.
6956 (thread_db_create_event): Remove function.
6957 (thread_db_enable_reporting): Likewise.
6958 (find_one_thread): Don't check for thread_db_use_events.
6959 (attach_thread): Likewise.
6960 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
6961 (try_thread_db_load_1): Don't check for thread_db_use_events.
6962 (thread_db_init): Remove use_events argument and thread events
6964 (remove_thread_event_breakpoints): Remove function.
6965 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
6967 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6969 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
6971 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6972 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
6973 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6974 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
6975 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
6977 * linux-crisv32-low.c (cris_supports_hardware_single_step):
6979 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6980 * linux-low.c (can_hardware_single_step): Use
6981 supports_hardware_single_step.
6982 (can_software_single_step): New function.
6983 (start_step_over): Call can_software_single_step.
6984 (linux_supports_hardware_single_step): New function.
6985 (struct target_ops) <supports_software_single_step>: Initialize.
6986 * linux-low.h (struct linux_target_ops)
6987 <supports_hardware_single_step>: Initialize.
6988 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
6989 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6990 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
6991 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
6992 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
6993 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6994 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
6995 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6996 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
6997 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
6999 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
7000 (struct linux_target_ops) <tile_supports_hardware_single_step>:
7002 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
7003 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7004 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
7006 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7007 * target.h (struct target_ops): <supports_software_single_step>:
7009 (target_supports_software_single_step): New macro.
7011 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7013 * linux-low.c (linux_wait_1): Fix pc advance condition.
7014 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
7015 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
7017 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7019 * linux-arm-low.c (arm_is_thumb_mode): New function.
7020 (arm_breakpoint_at): Use arm_is_thumb_mode.
7021 (arm_breakpoint_kind_from_current_state): New function.
7022 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
7024 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
7025 (linux_breakpoint_kind_from_current_state): New function.
7026 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
7027 * linux-low.h (struct linux_target_ops)
7028 <breakpoint_kind_from_current_state>: New field.
7029 * target.h (struct target_ops): Likewise.
7030 (target_breakpoint_kind_from_current_state): New macro.
7032 2015-11-30 Pedro Alves <palves@redhat.com>
7034 * linux-low.c (linux_resume): Wake up the event loop before
7037 2015-11-30 Pedro Alves <palves@redhat.com>
7039 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
7041 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
7043 * target.c (struct thread_search): New structure.
7044 (thread_search_callback): New function.
7045 (prev_general_thread): New global.
7046 (prepare_to_access_memory, done_accessing_memory): New functions.
7047 * target.h (prepare_to_access_memory, done_accessing_memory):
7048 Replace macros with function declarations.
7050 2015-11-30 Pedro Alves <palves@redhat.com>
7053 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
7054 report TARGET_WAITKIND_NO_RESUMED.
7055 * remote-utils.c (prepare_resume_reply): Handle
7056 TARGET_WAITKIND_NO_RESUMED.
7057 * server.c (report_no_resumed): New global.
7058 (handle_query) <qSupported>: Handle "no-resumed+". Report
7059 "no-resumed+" support.
7060 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
7061 return error if the client doesn't support no-resumed events.
7062 (push_stop_notification): New function.
7063 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
7064 events if the client supports them.
7066 2015-11-30 Pedro Alves <palves@redhat.com>
7068 * linux-low.c (thread_still_has_status_pending_p): Don't check
7070 (lwp_resumed): New function.
7071 (status_pending_p_callback): Return early if the LWP is not
7072 supposed to be resumed.
7074 2015-11-30 Pedro Alves <palves@redhat.com>
7076 * linux-low.c (handle_extended_wait): Assert that the LWP's
7077 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
7078 thread create events, leave the new child's status pending.
7079 (linux_low_filter_event): If GDB wants to hear about thread exit
7080 events, leave the LWP marked dead and don't delete it.
7081 (linux_wait_for_event_filtered): Don't check for thread exit.
7082 (filter_exit_event): New function.
7083 (linux_wait_1): Use it, when returning an exit event.
7084 (linux_resume_one_lwp_throw): Assert that the LWP's
7085 waitstatus is TARGET_WAITKIND_IGNORE.
7086 * remote-utils.c (prepare_resume_reply): Handle
7087 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
7088 * server.c (report_thread_events): New global.
7089 (handle_general_set): Handle QThreadEvents.
7090 (handle_query) <qSupported>: Handle and report QThreadEvents+;
7091 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
7092 TARGET_WAITKIND_THREAD_EXITED.
7093 * server.h (report_thread_events): Declare.
7095 2015-11-30 Pedro Alves <palves@redhat.com>
7097 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
7098 the thread's last_resume_kind was resume_stop.
7100 2015-11-30 Pedro Alves <palves@redhat.com>
7102 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
7105 2015-11-30 Pedro Alves <palves@redhat.com>
7107 * server.c (handle_v_requests): Handle vCtrlC.
7109 2015-11-30 Pedro Alves <palves@redhat.com>
7111 * gdbthread.h (find_any_thread_of_pid): Declare.
7112 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
7114 * server.c (handle_query): If current_thread is NULL, look for
7115 another thread of the selected process.
7117 2015-11-26 Daniel Colascione <dancol@dancol.org>
7118 Simon Marchi <simon.marchi@ericsson.com>
7120 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
7121 * server.c (handle_qxfer_threads_worker): Refactor to include thread
7123 * target.h (struct target_ops) <thread_name>: New field.
7124 (target_thread_name): New macro.
7126 2015-11-23 Joel Brobecker <brobecker@adacore.com>
7128 * regcache.h (regcache_invalidate_pid): Add declaration.
7129 * regcache.c (regcache_invalidate_pid): New function, extracted
7130 from regcache_invalidate.
7131 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
7132 Add trivial documentation comment.
7133 * lynx-low.c: Use regcache_invalidate_pid instead of
7134 regcache_invalidate.
7136 2015-11-23 Joel Brobecker <brobecker@adacore.com>
7138 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
7139 and Elf64_auxv_t if the target is Android.
7141 2015-11-22 Doug Evans <xdje42@gmail.com>
7143 * target.h: #include <sys/types.h>.
7145 2015-11-19 Pedro Alves <palves@redhat.com>
7147 * linux-low.c (linux_process_qsupported): Change prototype.
7149 * linux-low.h (struct linux_target_ops) <process_qsupported>:
7151 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
7152 and adjust to loop over all features.
7153 * server.c (handle_query) <qSupported>: Adjust to call
7154 target_process_qsupported once, passing it a vector of unprocessed
7156 * target.h (struct target_ops) <process_qsupported>: Change
7158 (target_process_qsupported): Adjust.
7160 2015-11-19 Pedro Alves <palves@redhat.com>
7162 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
7164 * configure: Regenerate.
7166 2015-11-19 Pedro Alves <palves@redhat.com>
7168 * configure: Regenerate.
7170 2015-11-19 Yao Qi <yao.qi@linaro.org>
7172 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
7175 2015-11-19 Yao Qi <yao.qi@linaro.org>
7177 * linux-aarch64-low.c (enum aarch64_operand_type): New.
7178 (struct aarch64_operand): Move enum out.
7180 2015-11-19 Yao Qi <yao.qi@linaro.org>
7182 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
7183 struct user_fpsimd_state *.
7184 (aarch64_store_fpregset): Likewise.
7186 2015-11-19 Yao Qi <yao.qi@linaro.org>
7188 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
7189 struct user_pt_regs *.
7190 (aarch64_store_gregset): Likewise.
7192 2015-11-18 Pedro Alves <palves@redhat.com>
7194 * Makefile.in (all_object_files): Add $IPA_OBJS.
7196 2015-11-17 Pedro Alves <palves@redhat.com>
7198 * win32-low.c (win32_resume): Use gdb_signal_from_host,
7199 GDB_SIGNAL_0 and gdb_signal_to_string.
7201 2015-11-17 Pedro Alves <palves@redhat.com>
7203 * win32-low.c (handle_output_debug_string): Remove parameter.
7204 (win32_kill): Remove our_status local and adjust call to
7205 handle_output_debug_string.
7206 (get_child_debug_event): Adjust call to
7207 handle_output_debug_string.
7209 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7211 * linux-mips-low.c (mips_fill_gregset): Add cast.
7212 (mips_store_gregset): Likewise.
7213 (mips_fill_fpregset): Likewise.
7214 (mips_store_fpregset): Likewise.
7216 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7218 * linux-mips-low.c (mips_add_watchpoint): Rename private to
7221 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7223 * linux-mips-low.c (mips_linux_new_thread): Change type of
7224 watch_type to enum target_hw_bp_type.
7226 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7228 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
7229 Change return type to arm_hwbp_type.
7231 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7233 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
7234 (arm_store_gregset): Likewise.
7235 * linux-arm-low.c (arm_get_hwcap): Likewise.
7236 (arm_read_description): Likewise.
7238 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7240 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
7242 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7244 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
7245 (ppc_fill_vsxregset): Likewise.
7246 (ppc_store_vsxregset): Likewise.
7247 (ppc_fill_vrregset): Likewise.
7248 (ppc_store_vrregset): Likewise.
7249 (ppc_fill_evrregset): Likewise.
7250 (ppc_store_evrregset): Likewise.
7252 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7254 * linux-ppc-low.c (ppc_usrregs_info): Remove
7255 forward-declaration.
7256 (ppc_arch_setup): Move lower in file.
7258 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
7260 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
7261 (ps_pdwrite): Likewise.
7263 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
7265 * linux-arm-low.c (arm_new_thread): Move pointer dereference
7266 to after assert checks.
7268 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
7270 * proc-service.c (ps_pdread): Add/adjust casts.
7271 (ps_pdwrite): Add/adjust casts.
7273 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
7275 * server.c (handle_search_memory_1): Cast return value of
7278 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
7280 * server.c (write_qxfer_response): Change type of data to
7283 2015-10-29 Pedro Alves <palves@redhat.com>
7285 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
7287 2015-10-29 Pedro Alves <palves@redhat.com>
7289 * tracepoint.c (clear_installed_tracepoints): Add casts.
7291 2015-10-29 Pedro Alves <palves@redhat.com>
7293 * server.c (handle_v_cont, process_serial_event): Add enum
7294 gdb_signal casts to signal parsing code.
7296 2015-10-29 Pedro Alves <palves@redhat.com>
7298 * linux-low.h (NULL_REGSET): Define.
7299 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
7300 * linux-arm-low.c (arm_regsets): Likewise.
7301 * linux-crisv32-low.c (cris_regsets): Likewise.
7302 * linux-m68k-low.c (m68k_regsets): Likewise.
7303 * linux-mips-low.c (mips_regsets): Likewise.
7304 * linux-nios2-low.c (nios2_regsets): Likewise.
7305 * linux-ppc-low.c (ppc_regsets): Likewise.
7306 * linux-s390-low.c (s390_regsets): Likewise.
7307 * linux-sh-low.c (sh_regsets): Likewise.
7308 * linux-sparc-low.c (sparc_regsets): Likewise.
7309 * linux-tic6x-low.c (tic6x_regsets): Likewise.
7310 * linux-tile-low.c (tile_regsets): Likewise.
7311 * linux-x86-low.c (x86_regsets): Likewise.
7312 * linux-xtensa-low.c (xtensa_regsets): Likewise.
7314 2015-10-29 Pedro Alves <palves@redhat.com>
7316 * linux-low.h (NULL_REGSET): Define.
7317 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
7318 * linux-arm-low.c (arm_regsets): Likewise.
7319 * linux-crisv32-low.c (cris_regsets): Likewise.
7320 * linux-m68k-low.c (m68k_regsets): Likewise.
7321 * linux-mips-low.c (mips_regsets): Likewise.
7322 * linux-nios2-low.c (nios2_regsets): Likewise.
7323 * linux-ppc-low.c (ppc_regsets): Likewise.
7324 * linux-s390-low.c (s390_regsets): Likewise.
7325 * linux-sh-low.c (sh_regsets): Likewise.
7326 * linux-sparc-low.c (sparc_regsets): Likewise.
7327 * linux-tic6x-low.c (tic6x_regsets): Likewise.
7328 * linux-tile-low.c (tile_regsets): Likewise.
7329 * linux-x86-low.c (x86_regsets): Likewise.
7330 * linux-xtensa-low.c (xtensa_regsets): Likewise.
7332 2015-10-26 Doug Evans <dje@google.com>
7334 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
7336 2015-10-26 Doug Evans <dje@google.com>
7338 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
7340 2015-10-26 Doug Evans <dje@google.com>
7342 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
7344 (attach_thread, find_new_threads_callback): Ditto.
7346 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7348 * mem-break.h (set_breakpoint_data): Remove.
7350 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7352 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
7353 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
7354 (initialize_low): Remove set_breakpoint_data call.
7355 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
7356 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
7357 (initialize_low): Remove set_breakpoint_data call.
7358 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
7359 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
7360 (initialize_low): Remove set_breakpoint_data call.
7362 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7364 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
7365 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
7366 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
7367 * target.h (target_breakpoint_kind_from_pc): New macro.
7369 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
7371 * linux-low.c (default_breakpoint_kind_from_pc): New function.
7372 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
7373 the default breakpoint kind.
7375 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7377 * linux-arm-low.c (arm_supports_z_point_type): Add software
7380 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7382 * linux-arm-low.c: Refactor breakpoint definitions.
7383 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
7384 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
7386 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7388 * Makefile.in: Add arm.c/o.
7389 * configure.srv: Likewise.
7390 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
7391 (arm_breakpoint_kind_from_pc): New function.
7392 (arm_sw_breakpoint_from_kind): Return proper kind.
7393 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
7395 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7397 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
7399 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
7400 (struct raw_breakpoint) <size>: Remove.
7401 (struct raw_breakpoint) <kind>: Add.
7402 (bp_size): New function.
7403 (bp_opcode): Likewise.
7404 (find_raw_breakpoint_at): Adjust for kind.
7405 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
7406 (remove_memory_breakpoint): Adjust for kind call bp_size.
7407 (set_raw_breakpoint_at): Adjust for kind.
7408 (set_breakpoint): Likewise.
7409 (set_breakpoint_at): Call breakpoint_kind_from_pc.
7410 (delete_raw_breakpoint): Adjust for kind.
7411 (delete_breakpoint): Likewise.
7412 (find_gdb_breakpoint): Likewise.
7413 (set_gdb_breakpoint_1): Likewise.
7414 (set_gdb_breakpoint): Likewise.
7415 (delete_gdb_breakpoint_1): Likewise.
7416 (delete_gdb_breakpoint): Likewise.
7417 (uninsert_raw_breakpoint): Likewise.
7418 (reinsert_raw_breakpoint): Likewise.
7419 (set_breakpoint_data): Remove.
7420 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
7421 (check_mem_read): Adjust for kind call bp_size.
7422 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
7423 (clone_one_breakpoint): Adjust for kind.
7424 * mem-break.h (set_gdb_breakpoint): Likewise.
7425 (delete_gdb_breakpoint): Likewise.
7426 * server.c (process_serial_event): Likewise.
7428 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7430 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
7431 (struct linux_target_ops) <breakpoint>: Remove.
7432 (struct linux_target_ops) <breakpoint_len>: Remove.
7433 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7434 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7435 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
7436 (arm_sw_breakpoint_from_kind): New function.
7437 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
7438 (struct linux_target_ops) <breakpoint>: Remove.
7439 (struct linux_target_ops) <breakpoint_len>: Remove.
7440 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7441 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7442 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
7443 (struct linux_target_ops) <breakpoint>: Remove.
7444 (struct linux_target_ops) <breakpoint_len>: Remove.
7445 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7446 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7447 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
7448 (struct linux_target_ops) <breakpoint>: Remove.
7449 (struct linux_target_ops) <breakpoint_len>: Remove.
7450 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7451 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7452 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
7453 and sw_breakpoint_from_kind to increment the pc.
7454 (linux_breakpoint_kind_from_pc): New function.
7455 (linux_sw_breakpoint_from_kind): New function.
7456 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
7457 (initialize_low): Call breakpoint_kind_from_pc and
7458 sw_breakpoint_from_kind to replace breakpoint_data/len.
7459 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
7461 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
7462 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
7463 (struct linux_target_ops) <breakpoint>: Remove.
7464 (struct linux_target_ops) <breakpoint_len>: Remove.
7465 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7466 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7467 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
7468 (struct linux_target_ops) <breakpoint>: Remove.
7469 (struct linux_target_ops) <breakpoint_len>: Remove.
7470 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7471 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7472 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
7473 (struct linux_target_ops) <breakpoint>: Remove.
7474 (struct linux_target_ops) <breakpoint_len>: Remove.
7475 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7476 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7477 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
7478 (struct linux_target_ops) <breakpoint>: Remove.
7479 (struct linux_target_ops) <breakpoint_len>: Remove.
7480 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7481 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7482 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
7483 (struct linux_target_ops) <breakpoint>: Remove.
7484 (struct linux_target_ops) <breakpoint_len>: Remove.
7485 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7486 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7487 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
7488 (struct linux_target_ops) <breakpoint>: Remove.
7489 (struct linux_target_ops) <breakpoint_len>: Remove.
7490 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7491 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7492 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
7493 (struct linux_target_ops) <breakpoint>: Remove.
7494 (struct linux_target_ops) <breakpoint_len>: Remove.
7495 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7496 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7497 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
7498 (struct linux_target_ops) <breakpoint>: Remove.
7499 (struct linux_target_ops) <breakpoint_len>: Remove.
7500 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7501 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7502 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
7503 (struct linux_target_ops) <breakpoint>: Remove.
7504 (struct linux_target_ops) <breakpoint_len>: Remove.
7505 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7506 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7507 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
7508 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
7509 (struct linux_target_ops) <breakpoint>: Remove.
7510 (struct linux_target_ops) <breakpoint_len>: Remove.
7511 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7512 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7513 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
7514 (struct linux_target_ops) <breakpoint>: Remove.
7515 (struct linux_target_ops) <breakpoint_len>: Remove.
7516 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7517 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7519 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7521 * linux-cris-low.c (cris_get_pc): Remove void arg.
7523 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
7525 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
7528 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
7530 * inferiors.c (thread_pid_matches_callback): New function.
7531 (find_thread_process): New function.
7532 (remove_thread): Reset current_thread.
7533 (remove_process): Assert threads have been removed first.
7535 2015-10-15 Yao Qi <yao.qi@linaro.org>
7537 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
7539 (aarch64_remove_point): Likewise.
7540 * regcache.c (regcache_register_size): New function.
7542 2015-10-12 Yao Qi <yao.qi@linaro.org>
7544 * linux-aarch64-low.c: Update all callers as emit_load_store
7545 is renamed to aarch64_emit_load_store.
7547 2015-10-12 Yao Qi <yao.qi@linaro.org>
7549 * linux-aarch64-low.c: Update all callers of function renaming
7550 from emit_insn to aarch64_emit_insn.
7552 2015-10-12 Yao Qi <yao.qi@linaro.org>
7554 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
7555 arch/aarch64-insn.h.
7556 (struct aarch64_memory_operand): Likewise.
7558 (emit_insn): Move to arch/aarch64-insn.c.
7559 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
7560 (emit_load_store): Move to arch/aarch64-insn.c.
7561 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
7562 (can_encode_int32): Remove.
7564 2015-10-12 Yao Qi <yao.qi@linaro.org>
7566 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
7567 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
7568 (aarch64_relocate_instruction): Likewise.
7569 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
7570 (struct aarch64_insn_visitor): Likewise.
7572 2015-10-12 Yao Qi <yao.qi@linaro.org>
7574 * linux-aarch64-low.c (struct aarch64_insn_data): New.
7575 (struct aarch64_insn_visitor): New.
7576 (struct aarch64_insn_relocation_data): New.
7577 (aarch64_ftrace_insn_reloc_b): New function.
7578 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7579 (aarch64_ftrace_insn_reloc_cb): Likewise.
7580 (aarch64_ftrace_insn_reloc_tb): Likewise.
7581 (aarch64_ftrace_insn_reloc_adr): Likewise.
7582 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
7583 (aarch64_ftrace_insn_reloc_others): Likewise.
7585 (aarch64_relocate_instruction): Use visitor.
7587 2015-10-12 Yao Qi <yao.qi@linaro.org>
7589 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
7590 int. Add argument buf.
7591 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
7592 aarch64_relocate_instruction.
7594 2015-10-12 Yao Qi <yao.qi@linaro.org>
7596 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
7597 argument insn. Remove local variable insn. Don't call
7599 (aarch64_install_fast_tracepoint_jump_pad): Call
7602 2015-09-30 Yao Qi <yao.qi@linaro.org>
7604 * linux-aarch64-low.c (emit_movk): Shorten a long line.
7605 (emit_load_store_pair): Likewise.
7607 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
7609 * dll.c (match_dll): Add cast(s).
7610 (unloaded_dll): Likewise.
7611 * linux-low.c (second_thread_of_pid_p): Likewise.
7612 (delete_lwp_callback): Likewise.
7613 (count_events_callback): Likewise.
7614 (select_event_lwp_callback): Likewise.
7615 (linux_set_resume_request): Likewise.
7616 * server.c (accumulate_file_name_length): Likewise.
7617 (emit_dll_description): Likewise.
7618 (handle_qxfer_threads_worker): Likewise.
7619 (visit_actioned_threads): Likewise.
7620 * thread-db.c (any_thread_of): Likewise.
7621 * tracepoint.c (same_process_p): Likewise.
7622 (match_blocktype): Likewise.
7623 (build_traceframe_info_xml): Likewise.
7625 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
7627 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
7629 (gdb_unparse_agent_expr): Likewise.
7630 * hostio.c (require_data): Likewise.
7631 (handle_pread): Likewise.
7632 * linux-low.c (disable_regset): Likewise.
7633 (fetch_register): Likewise.
7634 (store_register): Likewise.
7635 (get_dynamic): Likewise.
7636 (linux_qxfer_libraries_svr4): Likewise.
7637 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
7638 (set_fast_tracepoint_jump): Likewise.
7639 (uninsert_fast_tracepoint_jumps_at): Likewise.
7640 (reinsert_fast_tracepoint_jumps_at): Likewise.
7641 (validate_inserted_breakpoint): Likewise.
7642 (clone_agent_expr): Likewise.
7643 * regcache.c (init_register_cache): Likewise.
7644 * remote-utils.c (putpkt_binary_1): Likewise.
7645 (decode_M_packet): Likewise.
7646 (decode_X_packet): Likewise.
7647 (look_up_one_symbol): Likewise.
7648 (relocate_instruction): Likewise.
7649 (monitor_output): Likewise.
7650 * server.c (handle_search_memory): Likewise.
7651 (handle_qxfer_exec_file): Likewise.
7652 (handle_qxfer_libraries): Likewise.
7653 (handle_qxfer): Likewise.
7654 (handle_query): Likewise.
7655 (handle_v_cont): Likewise.
7656 (handle_v_run): Likewise.
7657 (captured_main): Likewise.
7658 * target.c (write_inferior_memory): Likewise.
7659 * thread-db.c (try_thread_db_load_from_dir): Likewise.
7660 * tracepoint.c (init_trace_buffer): Likewise.
7661 (add_tracepoint_action): Likewise.
7662 (add_traceframe): Likewise.
7663 (add_traceframe_block): Likewise.
7664 (cmd_qtdpsrc): Likewise.
7665 (cmd_qtdv): Likewise.
7666 (cmd_qtstatus): Likewise.
7667 (response_source): Likewise.
7668 (response_tsv): Likewise.
7669 (cmd_qtnotes): Likewise.
7670 (gdb_collect): Likewise.
7671 (initialize_tracepoint): Likewise.
7673 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7675 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
7676 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
7677 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
7679 (enum aarch64_condition_codes): New enum.
7680 (w0): New static global.
7683 (struct aarch64_memory_operand) <type>: New
7684 MEMORY_OPERAND_POSTINDEX type.
7685 (postindex_memory_operand): New helper function.
7686 (emit_ret): New function.
7687 (emit_load_store_pair): New function, factored out of emit_stp
7688 with support for MEMORY_OPERAND_POSTINDEX.
7689 (emit_stp): Rewrite using emit_load_store_pair.
7690 (emit_ldp): New function.
7691 (emit_load_store): Likewise.
7692 (emit_ldr): Mention post-index instruction in comment.
7693 (emit_ldrh): New function.
7694 (emit_ldrb): New function.
7695 (emit_ldrsw): Mention post-index instruction in comment.
7696 (emit_str): Likewise.
7697 (emit_subs): New function.
7698 (emit_cmp): Likewise.
7699 (emit_and): Likewise.
7700 (emit_orr): Likewise.
7701 (emit_orn): Likewise.
7702 (emit_eor): Likewise.
7703 (emit_mvn): Likewise.
7704 (emit_lslv): Likewise.
7705 (emit_lsrv): Likewise.
7706 (emit_asrv): Likewise.
7707 (emit_mul): Likewise.
7708 (emit_sbfm): Likewise.
7709 (emit_sbfx): Likewise.
7710 (emit_ubfm): Likewise.
7711 (emit_ubfx): Likewise.
7712 (emit_csinc): Likewise.
7713 (emit_cset): Likewise.
7714 (emit_nop): Likewise.
7715 (emit_ops_insns): New helper function.
7716 (emit_pop): Likewise.
7717 (emit_push): Likewise.
7718 (aarch64_emit_prologue): New function.
7719 (aarch64_emit_epilogue): Likewise.
7720 (aarch64_emit_add): Likewise.
7721 (aarch64_emit_sub): Likewise.
7722 (aarch64_emit_mul): Likewise.
7723 (aarch64_emit_lsh): Likewise.
7724 (aarch64_emit_rsh_signed): Likewise.
7725 (aarch64_emit_rsh_unsigned): Likewise.
7726 (aarch64_emit_ext): Likewise.
7727 (aarch64_emit_log_not): Likewise.
7728 (aarch64_emit_bit_and): Likewise.
7729 (aarch64_emit_bit_or): Likewise.
7730 (aarch64_emit_bit_xor): Likewise.
7731 (aarch64_emit_bit_not): Likewise.
7732 (aarch64_emit_equal): Likewise.
7733 (aarch64_emit_less_signed): Likewise.
7734 (aarch64_emit_less_unsigned): Likewise.
7735 (aarch64_emit_ref): Likewise.
7736 (aarch64_emit_if_goto): Likewise.
7737 (aarch64_emit_goto): Likewise.
7738 (aarch64_write_goto_address): Likewise.
7739 (aarch64_emit_const): Likewise.
7740 (aarch64_emit_call): Likewise.
7741 (aarch64_emit_reg): Likewise.
7742 (aarch64_emit_pop): Likewise.
7743 (aarch64_emit_stack_flush): Likewise.
7744 (aarch64_emit_zero_ext): Likewise.
7745 (aarch64_emit_swap): Likewise.
7746 (aarch64_emit_stack_adjust): Likewise.
7747 (aarch64_emit_int_call_1): Likewise.
7748 (aarch64_emit_void_call_2): Likewise.
7749 (aarch64_emit_eq_goto): Likewise.
7750 (aarch64_emit_ne_goto): Likewise.
7751 (aarch64_emit_lt_goto): Likewise.
7752 (aarch64_emit_le_goto): Likewise.
7753 (aarch64_emit_gt_goto): Likewise.
7754 (aarch64_emit_ge_got): Likewise.
7755 (aarch64_emit_ops_impl): New static global variable.
7756 (aarch64_emit_ops): New target function, return
7757 &aarch64_emit_ops_impl.
7758 (struct linux_target_ops): Install it.
7760 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7762 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
7763 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
7765 * linux-aarch64-ipa.c: New file.
7766 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
7768 (aarch64_get_thread_area): New target method.
7769 (extract_signed_bitfield): New helper function.
7770 (aarch64_decode_ldr_literal): New function.
7771 (enum aarch64_opcodes): New enum.
7772 (struct aarch64_register): New struct.
7773 (struct aarch64_operand): New struct.
7774 (x0): New static global.
7783 (aarch64_register): New helper function.
7784 (register_operand): Likewise.
7785 (immediate_operand): Likewise.
7786 (struct aarch64_memory_operand): New struct.
7787 (offset_memory_operand): New helper function.
7788 (preindex_memory_operand): Likewise.
7789 (enum aarch64_system_control_registers): New enum.
7790 (ENCODE): New macro.
7791 (emit_insn): New helper function.
7792 (emit_b): New function.
7793 (emit_bcond): Likewise.
7794 (emit_cb): Likewise.
7795 (emit_tb): Likewise.
7796 (emit_blr): Likewise.
7797 (emit_stp): Likewise.
7798 (emit_ldp_q_offset): Likewise.
7799 (emit_stp_q_offset): Likewise.
7800 (emit_load_store): Likewise.
7801 (emit_ldr): Likewise.
7802 (emit_ldrsw): Likewise.
7803 (emit_str): Likewise.
7804 (emit_ldaxr): Likewise.
7805 (emit_stxr): Likewise.
7806 (emit_stlr): Likewise.
7807 (emit_data_processing_reg): Likewise.
7808 (emit_data_processing): Likewise.
7809 (emit_add): Likewise.
7810 (emit_sub): Likewise.
7811 (emit_mov): Likewise.
7812 (emit_movk): Likewise.
7813 (emit_mov_addr): Likewise.
7814 (emit_mrs): Likewise.
7815 (emit_msr): Likewise.
7816 (emit_sevl): Likewise.
7817 (emit_wfe): Likewise.
7818 (append_insns): Likewise.
7819 (can_encode_int32_in): New helper function.
7820 (aarch64_relocate_instruction): New function.
7821 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
7822 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
7823 (struct linux_target_ops): Install aarch64_get_thread_area,
7824 aarch64_install_fast_tracepoint_jump_pad and
7825 aarch64_get_min_fast_tracepoint_insn_len.
7827 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7829 * Makefile.in (aarch64-insn.o): New rule.
7830 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
7832 2015-09-21 Yao Qi <yao.qi@linaro.org>
7834 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
7836 2015-09-21 Yao Qi <yao.qi@linaro.org>
7838 * tracepoint.c (max_jump_pad_size): Remove.
7840 2015-09-18 Yao Qi <yao.qi@linaro.org>
7842 * linux-aarch64-low.c: Don't include sys/uio.h.
7843 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
7845 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
7847 * tracepoint.c (eval_result_type): Change prototype.
7848 (condition_true_at_tracepoint): Fix argument to compiled_cond.
7850 2015-09-15 Pedro Alves <palves@redhat.com>
7852 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
7853 Check whether to report exec events instead of checking whether
7854 multiprocess is enabled.
7856 2015-09-15 Pedro Alves <palves@redhat.com>
7859 * remote-utils.c (prepare_resume_reply): Merge
7860 TARGET_WAITKIND_VFORK_DONE switch case with the
7861 TARGET_WAITKIND_FORKED case.
7863 2015-09-15 Yao Qi <yao.qi@linaro.org>
7865 * server.c (handle_query): Check string comparison using
7866 "else if" instead of "if".
7868 2015-09-15 Yao Qi <yao.qi@linaro.org>
7870 * server.c (vCont_supported): New global variable.
7871 (handle_query): Set vCont_supported to 1 if "vContSupported+"
7872 matches. Append ";vContSupported+" to own_buf.
7873 (handle_v_requests): Append ";s;S" to own_buf if target supports
7874 hardware single step or vCont_supported is false.
7875 (capture_main): Set vCont_supported to zero.
7877 2015-09-15 Yao Qi <yao.qi@linaro.org>
7879 * linux-low.c (linux_supports_conditional_breakpoints): Rename
7881 (linux_supports_hardware_single_step): ... New function.
7882 (linux_target_ops): Update.
7883 * lynx-low.c (lynx_target_ops): Set field
7884 supports_hardware_single_step to target_can_do_hardware_single_step.
7885 * nto-low.c (nto_target_ops): Likewise.
7886 * spu-low.c (spu_target_ops): Likewise.
7887 * win32-low.c (win32_target_ops): Likewise.
7888 * target.c (target_can_do_hardware_single_step): New function.
7889 * target.h (struct target_ops) <supports_conditional_breakpoints>:
7890 Remove. <supports_hardware_single_step>: New field.
7891 (target_supports_conditional_breakpoints): Remove.
7892 (target_supports_hardware_single_step): New macro.
7893 (target_can_do_hardware_single_step): Declare.
7894 * server.c (handle_query): Use target_supports_hardware_single_step
7895 instead of target_supports_conditional_breakpoints.
7897 2015-09-15 Yao Qi <yao.qi@linaro.org>
7899 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
7901 (struct linux_target_ops the_low_target): Install
7902 aarch64_linux_siginfo_fixup.
7904 2015-09-11 Don Breazeal <donb@codesourcery.com>
7905 Luis Machado <lgustavo@codesourcery.com>
7907 * linux-low.c (linux_mourn): Static declaration.
7908 (linux_arch_setup): Move in front of
7909 handle_extended_wait.
7910 (linux_arch_setup_thread): New function.
7911 (handle_extended_wait): Handle exec events. Call
7912 linux_arch_setup_thread. Make event_lwp argument a
7913 pointer-to-a-pointer.
7914 (check_zombie_leaders): Do not check stopped threads.
7915 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
7916 (linux_low_filter_event): Add lwp and thread for exec'ing
7917 non-leader thread if leader thread has been deleted.
7918 Refactor code into linux_arch_setup_thread and call it.
7919 Pass child lwp pointer by reference to handle_extended_wait.
7920 (linux_wait_for_event_filtered): Update comment.
7921 (linux_wait_1): Prevent clobbering exec event status.
7922 (linux_supports_exec_events): New function.
7923 (linux_target_ops) <supports_exec_events>: Initialize new member.
7924 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
7926 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
7927 * server.c (report_exec_events): New global variable.
7928 (handle_query): Handle qSupported query for exec-events feature.
7929 (captured_main): Initialize report_exec_events.
7930 * server.h (report_exec_events): Declare new global variable.
7931 * target.h (struct target_ops) <supports_exec_events>: New
7933 (target_supports_exec_events): New macro.
7934 * win32-low.c (win32_target_ops) <supports_exec_events>:
7935 Initialize new member.
7937 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
7939 * linux-low.c (linux_low_enable_btrace): Remove.
7940 (linux_target_ops): Replace linux_low_enable_btrace with
7941 linux_enable_btrace.
7943 2015-09-03 Yao Qi <yao.qi@linaro.org>
7945 * linux-aarch64-low.c (aarch64_insert_point): Call
7946 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
7949 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7951 * linux-low.c (check_stopped_by_breakpoint): Use
7952 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
7954 2015-08-27 Pedro Alves <palves@redhat.com>
7956 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
7958 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
7960 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
7961 the XNEW-family equivalent.
7962 (compile_bytecodes): Likewise.
7963 * dll.c (loaded_dll): Likewise.
7964 * event-loop.c (append_callback_event): Likewise.
7965 (create_file_handler): Likewise.
7966 (create_file_event): Likewise.
7967 * hostio.c (handle_open): Likewise.
7968 * inferiors.c (add_thread): Likewise.
7969 (add_process): Likewise.
7970 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
7971 * linux-arm-low.c (arm_new_process): Likewise.
7972 (arm_new_thread): Likewise.
7973 * linux-low.c (add_to_pid_list): Likewise.
7974 (linux_add_process): Likewise.
7975 (handle_extended_wait): Likewise.
7976 (add_lwp): Likewise.
7977 (enqueue_one_deferred_signal): Likewise.
7978 (enqueue_pending_signal): Likewise.
7979 (linux_resume_one_lwp_throw): Likewise.
7980 (linux_resume_one_thread): Likewise.
7981 (linux_read_memory): Likewise.
7982 (linux_write_memory): Likewise.
7983 * linux-mips-low.c (mips_linux_new_process): Likewise.
7984 (mips_linux_new_thread): Likewise.
7985 (mips_add_watchpoint): Likewise.
7986 * linux-x86-low.c (initialize_low_arch): Likewise.
7987 * lynx-low.c (lynx_add_process): Likewise.
7988 * mem-break.c (set_raw_breakpoint_at): Likewise.
7989 (set_breakpoint): Likewise.
7990 (add_condition_to_breakpoint): Likewise.
7991 (add_commands_to_breakpoint): Likewise.
7992 (clone_agent_expr): Likewise.
7993 (clone_one_breakpoint): Likewise.
7994 * regcache.c (new_register_cache): Likewise.
7995 * remote-utils.c (look_up_one_symbol): Likewise.
7996 * server.c (queue_stop_reply): Likewise.
7997 (start_inferior): Likewise.
7998 (queue_stop_reply_callback): Likewise.
7999 (handle_target_event): Likewise.
8000 * spu-low.c (fetch_ppc_memory): Likewise.
8001 (store_ppc_memory): Likewise.
8002 * target.c (set_target_ops): Likewise.
8003 * thread-db.c (thread_db_load_search): Likewise.
8004 (try_thread_db_load_1): Likewise.
8005 * tracepoint.c (add_tracepoint): Likewise.
8006 (add_tracepoint_action): Likewise.
8007 (create_trace_state_variable): Likewise.
8008 (cmd_qtdpsrc): Likewise.
8009 (cmd_qtro): Likewise.
8010 (add_while_stepping_state): Likewise.
8011 * win32-low.c (child_add_thread): Likewise.
8012 (get_image_name): Likewise.
8014 2015-08-25 Yao Qi <yao.qi@linaro.org>
8016 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
8018 2015-08-25 Yao Qi <yao.qi@linaro.org>
8020 * Makefile.in (aarch64-linux.o): New rule.
8021 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
8023 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
8024 (aarch64_init_debug_reg_state): Make it extern.
8025 (aarch64_linux_prepare_to_resume): Remove.
8027 2015-08-25 Yao Qi <yao.qi@linaro.org>
8029 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
8030 lwp_arch_private_info and ptid_of_lwp.
8032 2015-08-25 Yao Qi <yao.qi@linaro.org>
8034 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
8035 Find proc_info by find_process_pid. All callers updated.
8037 2015-08-25 Yao Qi <yao.qi@linaro.org>
8039 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
8041 (debug_reg_change_callback): Remove.
8042 (aarch64_notify_debug_reg_change): Remove.
8044 2015-08-25 Yao Qi <yao.qi@linaro.org>
8046 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
8047 Call current_lwp_ptid.
8049 2015-08-25 Yao Qi <yao.qi@linaro.org>
8051 * linux-aarch64-low.c (debug_reg_change_callback): Use
8054 2015-08-25 Yao Qi <yao.qi@linaro.org>
8056 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
8058 2015-08-25 Yao Qi <yao.qi@linaro.org>
8060 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
8062 2015-08-25 Yao Qi <yao.qi@linaro.org>
8064 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
8067 2015-08-25 Yao Qi <yao.qi@linaro.org>
8069 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
8071 (debug_reg_change_callback): Remove argument entry and add argument
8072 lwp. Remove local variable thread. Don't print thread id in the
8073 debugging output. Don't check whether pid of thread equals to pid.
8074 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
8075 iterate_over_lwps instead find_inferior.
8077 2015-08-24 Pedro Alves <palves@redhat.com>
8079 * inferiors.c (get_first_process): New function.
8080 * inferiors.h (get_first_process): New declaration.
8081 * remote-utils.c (read_ptid): Default to the first process in the
8082 list, instead of to the current thread's process.
8084 2015-08-24 Pedro Alves <palves@redhat.com>
8086 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
8087 * event-loop.c: Likewise.
8088 * remote-utils.c: Likewise.
8089 * tracepoint.c: Likewise.
8091 2015-08-24 Pedro Alves <palves@redhat.com>
8093 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
8096 2015-08-21 Pedro Alves <palves@redhat.com>
8098 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
8099 instead of literal 1.
8101 2015-08-21 Pedro Alves <palves@redhat.com>
8103 * tdesc.c (default_description): Explicitly zero-initialize.
8105 2015-08-21 Pedro Alves <palves@redhat.com>
8108 * inferiors.c (remove_thread): Discard any pending stop reply for
8110 * server.c (remove_all_on_match_pid): Rename to ...
8111 (remove_all_on_match_ptid): ... this. Work with a filter ptid
8113 (discard_queued_stop_replies): Change parameter to a ptid. Now
8115 (handle_v_kill, kill_inferior_callback, captured_main)
8116 (process_serial_event): Adjust.
8117 * server.h (discard_queued_stop_replies): Declare.
8119 2015-08-21 Pedro Alves <palves@redhat.com>
8121 * linux-low.c (wait_for_sigstop): Always switch to no thread
8122 selected if the previously current thread dies.
8123 * lynx-low.c (lynx_request_interrupt): Use the first thread's
8124 process instead of the current thread's.
8125 * remote-utils.c (input_interrupt): Don't check if there's no
8127 * server.c (gdb_read_memory, gdb_write_memory): If setting the
8128 current thread to the general thread fails, error out.
8129 (handle_qxfer_auxv, handle_qxfer_libraries)
8130 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
8131 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
8132 (handle_query): Check if there's a thread selected instead of
8133 checking whether there's any thread in the thread list.
8134 (handle_qxfer_threads, handle_qxfer_btrace)
8135 (handle_qxfer_btrace_conf): Don't error out early if there's no
8136 thread in the thread list.
8137 (handle_v_cont, myresume): Don't set the current thread to the
8139 (process_serial_event) <Hg handling>: Also set thread_id if the
8140 previous general thread is still alive.
8141 (process_serial_event) <g/G handling>: If setting the current
8142 thread to the general thread fails, error out.
8143 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
8144 thread's lwp instead of the current thread's.
8145 * target.c (set_desired_thread): If the desired thread was not
8146 found, leave the current thread pointing to NULL. Return an int
8147 (boolean) indicating success.
8148 * target.h (set_desired_thread): Change return type to int.
8150 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
8152 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
8153 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
8155 (ps_get_thread_area): New function.
8157 2015-08-19 Gary Benson <gbenson@redhat.com>
8159 * hostio.c (handle_pread): Do not attempt to read more data
8160 than hostio_reply_with_data can fit in a packet.
8162 2015-08-18 Joel Brobecker <brobecker@adacore.com>
8164 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
8166 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
8168 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
8170 2015-08-06 Pedro Alves <palves@redhat.com>
8172 * tracepoint.c (expr_eval_result): Now an int.
8174 2015-08-06 Pedro Alves <palves@redhat.com>
8176 * gdbthread.h (struct regcache): Forward declare.
8177 (struct thread_info) <regcache_data>: Now a struct regcache
8179 * inferiors.c (inferior_regcache_data)
8180 (set_inferior_regcache_data): Now work with struct regcache
8182 * inferiors.h (struct regcache): Forward declare.
8183 (inferior_regcache_data, set_inferior_regcache_data): Now work
8184 with struct regcache pointers.
8185 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
8186 (free_register_cache_thread): Remove struct regcache pointer
8189 2015-08-06 Pedro Alves <palves@redhat.com>
8191 * server.c (captured_main): On error, print the exception message
8192 to stderr, and if run_once is set, throw a quit.
8194 2015-08-06 Pedro Alves <palves@redhat.com>
8196 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
8199 2015-08-06 Pedro Alves <palves@redhat.com>
8201 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
8202 reading beyond the passed in buffer length.
8204 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
8206 * tracepoint.c (symbol_list) <required>: Remove.
8208 2015-08-06 Pedro Alves <palves@redhat.com>
8210 * linux-low.c (handle_extended_wait): Set the fork child's suspend
8211 count if stopping and suspending threads.
8212 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
8213 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
8214 (linux_detach): Complete an ongoing step-over.
8215 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
8217 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
8218 (linux_wait_1): If passing a signal to the inferior after
8219 finishing a step-over, unsuspend and re-resume all lwps. If we
8220 see a single-step event but the thread should be continuing, don't
8221 pass the trap to gdb.
8222 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
8223 internal_error instead of gdb_assert.
8224 (enqueue_pending_signal): New function.
8225 (check_ptrace_stopped_lwp_gone): Add debug output.
8226 (start_step_over): Use internal_error instead of gdb_assert.
8227 (complete_ongoing_step_over): New function.
8228 (linux_resume_one_thread): Don't resume a suspended thread.
8229 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
8232 2015-08-06 Pedro Alves <palves@redhat.com>
8234 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
8235 (linux_thread_alive): Use lwp_is_marked_dead.
8236 (extended_event_reported): Delete.
8237 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
8238 instead of extended_event_reported.
8239 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
8241 (lwp_is_marked_dead): New function.
8242 (lwp_running): Use lwp_is_marked_dead.
8243 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
8246 2015-08-06 Pedro Alves <palves@redhat.com>
8248 * linux-low.c (linux_wait_1): Move fork event output out of the
8249 !report_to_gdb check. Pass event_child->waitstatus to
8250 target_waitstatus_to_string instead of ourstatus.
8252 2015-08-04 Yao Qi <yao.qi@linaro.org>
8254 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
8255 if current_thread is 32 bit.
8257 2015-08-04 Yao Qi <yao.qi@linaro.org>
8259 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8260 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8261 * server.c (extended_protocol): Remove "static".
8262 * server.h (extended_protocol): Declare it.
8264 2015-08-04 Yao Qi <yao.qi@linaro.org>
8266 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
8267 both aarch64 and aarch32.
8268 (aarch64_set_pc): Likewise.
8270 2015-08-04 Yao Qi <yao.qi@linaro.org>
8272 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
8273 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
8274 arm-with-neon.xml to srv_xmlfiles.
8275 * linux-aarch64-low.c: Include linux-aarch32-low.h.
8276 (is_64bit_tdesc): New function.
8277 (aarch64_linux_read_description): New function.
8278 (aarch64_arch_setup): Call aarch64_linux_read_description.
8279 (regs_info): Rename to regs_info_aarch64.
8280 (aarch64_regs_info): Return right regs_info.
8281 (initialize_low_arch): Call initialize_low_arch_aarch32.
8283 2015-08-04 Yao Qi <yao.qi@linaro.org>
8285 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
8286 * linux-aarch32-low.c: New file.
8287 * linux-aarch32-low.h: New file.
8288 * linux-arm-low.c (arm_fill_gregset): Move it to
8289 linux-aarch32-low.c.
8290 (arm_store_gregset): Likewise.
8291 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
8292 (arm_store_vfpregset): Call arm_store_vfpregset_num.
8293 (arm_arch_setup): Check if PTRACE_GETREGSET works.
8294 (regs_info): Rename to regs_info_arm.
8295 (arm_regs_info): Return regs_info_aarch32 if
8296 have_ptrace_getregset is 1 and target description is
8297 arm_with_neon or arm_with_vfpv3.
8298 (initialize_low_arch): Don't call init_registers_arm_with_neon.
8299 Call initialize_low_arch_aarch32 instead.
8301 2015-08-04 Yao Qi <yao.qi@linaro.org>
8303 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
8304 * linux-low.c: ... here.
8305 * linux-low.h (have_ptrace_getregset): Declare it.
8307 2015-08-04 Pedro Alves <palves@redhat.com>
8309 * thread-db.c (struct thread_db): Use new typedefs.
8310 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
8312 (disable_thread_event_reporting): Cast result of dlsym to
8313 destination function pointer type.
8314 (thread_db_mourn): Use td_ta_delete_ftype.
8316 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
8318 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
8320 (CDX_BREAKPOINT): Define for R2.
8321 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
8322 (the_low_target): Add comments.
8324 2015-07-30 Yao Qi <yao.qi@linaro.org>
8326 * linux-arm-low.c (arm_hwcap): Remove it.
8327 (arm_read_description): New local variable arm_hwcap. Don't
8328 set arm_hwcap to zero.
8330 2015-07-30 Yao Qi <yao.qi@linaro.org>
8332 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
8333 Use regcache->tdesc instead.
8334 (arm_store_wmmxregset): Likewise.
8335 (arm_fill_vfpregset): Likewise.
8336 (arm_store_vfpregset): Likewise.
8338 2015-07-30 Yao Qi <yao.qi@linaro.org>
8340 * linux-arm-low.c: Include arch/arm.h.
8341 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
8342 (arm_store_gregset): Likewise.
8344 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
8346 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
8347 ptrace's 4th parameter.
8349 2015-07-27 Yao Qi <yao.qi@linaro.org>
8351 * configure.srv (case aarch64*-*-linux*): Don't set
8354 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
8356 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
8358 * linux-arm-low.c: Likewise.
8359 * linux-cris-low.c: Likewise.
8360 * linux-crisv32-low.c: Likewise.
8361 * linux-low.c: Likewise.
8362 * linux-m68k-low.c: Likewise.
8363 * linux-mips-low.c: Likewise.
8364 * linux-nios2-low.c: Likewise.
8365 * linux-s390-low.c: Likewise.
8366 * linux-sparc-low.c: Likewise.
8367 * linux-tic6x-low.c: Likewise.
8368 * linux-tile-low.c: Likewise.
8369 * linux-x86-low.c: Likewise.
8371 2015-07-24 Pedro Alves <palves@redhat.com>
8373 * config.in: Regenerate.
8374 * configure: Regenerate.
8376 2015-07-24 Pedro Alves <palves@redhat.com>
8378 * acinclude.m4: Include ../ptrace.m4.
8379 * configure.ac: Call GDB_AC_PTRACE.
8380 * config.in, configure: Regenerate.
8382 2015-07-24 Yao Qi <yao.qi@linaro.org>
8384 * linux-low.c (linux_create_inferior): Remove setting to
8385 proc->priv->new_inferior.
8386 (linux_attach): Likewise.
8387 (linux_low_filter_event): Likewise.
8388 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
8390 2015-07-24 Yao Qi <yao.qi@linaro.org>
8392 * linux-low.c (linux_arch_setup): New function.
8393 (linux_low_filter_event): If proc->tdesc is NULL and
8394 proc->attached is true, call the_low_target.arch_setup.
8395 Otherwise, keep status pending, and return.
8396 (linux_resume_one_lwp_throw): Don't call get_pc if
8397 thread->while_stepping isn't NULL. Don't call
8398 get_thread_regcache if proc->tdesc is NULL.
8399 (need_step_over_p): Return 0 if proc->tdesc is NULL.
8400 (linux_target_ops): Install arch_setup.
8401 * server.c (start_inferior): Call the_target->arch_setup.
8402 * target.h (struct target_ops) <arch_setup>: New field.
8403 (target_arch_setup): New marco.
8404 * lynx-low.c (lynx_target_ops): Update.
8405 * nto-low.c (nto_target_ops): Update.
8406 * spu-low.c (spu_target_ops): Update.
8407 * win32-low.c (win32_target_ops): Update.
8409 2015-07-24 Yao Qi <yao.qi@linaro.org>
8411 * linux-low.c (linux_add_process): Don't set
8412 proc->priv->new_inferior.
8413 (linux_create_inferior): Set proc->priv->new_inferior to 1.
8414 (linux_attach): Likewise.
8416 2015-07-24 Yao Qi <yao.qi@linaro.org>
8418 * server.c (start_inferior): Code refactor.
8420 2015-07-24 Yao Qi <yao.qi@linaro.org>
8422 * server.c (process_serial_event): Set general_thread.
8424 2015-07-21 Yao Qi <yao.qi@linaro.org>
8426 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
8427 aarch64_linux_get_debug_reg_capacity.
8429 2015-07-17 Yao Qi <yao.qi@linaro.org>
8431 * Makefile.in (aarch64-linux-hw-point.o): New rule.
8432 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
8433 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
8434 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
8435 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
8436 (AARCH64_HWP_ALIGNMENT): Likewise.
8437 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
8438 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
8439 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
8440 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
8441 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
8442 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
8443 (struct aarch64_debug_reg_state): Likewise.
8444 (struct arch_lwp_info): Likewise.
8445 (aarch64_align_watchpoint): Likewise.
8446 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
8447 (aarch64_watchpoint_length): Likewise.
8448 (aarch64_point_encode_ctrl_reg): Likewise
8449 (aarch64_point_is_aligned): Likewise.
8450 (aarch64_align_watchpoint): Likewise.
8451 (aarch64_linux_set_debug_regs):
8452 (aarch64_dr_state_insert_one_point): Likewise.
8453 (aarch64_dr_state_remove_one_point): Likewise.
8454 (aarch64_handle_breakpoint): Likewise.
8455 (aarch64_handle_aligned_watchpoint): Likewise.
8456 (aarch64_handle_unaligned_watchpoint): Likewise.
8457 (aarch64_handle_watchpoint): Likewise.
8459 2015-07-17 Yao Qi <yao.qi@linaro.org>
8461 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
8462 and don't aarch64_get_debug_reg_state. All callers update.
8463 (aarch64_handle_aligned_watchpoint): Likewise.
8464 (aarch64_handle_unaligned_watchpoint): Likewise.
8465 (aarch64_handle_watchpoint): Likewise.
8466 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
8467 (aarch64_remove_point): Likewise.
8469 2015-07-17 Yao Qi <yao.qi@linaro.org>
8471 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
8473 (aarch64_handle_unaligned_watchpoint): Likewise.
8475 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8477 Revert the previous 3 commits:
8478 Move gdb_regex* to common/
8479 Move linux_find_memory_regions_full & co.
8480 gdbserver build-id attribute generator
8482 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8483 Jan Kratochvil <jan.kratochvil@redhat.com>
8485 gdbserver build-id attribute generator.
8486 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
8487 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
8488 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
8490 (get_dynamic): Use find_pdhr to traverse program headers.
8491 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
8492 (compare_mapping_entry_range, struct find_memory_region_callback_data)
8493 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
8494 (get_hex_build_id): New.
8495 (linux_qxfer_libraries_svr4): Add optional build-id attribute
8496 to reply XML document.
8498 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8499 Jan Kratochvil <jan.kratochvil@redhat.com>
8501 * target.c: Include target/target-utils.h and fcntl.h.
8502 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
8503 (target_fileio_read_stralloc): New functions.
8505 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8507 * Makefile.in (OBS): Add gdb_regex.o.
8509 * config.in: Rebuilt.
8510 * configure: Rebuilt.
8512 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8513 Jan Kratochvil <jan.kratochvil@redhat.com>
8515 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
8516 * Makefile.in (OBS): Add target-utils.o.
8517 (linux-maps.o, target-utils.o): New.
8518 * configure.srv (srv_linux_obj): Add linux-maps.o.
8520 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
8522 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
8524 (the_low_target): Install it.
8526 2015-07-14 Pedro Alves <palves@redhat.com>
8528 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
8529 Instead, ignore ECHILD, and throw an error for other errnos.
8531 2015-07-10 Pedro Alves <palves@redhat.com>
8533 * event-loop.c (struct callback_event) <data>: Change type to
8534 gdb_client_data instance instead of gdb_client_data pointer.
8535 (append_callback_event): Adjust.
8537 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
8539 * linux-aarch64-low.c: Add comments for each linux_target_ops
8540 method. Remove comments already covered in target_ops and
8541 linux_target_ops definitions.
8542 (the_low_target): Add comments for each unimplemented method.
8544 2015-07-09 Yao Qi <yao.qi@linaro.org>
8546 * linux-aarch64-low.c (aarch64_regmap): Remove.
8547 (aarch64_usrregs_info): Remove.
8548 (regs_info): Set field usrregs to NULL.
8550 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8552 * linux-low.c: Include "rsp-low.h"
8553 (linux_low_encode_pt_config, linux_low_encode_raw): New.
8554 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
8555 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
8556 (handle_btrace_enable_pt): New.
8557 (handle_btrace_general_set): Support "pt".
8558 (handle_btrace_conf_general_set): Support "pt:size".
8560 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
8562 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
8565 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
8567 * linux-aarch64-low.c: Remove comment about endianness.
8568 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
8569 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
8572 2015-06-24 Gary Benson <gbenson@redhat.com>
8574 * linux-i386-ipa.c (stdint.h): Do not include.
8575 * lynx-i386-low.c (stdint.h): Likewise.
8576 * lynx-ppc-low.c (stdint.h): Likewise.
8577 * mem-break.c (stdint.h): Likewise.
8578 * thread-db.c (stdint.h): Likewise.
8579 * tracepoint.c (stdint.h): Likewise.
8580 * win32-low.c (stdint.h): Likewise.
8582 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
8584 * server.c (write_qxfer_response): Update call to
8585 remote_escape_output.
8587 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
8588 Jan Kratochvil <jan.kratochvil@redhat.com>
8590 Merge multiple hex conversions.
8591 * gdbreplay.c (tohex): Rename to 'fromhex'.
8592 (logchar): Use fromhex.
8594 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8596 * server.c (handle_qxfer_libraries): Set `version' attribute for
8599 2015-06-10 Gary Benson <gbenson@redhat.com>
8601 * target.h (struct target_ops) <multifs_open>: New field.
8602 <multifs_unlink>: Likewise.
8603 <multifs_readlink>: Likewise.
8604 * linux-low.c (nat/linux-namespaces.h): New include.
8605 (linux_target_ops): Initialize the_target->multifs_open,
8606 the_target->multifs_unlink and the_target->multifs_readlink.
8607 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
8608 * hostio.c (hostio_fs_pid): New static variable.
8609 (hostio_handle_new_gdb_connection): New function.
8610 (handle_setfs): Likewise.
8611 (handle_open): Use the_target->multifs_open as appropriate.
8612 (handle_unlink): Use the_target->multifs_unlink as appropriate.
8613 (handle_readlink): Use the_target->multifs_readlink as
8615 (handle_vFile): Handle vFile:setfs packets.
8616 * server.c (handle_query): Call hostio_handle_new_gdb_connection
8617 after target_handle_new_gdb_connection.
8619 2015-06-10 Gary Benson <gbenson@redhat.com>
8621 * configure.ac (AC_CHECK_FUNCS): Add setns.
8622 * config.in: Regenerate.
8623 * configure: Likewise.
8624 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
8625 (linux-namespaces.o): New rule.
8626 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
8628 2015-06-09 Gary Benson <gbenson@redhat.com>
8630 * hostio.c (handle_open): Process mode argument with
8631 fileio_to_host_mode.
8633 2015-06-01 Yao Qi <yao.qi@linaro.org>
8635 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8636 * linux-x86-low.c: Likewise.
8638 2015-05-28 Don Breazeal <donb@codesourcery.com>
8640 * linux-low.c (handle_extended_wait): Initialize
8641 thread_info.last_resume_kind for new fork children.
8643 2015-05-15 Pedro Alves <palves@redhat.com>
8645 * target.h (target_handle_new_gdb_connection): Rewrite using if
8646 wrapped in do/while.
8648 2015-05-14 Joel Brobecker <brobecker@adacore.com>
8650 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
8651 * configure, config.in: Regenerate.
8652 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
8655 2015-05-12 Don Breazeal <donb@codesourcery.com>
8657 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
8658 PTRACE_EVENT_VFORK_DONE.
8659 (linux_low_ptrace_options, extended_event_reported): Add vfork
8661 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
8662 and "vforkdone" for RSP 'T' Stop Reply Packet.
8663 * server.h (report_vfork_events): Declare
8666 2015-05-12 Don Breazeal <donb@codesourcery.com>
8668 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
8669 (the_low_target) <new_fork>: Initialize new member.
8670 * linux-arm-low.c (arm_new_fork): New function.
8671 (the_low_target) <new_fork>: Initialize new member.
8672 * linux-low.c (handle_extended_wait): Call new target function
8674 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
8675 * linux-mips-low.c (mips_add_watchpoint): New function
8676 extracted from mips_insert_point.
8677 (the_low_target) <new_fork>: Initialize new member.
8678 (mips_linux_new_fork): New function.
8679 (mips_insert_point): Call mips_add_watchpoint.
8680 * linux-x86-low.c (x86_linux_new_fork): New function.
8681 (the_low_target) <new_fork>: Initialize new member.
8683 2015-05-12 Don Breazeal <donb@codesourcery.com>
8685 * linux-low.c (handle_extended_wait): Implement return value,
8686 rename argument 'event_child' to 'event_lwp', handle
8687 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
8688 (linux_low_ptrace_options): New function.
8689 (linux_low_filter_event): Call linux_low_ptrace_options,
8690 use different argument fo linux_enable_event_reporting,
8691 use return value from handle_extended_wait.
8692 (extended_event_reported): New function.
8693 (linux_wait_1): Call extended_event_reported and set
8694 status to report fork events.
8695 (linux_write_memory): Add pid to debug message.
8696 (reset_lwp_ptrace_options_callback): New function.
8697 (linux_handle_new_gdb_connection): New function.
8698 (linux_target_ops): Initialize new structure member.
8699 * linux-low.h (struct lwp_info) <waitstatus>: New member.
8700 * lynx-low.c: Initialize new structure member.
8701 * remote-utils.c (prepare_resume_reply): Implement stop reason
8702 "fork" for "T" stop message.
8703 * server.c (handle_query): Call handle_new_gdb_connection.
8704 * server.h (report_fork_events): Declare global flag.
8705 * target.h (struct target_ops) <handle_new_gdb_connection>:
8707 (target_handle_new_gdb_connection): New macro.
8708 * win32-low.c: Initialize new structure member.
8710 2015-05-12 Don Breazeal <donb@codesourcery.com>
8712 * mem-break.c (APPEND_TO_LIST): Define macro.
8713 (clone_agent_expr): New function.
8714 (clone_one_breakpoint): New function.
8715 (clone_all_breakpoints): New function.
8716 * mem-break.h: Declare new functions.
8718 2015-05-12 Don Breazeal <donb@codesourcery.com>
8720 * linux-low.c (linux_supports_fork_events): New function.
8721 (linux_supports_vfork_events): New function.
8722 (linux_target_ops): Initialize new structure members.
8723 (initialize_low): Call linux_check_ptrace_features.
8724 * lynx-low.c (lynx_target_ops): Initialize new structure
8726 * server.c (report_fork_events, report_vfork_events):
8728 (handle_query): Add new features to qSupported packet and
8730 (captured_main): Initialize new global variables.
8731 * target.h (struct target_ops) <supports_fork_events>:
8733 <supports_vfork_events>: New member.
8734 (target_supports_fork_events): New macro.
8735 (target_supports_vfork_events): New macro.
8736 * win32-low.c (win32_target_ops): Initialize new structure
8739 2015-05-12 Gary Benson <gbenson@redhat.com>
8741 * server.c (handle_qxfer_exec_file): Use current process
8744 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8746 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
8747 Remove HAVE_PTRACE_GETREGS conditionals.
8748 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
8749 instead of PTRACE_GETREGS and PTRACE_SETREGS.
8751 2015-05-08 Yao Qi <yao.qi@linaro.org>
8753 * linux-low.c (linux_supports_conditional_breakpoints): New
8755 (linux_target_ops): Install new target method.
8756 * lynx-low.c (lynx_target_ops): Install NULL hook for
8757 supports_conditional_breakpoints.
8758 * nto-low.c (nto_target_ops): Likewise.
8759 * spu-low.c (spu_target_ops): Likewise.
8760 * win32-low.c (win32_target_ops): Likewise.
8761 * server.c (handle_query): Check
8762 target_supports_conditional_breakpoints.
8763 * target.h (struct target_ops) <supports_conditional_breakpoints>:
8765 (target_supports_conditional_breakpoints): New macro.
8767 2015-05-06 Pedro Alves <palves@redhat.com>
8770 * server.c (start_inferior): If the process exits, mourn it.
8772 2015-04-21 Gary Benson <gbenson@redhat.com>
8774 * hostio.c (fileio_open_flags_to_host): Factored out to
8775 fileio_to_host_openflags in common/fileio.c. Single use
8778 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
8780 * linux-xtensa-low.c (xtensa_fill_gregset)
8781 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
8784 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
8786 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
8787 (regs_info): Replace usrregs pointer with NULL.
8789 2015-04-17 Gary Benson <gbenson@redhat.com>
8791 * target.h (struct target_ops) <pid_to_exec_file>: New field.
8792 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
8793 * server.c (handle_qxfer_exec_file): New function.
8794 (qxfer_packets): Add exec-file entry.
8795 (handle_query): Report qXfer:exec-file:read as supported packet.
8797 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
8799 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
8801 2015-04-09 Gary Benson <gbenson@redhat.com>
8803 * hostio-errno.c (errno_to_fileio_error): Remove function.
8804 Update caller to use remote_fileio_to_fio_error.
8806 2015-04-09 Yao Qi <yao.qi@linaro.org>
8808 * linux-low.c (linux_insert_point): Call
8809 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
8810 (linux_remove_point): Call remove_memory_breakpoint if type is
8812 * linux-x86-low.c (x86_insert_point): Don't call
8813 insert_memory_breakpoint.
8814 (x86_remove_point): Don't call remove_memory_breakpoint.
8816 2015-04-01 Pedro Alves <palves@redhat.com>
8817 Cleber Rosa <crosa@redhat.com>
8819 * server.c (gdbserver_usage): Reorganize and extend the usage
8822 2015-03-24 Pedro Alves <palves@redhat.com>
8824 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
8825 output. Also dump TRAP_TRACE.
8826 (linux_low_filter_event): In debug output, distinguish a
8827 resume_stop SIGSTOP from a delayed SIGSTOP.
8829 2015-03-24 Gary Benson <gbenson@redhat.com>
8831 * linux-x86-low.c (x86_linux_new_thread): Moved to
8833 (x86_linux_prepare_to_resume): Likewise.
8835 2015-03-24 Gary Benson <gbenson@redhat.com>
8837 * Makefile.in (x86-linux-dregs.o): New rule.
8838 * configure.srv: Add x86-linux-dregs.o to relevant targets.
8839 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
8840 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
8841 (x86_linux_dr_get): Likewise.
8842 (x86_linux_dr_set): Likewise.
8843 (update_debug_registers_callback): Likewise.
8844 (x86_linux_dr_set_addr): Likewise.
8845 (x86_linux_dr_get_addr): Likewise.
8846 (x86_linux_dr_set_control): Likewise.
8847 (x86_linux_dr_get_control): Likewise.
8848 (x86_linux_dr_get_status): Likewise.
8849 (x86_linux_update_debug_registers): Likewise.
8851 2015-03-24 Gary Benson <gbenson@redhat.com>
8853 * linux-x86-low.c (x86_linux_update_debug_registers):
8854 New function, factored out from...
8855 (x86_linux_prepare_to_resume): ...this.
8857 2015-03-24 Gary Benson <gbenson@redhat.com>
8859 * linux-x86-low.c (x86_linux_dr_get): Update comments.
8860 (x86_linux_dr_set): Likewise.
8861 (update_debug_registers_callback): Likewise.
8862 (x86_linux_dr_set_addr): Likewise.
8863 (x86_linux_dr_get_addr): Likewise.
8864 (x86_linux_dr_set_control): Likewise.
8865 (x86_linux_dr_get_control): Likewise.
8866 (x86_linux_dr_get_status): Likewise.
8867 (x86_linux_prepare_to_resume): Likewise.
8869 2015-03-24 Gary Benson <gbenson@redhat.com>
8871 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
8872 Use perror_with_name. Pass string through gettext.
8873 (x86_linux_dr_set): Likewise.
8875 2015-03-24 Gary Benson <gbenson@redhat.com>
8877 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
8878 (x86_linux_dr_set_addr): ...this.
8879 (x86_dr_low_get_addr): Rename to...
8880 (x86_linux_dr_get_addr): ...this.
8881 (x86_dr_low_set_control): Rename to...
8882 (x86_linux_dr_set_control): ...this.
8883 (x86_dr_low_get_control): Rename to...
8884 (x86_linux_dr_get_control): ...this.
8885 (x86_dr_low_get_status): Rename to...
8886 (x86_linux_dr_get_status): ...this.
8887 (x86_dr_low): Update with new function names.
8889 2015-03-24 Gary Benson <gbenson@redhat.com>
8891 * Makefile.in (x86-linux.o): New rule.
8892 * configure.srv: Add x86-linux.o to relevant targets.
8893 * linux-low.c (lwp_set_arch_private_info): New function.
8894 (lwp_arch_private_info): Likewise.
8895 * linux-x86-low.c: Include nat/x86-linux.h.
8896 (arch_lwp_info): Removed structure.
8897 (update_debug_registers_callback):
8898 Use lwp_set_debug_registers_changed.
8899 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
8900 and lwp_set_debug_registers_changed.
8901 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
8903 2015-03-24 Gary Benson <gbenson@redhat.com>
8905 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
8906 * linux-arm-low.c (arm_new_thread): Likewise.
8907 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
8908 * linux-mips-low.c (mips_linux_new_thread): Likewise.
8909 * linux-x86-low.c (x86_linux_new_thread): Likewise.
8910 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
8912 2015-03-24 Gary Benson <gbenson@redhat.com>
8914 * linux-low.c (ptid_of_lwp): New function.
8915 (lwp_is_stopped): Likewise.
8916 (lwp_stop_reason): Likewise.
8917 * linux-x86-low.c (update_debug_registers_callback):
8919 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
8922 2015-03-24 Gary Benson <gbenson@redhat.com>
8924 * linux-low.h (linux_stop_lwp): Remove declaration.
8926 2015-03-24 Gary Benson <gbenson@redhat.com>
8928 * linux-low.h: Include nat/linux-nat.h.
8929 * linux-low.c (iterate_over_lwps_args): New structure.
8930 (iterate_over_lwps_filter): New function.
8931 (iterate_over_lwps): Likewise.
8932 * linux-x86-low.c (update_debug_registers_callback):
8933 Update signature to what iterate_over_lwps expects.
8934 Remove PID check that iterate_over_lwps now performs.
8935 (x86_dr_low_set_addr): Use iterate_over_lwps.
8936 (x86_dr_low_set_control): Likewise.
8938 2015-03-24 Gary Benson <gbenson@redhat.com>
8940 * linux-x86-low.c (x86_debug_reg_state): New function.
8941 (x86_linux_prepare_to_resume): Use the above.
8943 2015-03-24 Gary Benson <gbenson@redhat.com>
8945 * linux-low.c (current_lwp_ptid): New function.
8946 * linux-x86-low.c: Include nat/linux-nat.h.
8947 (x86_dr_low_get_addr): Use current_lwp_ptid.
8948 (x86_dr_low_get_control): Likewise.
8949 (x86_dr_low_get_status): Likewise.
8951 2015-03-20 Pedro Alves <palves@redhat.com>
8953 * tracepoint.c (cmd_qtstatus): Make "str" const.
8955 2015-03-20 Pedro Alves <palves@redhat.com>
8957 * server.c (handle_general_set): Make "req_str" const.
8959 2015-03-19 Pedro Alves <palves@redhat.com>
8961 * linux-low.c (linux_resume_one_lwp): Rename to ...
8962 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
8963 instead call perror_with_name.
8964 (check_ptrace_stopped_lwp_gone): New function.
8965 (linux_resume_one_lwp): Reimplement as wrapper around
8966 linux_resume_one_lwp_throw that swallows errors if the LWP is
8969 2015-03-19 Pedro Alves <palves@redhat.com>
8971 * linux-low.c (count_events_callback, select_event_lwp_callback):
8972 No longer check whether the thread has resume_stop as last resume
8975 2015-03-19 Pedro Alves <palves@redhat.com>
8977 * linux-low.c (count_events_callback, select_event_lwp_callback):
8978 Use the lwp's status_pending_p field, not the thread's.
8980 2015-03-19 Pedro Alves <palves@redhat.com>
8982 * linux-low.c (select_event_lwp_callback): Update comments to
8983 no longer mention SIGTRAP.
8985 2015-03-18 Gary Benson <gbenson@redhat.com>
8987 * server.c (handle_query): Do not report vFile:fstat as supported.
8989 2015-03-11 Gary Benson <gbenson@redhat.com>
8991 * hostio.c (sys/types.h): New include.
8992 (sys/stat.h): Likewise.
8993 (common-remote-fileio.h): Likewise.
8994 (handle_fstat): New function.
8995 (handle_vFile): Handle vFile:fstat packets.
8997 2015-03-11 Gary Benson <gbenson@redhat.com>
8999 * configure.ac (AC_CHECK_MEMBERS): Add checks for
9000 struct stat.st_blocks and struct stat.st_blksize.
9001 * configure: Regenerate.
9002 * config.in: Likewise.
9003 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
9004 (OBS): Add common-remote-fileio.o.
9005 (common-remote-fileio.o): New rule.
9007 2015-03-09 Pedro Alves <palves@redhat.com>
9009 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
9010 'struct sockaddr' pointer in 'accept' call.
9012 2015-03-09 Pedro Alves <palves@redhat.com>
9015 2015-03-07 Pedro Alves <palves@redhat.com>
9016 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
9017 or <winsock2.h> here. Instead include "gdb_socket.h".
9018 (remote_open): Use union gdb_sockaddr_u.
9019 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
9020 or <winsock2.h> here. Instead include "gdb_socket.h".
9021 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
9022 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
9024 (init_named_socket, gdb_agent_helper_thread): Use union
9027 2015-03-07 Pedro Alves <palves@redhat.com>
9029 * configure.ac (build_warnings): Move
9030 -Wdeclaration-after-statement to the C-specific set.
9031 * configure: Regenerate.
9033 2015-03-07 Pedro Alves <palves@redhat.com>
9035 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
9036 or <winsock2.h> here. Instead include "gdb_socket.h".
9037 (remote_open): Use union gdb_sockaddr_u.
9038 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
9039 or <winsock2.h> here. Instead include "gdb_socket.h".
9040 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
9041 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
9043 (init_named_socket, gdb_agent_helper_thread): Use union
9046 2015-03-07 Pedro Alves <palves@redhat.com>
9048 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
9051 2015-03-06 Yao Qi <yao.qi@linaro.org>
9053 * linux-aarch64-low.c (aarch64_insert_point): Use
9054 show_debug_regs as a boolean.
9055 (aarch64_remove_point): Likewise.
9057 2015-03-05 Pedro Alves <palves@redhat.com>
9059 * lynx-low.c (lynx_target_ops): Install NULL hooks for
9060 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
9061 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
9062 * nto-low.c (nto_target_ops): Likewise.
9063 * spu-low.c (spu_target_ops): Likewise.
9064 * win32-low.c (win32_target_ops): Likewise.
9066 2015-03-04 Pedro Alves <palves@redhat.com>
9068 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
9069 Decide whether a breakpoint triggered based on the SIGTRAP's
9071 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
9072 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
9073 (linux_low_filter_event): Check for breakpoints before checking
9075 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
9077 (linux_stopped_by_sw_breakpoint)
9078 (linux_supports_stopped_by_sw_breakpoint)
9079 (linux_stopped_by_hw_breakpoint)
9080 (linux_supports_stopped_by_hw_breakpoint): New functions.
9081 (linux_target_ops): Install new target methods.
9083 2015-03-04 Pedro Alves <palves@redhat.com>
9085 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
9086 * server.c (swbreak_feature, hwbreak_feature): New globals.
9087 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
9088 (captured_main): Clear swbreak_feature and hwbreak_feature.
9089 * server.h (swbreak_feature, hwbreak_feature): Declare.
9090 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
9091 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
9092 supports_stopped_by_hw_breakpoint>: New fields.
9093 (target_supports_stopped_by_sw_breakpoint)
9094 (target_stopped_by_sw_breakpoint)
9095 (target_supports_stopped_by_hw_breakpoint)
9096 (target_stopped_by_hw_breakpoint): Declare.
9098 2015-03-04 Pedro Alves <palves@redhat.com>
9100 enum lwp_stop_reason -> enum target_stop_reason
9101 * linux-low.c (check_stopped_by_breakpoint): Adjust.
9102 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
9103 (linux_wait_1, stuck_in_jump_pad_callback)
9104 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
9105 (linux_stopped_by_watchpoint):
9106 * linux-low.h (enum lwp_stop_reason): Delete.
9107 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
9108 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
9110 2015-03-04 Yao Qi <yao.qi@linaro.org>
9112 * Makefile.in (SFILES): Add linux-aarch64-low.c.
9114 2015-03-03 Gary Benson <gbenson@redhat.com>
9116 * hostio.c (handle_vFile): Fix prefix lengths.
9118 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9120 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
9123 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
9125 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
9126 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
9127 (clean): Add "rm -f" for above C files.
9128 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
9129 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
9130 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
9131 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
9132 * linux-s390-low.c (HWCAP_S390_VX): New macro.
9133 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
9134 (init_registers_s390x_vx_linux64)
9135 (init_registers_s390x_tevx_linux64)
9136 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
9137 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
9139 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
9140 (s390_store_vxrs_high): New functions.
9141 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
9143 (s390_arch_setup): Add logic for selecting one of the new target
9144 descriptions. Activate the new vector regsets if applicable.
9145 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
9146 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
9147 and init_registers_s390x_tevx_linux64.
9149 2015-03-01 Pedro Alves <palves@redhat.com>
9151 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
9154 2015-02-27 Pedro Alves <palves@redhat.com>
9156 * linux-x86-low.c (u_debugreg_offset): New function.
9157 (x86_linux_dr_get, x86_linux_dr_set): Use it.
9159 2015-02-27 Pedro Alves <palves@redhat.com>
9161 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
9162 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
9163 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9164 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9165 (ps_lsetfpregs, ps_getpid)
9166 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
9167 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
9168 (ps_lsetxregs, ps_plog): Declare.
9170 2015-02-27 Pedro Alves <palves@redhat.com>
9172 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
9173 IP_AGENT_EXPORT_FUNC.
9174 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
9175 IP_AGENT_EXPORT_FUNC.
9176 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
9177 (IP_AGENT_EXPORT): Delete.
9178 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
9179 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
9180 (gdb_trampoline_buffer_error, collecting, gdb_collect)
9181 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
9182 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
9183 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
9184 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
9185 (traceframe_read_count, traceframe_write_count)
9186 (traceframes_created, trace_state_variables, get_raw_reg)
9187 (get_trace_state_variable_value, set_trace_state_variable_value)
9188 (ust_loaded, helper_thread_id, cmd_buf): Use
9189 IPA_SYM_EXPORTED_NAME.
9190 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
9191 (tracepoints) Use IP_AGENT_EXPORT_VAR.
9192 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
9193 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9194 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
9195 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
9196 EXTERN_C_PUSH/EXTERN_C_POP.
9197 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
9198 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
9199 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9200 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
9201 (traceframe_write_count, traceframe_read_count)
9202 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
9203 (about_to_request_buffer_space, get_trace_state_variable_value)
9204 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
9205 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
9206 EXTERN_C_PUSH/EXTERN_C_POP.
9207 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
9208 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
9209 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
9210 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9211 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
9212 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
9213 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
9214 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
9216 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
9217 (IP_AGENT_EXPORT_VAR_DECL): Define.
9219 (gdb_agent_get_raw_reg): Declare.
9221 2015-02-27 Tom Tromey <tromey@redhat.com>
9222 Pedro Alves <palves@redhat.com>
9224 Rename symbols whose names are reserved C++ keywords throughout.
9226 2015-02-27 Pedro Alves <palves@redhat.com>
9228 * Makefile.in (COMPILER): New, get it from autoconf.
9229 (CXX): Get from autoconf instead.
9230 (COMPILE.pre): Use COMPILER.
9231 (CC-LD): Rename to ...
9232 (CC_LD): ... this. Use COMPILER.
9233 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
9234 (CXX_FOR_TARGET): Default to g++ instead of gcc.
9235 * acinclude.m4: Include build-with-cxx.m4.
9236 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
9237 Disable -Werror by default if building in C++ mode.
9238 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
9239 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
9240 the C++ compiler. Save/restore CXXFLAGS too.
9241 * configure: Regenerate.
9243 2015-02-27 Pedro Alves <palves@redhat.com>
9245 * acinclude.m4: Include libiberty.m4.
9246 * configure.ac: Call libiberty_INIT.
9247 * config.in, configure: Regenerate.
9249 2015-02-26 Pedro Alves <palves@redhat.com>
9251 * linux-low.c (linux_wait_1): When incrementing the PC past a
9252 program breakpoint always use the_low_target.breakpoint_len as
9253 increment, rather than the maximum between that and
9254 the_low_target.decr_pc_after_break.
9256 2015-02-23 Pedro Alves <palves@redhat.com>
9258 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
9259 thread was doing a step-over; always adjust the PC if
9260 we stepped over a permanent breakpoint.
9261 (linux_wait_1): If we stepped over breakpoint that was on top of a
9262 permanent breakpoint, manually advance the PC past it.
9264 2015-02-23 Pedro Alves <palves@redhat.com>
9266 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
9268 (x86_fill_gregset, x86_store_gregset): Use it when handling
9271 2015-02-20 Pedro Alves <palves@redhat.com>
9273 * thread-db.c: Include "nat/linux-procfs.h".
9274 (thread_db_init): Skip listing new threads if the kernel supports
9275 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
9277 2015-02-20 Pedro Alves <palves@redhat.com>
9279 * linux-low.c (status_pending_p_callback): Use ptid_match.
9281 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
9283 PR breakpoints/16812
9284 * linux-low.c (wstatus_maybe_breakpoint): Remove.
9285 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
9286 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
9288 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
9290 PR breakpoints/15956
9291 * tracepoint.c (cmd_qtinit): Add check for current_thread.
9293 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9295 * linux-low.c (linux_low_btrace_conf): Print size.
9296 * server.c (handle_btrace_conf_general_set): New.
9297 (hanle_general_set): Call handle_btrace_conf_general_set.
9298 (handle_query): Report Qbtrace-conf:bts:size as supported.
9300 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9302 * linux-low.c (linux_low_enable_btrace): Update parameters.
9303 (linux_low_btrace_conf): New.
9304 (linux_target_ops)<to_btrace_conf>: Initialize.
9305 * server.c (current_btrace_conf): New.
9306 (handle_btrace_enable): Rename to ...
9307 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
9308 to target_enable_btrace. Update comment. Update users.
9309 (handle_qxfer_btrace_conf): New.
9310 (qxfer_packets): Add btrace-conf entry.
9311 (handle_query): Report qXfer:btrace-conf:read as supported packet.
9312 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
9313 (target_ops)<read_btrace_conf>: New.
9314 (target_enable_btrace): Update parameters.
9315 (target_read_btrace_conf): New.
9317 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9319 * server.c (handle_btrace_general_set): Remove call to
9320 target_supports_btrace.
9321 (supported_btrace_packets): New.
9322 (handle_query): Call supported_btrace_packets.
9323 * target.h: include btrace-common.h.
9324 (btrace_target_info): Removed.
9325 (supports_btrace, target_supports_btrace): Update parameters.
9327 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9329 * Makefile.in (SFILES): Add common/btrace-common.c.
9330 (OBS): Add common/btrace-common.o.
9331 (btrace-common.o): Add build rules.
9332 * linux-low: Include btrace-common.h.
9333 (linux_low_read_btrace): Use struct btrace_data. Call
9334 btrace_data_init and btrace_data_fini.
9336 2015-02-06 Pedro Alves <palves@redhat.com>
9338 * thread-db.c (find_new_threads_callback): Add debug output.
9340 2015-02-04 Pedro Alves <palves@redhat.com>
9342 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
9343 (resume_stopped_resumed_lwps): New function.
9344 (linux_wait_for_event_filtered): Use it.
9346 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9348 * Makefile.in (SFILES): Add linux-personality.c.
9349 (linux-personality.o): New rule.
9350 * configure.srv (srv_linux_obj): Add linux-personality.o to the
9351 list of objects to be built.
9352 * linux-low.c: Include nat/linux-personality.h.
9353 (linux_create_inferior): Remove code to disable address space
9354 randomization (moved to ../nat/linux-personality.c). Create
9355 cleanup to disable address space randomization.
9357 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9359 * Makefile.in (posix-strerror.o): New rule.
9360 (mingw-strerror.o): Likewise.
9361 * configure: Regenerated.
9362 * configure.ac: Source file ../common/common.host. Initialize new
9363 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
9365 2015-01-14 Yao Qi <yao@codesourcery.com>
9367 * Makefile.in (SFILES): Add nat/ppc-linux.c.
9368 (ppc-linux.o): New rule.
9369 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
9370 * configure.ac: AC_CHECK_FUNCS(getauxval).
9371 * config.in: Re-generated.
9372 * configure: Re-generated.
9373 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
9374 ppc64_64bit_inferior_p
9376 2015-01-14 Yao Qi <yao@codesourcery.com>
9378 * linux-ppc-low.c: Include "nat/ppc-linux.h".
9379 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
9380 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
9381 (PT_ORIG_R3, PT_TRAP): Likewise.
9382 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
9383 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
9384 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
9386 2015-01-10 Joel Brobecker <brobecker@adacore.com>
9388 * i387-fp.c (i387_cache_to_xsave): In look over
9389 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
9390 zmmh_low_space field by use of zmmh_high_space.
9392 2015-01-09 Pedro Alves <palves@redhat.com>
9394 * linux-low.c (step_over_bkpt): Move higher up in the file.
9395 (handle_extended_wait): Don't store the stop_pc here.
9396 (get_stop_pc): Adjust comments and rename to ...
9397 (check_stopped_by_breakpoint): ... this. Record whether the LWP
9398 stopped for a software breakpoint or hardware breakpoint.
9399 (thread_still_has_status_pending_p): New function.
9400 (status_pending_p_callback): Use
9401 thread_still_has_status_pending_p. If the event is no longer
9402 interesting, resume the LWP.
9403 (handle_tracepoints): Add assert.
9404 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
9405 (wstatus_maybe_breakpoint): New function.
9406 (cancel_breakpoint): Delete function.
9407 (check_stopped_by_watchpoint): New function, factored out from
9408 linux_low_filter_event.
9409 (lp_status_maybe_breakpoint): Delete function.
9410 (linux_low_filter_event): Remove filter_ptid argument.
9411 Leave thread group exits pending here. Store the LWP's stop PC.
9412 Always leave events pending.
9413 (linux_wait_for_event_filtered): Pull all events out of the
9414 kernel, and leave them all pending.
9415 (count_events_callback, select_event_lwp_callback): Consider all
9417 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
9418 (select_event_lwp): Only give preference to the stepping LWP in
9419 all-stop mode. Adjust comments.
9420 (ignore_event): New function.
9421 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
9422 references to cancel_breakpoints. Adjust to renames. Also give
9423 equal priority to all LWPs that have had events in non-stop mode.
9424 If reporting a software breakpoint event, unadjust the LWP's PC.
9425 (linux_wait): If linux_wait_1 returned an ignored event, retry.
9426 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
9428 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
9429 (resume_status_pending_p): Use thread_still_has_status_pending_p.
9430 (linux_stopped_by_watchpoint): Adjust.
9431 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
9432 * linux-low.h (enum lwp_stop_reason): New.
9433 (struct lwp_info) <stop_pc>: Adjust comment.
9434 <stopped_by_watchpoint>: Delete field.
9435 <stop_reason>: New field.
9436 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
9437 * mem-break.c (software_breakpoint_inserted_here)
9438 (hardware_breakpoint_inserted_here): New function.
9439 * mem-break.h (software_breakpoint_inserted_here)
9440 (hardware_breakpoint_inserted_here): Declare.
9441 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
9442 (cancel_breakpoints): Delete.
9443 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
9444 (upload_fast_traceframes): Remove references to
9447 2015-01-09 Pedro Alves <palves@redhat.com>
9449 * thread-db.c (find_new_threads_callback): Ignore thread if the
9450 kernel thread ID is -1.
9452 2015-01-09 Pedro Alves <palves@redhat.com>
9454 * linux-low.c (linux_attach_fail_reason_string): Move to
9455 nat/linux-ptrace.c, and rename.
9456 (linux_attach_lwp): Update comment.
9457 (attach_proc_task_lwp_callback): New function.
9458 (linux_attach): Adjust to rename and use
9459 linux_proc_attach_tgid_threads.
9460 (linux_attach_fail_reason_string): Delete declaration.
9462 2015-01-01 Joel Brobecker <brobecker@adacore.com>
9464 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
9465 * server.c (gdbserver_version): Likewise.
9467 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
9469 * remote-utils.c: Include ctype.h.
9470 (input_interrupt): Explicitly handle the case when the char
9471 received is the NUL byte. Improve the printing of non-ASCII
9474 2014-12-16 Joel Brobecker <brobecker@adacore.com>
9476 * linux-low.c (linux_low_filter_event): Update call to
9477 linux_enable_event_reporting following the addition of
9478 a new parameter to that function.
9480 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
9483 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
9484 (AARCH64_FPCR_REGNO): Likewise.
9485 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
9486 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
9487 (aarch64_store_fpregset): Likewise.
9489 2014-12-15 Joel Brobecker <brobecker@adacore.com>
9491 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
9492 Remove FIXME comment about assumption about N.
9494 2014-12-13 Joel Brobecker <brobecker@adacore.com>
9496 * configure.ac: If large-file support is disabled in GDBserver,
9497 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
9498 * configure: Regenerate.
9500 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9502 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
9503 warning upon ENODATA from ptrace.
9504 * linux-s390-low.c (s390_store_tdb): New.
9505 (s390_regsets): Add regset for NT_S390_TDB.
9507 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9509 * linux-low.c (regsets_store_inferior_registers): Skip regsets
9510 without a fill_function.
9511 * linux-s390-low.c (s390_fill_last_break): Remove.
9512 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
9513 (s390_arch_setup): Use regset's size instead of fill_function for
9516 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9518 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
9519 the regset's store function when ptrace returned an error.
9520 * regcache.c (get_thread_regcache): Invalidate register cache
9521 before fetching inferior's registers.
9523 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9525 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
9526 while-loop as for-loop.
9527 (regsets_store_inferior_registers): Likewise.
9529 2014-11-28 Yao Qi <yao@codesourcery.com>
9531 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
9532 * config.in, configure: Re-generate.
9533 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
9536 2014-11-21 Yao Qi <yao@codesourcery.com>
9538 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
9539 (AC_CHECK_HEADERS): Remove malloc.h.
9540 * configure: Re-generated.
9541 * config.in: Re-generated.
9542 * server.h: Don't include alloca.h and malloc.h.
9543 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
9544 Don't include malloc.h.
9546 2014-11-17 Joel Brobecker <brobecker@adacore.com>
9548 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
9549 corresponding ERRNO check in same block.
9551 2014-11-12 Pedro Alves <palves@redhat.com>
9553 * server.c (cont_thread): Update comment.
9554 (start_inferior, attach_inferior): No longer clear cont_thread.
9555 (handle_v_cont): No longer set cont_thread.
9556 (captured_main): Clear cont_thread each time a GDB connects.
9558 2014-11-12 Pedro Alves <palves@redhat.com>
9560 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
9561 thread, and don't resume all threads if the Hc thread has exited.
9563 2014-11-12 Pedro Alves <palves@redhat.com>
9565 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
9566 the process group instead of to a specific LWP.
9568 2014-10-15 Pedro Alves <palves@redhat.com>
9571 * win32-arm-low.c (arm_set_thread_context): Remove current_event
9573 (arm_set_thread_context): Delete.
9574 (the_low_target): Adjust.
9575 * win32-i386-low.c (debug_registers_changed)
9576 (debug_registers_used): Delete.
9577 (update_debug_registers_callback): New function.
9578 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
9579 needing to update their debug registers.
9580 (win32_get_current_dr): New function.
9581 (x86_dr_low_get_addr, x86_dr_low_get_control)
9582 (x86_dr_low_get_status): Fetch the debug register from the thread
9584 (i386_initial_stuff): Adjust.
9585 (i386_get_thread_context): Remove current_event parameter. Don't
9586 clear debug_registers_changed nor copy DR values to
9588 (i386_set_thread_context): Delete.
9589 (i386_prepare_to_resume): New function.
9590 (i386_thread_added): Mark the thread as needing to update irs
9592 (the_low_target): Remove i386_set_thread_context and install
9593 i386_prepare_to_resume.
9594 * win32-low.c (win32_get_thread_context): Adjust.
9595 (win32_set_thread_context): Use SetThreadContext
9597 (win32_prepare_to_resume): New function.
9598 (win32_require_context): New function, factored out from ...
9599 (thread_rec): ... this.
9600 (continue_one_thread): Call win32_prepare_to_resume on each thread
9601 we're about to continue.
9602 (win32_resume): Call win32_prepare_to_resume on the event thread.
9603 * win32-low.h (struct win32_thread_info)
9604 <debug_registers_changed>: New field.
9605 (struct win32_target_ops): Change prototype of set_thread_context,
9606 delete set_thread_context and add prepare_to_resume.
9607 (win32_require_context): New declaration.
9609 2014-10-08 Gary Benson <gbenson@redhat.com>
9611 * server.h: Do not include common-exceptions.h.
9613 2014-10-08 Gary Benson <gbenson@redhat.com>
9615 * server.h: Do not include cleanups.h.
9617 2014-09-30 James Hogan <james.hogan@imgtec.com>
9619 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
9622 2014-09-23 Yao Qi <yao@codesourcery.com>
9624 * linux-low.c (lp_status_maybe_breakpoint): New function.
9625 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
9626 (count_events_callback): Likewise.
9627 (select_event_lwp_callback): Likewise.
9628 (cancel_breakpoints_callback): Likewise.
9630 2014-09-19 Don Breazeal <donb@codesourcery.com>
9632 * linux-low.c (handle_extended_wait): Call
9633 linux_ptrace_get_extended_event.
9634 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
9635 linux_is_extended_waitstatus.
9637 2014-09-16 Joel Brobecker <brobecker@adacore.com>
9639 * Makefile.in (CPPFLAGS): Define.
9640 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
9641 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
9643 2014-09-16 Gary Benson <gbenson@redhat.com>
9645 * inferiors.h (current_inferior): Renamed as...
9646 (current_thread): New variable. All uses updated.
9647 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
9648 (maybe_move_out_of_jump_pad): Likewise.
9649 (cancel_breakpoint): Likewise.
9650 (linux_low_filter_event): Likewise.
9651 (wait_for_sigstop): Likewise.
9652 (linux_resume_one_lwp): Likewise.
9653 (need_step_over_p): Likewise.
9654 (start_step_over): Likewise.
9655 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
9656 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
9657 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
9658 and save_inferior as saved_thread.
9659 * regcache.c (get_thread_regcache): Renamed saved_inferior as
9661 (regcache_invalidate_thread): Likewise.
9662 * remote-utils.c (prepare_resume_reply): Likewise.
9663 * thread-db.c (thread_db_get_tls_address): Likewise.
9664 (disable_thread_event_reporting): Likewise.
9665 (remove_thread_event_breakpoints): Likewise.
9666 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
9668 * target.h (set_desired_inferior): Renamed as...
9669 (set_desired_thread): New declaration. All uses updated.
9670 * server.c (myresume): Updated comment to reference thread instead
9672 (handle_serial_event): Likewise.
9673 (handle_target_event): Likewise.
9675 2014-09-12 Tom Tromey <tromey@redhat.com>
9676 Gary Benson <gbenson@redhat.com>
9678 * regcache.h: Include common-regcache.h.
9679 (regcache_read_pc): Don't declare.
9680 * regcache.c (get_thread_regcache_for_ptid): New function.
9682 2014-09-11 Tom Tromey <tromey@redhat.com>
9683 Gary Benson <gbenson@redhat.com>
9685 * symbol.c: New file.
9686 * Makefile.in (SFILES): Add symbol.c.
9687 (OBS): Add symbol.o.
9689 2014-09-11 Gary Benson <gbenson@redhat.com>
9691 * target.c (target_stop_ptid, target_continue_ptid): New
9694 2014-09-11 Tom Tromey <tromey@redhat.com>
9695 Gary Benson <gbenson@redhat.com>
9697 * target.h: Include target/target.h.
9698 * target.c (target_read_memory, target_read_uint32)
9699 (target_write_memory): New functions.
9701 2014-09-11 Gary Benson <gbenson@redhat.com>
9703 * server.h (debug_hw_points): Don't declare.
9704 * server.c (debug_hw_points): Don't define. Replace all uses
9705 with show_debug_regs.
9706 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
9707 all uses with show_debug_regs.
9709 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9711 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
9712 endianness into account.
9713 (ppc_supply_ptrace_register): Likewise.
9715 2014-09-03 James Hogan <james.hogan@imgtec.com>
9717 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
9718 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
9720 2014-09-03 Gary Benson <gbenson@redhat.com>
9722 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
9723 ALL_DEBUG_ADDRESS_REGISTERS.
9725 2014-09-02 Gary Benson <gbenson@redhat.com>
9727 * i386-low.h: Renamed as...
9728 * x86-low.h: New file. All type, function and variable name
9729 prefixes changed from "i386_" to "x86_". All references updated.
9730 * i386-low.c: Renamed as...
9731 * x86-low.c: New file. All type, function and variable name
9732 prefixes changed from "i386_" to "x86_". All references updated.
9734 2014-09-02 Gary Benson <gbenson@redhat.com>
9736 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
9737 (x86_linux_new_thread): Likewise.
9739 2014-08-29 Gary Benson <gbenson@redhat.com>
9741 * server.h (setjmp.h): Do not include.
9742 (toplevel): Do not declare.
9743 (common-exceptions.h): Include.
9744 (cleanups.h): Likewise.
9745 * server.c (toplevel): Do not define.
9746 (exit_code): New static global.
9747 (detach_or_kill_for_exit_cleanup): New function.
9748 (main): New function. Original main renamed to...
9749 (captured_main): New function.
9750 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
9752 2014-08-29 Gary Benson <gbenson@redhat.com>
9754 * Makefile.in (SFILES): Add common/common-exceptions.c.
9755 (OBS): Add common-exceptions.o.
9756 (common-exceptions.o): New rule.
9757 * utils.c (prepare_to_throw_exception): New function.
9759 2014-08-29 Gary Benson <gbenson@redhat.com>
9761 * config.in: Regenerate.
9762 * configure: Likewise.
9764 2014-08-29 Gary Benson <gbenson@redhat.com>
9766 * Makefile.in (SFILES): Add common/cleanups.c.
9768 (cleanups.o): New rule.
9770 2014-08-29 Gary Benson <gbenson@redhat.com>
9772 * utils.c (internal_vwarning): New function.
9774 2014-08-28 Gary Benson <gbenson@redhat.com>
9776 * utils.h (fatal): Remove declaration.
9777 * utils.c (fatal): Remove function.
9779 2014-08-28 Gary Benson <gbenson@redhat.com>
9781 * tracepoint.c (gdb_agent_init): Replace fatal with
9783 (initialize_tracepoint): Likewise.
9785 2014-08-28 Gary Benson <gbenson@redhat.com>
9787 * remote-utils.c (remote_prepare): Replace fatal with error.
9789 2014-08-28 Gary Benson <gbenson@redhat.com>
9791 * linux-low.c (linux_async): Replace fatal with warning.
9793 (linux_start_non_stop): Return -1 if linux_async failed.
9795 2014-08-28 Gary Benson <gbenson@redhat.com>
9797 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
9799 (i386_dr_low_get_addr): Remove vague comment.
9800 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
9803 2014-08-28 Gary Benson <gbenson@redhat.com>
9805 * inferiors.c (get_thread_process): Replace check with gdb_assert.
9806 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
9808 (linux_resume_one_lwp): Likewise.
9809 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
9811 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
9812 with internal_error.
9813 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
9814 (init_register_cache): Replace fatal with gdb_assert_not_reached.
9815 (find_register_by_name): Replace fatal with internal_error.
9816 (find_regno): Likewise.
9817 * tdesc.c (init_target_desc): Replace check with gdb_assert.
9818 * thread-db.c (thread_db_create_event): Likewise.
9819 (thread_db_load_search): Likewise.
9820 (try_thread_db_load_1): Likewise.
9821 * tracepoint.c (get_jump_space_head): Replace fatal with
9823 (claim_trampoline_space): Likewise.
9824 (have_fast_tracepoint_trampoline_buffer): Likewise.
9825 (cmd_qtstart): Likewise.
9826 (stop_tracing): Likewise.
9827 (fast_tracepoint_collecting): Likewise.
9828 (target_malloc): Likewise.
9829 (download_tracepoint): Likewise.
9830 (download_trace_state_variables): Replace check with gdb_assert.
9831 (upload_fast_traceframes): Replace fatal with internal_error.
9833 2014-08-19 Tom Tromey <tromey@redhat.com>
9834 Gary Benson <gbenson@redhat.com>
9836 * Makefile.in (SFILES): Add common/common-debug.c.
9837 (OBS): Add common-debug.o.
9838 (common-debug.o): New rule.
9839 * debug.h (debug_printf): Don't declare.
9840 * debug.c (debug_printf): Renamed and rewritten as...
9841 (debug_vprintf): New function.
9843 2014-08-19 Gary Benson <gbenson@redhat.com>
9845 * utils.h: Do not include print-utils.h.
9847 2014-08-19 Tom Tromey <tromey@redhat.com>
9848 Gary Benson <gbenson@redhat.com>
9850 * server.h: Add static assertion.
9851 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
9853 2014-08-19 Tom Tromey <tromey@redhat.com>
9854 Gary Benson <gbenson@redhat.com>
9856 * Makefile.in (SFILES): Add common/errors.c.
9857 (OBS): Add errors.o.
9858 (IPA_OBS): Add errors-ipa.o.
9859 (errors.o): New rule.
9860 (errors-ipa.o): Likewise.
9861 * utils.h (perror_with_name, error, warning): Don't declare.
9862 * utils.c (warning): Renamed and rewritten as...
9863 (vwarning): New function.
9864 (error): Renamed and rewritten as...
9865 (verror): New function.
9866 (internal_error): Renamed and rewritten as...
9867 (internal_verror): New function.
9869 2014-08-07 Gary Benson <gbenson@redhat.com>
9871 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
9872 * configure: Regenerate.
9873 * config.in: Likewise.
9874 * server.h: Do not include errno.h.
9875 * event-loop.c: Likewise.
9876 * hostio-errno.c: Likewise.
9877 * linux-low.c: Likewise.
9878 * remote-utils.c: Likewise.
9879 * spu-low.c: Likewise.
9880 * utils.c: Likewise.
9881 * gdbreplay.c: Unconditionally include errno.h.
9883 2014-08-07 Gary Benson <gbenson@redhat.com>
9885 * server.h: Do not include string.h.
9886 * event-loop.c: Likewise.
9887 * linux-low.c: Likewise.
9888 * regcache.c: Likewise.
9889 * remote-utils.c: Likewise.
9890 * spu-low.c: Likewise.
9891 * utils.c: Likewise.
9893 2014-08-07 Gary Benson <gbenson@redhat.com>
9895 * server.h: Do not include gdb_assert.h.
9897 2014-08-07 Gary Benson <gbenson@redhat.com>
9899 * server.h: Do not include common-utils.h.
9901 2014-08-07 Gary Benson <gbenson@redhat.com>
9903 * server.h: Do not include ptid.h.
9904 * notif.h: Likewise.
9906 2014-08-07 Gary Benson <gbenson@redhat.com>
9908 * server.h: Do not include gdb_locale.h.
9910 2014-08-07 Gary Benson <gbenson@redhat.com>
9912 * server.h: Do not include gdb/signals.h.
9913 * win32-low.c: Likewise.
9915 2014-08-07 Gary Benson <gbenson@redhat.com>
9917 * server.h: Do not include pathmax.h.
9919 2014-08-07 Gary Benson <gbenson@redhat.com>
9921 * server.h: Do not include libiberty.h.
9922 * linux-bfin-low.c: Likewise.
9924 2014-08-07 Gary Benson <gbenson@redhat.com>
9926 * server.h: Do not include ansidecl.h.
9928 2014-08-07 Gary Benson <gbenson@redhat.com>
9930 * linux-x86-low.c: Do not include stddef.h.
9931 * lynx-ppc-low.c: Likewise.
9932 * tracepoint.c: Likewise.
9934 2014-08-07 Gary Benson <gbenson@redhat.com>
9936 * server.h: Do not include stdarg.h.
9937 * nto-low.c: Likewise.
9939 2014-08-07 Gary Benson <gbenson@redhat.com>
9941 * server.h: Do not include stdlib.h.
9942 * inferiors.c: Likewise.
9943 * linux-low.c: Likewise.
9944 * regcache.c: Likewise.
9945 * spu-low.c: Likewise.
9946 * tracepoint.c: Likewise.
9947 * utils.c: Likewise.
9949 2014-08-07 Gary Benson <gbenson@redhat.com>
9951 * server.h: Do not include stdio.h.
9952 * linux-low.c: Likewise.
9953 * remote-utils.c: Likewise.
9954 * spu-low.c: Likewise.
9955 * utils.c: Likewise.
9956 * wincecompat.c: Likewise.
9958 2014-08-06 Gary Benson <gbenson@redhat.com>
9960 * regcache.c (init_register_cache): Move conditionals inside if.
9962 2014-08-06 Gary Benson <gbenson@redhat.com>
9964 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
9966 2014-07-31 Gary Benson <gbenson@redhat.com>
9968 * ax.h: Do not include server.h.
9969 * gdbthread.h: Likewise.
9970 * lynx-low.h: Likewise.
9971 * notif.h: Likewise.
9973 2014-07-30 Gary Benson <gbenson@redhat.com>
9975 * server.h: Include common-defs.h.
9976 Do not include config.h or build-gnulib-gdbserver/config.h.
9978 2014-07-30 Gary Benson <gbenson@redhat.com>
9980 * hostio-errno.c: Move server.h to top of includes list.
9981 * inferiors.c: Likewise.
9982 * linux-x86-low.c: Likewise.
9983 * notif.c: Include server.h.
9985 2014-07-24 Tom Tromey <tromey@redhat.com>
9986 Gary Benson <gbenson@redhat.com>
9988 * server.h (CORE_ADDR): Now unsigned.
9990 2014-07-16 Pedro Alves <palves@redhat.com>
9992 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
9994 2014-07-15 Pedro Alves <palves@redhat.com>
9996 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
9999 2014-07-11 Pedro Alves <palves@redhat.com>
10001 * linux-low.c (kill_wait_lwp): New function, based on
10002 kill_one_lwp_callback, but use my_waitpid directly.
10003 (kill_one_lwp_callback, linux_kill): Use it.
10005 2014-06-23 Pedro Alves <palves@redhat.com>
10007 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
10008 before setting DR0..DR3.
10010 2014-06-20 Gary Benson <gbenson@redhat.com>
10012 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
10013 * configure: Regenerated.
10014 * config.in: Likewise.
10016 2014-06-20 Gary Benson <gbenson@redhat.com>
10018 * Makefile.in (SFILES): Update locations for files moved
10019 from common to nat.
10020 (object file files): Reordered.
10022 2014-06-20 Gary Benson <gbenson@redhat.com>
10024 * i386-low.h (i386_dr_low_can_set_addr): Removed.
10025 (i386_dr_low_set_addr): Likewise.
10026 (i386_dr_low_get_addr): Likewise.
10027 (i386_dr_low_can_set_control): Likewise.
10028 (i386_dr_low_set_control): Likewise.
10029 (i386_dr_low_get_control): Likewise.
10030 (i386_dr_low_get_status): Likewise.
10031 (i386_get_debug_register_length): Likewise.
10032 * linux-x86-low.c (i386_dr_low_set_addr):
10033 Changed signature. Made static.
10034 (i386_dr_low_get_addr): Likewise.
10035 (i386_dr_low_set_control): Likewise.
10036 (i386_dr_low_get_control): Likewise.
10037 (i386_dr_low_get_status): Likewise.
10038 (i386_dr_low): New global variable.
10039 * win32-i386-low.c (i386_dr_low_set_addr):
10040 Changed signature. Made static.
10041 (i386_dr_low_get_addr): Likewise.
10042 (i386_dr_low_set_control): Likewise.
10043 (i386_dr_low_get_control): Likewise.
10044 (i386_dr_low_get_status): Likewise.
10045 (i386_dr_low): New global variable.
10047 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
10049 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
10050 * Makefile.in (AR, AR_FLAGS): Define.
10051 * configure: Regenerate.
10053 2014-06-19 Gary Benson <gbenson@redhat.com>
10055 * Makefile.in (i386-dregs.o): New rule.
10056 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
10057 * i386-low.c (target.h): Remove include.
10058 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
10059 (DR_CONTROL_SHIFT): Likewise.
10060 (DR_CONTROL_SIZE): Likewise.
10061 (DR_RW_EXECUTE): Likewise.
10062 (DR_RW_WRITE): Likewise.
10063 (DR_RW_READ): Likewise.
10064 (DR_RW_IORW): Likewise.
10065 (DR_LEN_1): Likewise.
10066 (DR_LEN_2): Likewise.
10067 (DR_LEN_4): Likewise.
10068 (DR_LEN_8): Likewise.
10069 (DR_LOCAL_ENABLE_SHIFT): Likewise.
10070 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
10071 (DR_ENABLE_SIZE): Likewise.
10072 (DR_LOCAL_SLOWDOWN): Likewise.
10073 (DR_GLOBAL_SLOWDOWN): Likewise.
10074 (DR_CONTROL_RESERVED): Likewise.
10075 (I386_DR_CONTROL_MASK): Likewise.
10076 (I386_DR_VACANT): Likewise.
10077 (I386_DR_LOCAL_ENABLE): Likewise.
10078 (I386_DR_GLOBAL_ENABLE): Likewise.
10079 (I386_DR_DISABLE): Likewise.
10080 (I386_DR_SET_RW_LEN): Likewise.
10081 (I386_DR_GET_RW_LEN): Likewise.
10082 (I386_DR_WATCH_HIT): Likewise.
10083 (i386_wp_op_t): Likewise.
10084 (i386_show_dr): Likewise.
10085 (i386_length_and_rw_bits): Likewise.
10086 (i386_insert_aligned_watchpoint): Likewise.
10087 (i386_remove_aligned_watchpoint): Likewise.
10088 (i386_handle_nonaligned_watchpoint): Likewise.
10089 i386_update_inferior_debug_regs(): Likewise.
10090 (i386_dr_insert_watchpoint): Likewise.
10091 (i386_dr_remove_watchpoint): Likewise.
10092 (i386_dr_region_ok_for_watchpoint): Likewise.
10093 (i386_dr_stopped_data_address): Likewise.
10094 (i386_dr_stopped_by_watchpoint): Likewise.
10096 2014-06-19 Gary Benson <gbenson@redhat.com>
10098 * i386-low.c (i386_dr_show): Renamed to
10099 i386_show_dr and made static. All uses updated.
10100 (i386_dr_length_and_rw_bits): Renamed to
10101 i386_length_and_rw_bits and made static.
10103 (i386_dr_insert_aligned_watchpoint): Renamed to
10104 i386_insert_aligned_watchpoint and made static.
10106 (i386_dr_remove_aligned_watchpoint): Renamed to
10107 i386_remove_aligned_watchpoint and made static.
10109 (i386_dr_update_inferior_debug_regs): Renamed to
10110 i386_update_inferior_debug_regs and made static.
10113 2014-06-18 Gary Benson <gbenson@redhat.com>
10115 * i386-low.h (i386_dr_low_can_set_addr): New macro.
10116 (i386_dr_low_can_set_control): Likewise.
10117 (i386_get_debug_register_length): Likewise.
10118 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
10119 (i386_dr_low_can_set_control): Likewise.
10120 (i386_get_debug_register_length): Likewise.
10122 2014-06-17 Gary Benson <gbenson@redhat.com>
10124 * i386-low.h (i386-dregs.h): New include.
10125 (DR_FIRSTADDR): Now in i386-dregs.h.
10126 (DR_LASTADDR): Likewise.
10127 (DR_NADDR): Likewise.
10128 (DR_STATUS): Likewise.
10129 (DR_CONTROL): Likewise.
10130 (i386_debug_reg_state): Likewise.
10131 (i386_dr_insert_watchpoint): Likewise.
10132 (i386_dr_remove_watchpoint): Likewise.
10133 (i386_dr_region_ok_for_watchpoint): Likewise.
10134 (i386_dr_stopped_data_address): Likewise.
10135 (i386_dr_stopped_by_watchpoint): Likewise.
10136 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
10138 2014-06-18 Gary Benson <gbenson@redhat.com>
10140 * i386-low.h (i386_low_insert_watchpoint): Renamed to
10141 i386_dr_insert_watchpoint.
10142 (i386_low_remove_watchpoint): Renamed to
10143 i386_dr_remove_watchpoint.
10144 (i386_low_region_ok_for_watchpoint): Renamed to
10145 i386_dr_region_ok_for_watchpoint.
10146 (i386_low_stopped_data_address): Renamed to
10147 i386_dr_stopped_data_address.
10148 (i386_low_stopped_by_watchpoint): Renamed to
10149 i386_dr_stopped_by_watchpoint.
10150 * i386-low.c (i386_show_dr): Renamed to
10151 i386_dr_show and made nonstatic. All uses updated.
10152 (i386_length_and_rw_bits): Renamed to
10153 i386_dr_length_and_rw_bits and made nonstatic.
10155 (i386_insert_aligned_watchpoint): Renamed to
10156 i386_dr_insert_aligned_watchpoint and made nonstatic.
10158 (i386_remove_aligned_watchpoint): Renamed to
10159 i386_dr_remove_aligned_watchpoint and made nonstatic.
10161 (i386_update_inferior_debug_regs): Renamed to
10162 i386_dr_update_inferior_debug_regs and made nonstatic.
10164 (i386_low_insert_watchpoint): Renamed to
10165 i386_dr_insert_watchpoint. All uses updated.
10166 (i386_low_remove_watchpoint): Renamed to
10167 i386_dr_remove_watchpoint. All uses updated.
10168 (i386_low_region_ok_for_watchpoint): Renamed to
10169 i386_dr_region_ok_for_watchpoint. All uses updated.
10170 (i386_low_stopped_data_address): Renamed to
10171 i386_dr_stopped_data_address. All uses updated.
10172 (i386_low_stopped_by_watchpoint): Renamed to
10173 i386_dr_stopped_by_watchpoint. All uses updated.
10175 2014-06-18 Gary Benson <gbenson@redhat.com>
10177 * i386-low.c (i386_dr_low_can_set_addr): New macro.
10178 (i386_dr_low_can_set_control): Likewise.
10179 (i386_insert_aligned_watchpoint): New check.
10181 2014-06-18 Gary Benson <gbenson@redhat.com>
10183 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
10186 2014-06-18 Gary Benson <gbenson@redhat.com>
10188 * i386-low.c (i386_length_and_rw_bits): Use internal_error
10189 instead of fatal and error.
10190 (i386_handle_nonaligned_watchpoint): Likewise.
10192 2014-06-18 Gary Benson <gbenson@redhat.com>
10194 * i386-low.c (i386_get_debug_register_length): New macro.
10195 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
10196 (i386_show_dr): Use debug_printf instead of fprintf. Use
10197 phex to format values.
10199 2014-06-18 Gary Benson <gbenson@redhat.com>
10201 * i386-low.h: Comment changes.
10202 * i386-low.c: Likewise.
10204 2014-06-18 Gary Benson <gbenson@redhat.com>
10206 * i386-low.c: Whitespace changes.
10208 2014-06-12 Tom Tromey <tromey@redhat.com>
10210 * utils.c (freeargv): Remove.
10212 2014-06-12 Tom Tromey <tromey@redhat.com>
10214 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
10215 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
10216 (parse_debug_format_options): Likewise.
10217 (gdbserver_usage): Likewise.
10218 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
10219 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
10220 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
10222 ($(LIBGNU)): Depend on libiberty.
10223 (all-lib): Recurse into all subdirs.
10224 (install-only): Invoke "install" target in subdirs.
10225 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
10227 * configure: Rebuild.
10228 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
10229 for vasprintf, vsnprintf, or gettimeofday.
10230 * configure.srv: Don't add safe-ctype.o or lbasename.o to
10233 2014-06-05 Joel Brobecker <brobecker@adacore.com>
10235 * development.sh: Delete.
10236 * Makefile.in (config.status): Adjust dependency on development.sh.
10237 * configure.ac: Adjust development.sh source call.
10238 * configure: Regenerate.
10240 2014-06-02 Pedro Alves <palves@redhat.com>
10242 * ax.c (gdb_free_agent_expr): New function.
10243 * ax.h (gdb_free_agent_expr): New declaration.
10244 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
10246 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
10248 (clear_breakpoint_conditions_and_commands): New function.
10249 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
10250 (clear_breakpoint_conditions_and_commands): New declaration.
10252 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10254 * linux-aarch64-low.c (asm/ptrace.h): Include.
10256 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10258 Fix TLS access for -static -pthread.
10259 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
10260 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
10261 (thread_db_load_search, try_thread_db_load_1): Initialize it.
10263 2014-05-20 Pedro Alves <palves@redhat.com>
10265 * linux-aarch64-low.c (aarch64_insert_point)
10266 (aarch64_remove_point): No longer check whether the type is
10267 supported here. Adjust to new interface.
10268 (the_low_target): Install aarch64_supports_z_point_type as
10269 supports_z_point_type method.
10270 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
10271 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
10272 instead of a Z packet char. Adjust.
10273 (arm_supports_z_point_type): New function.
10274 (arm_insert_point, arm_remove_point): Adjust to new interface.
10275 (the_low_target): Install arm_supports_z_point_type.
10276 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
10277 (cris_insert_point, cris_remove_point): Adjust to new interface.
10278 Don't check whether the type is supported here.
10279 (the_low_target): Install cris_supports_z_point_type.
10280 * linux-low.c (linux_supports_z_point_type): New function.
10281 (linux_insert_point, linux_remove_point): Adjust to new interface.
10282 * linux-low.h (struct linux_target_ops) <insert_point,
10283 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
10284 raw_breakpoint pointer parameter.
10285 <supports_z_point_type>: New method.
10286 * linux-mips-low.c (mips_supports_z_point_type): New function.
10287 (mips_insert_point, mips_remove_point): Adjust to new interface.
10288 Use mips_supports_z_point_type.
10289 (the_low_target): Install mips_supports_z_point_type.
10290 * linux-ppc-low.c (the_low_target): Install NULL as
10291 supports_z_point_type method.
10292 * linux-s390-low.c (the_low_target): Install NULL as
10293 supports_z_point_type method.
10294 * linux-sparc-low.c (the_low_target): Install NULL as
10295 supports_z_point_type method.
10296 * linux-x86-low.c (x86_supports_z_point_type): New function.
10297 (x86_insert_point): Adjust to new insert_point interface. Use
10298 insert_memory_breakpoint. Adjust to new
10299 i386_low_insert_watchpoint interface.
10300 (x86_remove_point): Adjust to remove_point interface. Use
10301 remove_memory_breakpoint. Adjust to new
10302 i386_low_remove_watchpoint interface.
10303 (the_low_target): Install x86_supports_z_point_type.
10304 * lynx-low.c (lynx_target_ops): Install NULL as
10305 supports_z_point_type callback.
10306 * nto-low.c (nto_supports_z_point_type): New.
10307 (nto_insert_point, nto_remove_point): Adjust to new interface.
10308 (nto_target_ops): Install nto_supports_z_point_type.
10309 * mem-break.c: Adjust intro comment.
10310 (struct raw_breakpoint) <raw_type, size>: New fields.
10311 <inserted>: Update comment.
10312 <shlib_disabled>: Delete field.
10313 (enum bkpt_type) <gdb_breakpoint>: Delete value.
10314 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
10315 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
10316 (raw_bkpt_type_to_target_hw_bp_type): New function.
10317 (find_enabled_raw_code_breakpoint_at): New function.
10318 (find_raw_breakpoint_at): New type and size parameters. Use them.
10319 (insert_memory_breakpoint): New function, based off
10320 set_raw_breakpoint_at.
10321 (remove_memory_breakpoint): New function.
10322 (set_raw_breakpoint_at): Reimplement.
10323 (set_breakpoint): New, based on set_breakpoint_at.
10324 (set_breakpoint_at): Reimplement.
10325 (delete_raw_breakpoint): Go through the_target->remove_point
10326 instead of assuming memory breakpoints.
10327 (find_gdb_breakpoint_at): Delete.
10328 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
10329 (find_gdb_breakpoint): New function.
10330 (set_gdb_breakpoint_at): Delete.
10331 (z_type_supported): New function.
10332 (set_gdb_breakpoint_1): New function, loosely based off
10333 set_gdb_breakpoint_at.
10334 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
10335 (delete_gdb_breakpoint_at): Delete.
10336 (delete_gdb_breakpoint_1): New function, loosely based off
10337 delete_gdb_breakpoint_at.
10338 (delete_gdb_breakpoint): New function.
10339 (clear_gdb_breakpoint_conditions): Rename to ...
10340 (clear_breakpoint_conditions): ... this. Don't handle a NULL
10342 (add_condition_to_breakpoint): Make static.
10343 (add_breakpoint_condition): Take a struct breakpoint pointer
10344 instead of an address. Adjust.
10345 (gdb_condition_true_at_breakpoint): Rename to ...
10346 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
10348 (gdb_condition_true_at_breakpoint): Reimplement.
10349 (add_breakpoint_commands): Take a struct breakpoint pointer
10350 instead of an address. Adjust.
10351 (gdb_no_commands_at_breakpoint): Rename to ...
10352 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
10353 parameter. Return true if no breakpoint was found. Change debug
10355 (gdb_no_commands_at_breakpoint): Reimplement.
10356 (run_breakpoint_commands): Rename to ...
10357 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
10358 and change return type to boolean.
10359 (run_breakpoint_commands): New function.
10360 (gdb_breakpoint_here): Also check for Z1 breakpoints.
10361 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
10362 breakpoint. Go through the_target->remove_point instead of
10363 assuming memory breakpoint.
10364 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
10365 software and hardware breakpoints.
10366 (reinsert_raw_breakpoint): Go through the_target->insert_point
10367 instead of assuming memory breakpoint.
10368 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
10369 software and hardware breakpoints.
10370 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
10371 Check both software and hardware breakpoints.
10372 (validate_inserted_breakpoint): Assert the breakpoint is a
10373 software breakpoint. Set the inserted flag to -1 instead of
10374 setting shlib_disabled.
10375 (delete_disabled_breakpoints): Adjust.
10376 (validate_breakpoints): Only validate software breakpoints.
10377 Adjust to inserted flag change.
10378 (check_mem_read, check_mem_write): Skip breakpoint types other
10379 than software breakpoints. Adjust to inserted flag change.
10380 * mem-break.h (enum raw_bkpt_type): New enum.
10381 (raw_breakpoint, struct process_info): Forward declare.
10382 (Z_packet_to_target_hw_bp_type): Delete declaration.
10383 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
10384 (set_gdb_breakpoint, delete_gdb_breakpoint)
10385 (clear_breakpoint_conditions): New declarations.
10386 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
10387 (breakpoint_inserted_here): Update comment.
10388 (add_breakpoint_condition, add_breakpoint_commands): Replace
10389 address parameter with a breakpoint pointer parameter.
10390 (gdb_breakpoint_here): Update comment.
10391 (delete_gdb_breakpoint_at): Delete.
10392 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
10393 * server.c (process_point_options): Take a struct breakpoint
10394 pointer instead of an address. Adjust.
10395 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
10396 delete_gdb_breakpoint.
10397 * spu-low.c (spu_target_ops): Install NULL as
10398 supports_z_point_type method.
10399 * target.h: Include mem-break.h.
10400 (struct target_ops) <prepare_to_access_memory>: Update comment.
10401 <supports_z_point_type>: New field.
10402 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
10403 instead of a char. Also take a raw breakpoint pointer.
10404 * win32-arm-low.c (the_low_target): Install NULL as
10405 supports_z_point_type.
10406 * win32-i386-low.c (i386_supports_z_point_type): New function.
10407 (i386_insert_point, i386_remove_point): Adjust to new interface.
10408 (the_low_target): Install i386_supports_z_point_type.
10409 * win32-low.c (win32_supports_z_point_type): New function.
10410 (win32_insert_point, win32_remove_point): Adjust to new interface.
10411 (win32_target_ops): Install win32_supports_z_point_type.
10412 * win32-low.h (struct win32_target_ops):
10413 <supports_z_point_type>: New method.
10414 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
10415 instead of a char. Also take a raw breakpoint pointer.
10417 2014-05-20 Pedro Alves <palves@redhat.com>
10419 * mem-break.h: Include break-common.h.
10420 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
10421 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
10422 (Z_packet_to_target_hw_bp_type): New declaration.
10423 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
10424 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
10425 (Z_PACKET_ACCESS_WP): Delete macros.
10426 (Z_packet_to_hw_type): Delete function.
10427 * i386-low.h: Don't include break-common.h here.
10428 (Z_packet_to_hw_type): Delete declaration.
10429 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
10430 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
10431 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
10432 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
10433 * linux-aarch64-low.c: Don't include break-common.h here.
10434 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
10435 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
10436 (Z_packet_to_target_hw_bp_type): Delete function.
10437 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
10439 (mips_insert_point, mips_remove_point): Use
10440 Z_packet_to_target_hw_bp_type.
10442 2014-05-20 Pedro Alves <palves@redhat.com>
10444 * linux-aarch64-low.c: Include break-common.h.
10445 (enum target_point_type): Delete.
10446 (Z_packet_to_point_type): Rename to ...
10447 (Z_packet_to_target_hw_bp_type): ... this, and return a
10448 target_hw_bp_type instead.
10449 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
10450 instead of an enum target_point_type.
10451 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
10453 (aarch64_dr_state_insert_one_point)
10454 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
10455 (aarch64_handle_aligned_watchpoint)
10456 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
10457 Take an enum target_hw_bp_type instead of an enum
10459 (aarch64_supports_z_point_type): New function.
10460 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
10461 use Z_packet_to_target_hw_bp_type.
10463 2014-05-20 Joel Brobecker <brobecker@adacore.com>
10465 * configure.ac: Only use -Werror by default when DEVELOPMENT
10467 * configure: Regenerate.
10469 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10471 Fix gdbserver qGetTLSAddr for x86_64 -m32.
10472 * linux-x86-low.c (X86_64_USER_REGS): New.
10473 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
10475 2014-04-28 Yao Qi <yao@codesourcery.com>
10477 * Makefile.in (i386-avx512.c): Fix the typo of generated file
10480 2014-04-25 Pedro Alves <palves@redhat.com>
10483 * linux-low.c (linux_attach_fail_reason_string): New function.
10484 (linux_attach_lwp): Delete.
10485 (linux_attach_lwp_1): Rename to ...
10486 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
10487 argument. Remove "initial" parameter. Return int instead of
10488 void. Don't error or warn here.
10489 (linux_attach): Adjust to call linux_attach_lwp. Call error on
10490 failure to attach to the tgid. Call warning when failing to
10492 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
10493 argument. Remove "initial" parameter. Return int instead of
10494 void. Don't error or warn here.
10495 (linux_attach_fail_reason_string): New declaration.
10496 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
10497 interface change. Use linux_attach_fail_reason_string.
10499 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
10500 Walfred Tedeschi <walfred.tedeschi@intel.com>
10502 * Makefile.in: Added rules to handle new files
10503 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
10504 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
10505 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
10506 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
10507 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
10508 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
10509 x32-avx512-linux.o.
10510 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
10511 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
10512 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
10513 i386/x32-avx512.xml.
10514 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
10515 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
10516 i386/x32-avx512-linux.xml.
10517 * i387-fp.c (num_avx512_k_registers): New constant for number
10519 (num_avx512_zmmh_low_registers): New constant for number of
10520 lower ZMM registers (0-15).
10521 (num_avx512_zmmh_high_registers): New constant for number of
10522 higher ZMM registers (16-31).
10523 (num_avx512_ymmh_registers): New contant for number of higher
10524 YMM registers (ymm16-31 added by avx521 on x86_64).
10525 (num_avx512_xmm_registers): New constant for number of higher
10526 XMM registers (xmm16-31 added by AVX512 on x86_64).
10527 (struct i387_xsave): Add space for AVX512 registers.
10528 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
10529 Add code to handle AVX512 registers.
10530 (i387_xsave_to_cache): Add code to handle AVX512 registers.
10531 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
10532 prototypei from generated file.
10533 (tdesc_amd64_avx512_linux): Likewise.
10534 (init_registers_x32_avx512_linux): Likewise.
10535 (tdesc_x32_avx512_linux): Likewise.
10536 (init_registers_i386_avx512_linux): Likewise.
10537 (tdesc_i386_avx512_linux): Likewise.
10538 (x86_64_regmap): Add AVX512 registers.
10539 (x86_linux_read_description): Add code to handle AVX512 XSTATE
10541 (initialize_low_arch): Add code to initialize AVX512 registers.
10543 2014-04-23 Pedro Alves <palves@redhat.com>
10545 * mem-break.c (find_gdb_breakpoint_at): Make static.
10546 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
10548 2014-04-23 Pedro Alves <palves@redhat.com>
10550 * i386-low.c: Don't include break-common.h here.
10551 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
10552 prototype to take target_hw_bp_type as argument instead of a Z
10554 * i386-low.h: Include break-common.h here.
10555 (Z_packet_to_hw_type): Declare.
10556 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
10558 * linux-x86-low.c (x86_insert_point): Convert the packet number to
10559 a target_hw_bp_type before calling i386_low_insert_watchpoint.
10560 (x86_remove_point): Convert the packet number to a
10561 target_hw_bp_type before calling i386_low_remove_watchpoint.
10562 * win32-i386-low.c (i386_insert_point): Convert the packet number
10563 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
10564 (i386_remove_point): Convert the packet number to a
10565 target_hw_bp_type before calling i386_low_remove_watchpoint.
10567 2014-04-23 Pedro Alves <palves@redhat.com>
10569 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
10571 2014-04-10 Pedro Alves <palves@redhat.com>
10573 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
10574 Check if the condition or command is NULL before checking if the
10575 breakpoint is known. On success, return true.
10576 * mem-break.h (add_breakpoint_condition): Document return.
10577 (add_breakpoint_commands): Add describing comment.
10578 * server.c (skip_to_semicolon): New function.
10579 (process_point_options): Use it.
10581 2014-04-09 Pedro Alves <palves@redhat.com>
10583 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
10586 2014-02-27 Pedro Alves <palves@redhat.com>
10589 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
10591 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
10593 (last_thread_of_process_p): Take a PID argument instead of a
10595 (linux_wait_for_lwp): Delete.
10596 (num_lwps, check_zombie_leaders, not_stopped_callback): New
10598 (linux_low_filter_event): New function, party factored out from
10599 linux_wait_for_event.
10600 (linux_wait_for_event): Rename to ...
10601 (linux_wait_for_event_filtered): ... this. Add new filter ptid
10602 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
10603 sigsuspend. Check for zombie leaders.
10604 (linux_wait_for_event): Reimplement as wrapper around
10605 linux_wait_for_event_filtered.
10606 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
10607 a normal or signal exit is seen, it's the whole process exiting.
10608 (wait_for_sigstop): No longer a for_each_inferior callback.
10609 Rewrite on top of linux_wait_for_event_filtered.
10610 (stop_all_lwps): Call wait_for_sigstop directly.
10611 * server.c (resume, handle_target_event): Handle
10612 TARGET_WAITKIND_NO_RESUMED.
10614 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10616 * win32-low.c (psapi_get_dll_name,
10617 * win32_CreateToolhelp32Snapshot): Delete.
10618 (win32_CreateToolhelp32Snapshot, win32_Module32First)
10619 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
10621 (handle_load_dll): Add function description.
10622 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
10624 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10626 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
10628 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
10629 base address when calling win32_add_one_solib.
10630 (handle_load_dll): Delete local variable load_addr.
10631 Remove 0x1000 offset applied to DLL base address when calling
10632 win32_add_one_solib.
10633 (handle_unload_dll): Add comment.
10635 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10637 * win32-low.c (win32_add_all_dlls): Renames
10638 win32_ensure_ntdll_loaded. Rewrite function documentation.
10639 Adjust implementation to always load all DLLs.
10640 Add 0x1000 offset to DLL base address when calling
10641 win32_add_one_solib.
10642 (child_initialization_done): New static global.
10643 (do_initial_child_stuff): Set child_initialization_done to
10644 zero during child initialization, and 1 after. Replace call
10645 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
10647 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
10648 (handle_unload_dll): Add function documentation.
10649 (get_child_debug_event): Ignore load and unload DLL events
10650 during child initialization.
10652 2014-02-20 Doug Evans <dje@google.com>
10654 Remove global all_lwps.
10655 * inferiors.h (ptid_of): Move here from linux-low.h.
10656 (pid_of, lwpid_of): Ditto.
10657 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
10658 parameter is a struct thread_info * now.
10659 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
10660 directly. Pass &all_threads to find_inferior instead of &all_lwps.
10661 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
10663 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
10664 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
10665 * linux-arm-low.c (update_registers_callback): Update, "entry"
10666 parameter is a struct thread_info * now.
10667 Fetch lwpid from current_inferior directly.
10668 (arm_insert_point): Pass &all_threads to find_inferior instead of
10670 (arm_remove_point): Ditto.
10671 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
10672 (arm_prepare_to_resume): Fetch pid from thread.
10673 (arm_read_description): Fetch lwpid from current_inferior directly.
10674 * linux-low.c (all_lwps): Delete.
10675 (delete_lwp): Delete call to remove_inferior.
10676 (handle_extended_wait): Fetch lwpid from thread.
10677 (add_lwp): Don't set lwp->entry.id. Remove call to
10678 add_inferior_to_list.
10679 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
10680 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
10681 (kill_one_lwp_callback): Ditto.
10682 (linux_kill): Don't dereference NULL pointer.
10683 Fetch ptid,lwpid from thread.
10684 (get_detach_signal): Fetch ptid from thread.
10685 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
10686 Simplify call to regcache_invalidate_thread.
10687 (delete_lwp_callback): Update, "entry" parameter is a
10688 struct thread_info * now. Fetch pid from thread.
10689 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
10690 (status_pending_p_callback): Update, "entry" parameter is a
10691 struct thread_info * now. Fetch ptid from thread.
10692 (find_lwp_pid): Update, "entry" parameter is a
10693 struct thread_info * now.
10694 (linux_wait_for_lwp): Fetch pid from thread.
10695 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
10696 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
10697 (enqueue_one_deferred_signal): Fetch lwpid from thread.
10698 (dequeue_one_deferred_signal): Ditto.
10699 (cancel_breakpoint): Fetch ptid from current_inferior.
10700 (linux_wait_for_event): Pass &all_threads to find_inferior,
10701 not &all_lwps. Fetch ptid, lwpid from thread.
10702 (count_events_callback): Update, "entry" parameter is a
10703 struct thread_info * now.
10704 (select_singlestep_lwp_callback): Ditto.
10705 (select_event_lwp_callback): Ditto.
10706 (cancel_breakpoints_callback): Ditto.
10707 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
10709 (select_event_lwp): Ditto. Fetch ptid from event_thread.
10710 (unsuspend_one_lwp): Update, "entry" parameter is a
10711 struct thread_info * now.
10712 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
10714 (linux_stabilize_threads): Ditto. And for for_each_inferior.
10715 Fetch lwpid from thread, not lwp.
10716 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
10717 Pass &all_threads to find_inferior, not &all_lwps.
10718 (send_sigstop): Fetch lwpid from thread, not lwp.
10719 (send_sigstop_callback): Update, "entry" parameter is a
10720 struct thread_info * now.
10721 (suspend_and_send_sigstop_callback): Ditto.
10722 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
10723 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
10724 struct thread_info * now.
10725 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
10727 (lwp_running): Update, "entry" parameter is a
10728 struct thread_info * now.
10729 (stop_all_lwps): Fetch ptid from thread.
10730 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
10731 (linux_resume_one_lwp): Fetch lwpid from thread.
10732 (linux_set_resume_request): Update, "entry" parameter is a
10733 struct thread_info * now. Fetch pid, lwpid from thread.
10734 (resume_status_pending_p): Update, "entry" parameter is a
10735 struct thread_info * now.
10736 (need_step_over_p): Ditto. Fetch lwpid from thread.
10737 (start_step_over): Fetch lwpid from thread.
10738 (linux_resume_one_thread): Update, "entry" parameter is a
10739 struct thread_info * now. Fetch lwpid from thread.
10740 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
10741 (proceed_one_lwp): Update, "entry" parameter is a
10742 struct thread_info * now. Fetch lwpid from thread.
10743 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
10744 struct thread_info * now.
10745 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
10746 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
10747 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
10749 (regsets_store_inferior_registers): Ditto.
10750 (fetch_register, store_register): Ditto.
10751 (linux_read_memory, linux_write_memory): Ditto.
10752 (linux_request_interrupt): Ditto.
10753 (linux_read_auxv): Ditto.
10754 (linux_xfer_siginfo): Ditto.
10755 (linux_qxfer_spu): Ditto.
10756 (linux_qxfer_libraries_svr4): Ditto.
10757 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
10758 moved to inferiors.h.
10760 (get_thread_lwp): Update.
10761 (struct lwp_info): Delete member "entry". Simplify comment for
10763 (all_lwps): Delete.
10764 * linux-mips-low.c (mips_read_description): Fetch lwpid from
10765 current_inferior directly.
10766 (update_watch_registers_callback): Update, "entry" parameter is a
10767 struct thread_info * now. Fetch pid from thread.
10768 (mips_linux_prepare_to_resume): Fetch ptid from thread.
10769 (mips_insert_point): Fetch lwpid from current_inferior.
10770 Pass &all_threads to find_inferior, not &all_lwps.
10771 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
10772 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
10774 (mips_stopped_data_address): Ditto.
10775 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
10777 * linux-tile-low.c (tile_arch_setup): Ditto.
10778 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
10779 (update_debug_registers_callback): Update, "entry" parameter is a
10780 struct thread_info * now. Fetch pid from thread.
10781 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
10782 Pass &all_threads to find_inferior, not &all_lwps.
10783 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
10784 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
10785 Pass &all_threads to find_inferior, not &all_lwps.
10786 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
10787 (i386_dr_low_get_status): Ditto.
10788 (x86_linux_prepare_to_resume): Fetch ptid from thread.
10789 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
10790 (x86_linux_read_description): Ditto.
10791 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
10793 2014-02-20 Doug Evans <dje@google.com>
10795 * inferiors.c (get_first_inferior): Fix buglet.
10797 2014-02-19 Doug Evans <dje@google.com>
10799 * gdbthread.h (add_thread): Change result type to struct thread_info *.
10800 * inferiors.c (add_thread): Change result type to struct thread_info *.
10801 All callers updated.
10802 (add_lwp): Call add_thread here instead of in callers.
10803 All callers updated.
10804 * linux-low.h (get_lwp_thread): Rewrite.
10805 (struct lwp_info): New member "thread".
10807 2014-02-19 Doug Evans <dje@google.com>
10809 * linux-low.c (add_lwp): Change result to struct lwp_info *.
10810 All callers updated.
10812 2014-02-19 Doug Evans <dje@google.com>
10814 * inferiors.c (add_thread): Fix whitespace.
10816 2014-02-19 Doug Evans <dje@google.com>
10818 * dll.c (clear_dlls): Replace accessing list implemention details
10820 * gdbthread.h (get_first_thread): Declare.
10821 * inferiors.c (for_each_inferior_with_data): New function.
10822 (get_first_thread): New function.
10823 (find_thread_ptid): Simplify.
10824 (get_first_inferior): New function.
10825 (clear_list): Delete.
10826 (one_inferior_p): New function.
10827 (clear_inferior_list): New function.
10828 (clear_inferiors): Update.
10829 * inferiors.h (for_each_inferior_with_data): Declare.
10830 (clear_inferior_list): Declare.
10831 (one_inferior_p): Declare.
10832 (get_first_inferior): Declare.
10833 * linux-low.c (linux_wait_for_event): Replace accessing list
10834 implemention details with API function.
10835 * server.c (target_running): Ditto.
10836 (accumulate_file_name_length): New function.
10837 (emit_dll_description): New function.
10838 (handle_qxfer_libraries): Replace accessing list implemention
10839 details with API function.
10840 (handle_qxfer_threads_worker): New function.
10841 (handle_qxfer_threads_proper): Replace accessing list implemention
10842 details with API function.
10843 (handle_query): Ditto.
10844 (visit_actioned_threads_callback_ftype): New typedef.
10845 (visit_actioned_threads_data): New struct.
10846 (visit_actioned_threads): Rewrite to be find_inferior callback.
10847 (resume): Call find_inferior.
10848 (handle_status): Replace accessing list implemention
10849 details with API function.
10850 (process_serial_event): Replace accessing list implemention details
10852 * target.c (set_desired_inferior): Replace accessing list implemention
10853 details with API function.
10854 * tracepoint.c (same_process_p): New function.
10855 (gdb_agent_about_to_close): Replace accessing list implemention
10856 details with API function.
10857 * win32-low.c (child_delete_thread): Replace accessing list
10858 implemention details with API function.
10859 (match_dll_by_basename): New function.
10860 (dll_is_loaded_by_basename): New function.
10861 (win32_ensure_ntdll_loaded): Replace accessing list implemention
10862 details call to dll_is_loaded_by_basename.
10864 2014-02-19 Doug Evans <dje@google.com>
10866 * dll.h (struct dll_info): Add comment.
10867 * gdbthread.h (struct thread_info): Add comment.
10868 (current_ptid): Simplify.
10869 * inferiors.c (add_process): Update.
10870 (remove_process): Update.
10871 * inferiors.h (struct process_info): Rename member "head" to "entry".
10872 * linux-low.c (delete_lwp): Update.
10874 (last_thread_of_process_p): Update.
10875 (kill_one_lwp_callback, linux_kill): Update.
10876 (status_pending_p_callback): Update.
10877 (wait_for_sigstop): Update. Simplify read of ptid.
10878 (start_step_over): Update.
10879 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
10880 (get_lwp_thread): Update.
10881 (struct lwp_info): Rename member "head" to "entry".
10882 * regcache.h (inferior_list_entry): Delete.
10883 * server.c (kill_inferior_callback): Update.
10884 (detach_or_kill_inferior_callback): Update.
10885 (print_started_pid): Update.
10886 (print_attached_pid): Update.
10887 (process_serial_event): Simplify read of ptid.
10888 * thread-db.c (thread_db_create_event): Update.
10889 (thread_db_get_tls_address): Update.
10890 * win32-low.c (current_inferior_ptid): Simplify.
10892 2014-02-19 Tom Tromey <tromey@redhat.com>
10894 * target.h (struct target_ops) <supports_btrace>: Add target_ops
10896 (target_supports_btrace): Update.
10898 2014-02-14 Yao Qi <yao@codesourcery.com>
10900 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
10901 (rsp-low-ipa.o): New target.
10903 2014-02-12 Tom Tromey <tromey@redhat.com>
10905 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
10906 convert_ascii_to_int.
10907 * regcache.c (registers_to_string): Likewise.
10908 * remote-utils.c (decode_M_packet): Likewise.
10909 * server.c (process_serial_event): Likewise.
10911 2014-02-12 Tom Tromey <tromey@redhat.com>
10913 * server.c (handle_query, handle_v_run): Use hex2bin, not
10915 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
10917 2014-02-12 Tom Tromey <tromey@redhat.com>
10919 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
10920 convert_int_to_ascii.
10921 * regcache.c (registers_to_string, collect_register_as_string):
10923 * remote-utils.c (look_up_one_symbol, relocate_instruction):
10925 * server.c (process_serial_event): Likewise.
10926 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
10927 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
10929 2014-02-12 Tom Tromey <tromey@redhat.com>
10931 * remote-utils.c (look_up_one_symbol, monitor_output): Use
10932 bin2hex, not hexify.
10933 * tracepoint.c (cmd_qtstatus): Likewise.
10935 2014-02-12 Tom Tromey <tromey@redhat.com>
10937 * remote-utils.c (monitor_output): Pass explicit length to
10940 2014-02-12 Tom Tromey <tromey@redhat.com>
10942 * tracepoint.c: Include rsp-low.h.
10943 * server.c: Include rsp-low.h.
10944 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
10945 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
10947 * remote-utils.c: Include rsp-low.h.
10948 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
10949 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
10950 (convert_int_to_ascii, convert_ascii_to_int): Move to
10952 * regcache.c: Include rsp-low.h.
10953 * ax.c: Include rsp-low.h.
10954 * Makefile.in (SFILES): Add common/rsp-low.c.
10955 (OBS): Add rsp-low.o.
10956 (rsp-low.o): New target.
10958 2014-02-12 Tom Tromey <tromey@redhat.com>
10960 * utils.h (pulongest, plongest, phex_nz): Don't declare.
10961 Include print-utils.h.
10962 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10963 (plongest, thirty_two, phex_nz): Remove.
10964 * Makefile.in (SFILES): Add common/print-utils.c.
10965 (OBS): Add print-utils.o.
10966 (print-utils-ipa.o): New target.
10967 (print-utils.o): New target.
10968 (IPA_OBJS): Add print-utils-ipa.o.
10970 2014-02-06 Tom Tromey <tromey@redhat.com>
10972 * Makefile.in (SFILES): Fix indentation.
10974 2014-02-05 Doug Evans <dje@google.com>
10976 * linux-low.c (linux_wait_for_event): Improve comment.
10977 (linux_wait_1): Keep current_inferior in sync with event_child.
10979 2014-01-22 Doug Evans <dje@google.com>
10981 * gdbthread.h (gdb_id_to_thread): Delete, unused.
10983 2014-01-22 Doug Evans <dje@google.com>
10985 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
10986 * configure: Regenerate.
10987 * config.in: Regenerate.
10988 * Makefile.in (SFILES): Add debug.c.
10989 (OBS): Add debug.o.
10990 * debug.c: New file.
10991 * debug.h: New file.
10992 * linux-aarch64-low.c (*): Update all debugging printfs to use
10993 debug_printf instead of fprintf.
10994 * linux-arm-low.c (*): Ditto.
10995 * linux-cris-low.c (*): Ditto.
10996 * linux-crisv32-low.c (*): Ditto.
10997 * linux-m32r-low.c (*): Ditto.
10998 * linux-sparc-low.c (*): Ditto.
10999 * linux-x86.c (*): Ditto.
11000 * linux-low.c (*): Ditto.
11001 (linux_wait_1): Add calls to debug_enter, debug_exit.
11002 (linux_wait): Remove redundant debugging printf.
11003 (stop_all_lwps): Add calls to debug_enter, debug_exit.
11004 (linux_resume, unstop_all_lwps): Ditto.
11005 * mem-break.c (*): Update all debugging printfs to use
11006 debug_printf instead of fprintf.
11007 * remote-utils.c (*): Ditto.
11008 * thread-db.c (*): Ditto.
11009 * server.c #include <ctype.h>, "gdb_vecs.h".
11010 (debug_threads): Moved to debug.c.
11011 (*): Update all debugging printfs to use debug_printf instead of
11013 (start_inferior): Replace call to fflush with call to debug_flush.
11014 (monitor_show_help): Mention set debug-format.
11015 (parse_debug_format_options): New function.
11016 (handle_monitor_command): Handle "monitor set debug-format".
11017 (gdbserver_usage): Mention --debug-format.
11018 (main): Parse --debug-format.
11019 * server.h (debug_threads): Declaration moved to debug.h.
11020 #include "debug.h".
11021 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
11022 trace_debug_1 that uses debug_printf.
11023 (tracepoint_look_up_symbols): Update all debugging printfs to use
11024 debug_printf instead of fprintf.
11026 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11028 * linux-xtensa-low.c: Include asm/ptrace.h instead of
11031 2014-01-17 Pedro Alves <palves@redhat.com>
11034 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
11035 defined after including gdb_proc_service.h.
11037 2014-01-16 Doug Evans <dje@google.com>
11039 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
11040 (match_dll): Use it.
11042 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11044 * target.h (target_ops) <read_btrace>: Change parameters and
11045 return type to allow error reporting.
11046 * server.c (handle_qxfer_btrace): Support delta reads. Pass
11047 trace reading errors on.
11048 * linux-low.c (linux_low_read_btrace): Pass trace reading
11050 (linux_low_disable_btrace): New.
11052 2014-01-15 Doug Evans <dje@google.com>
11054 * inferiors.c (thread_id_to_gdb_id): Delete.
11055 * inferiors.h (thread_id_to_gdb_id): Delete.
11057 2014-01-13 Eli Zaretskii <eliz@gnu.org>
11059 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
11060 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
11063 2014-01-08 Pedro Alves <palves@redhat.com>
11065 * server.c (handle_status): Don't discard previous queued stop
11066 replies or thread's pending status here.
11067 (main) <disconnection>: Do it here instead.
11069 2014-01-08 Pedro Alves <palves@redhat.com>
11071 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
11072 * server.c (visit_actioned_threads, handle_pending_status): New
11074 (handle_v_cont): Factor out parts to ...
11075 (resume): ... this new function. If in all-stop, and a thread
11076 being resumed has a pending status, report it without actually
11078 (myresume): Adjust to use the new 'resume' function.
11079 (clear_pending_status_callback, set_pending_status_callback)
11080 (find_status_pending_thread_callback): New functions.
11081 (handle_status): Handle the case of multiple threads having
11082 interesting statuses to report. Report threads' real last signal
11083 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
11084 with an interesting thread to report the status for, instead of
11085 always reporting the status of the first thread.
11087 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11089 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
11090 * gdbreplay.c (gdbreplay_version): Likewise.
11092 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
11094 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
11095 iov.iov_len with the real length in use.
11097 2013-12-13 Joel Brobecker <brobecker@adacore.com>
11099 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
11100 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
11101 for all targets that use win32-low.c.
11102 * win32-low.c (win32_ensure_ntdll_loaded): New function.
11103 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
11105 2013-12-13 Pedro Alves <palves@redhat.com>
11107 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
11108 if equal to TARGET_WAITKIND_LOADED.
11109 * win32-low.c (cached_status): New static global.
11110 (win32_wait): Add declaration.
11111 (do_initial_child_stuff): Flush all initial pending debug events
11112 up to the initial breakpoint.
11113 (win32_wait): If CACHED_STATUS was set, return that instead
11114 of doing a real wait. Remove the code resuming the execution
11115 of the inferior after receiving a TARGET_WAITKIND_LOADED event
11116 during the initial phase. Also remove the code changing
11117 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
11118 TARGET_WAITKIND_STOPPED.
11120 2013-12-11 Yao Qi <yao@codesourcery.com>
11122 * notif.c (handle_notif_ack): Return 0 if no notification
11125 2013-11-20 Doug Evans <dje@google.com>
11127 * linux-low.c (linux_set_resume_request): Fix comment.
11129 2013-11-20 Doug Evans <dje@google.com>
11131 * linux-low.c (resume_status_pending_p): Tweak comment.
11133 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
11135 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
11136 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
11137 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
11138 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
11139 (srv_amd64_regobj): Add amd64-mpx.o.
11140 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
11141 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
11142 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
11143 * i387-fp.c (num_pl_bnd_register) Added constant.
11144 (num_pl_bnd_cfg_registers) Added constant.
11145 (struct i387_xsave) Added reserved area and MPX fields.
11146 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
11147 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
11149 (tdesc_i386_mpx_linux): Add MPX amd64 target.
11150 (init_registers_amd64_mpx_linux): Declare new function.
11151 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
11152 (x86_64_regmap): Add MPX registers.
11153 (x86_linux_read_description): Add MPX case.
11154 (initialize_low_arch): Initialize MPX targets.
11156 2013-11-18 Tom Tromey <tromey@redhat.com>
11158 * configure: Rebuild.
11159 * configure.ac: Don't check for stdlib.h.
11160 * gdbreplay.c: Unconditionally include stdlib.h.
11162 2013-11-18 Tom Tromey <tromey@redhat.com>
11164 * config.in: Rebuild.
11165 * configure: Rebuild.
11166 * configure.ac: Don't use AC_HEADER_DIRENT.
11168 2013-11-18 Tom Tromey <tromey@redhat.com>
11170 * server.h: Don't check HAVE_STRING_H.
11171 * gdbreplay.c: Don't check HAVE_STRING_H.
11172 * configure: Rebuild.
11174 2013-11-18 Tom Tromey <tromey@redhat.com>
11176 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
11179 2013-11-08 Tom Tromey <tromey@redhat.com>
11181 * configure, config.in: Rebuild.
11182 * configure.ac: Remove unused configury.
11184 2013-11-08 Tom Tromey <tromey@redhat.com>
11186 * acinclude.m4: Include common.m4, codeset.m4.
11187 * configure, config.in: Rebuild.
11188 * configure.ac: Use GDB_AC_COMMON.
11190 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
11192 * linux-s390-low.c (HWCAP_S390_TE): New define.
11193 (s390_arch_setup): Consider the TE field in the HWCAP for
11194 determining 'have_regset_tdb'.
11196 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
11199 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
11202 2013-10-02 Pedro Alves <palves@redhat.com>
11204 * server.c (process_serial_event): Don't output "GDBserver
11205 exiting" if GDB is connected through stdio.
11206 * target.c (mywait): Likewise, be silent if GDB is connected
11209 2013-10-01 Joel Brobecker <brobecker@adacore.com>
11211 * lynx-low.c (lynx_add_threads_after_attach): New function.
11212 (lynx_attach): Remove call to add_thread. Add call to
11213 lynx_add_threads_after_attach instead.
11215 2013-09-28 Mike Frysinger <vapier@gentoo.org>
11217 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
11218 * config.in, configure: Regenerated.
11220 2013-09-18 Yao Qi <yao@codesourcery.com>
11223 * server.c (start_inferior): Clear 'resume_info'.
11225 2013-09-16 Jiong Wang <jiwang@tilera.com>
11227 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
11230 2013-09-16 Jiong Wang <jiwang@tilera.com>
11232 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
11233 linux-tile-low.o to srv_tgtobj.
11235 2013-09-16 Will Newton <will.newton@linaro.org>
11237 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
11240 2013-09-06 Pedro Alves <palves@redhat.com>
11242 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
11243 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
11244 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
11245 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
11246 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
11247 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
11249 2013-09-06 Pedro Alves <palves@redhat.com>
11251 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
11252 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
11254 2013-09-06 Pedro Alves <palves@redhat.com>
11256 * linux-amd64-ipa.c: Include tracepoint.h.
11257 * linux-i386-ipa.c: Include tracepoint.h.
11259 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
11261 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
11262 (ps_get_thread_area): New function.
11264 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
11266 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
11267 (initialize_low_arch): Call init_registers_crisv32 rather than
11268 init_register_crisv32.
11270 2013-09-05 Pedro Alves <palves@redhat.com>
11272 * server.h (handle_vFile, hostio_last_error_from_errno): Move
11274 * hostio.h: ... this new file.
11275 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
11276 win32-low.c: Include hostio.h.
11278 2013-09-05 Pedro Alves <palves@redhat.com>
11280 * server.h (gdb_client_data, handler_func, callback_handler_func)
11281 (delete_file_handler, add_file_handler, append_callback_event)
11282 (delete_callback_event, start_event_loop, initialize_event_loop):
11283 Move to event-loop.h and include it.
11284 * event-loop.h: New file.
11286 2013-09-05 Pedro Alves <palves@redhat.com>
11288 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
11289 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
11290 (loaded_dll, unloaded_dll): Move to ...
11291 * dll.h: ... this new file.
11292 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
11294 2013-09-05 Pedro Alves <palves@redhat.com>
11296 * server.h (current_process, get_thread_process, all_processes)
11297 (add_inferior_to_list, for_each_inferior, current_inferior)
11298 (remove_inferior, add_process, remove_process, find_process_pid)
11299 (have_started_inferiors_p, have_attached_inferiors_p)
11300 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
11301 (clear_inferiors, find_inferior, find_inferior_id)
11302 (inferior_target_data, set_inferior_target_data)
11303 (inferior_regcache_data, set_inferior_regcache_data): Move to
11304 inferiors.h, and include it.
11305 * inferiors.h: New file.
11307 2013-09-05 Pedro Alves <palves@redhat.com>
11309 * server.h (struct emit_ops, current_insn_ptr, emit_error):
11313 2013-09-05 Pedro Alves <palves@redhat.com>
11315 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
11317 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
11318 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
11319 (handle_tracepoint_general_set, handle_tracepoint_query)
11320 (tracepoint_finished_step, tracepoint_was_hit)
11321 (release_while_stepping_state_list, current_traceframe)
11322 (in_readonly_region, traceframe_read_mem)
11323 (fetch_traceframe_registers, traceframe_read_sdata)
11324 (traceframe_read_info, struct fast_tpoint_collect_status)
11325 (fast_tracepoint_collecting, force_unlock_trace_buffer)
11326 (handle_tracepoit_bkpts, initialize_low_tracepoint)
11327 (supply_fast_tracepoint_registers)
11328 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
11329 (ipa_tdesc, claim_trampoline_space)
11330 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
11331 (agent_mem_read, agent_get_trace_state_variable_value)
11332 (agent_set_trace_state_variable_value, agent_tsv_read)
11333 (agent_mem_read_string, get_raw_reg_func_addr)
11334 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
11335 * tracepoint.h: ... this new file.
11337 2013-09-05 Pedro Alves <palves@redhat.com>
11339 * server.h (perror_with_name, error, fatal, warning, paddress)
11340 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
11342 * utils.h: New file.
11344 2013-09-05 Pedro Alves <palves@redhat.com>
11346 * server.h (remote_debug, noack_mode, transport_is_reliable)
11347 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
11348 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
11349 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
11350 (write_enn, initialize_async_io, enable_async_io)
11351 (disable_async_io, check_remote_input_interrupt_request)
11352 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
11353 (dead_thread_notify, prepare_resume_reply)
11354 (decode_address_to_semicolon, decode_address, decode_m_packet)
11355 (decode_M_packet, decode_X_packet, decode_xfer_write)
11356 (decode_search_memory_packet, unhexify, hexify)
11357 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
11358 (look_up_one_symbol, relocate_instruction)
11359 (monitor_output): Move to remote-utils.h, and include it.
11360 * remote-utils.h: New file.
11362 2013-09-05 Pedro Alves <palves@redhat.com>
11364 * server.h (_): Delete.
11366 2013-09-02 Pedro Alves <palves@redhat.com>
11368 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
11369 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
11371 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
11373 2013-09-02 Pierre Muller <muller@sourceware.org>
11375 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
11376 or WriteProcessMemory complete successfully and handle
11377 ERROR_PARTIAL_COPY error.
11379 2013-09-02 Pedro Alves <palves@redhat.com>
11381 * server.c (gdb_read_memory): Return -1 on traceframe memory read
11382 error instead of EIO.
11384 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11387 * linux-low.c: Include filestuff.h.
11388 (linux_create_inferior) <pid == 0>: Call close_most_fds.
11389 * lynx-low.c: Include filestuff.h.
11390 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
11391 * server.c: Include filestuff.h.
11392 (main): Call notice_open_fds.
11393 * spu-low.c: Include filestuff.h.
11394 (spu_create_inferior) <pid == 0>: Call close_most_fds.
11396 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
11398 * Makefile.in: Explain why ../target and ../nat are not
11399 listed as include file search paths.
11400 (linux-waitpid.o): New object file rule.
11401 * configure.srv (srv_native_linux_obj): New variable.
11402 Replace all occurrences of linux native object files with
11403 $srv_native_linux_obj.
11404 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
11405 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
11406 (linux_enable_event_reporting): Remove declaration.
11407 (my_waitpid): Moved to common/linux-waitpid.c.
11408 (linux_wait_for_event): Pass ptid when calling
11409 linux_enable_event_reporting.
11410 (linux_supports_tracefork_flag): Remove.
11411 (linux_enable_event_reporting): Likewise.
11412 (linux_tracefork_grandchild): Remove.
11413 (STACK_SIZE): Moved to common/linux-ptrace.c.
11414 (linux_tracefork_child): Remove.
11415 (linux_test_for_tracefork): Remove.
11416 (linux_look_up_symbols): Call linux_supports_traceclone.
11417 (initialize_low): Remove call to linux_test_for_tracefork.
11418 * linux-low.h (PTRACE_TYPE_ARG3): Move to
11419 common/linux-ptrace.h.
11420 (PTRACE_TYPE_ARG4): Likewise.
11421 Include linux-ptrace.h.
11423 2013-08-21 Pedro Alves <palves@redhat.com>
11425 * config.in: Renegerate.
11427 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
11429 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
11430 (SFILES): Remove $(srcdir)/common/target-common.c and
11431 add $(srcdir)/target/waitstatus.c.
11432 (OBS): Remove target-common.o and add waitstatus.o.
11433 (server_h): Remove $(srcdir)/../common/target-common.h and
11434 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
11435 and $(srcdir)/../target/waitstatus.h.
11436 (target-common.o): Remove.
11437 (waitstatus.o): New target object file.
11438 * target.h: Do not include target-common.h and
11439 include target/resume.h, target/wait.h and
11440 target/waitstatus.h.
11442 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
11444 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
11445 to PTRACE_TYPE_ARG3.
11446 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
11447 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
11449 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
11450 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
11452 2013-07-27 Jie Zhang <jie@codesourcery.com>
11453 Daniel Jacobowitz <dan@codesourcery.com>
11454 Yao Qi <yao@codesourcery.com>
11456 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
11457 (mips-linux-watch.o): New rule.
11458 (mips_linux_watch_h): New variable.
11459 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
11461 * linux-mips-low.c: Include mips-linux-watch.h.
11462 (struct arch_process_info, struct arch_lwp_info): New.
11463 (update_watch_registers_callback): New function.
11464 (mips_linux_new_process, mips_linux_new_thread) New functions.
11465 (mips_linux_prepare_to_resume, mips_insert_point): New
11467 (mips_remove_point, mips_stopped_by_watchpoint): New
11469 (rsp_bp_type_to_target_hw_bp_type): New function.
11470 (mips_stopped_data_address): New function.
11471 (the_low_target): Add watchpoint support functions.
11473 2013-07-27 Yao Qi <yao@codesourcery.com>
11475 * i386-low.c: Include break-common.h.
11476 (enum target_hw_bp_type): Remove.
11478 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
11480 * Makefile.in (SFILES): /common/target-common.c.
11481 (OBS): Add target-common.o.
11482 (server_h): Add $(srcdir)/../common/target-common.h.
11483 (target-common.o): New target.
11484 * server.c (queue_stop_reply_callback): Free
11485 status string after use.
11486 * target.c (target_waitstatus_to_string): Remove.
11487 * target.h: Include target-common.h.
11488 (resume_kind): Likewise.
11489 (target_waitkind): Likewise.
11490 (target_waitstatus): Likewise.
11491 (TARGET_WNOHANG): Likewise.
11493 2013-07-04 Yao Qi <yao@codesourcery.com>
11495 * Makefile.in (host_alias): Use @host_noncanonical@.
11496 (target_alias): Use @target_noncanonical@.
11497 * configure.ac: Use ACX_NONCANONICAL_TARGET and
11498 ACX_NONCANONICAL_HOST.
11499 * configure: Regenerated.
11502 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
11504 * configure.ac (version_host, version_target): Set and AC_SUBST them.
11505 * configure: Rebuild.
11506 * Makefile.in (version_host, version_target): Get from configure.
11507 (version.c): Use $(version_host) and $(version_target).
11509 2013-07-03 Pedro Alves <palves@redhat.com>
11511 * Makefile.in (config.status): Depend on development.sh.
11512 * acinclude.m4: Include libmcheck.m4.
11513 * configure: Regenerate.
11515 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
11517 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
11518 attribute inside the parentheses.
11519 (winapi_DebugSetProcessKillOnExit): Ditto.
11520 (winapi_DebugBreakProcess): Ditto.
11521 (winapi_GenerateConsoleCtrlEvent): Ditto.
11523 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
11525 * notif.h (notif_event): Add a dummy member to avoid compiler
11528 2013-07-01 Pedro Alves <palves@redhat.com>
11530 * hostio.c (HOSTIO_PATH_MAX): Define.
11531 (require_filename, handle_open, handle_unlink, handle_readlink):
11534 2013-07-01 Pedro Alves <palves@redhat.com>
11536 * server.h: Include "pathmax.h".
11537 * linux-low.c: Don't include sys/param.h.
11538 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
11540 * win32-low.c: Don't include sys/param.h.
11541 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
11543 2013-07-01 Pedro Alves <palves@redhat.com>
11545 * event-loop.c: Don't check HAVE_UNISTD_H before including
11547 * gdbreplay.c: Likewise.
11548 * remote-utils.c: Likewise.
11549 * server.c: Likewise.
11550 * configure.ac: Don't check for unistd.h.
11551 * configure: Regenerate.
11553 2013-06-28 Tom Tromey <tromey@redhat.com>
11555 * Makefile.in (version.c): Use version.in, not
11558 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
11560 * configure.ac (version_host, version_target): Set and AC_SUBST them.
11561 * configure: Rebuild.
11562 * Makefile.in (version_host, version_target): Get from configure.
11563 (version.c): Use $(version_host) and $(version_target).
11565 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
11567 Fix trace-status to output user name without trailing colon.
11568 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
11570 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
11572 Fix trace-status to output proper start-time and stop-time.
11573 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
11574 output start time and stop time in hex as gdb expects.
11576 2013-06-26 Pedro Alves <pedro@codesourcery.com>
11578 * tracepoint.c (build_traceframe_info_xml): Output trace state
11579 variables present in the trace buffer.
11581 2013-06-24 Tom Tromey <tromey@redhat.com>
11583 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
11585 (version.o): Remove.
11586 * gdbreplay.c: Include version.h.
11587 (version, host_name): Don't declare.
11588 * server.h: Include version.h.
11589 (version, host_name): Don't declare.
11591 2013-06-12 Pedro Alves <palves@redhat.com>
11593 * linux-x86-low.c (linux_is_elf64): Delete global.
11594 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
11595 with local linux_pid_exe_is_elf_64_file use.
11597 2013-06-11 Pedro Alves <palves@redhat.com>
11599 * linux-low.c (regset_disabled, disable_regset): New functions.
11600 (regsets_fetch_inferior_registers)
11601 (regsets_store_inferior_registers): Use them.
11602 (initialize_regsets_info); Don't allocate the disabled_regsets
11604 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
11607 2013-06-11 Pedro Alves <palves@redhat.com>
11609 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
11612 2013-06-11 Pedro Alves <palves@redhat.com>
11614 * linux-x86-low.c (initialize_low_arch): Call
11615 init_registers_x32_avx_linux.
11617 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11619 Fix compatibility with Android Bionic.
11620 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
11623 2013-06-07 Pedro Alves <palves@redhat.com>
11626 * Makefile.in (OBS): Add tdesc.o.
11627 (IPA_OBJS): Add tdesc-ipa.o.
11628 (tdesc-ipa.o): New rule.
11629 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
11631 * linux-low.c (new_inferior): Delete.
11632 (disabled_regsets, num_regsets): Delete.
11633 (linux_add_process): Adjust to set the new per-process
11635 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
11636 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
11637 was a stop. When calling arch_setup, switch the current inferior
11638 to the thread that got an event.
11639 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
11640 (regsets_fetch_inferior_registers)
11641 (regsets_store_inferior_registers): New regsets_info parameter.
11643 (linux_register_in_regsets): New regs_info parameter. Adjust to
11645 (register_addr, fetch_register, store_register): New usrregs_info
11646 parameter. Adjust to use it.
11647 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
11648 parameter regs_info. Adjust to use it.
11649 (linux_fetch_registers): Get the current inferior's regs_info, and
11651 (linux_store_registers): Ditto.
11652 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
11653 (initialize_low): Don't initialize the target_regsets here. Call
11654 initialize_low_arch.
11655 * linux-low.h (target_regsets): Delete declaration.
11656 (struct regsets_info): New.
11657 (struct usrregs_info): New.
11658 (struct regs_info): New.
11659 (struct process_info_private) <new_inferior>: New field.
11660 (struct linux_target_ops): Delete the num_regs, regmap, and
11661 regset_bitmap fields. New field regs_info.
11662 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
11663 * i387-fp.c (num_xmm_registers): Delete.
11664 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
11665 calls to new interface.
11666 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
11667 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
11668 Infer the number of xmm registers from the regcache's target
11670 * i387-fp.h (num_xmm_registers): Delete.
11671 * inferiors.c (add_thread): Don't install the thread's regcache
11673 * proc-service.c (gregset_info): Fetch the current inferior's
11674 regs_info. Adjust to use it.
11675 * regcache.c: Include tdesc.h.
11676 (register_bytes, reg_defs, num_registers)
11677 (gdbserver_expedite_regs): Delete.
11678 (get_thread_regcache): If the thread doesn't have a regcache yet,
11679 create one, instead of aborting gdbserver.
11680 (regcache_invalidate_one): Rename to ...
11681 (regcache_invalidate_thread): ... this.
11682 (regcache_invalidate_one): New.
11683 (regcache_invalidate): Only invalidate registers of the current
11685 (init_register_cache): Add target_desc parameter, and use it.
11686 (new_register_cache): Ditto. Assert the target description has a
11687 non zero registers_size.
11688 (regcache_cpy): Add assertions. Adjust.
11689 (realloc_register_cache, set_register_cache): Delete.
11690 (registers_to_string, registers_from_string): Adjust.
11691 (find_register_by_name, find_regno, find_register_by_number)
11692 (register_cache_size): Add target_desc parameter, and use it.
11693 (free_register_cache_thread, free_register_cache_thread_one)
11694 (regcache_release, register_cache_size): New.
11695 (register_size): Add target_desc parameter, and use it.
11696 (register_data, supply_register, supply_register_zeroed)
11697 (supply_regblock, supply_register_by_name, collect_register)
11698 (collect_register_as_string, collect_register_by_name): Adjust.
11699 * regcache.h (struct target_desc): Forward declare.
11700 (struct regcache) <tdesc>: New field.
11701 (init_register_cache, new_register_cache): Add target_desc
11703 (regcache_invalidate_thread): Declare.
11704 (regcache_invalidate_one): Delete declaration.
11705 (regcache_release): Declare.
11706 (find_register_by_number, register_cache_size, register_size)
11707 (find_regno): Add target_desc parameter.
11708 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
11710 * remote-utils.c: Include tdesc.h.
11711 (outreg, prepare_resume_reply): Adjust.
11712 * server.c: Include tdesc.h.
11713 (gdbserver_xmltarget): Delete declaration.
11714 (get_features_xml, process_serial_event): Adjust.
11715 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
11717 (struct process_info) <tdesc>: New field.
11718 (ipa_tdesc): Declare.
11719 * tdesc.c: New file.
11720 * tdesc.h: New file.
11721 * tracepoint.c: Include tdesc.h.
11722 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
11723 (get_context_regcache): Adjust to pass ipa_tdesc down.
11724 (do_action_at_tracepoint): Adjust to get the register cache size
11725 from the context regcache's description.
11726 (traceframe_walk_blocks): Adjust to get the register cache size
11727 from the current trace frame's description.
11728 (traceframe_get_pc): Adjust to get current trace frame's
11729 description and pass it down.
11730 (gdb_collect): Adjust to get the register cache size from the
11732 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
11733 (gdbserver_xmltarget): Delete.
11734 (initialize_low_tracepoint): Set the ipa's target description.
11735 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
11736 (initialize_low_tracepoint): Set the ipa's target description.
11737 * linux-x86-low.c: Include tdesc.h.
11738 [__x86_64__] (is_64bit_tdesc): New.
11739 (ps_get_thread_area, x86_get_thread_area): Use it.
11740 (i386_cannot_store_register): Rename to ...
11741 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
11742 (i386_cannot_fetch_register): Rename to ...
11743 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
11744 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
11746 (target_regsets): Rename to ...
11747 (x86_regsets): ... this.
11748 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
11750 (x86_siginfo_fixup): Use is_64bit_tdesc.
11751 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
11752 (tdesc_x32_avx_linux, tdesc_x32_linux)
11753 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
11755 (x86_linux_update_xmltarget): Delete.
11756 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
11757 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
11758 (AMD64_LINUX_USER64_CS): New.
11759 (x86_linux_read_description): New, based on
11760 x86_linux_update_xmltarget.
11761 (same_process_callback): New.
11762 (x86_arch_setup_process_callback): New.
11763 (x86_linux_update_xmltarget): New.
11764 (x86_regsets_info): New.
11765 (amd64_linux_regs_info): New.
11766 (i386_linux_usrregs_info): New.
11767 (i386_linux_regs_info): New.
11768 (x86_linux_regs_info): New.
11769 (x86_arch_setup): Reimplement.
11770 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
11771 (x86_emit_ops): Ditto.
11772 (the_low_target): Adjust. Install x86_linux_regs_info,
11773 x86_cannot_fetch_register, and x86_cannot_store_register.
11774 (initialize_low_arch): New.
11775 * linux-ia64-low.c (tdesc_ia64): Declare.
11776 (ia64_fetch_register): Adjust.
11777 (ia64_usrregs_info, regs_info): New globals.
11778 (ia64_regs_info): New function.
11779 (the_low_target): Adjust.
11780 (initialize_low_arch): New function.
11781 * linux-sparc-low.c (tdesc_sparc64): Declare.
11782 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
11784 (sparc_arch_setup): New function.
11785 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
11786 (the_low_target): Adjust.
11787 (initialize_low_arch): New function.
11788 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
11789 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
11790 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
11791 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
11792 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
11793 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
11794 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
11795 (tdesc_powerpc_isa205_vsx64l): Declare.
11796 (ppc_cannot_store_register, ppc_collect_ptrace_register)
11797 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
11798 (ppc_set_pc, ppc_get_hwcap): Adjust.
11799 (ppc_usrregs_info): Forward declare.
11800 (!__powerpc64__) ppc_regmap_adjusted: New global.
11801 (ppc_arch_setup): Adjust to the current process'es target
11803 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
11804 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
11805 (ppc_store_evrregset): Adjust.
11806 (target_regsets): Rename to ...
11807 (ppc_regsets): ... this, and make static.
11808 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
11809 (ppc_regs_info): New function.
11810 (the_low_target): Adjust.
11811 (initialize_low_arch): New function.
11812 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
11813 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
11814 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
11815 (tdesc_s390x_linux64v2): Declare.
11816 (s390_collect_ptrace_register, s390_supply_ptrace_register)
11817 (s390_fill_gregset, s390_store_last_break): Adjust.
11818 (target_regsets): Rename to ...
11819 (s390_regsets): ... this, and make static.
11820 (s390_get_pc, s390_set_pc): Adjust.
11821 (s390_get_hwcap): New target_desc parameter, and use it.
11822 [__s390x__] (have_hwcap_s390_high_gprs): New global.
11823 (s390_arch_setup): Adjust to set the current process'es target
11824 description. Don't adjust the regmap.
11825 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
11826 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
11827 (regs_info_3264): New globals.
11828 (s390_regs_info): New function.
11829 (the_low_target): Adjust.
11830 (initialize_low_arch): New function.
11831 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
11832 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
11833 [__mips64] (init_registers_mips_linux)
11834 (init_registers_mips_dsp_linux): Delete defines.
11835 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
11836 (have_dsp): New global.
11837 (mips_read_description): New, based on mips_arch_setup.
11838 (mips_arch_setup): Reimplement.
11839 (get_usrregs_info): New function.
11840 (mips_cannot_fetch_register, mips_cannot_store_register)
11841 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
11842 (mips_fill_fpregset, mips_store_fpregset): Adjust.
11843 (target_regsets): Rename to ...
11844 (mips_regsets): ... this, and make static.
11845 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
11846 (dsp_regs_info, regs_info): New globals.
11847 (mips_regs_info): New function.
11848 (the_low_target): Adjust.
11849 (initialize_low_arch): New function.
11850 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
11851 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
11853 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
11854 (arm_read_description): New, with bits factored from
11856 (arm_arch_setup): Reimplement.
11857 (target_regsets): Rename to ...
11858 (arm_regsets): ... this, and make static.
11859 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
11860 (arm_regs_info): New function.
11861 (the_low_target): Adjust.
11862 (initialize_low_arch): New function.
11863 * linux-m68k-low.c (tdesc_m68k): Declare.
11864 (target_regsets): Rename to ...
11865 (m68k_regsets): ... this, and make static.
11866 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
11867 (m68k_regs_info): New function.
11868 (m68k_arch_setup): New function.
11869 (the_low_target): Adjust.
11870 (initialize_low_arch): New function.
11871 * linux-sh-low.c (tdesc_sharch): Declare.
11872 (target_regsets): Rename to ...
11873 (sh_regsets): ... this, and make static.
11874 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
11875 (sh_regs_info, sh_arch_setup): New functions.
11876 (the_low_target): Adjust.
11877 (initialize_low_arch): New function.
11878 * linux-bfin-low.c (tdesc_bfin): Declare.
11879 (bfin_arch_setup): New function.
11880 (bfin_usrregs_info, regs_info): New globals.
11881 (bfin_regs_info): New function.
11882 (the_low_target): Adjust.
11883 (initialize_low_arch): New function.
11884 * linux-cris-low.c (tdesc_cris): Declare.
11885 (cris_arch_setup): New function.
11886 (cris_usrregs_info, regs_info): New globals.
11887 (cris_regs_info): New function.
11888 (the_low_target): Adjust.
11889 (initialize_low_arch): New function.
11890 * linux-cris-low.c (tdesc_crisv32): Declare.
11891 (cris_arch_setup): New function.
11892 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
11893 (cris_regs_info): New function.
11894 (the_low_target): Adjust.
11895 (initialize_low_arch): New function.
11896 * linux-m32r-low.c (tdesc_m32r): Declare.
11897 (m32r_arch_setup): New function.
11898 (m32r_usrregs_info, regs_info): New globals.
11899 (m32r_regs_info): Adjust.
11900 (initialize_low_arch): New function.
11901 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
11902 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
11903 (tic6x_usrregs_info): Forward declare.
11904 (tic6x_read_description): New function, based on ...
11905 (tic6x_arch_setup): ... this. Reimplement.
11906 (target_regsets): Rename to ...
11907 (tic6x_regsets): ... this, and make static.
11908 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
11909 (tic6x_regs_info): New function.
11910 (the_low_target): Adjust.
11911 (initialize_low_arch): New function.
11912 * linux-xtensa-low.c (tdesc_xtensa): Declare.
11913 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
11914 (target_regsets): Rename to ...
11915 (xtensa_regsets): ... this, and make static.
11916 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
11918 (xtensa_arch_setup, xtensa_regs_info): New functions.
11919 (the_low_target): Adjust.
11920 (initialize_low_arch): New function.
11921 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
11922 (nios2_arch_setup): Set the current process'es tdesc.
11923 (target_regsets): Rename to ...
11924 (nios2_regsets): ... this.
11925 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
11926 (nios2_regs_info): New function.
11927 (the_low_target): Adjust.
11928 (initialize_low_arch): New function.
11929 * linux-aarch64-low.c (tdesc_aarch64): Declare.
11930 (aarch64_arch_setup): Set the current process'es tdesc.
11931 (target_regsets): Rename to ...
11932 (aarch64_regsets): ... this.
11933 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
11934 (aarch64_regs_info): New function.
11935 (the_low_target): Adjust.
11936 (initialize_low_arch): New function.
11937 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
11939 (target_regsets): Rename to ...
11940 (tile_regsets): ... this.
11941 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
11942 (tile_regs_info): New function.
11943 (tile_arch_setup): Set the current process'es tdesc.
11944 (the_low_target): Adjust.
11945 (initialize_low_arch): New function.
11946 * spu-low.c (tdesc_spu): Declare.
11947 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
11948 * win32-arm-low.c (tdesc_arm): Declare.
11949 (arm_arch_setup): New function.
11950 (the_low_target): Install arm_arch_setup instead of
11951 init_registers_arm.
11952 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
11953 (init_windows_x86): Rename to ...
11954 (i386_arch_setup): ... this. Set `win32_tdesc'.
11955 (the_low_target): Adjust.
11956 * win32-low.c (win32_tdesc): New global.
11957 (child_add_thread): Don't create the thread cache here.
11958 (do_initial_child_stuff): Set the new process'es tdesc.
11959 * win32-low.h (struct target_desc): Forward declare.
11960 (win32_tdesc): Declare.
11961 * lynx-i386-low.c (tdesc_i386): Declare global.
11962 (lynx_i386_arch_setup): Set `lynx_tdesc'.
11963 * lynx-low.c (lynx_tdesc): New global.
11964 (lynx_add_process): Set the new process'es tdesc.
11965 * lynx-low.h (struct target_desc): Forward declare.
11966 (lynx_tdesc): Declare global.
11967 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
11968 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
11969 * nto-low.c (nto_tdesc): New global.
11970 (do_attach): Set the new process'es tdesc.
11971 * nto-low.h (struct target_desc): Forward declare.
11972 (nto_tdesc): Declare.
11973 * nto-x86-low.c (tdesc_i386): Declare.
11974 (nto_x86_arch_setup): Set `nto_tdesc'.
11976 2013-06-04 Gary Benson <gbenson@redhat.com>
11978 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
11979 to qSupported response when appropriate.
11980 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
11981 with nonzero-length annex.
11982 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
11983 arguments supplied in annex.
11985 2013-05-31 Doug Evans <dje@google.com>
11988 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
11989 64 bits in 64-cross-32 environment.
11991 2013-05-28 Pedro Alves <palves@redhat.com>
11993 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
11994 (aarch64-without-fpu.c): Delete rule.
11995 * configure.srv (aarch64*-*-linux*): Remove references to
11996 aarch64-without-fpu.o and aarch64-without-fpu.xml.
11997 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
12000 2013-05-24 Pedro Alves <palves@redhat.com>
12002 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
12003 instead of strchr/decode_address. Error if the range isn't split
12004 with a ','. Don't assume there's be a ':' in the action.
12006 2013-05-23 Yao Qi <yao@codesourcery.com>
12007 Pedro Alves <palves@redhat.com>
12009 * linux-low.c (lwp_in_step_range): New function.
12010 (linux_wait_1): If the thread was range stepping and stopped
12011 outside the stepping range, report the stop to GDB. Otherwise,
12012 continue stepping. Add range stepping debug output.
12013 (linux_set_resume_request): Copy the step range from the resume
12014 request to the lwp.
12015 (linux_supports_range_stepping): New.
12016 (linux_target_ops) <supports_range_stepping>: Set to
12017 linux_supports_range_stepping.
12018 * linux-low.h (struct linux_target_ops)
12019 <supports_range_stepping>: New field.
12020 (struct lwp_info) <step_range_start, step_range_end>: New fields.
12021 * linux-x86-low.c (x86_supports_range_stepping): New.
12022 (the_low_target) <supports_range_stepping>: Set to
12023 x86_supports_range_stepping.
12024 * server.c (handle_v_cont): Handle 'r' action.
12025 (handle_v_requests): Append ";r" if the target supports range
12027 * target.h (struct thread_resume) <step_range_start,
12028 step_range_end>: New fields.
12029 (struct target_ops) <supports_range_stepping>:
12031 (target_supports_range_stepping): New macro.
12033 2013-05-17 Joel Brobecker <brobecker@adacore.com>
12035 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
12036 confusion in comment.
12038 2013-05-17 Joel Brobecker <brobecker@adacore.com>
12040 * lynx-low.c (struct process_info_private): New type.
12041 (lynx_add_process): New function.
12042 (lynx_create_inferior, lynx_attach): Replace calls to
12043 add_process by calls to lynx_add_process.
12044 (lynx_resume): If PTID is null, then try using
12045 current_process()->private->last_wait_event_ptid.
12047 (lynx_clear_inferiors): Delete. The contents of that function
12048 has been inlined in lynx_mourn;
12049 (lynx_wait_1): Save the ptid in the process's private data.
12050 (lynx_mourn): Free the process' private data. Replace call
12051 to lynx_clear_inferiors by call to clear_inferiors.
12053 2013-05-17 Yao Qi <yao@codesourcery.com>
12055 * i386-low.c (i386_length_and_rw_bits): Move the comment to
12058 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
12060 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
12061 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
12062 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
12063 PT_TEXT_END_ADDR guards. Update comments.
12064 (linux_target_op) <read_offsets>: Conditionally define to
12065 linux_read_offsets if the target is UCLIBC and if it defines
12066 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
12068 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
12069 Andrew Jenner <andrew@codesourcery.com>
12071 * Makefile.in (SFILES): Add linux-nios2-low.c.
12072 (clean): Add action to delete nios2-linux.c.
12073 (nios2-linux.c): New rule.
12074 * configure.srv: Add nios2*-*-linux*.
12075 * linux-nios2-low.c: New.
12077 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
12079 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
12081 2013-04-25 Hui Zhu <hui@codesourcery.com>
12084 * ax.c (ax_printf): Add fflush.
12086 2013-04-22 Tom Tromey <tromey@redhat.com>
12088 * Makefile.in (SFILES): Add filestuff.c.
12089 (OBS): Add filestuff.o.
12090 (filestuff.o): New target.
12091 * config.in, configure: Rebuild.
12092 * configure.ac: Check for fdwalk, pipe2.
12094 2013-04-17 Pedro Alves <palves@redhat.com>
12096 * configure.ac (USE_THREAD_DB): Delete variable.
12097 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
12098 Don't AC_SUBST USE_THREAD_DB.
12099 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
12100 * config.in, configure: Regenerate.
12102 2013-04-16 Pedro Alves <palves@redhat.com>
12104 * linux-low.h (struct lwp_info) <thread_known>: Move under
12105 the USE_THREAD_DB #ifdef.
12107 2013-04-16 Pedro Alves <palves@redhat.com>
12109 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
12110 (linux-low.o): Delete rule.
12111 * linux-low.h: Always include "gdb_thread_db.h" instead of
12112 conditionally including thread_db.h.
12113 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
12116 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
12118 * Makefile.in (install-only): Fix make install regression.
12120 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
12122 Convert man pages to texinfo, new gdbinit.5 texinfo page.
12123 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
12125 * gdbserver.1: Remove.
12127 2013-03-22 Pedro Alves <palves@redhat.com>
12129 * linux-low.c (handle_extended_wait): Don't call
12130 linux_enable_event_reporting.
12132 2013-03-15 Tony Theodore <tonyt@logyst.com>
12135 * Makefile.in (SHELL): Use @SHELL@.
12137 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
12139 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
12142 2013-03-13 Joel Brobecker <brobecker@adacore.com>
12144 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
12145 Remove extraneous NULL element.
12147 2013-03-13 Yao Qi <yao@codesourcery.com>
12149 * tracepoint.c (traceframe_read_tsv): Look for the last matched
12150 'V' block in trace frame.
12152 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12154 * target.h (struct target_ops): Add btrace ops.
12155 (target_supports_btrace): New macro.
12156 (target_enable_btrace): New macro.
12157 (target_disable_btrace): New macro.
12158 (target_read_btrace): New macro.
12159 * gdbthread.h (struct thread_info): Add btrace field.
12160 * server.c: Include btrace-common.h.
12161 (handle_btrace_general_set): New function.
12162 (handle_btrace_enable): New function.
12163 (handle_btrace_disable): New function.
12164 (handle_general_set): Call handle_btrace_general_set.
12165 (handle_qxfer_btrace): New function.
12166 (struct qxfer qxfer_packets[]): Add btrace entry.
12167 * inferiors.c (remove_thread): Disable btrace.
12168 * linux-low: Include linux-btrace.h.
12169 (linux_low_enable_btrace): New function.
12170 (linux_low_read_btrace): New function.
12171 (linux_target_ops): Add btrace ops.
12172 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
12173 Add srv_linux_btrace=yes.
12174 (x86_64-*-linux*): Add linux-btrace.o.
12175 Add srv_linux_btrace=yes.
12176 * configure.ac: Define HAVE_LINUX_BTRACE.
12177 * config.in: Regenerated.
12178 * configure: Regenerated.
12180 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12182 * server.c (handle_qxfer): Preserve error message if -3 is
12184 (qxfer): Document the -3 return value.
12186 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12188 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
12189 (linux_btrace_h): New variable.
12190 (linux-btrace.o): New rule.
12192 2013-03-08 Stan Shebs <stan@codesourcery.com>
12193 Hafiz Abid Qadeer <abidh@codesourcery.com>
12195 * tracepoint.c (trace_buffer_size): New global.
12196 (DEFAULT_TRACE_BUFFER_SIZE): New define.
12197 (init_trace_buffer): Change to one-argument function. Allocate
12198 trace buffer memory.
12199 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
12200 handle QTBuffer:size packet.
12201 (cmd_bigqtbuffer_size): New function.
12202 (initialize_tracepoint): Call init_trace_buffer with
12203 DEFAULT_TRACE_BUFFER_SIZE.
12204 * server.c (handle_query): Add QTBuffer:size in the
12207 2013-03-07 Yao Qi <yao@codesourcery.com>
12209 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
12210 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
12212 (cmd_qtsp): Adjust condition. Do post increment.
12213 Set cur_action and cur_step_action back to 0.
12215 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
12218 * linux-low.c (linux_write_memory): Return early success if LEN is
12221 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
12223 * configure.srv: Add x86_64-*-cygwin* as target.
12225 2013-02-28 Tom Tromey <tromey@redhat.com>
12227 * configure.ac: Invoke AC_SYS_LARGEFILE.
12228 * configure, config.in: Rebuild.
12230 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
12232 * win32-low.c: Throughout, fix format strings and casts of
12233 printf-like functions to avoid type related warnings on all
12235 (get_child_debug_event): Print dwDebugEventCode as hex since
12236 that's how it's usually documented.
12238 2013-02-28 Yao Qi <yao@codesourcery.com>
12240 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
12243 2013-02-27 Jiong Wang <jiwang@tilera.com>
12245 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
12246 (reg-tilegx32.c): New rule.
12247 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
12248 * linux-tile-low.c (tile_arch_setup): New function. Invoke
12249 different register info initializer according to elf class.
12250 (init_registers_tilgx32): New function. The tilegx32 register info
12252 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
12253 (tile_store_gregset): Likewise.
12255 2013-02-27 Yao Qi <yao@codesourcery.com>
12257 * server.c (process_point_options): Print debug message when
12258 debug_threads is true.
12260 2013-02-26 Yao Qi <yao@codesourcery.com>
12262 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
12264 2013-02-19 Pedro Alves <palves@redhat.com>
12265 Kai Tietz <ktietz@redhat.com>
12269 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
12270 instead of strtoul to extract address from packet.
12271 (process_serial_event) <'z'>: Likewise.
12273 2013-02-18 Yao Qi <yao@codesourcery.com>
12275 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
12277 2013-02-14 Pedro Alves <palves@redhat.com>
12281 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
12282 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
12284 2013-02-14 Pedro Alves <palves@redhat.com>
12286 * tracepoint.c (cmd_qtdpsrc): Use savestring.
12288 2013-02-14 Pedro Alves <palves@redhat.com>
12290 * tracepoint.c (save_string): Delete.
12291 (add_tracepoint_action): Use savestring instead of save_string.
12293 2013-02-12 Pedro Alves <palves@redhat.com>
12295 * linux-xtensa-low.c: Ditto.
12296 * xtensa-xtregs.c: Ditto.
12298 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12300 * thread-db.c (thread_db_get_tls_address): NULL pointer check
12303 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12305 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
12306 aarch64_num_wp_regs and aarch64_num_bp_regs to
12307 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
12309 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12311 * linux-aarch64-low.c (ps_get_thread_area): Replace
12312 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
12314 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12315 Marcus Shawcroft <marcus.shawcroft@arm.com>
12316 Nigel Stephens <nigel.stephens@arm.com>
12317 Yufeng Zhang <yufeng.zhang@arm.com>
12319 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
12320 (aarch64.c, aarch64-without-fpu.c): New targets.
12321 * configure.srv (aarch64*-*-linux*): New.
12322 * linux-aarch64-low.c: New file.
12324 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
12326 * linux-low.c (handle_extended_wait, linux_create_inferior)
12327 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
12328 (dequeue_one_deferred_signal, linux_resume_one_thread)
12329 (fetch_register, linux_write_memory, linux_enable_event_reporting)
12330 (linux_tracefork_grandchild, linux_test_for_tracefork)
12331 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
12332 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
12333 where the argument is 0.
12335 2013-01-25 Yao Qi <yao@codesourcery.com>
12337 * event-loop.c: Include "queue.h".
12338 (gdb_event_p): New typedef.
12339 (struct gdb_event) <next_event>: Remove.
12340 (event_queue): Change to QUEUE(gdb_event_p).
12341 (async_queue_event): Remove.
12342 (gdb_event_xfree): New.
12343 (initialize_event_loop): New.
12344 (process_event): Use API from QUEUE.
12345 (wait_for_event): Likewise.
12346 * server.c (main): Call initialize_event_loop.
12347 * server.h (initialize_event_loop): Declare.
12349 2013-01-18 Yao Qi <yao@codesourcery.com>
12351 * ax.h (struct eval_agent_expr_context): New.
12352 (gdb_eval_agent_expr): Update declaration.
12353 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
12354 TFRAME. Add new argument CTX.
12355 * server.h (struct eval_agent_expr_context): Declare.
12356 (agent_mem_read, agent_tsv_read): Update declaration.
12357 (agent_mem_read_string): Likewise.
12358 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
12359 (add_traceframe_block): Add new argument TPOINT.
12360 Increase TPOINT->traceframe_usage.
12361 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
12362 eval_tracepoint_agent_expr.
12363 (condition_true_at_tracepoint): Likewise.
12364 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
12365 (agent_mem_read_string, agent_tsv_read): Likewise.
12367 2013-01-16 Yao Qi <yao@codesourcery.com>
12369 * linux-low.c (linux_resume_one_lwp): Don't check
12370 'lwp->bp_reinsert != 0'.
12372 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12373 Pedro Alves <palves@redhat.com>
12375 * lynx-low.c (ptrace_request_to_str): Define a temporary
12376 macro and use it to simplify this function's implementation.
12378 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12380 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
12383 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12385 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
12387 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12389 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
12391 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12393 * lynx-low.c (lynx_resume): Use the resume_info parameter
12394 to determine the ptid for the lynx_ptrace call, unless
12395 it is equal to minus_one_ptid, in which case we use the
12396 ptid of the current_inferior.
12397 (lynx_wait_1): After having received a thread create/exit
12398 event, resume the inferior's execution using the signaling
12399 thread's ptid, rather than the old ptid.
12401 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12403 * lynx-low.c (lynx_resume): Delete variable ret.
12405 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12407 * gdbreplay.c (gdbreplay_version): Update copyright year.
12408 * server.c (gdbserver_version): Likewise.
12410 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12412 * lynx-low.c (lynx_wait_1): Add debug trace before adding
12415 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12417 * lynx-low.c (ptrace_request_to_str): Add handling for
12418 PTRACE_GETTRACESIG.
12420 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12422 * lynx-low.c (lynx_attach): Delete variable new_process.
12424 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12426 * lynx-low.c (lynx_create_inferior): Delete variable
12429 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12431 * lynx-low.c (ptrace_request_to_str): Do not handle
12432 PTRACE_GETTHREADLIST if this macro does not exist.
12434 2012-12-15 Yao Qi <yao@codesourcery.com>
12436 * Makefile.in (OBS): Add notif.o.
12437 * notif.c, notif.h: New.
12438 * server.c: Include "notif.h".
12439 (struct vstop_notif) <next>: Remove.
12441 (queue_stop_reply): Update.
12442 (push_event, send_next_stop_reply): Remove.
12443 (discard_queued_stop_replies): Update.
12444 (notif_stop): New variable.
12445 (handle_v_stopped): Remove.
12446 (handle_v_requests): Don't call handle_v_stopped. Call
12447 handle_ack_notif instead.
12448 (queue_stop_reply_callback): Call notif_event_enque instead
12449 of queue_stop_reply.
12450 (handle_status): Don't call send_next_stop_reply, call
12451 notif_write_event instead.
12452 (kill_inferior_callback): Likewise.
12453 (detach_or_kill_inferior_callback): Likewise.
12454 (main): Call initialize_notif.
12455 (process_serial_event): Call QUEUE_is_empty.
12456 (handle_target_event): Call notif_push instead of push event.
12457 * server.h (push_event): Remove declaration.
12459 2012-12-10 Tom Tromey <tromey@redhat.com>
12461 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
12462 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
12465 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
12466 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
12467 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
12468 (amd64-linux-ipa.o, ax.o): Rewrite.
12469 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
12470 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
12471 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
12472 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
12473 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
12474 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
12475 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
12476 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
12477 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
12478 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
12479 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
12480 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
12481 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
12482 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
12483 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
12484 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
12485 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
12486 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
12487 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
12488 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
12489 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
12490 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
12491 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
12492 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
12493 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
12494 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
12495 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
12496 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
12497 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
12498 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
12499 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
12500 (reg-tilegx.o): Remove.
12501 (all_object_files): New macro.
12502 Include .deps files.
12503 * aclocal.m4, configure: Rebuild.
12504 * acinclude.m4: Include depstand.m4, lead-dot.m4.
12505 * configure.ac: Invoke ZW_CREATE_DEPDIR,
12506 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
12508 2012-12-05 Tom Tromey <tromey@redhat.com>
12511 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
12513 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
12515 * configure.ac: Check for linux/perf_event.h.
12516 * config.in: Regenerated.
12517 * configure: Regenerated.
12519 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
12521 * hostio.c (handle_readlink): Decrease buffer size
12522 parameter passed to readlink by one byte.
12524 2012-11-26 Yao Qi <yao@codesourcery.com>
12526 * configure.ac (build_warnings): Append '-Wempty-body'.
12527 * configure: Regenerated.
12528 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
12531 2012-11-15 Pierre Muller <muller@sourceware.org>
12533 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
12534 * config.in: Regenerate.
12535 * configure: Regenerate.
12536 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
12537 Use "gdb_wait.h" header instead of <sys/wait.h> header.
12538 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
12539 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
12541 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
12542 instead of <sys/wait.h> header.
12543 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
12545 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
12547 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
12548 (various make rules): Remove -DGDBSERVER
12550 2012-11-09 Yao Qi <yao@codesourcery.com>
12552 * spu-low.c (current_ptid): Move it to ..
12553 * gdbthread.h: ... here. New.
12554 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
12555 * server.c (myresume, process_serial_event): Likewise.
12556 * thread-db.c (thread_db_find_new_threads): Likewise.
12557 * tracepoint.c (run_inferior_command): Likewise.
12559 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
12561 * server.c (handle_search_memory_1): Include access length in
12564 2012-09-05 Michael Brandt <michael.brandt@axis.com>
12566 * linux-crisv32-low.c: Fix compile errors.
12568 2012-09-04 Yao Qi <yao@codesourcery.com>
12570 * tracepoint.c (cmd_qtsv): Adjust debug message.
12571 Don't check CUR_TPOINT.
12573 2012-08-28 Yao Qi <yao@codesourcery.com>
12575 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
12576 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
12577 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
12578 Remove declarations of xmalloc, xreallloc, xstrdup and
12580 * Makefile.in (libiberty_h): New.
12581 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
12582 (linux-bfin-low.o): Append dependency 'libiberty.h'.
12584 2012-08-23 Yao Qi <yao@codesourcery.com>
12586 * server.h: Remove declaration of 'xsnprintf'.
12588 2012-08-22 Keith Seitz <keiths@redhat.com>
12590 * server.h: Include build-gnulib-gbserver/config.h.
12591 * gdbreplay.c: Likewise.
12593 2012-08-08 Doug Evans <dje@google.com>
12595 * Makefile.in (SFILES): Add gdb_vecs.c.
12596 (OBS): Add gdb_vecs.o.
12597 (gdb_vecs_h, host_defs_h): New variables.
12598 (thread-db.o): Add $(gdb_vecs_h) dependency.
12599 (gdb_vecs.o): New rule.
12600 * thread-db.c: #include "gdb_vecs.h".
12601 (thread_db_load_search): Use a vector to iterate over path elements.
12602 Handle text appearing after "$pdir".
12604 * configure.ac: Add check for strstr.
12605 * config.in: Regenerate.
12606 * configure: Regenerate.
12608 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
12610 * hostio.c (handle_pread): If pread fails, fall back to attempting
12612 (handle_pwrite): Likewise for pwrite.
12614 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
12616 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
12617 between unsupported TYPE and unimplementable ADDR/LEN combination.
12618 (arm_insert_point): Act on new return value.
12620 2012-07-31 Pedro Alves <palves@redhat.com>
12622 * server.c (process_point_options): Only skip tokens if we find
12623 one that is unrecognized. Don't treat 'X' specially while
12624 skipping unrecognized tokens.
12626 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
12628 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
12629 to 4-byte-align HW breakpoint addresses for Thumb.
12631 2012-07-27 Yao Qi <yao@codesourcery.com>
12635 * server.h: Declare gdb_agent_about_to_close.
12636 * target.c (kill_inferior): Include "agent.h".
12637 New. Send command 'kill'.
12638 * target.h (kill_inferior): Removed macro.
12639 * tracepoint.c (gdb_agent_about_to_close): New.
12640 (gdb_agent_helper_thread): Handle command 'close'.
12641 Wait endlessly until the inferior stops.
12642 Install gdb_agent_remove_socket to atexit hook.
12643 (agent_socket_name): New static variable.
12644 (gdb_agent_socket_init): Replace local variable 'name' with
12645 'agent_socket_name'.
12646 (gdb_agent_remove_socket): New.
12648 2012-07-27 Yao Qi <yao@codesourcery.com>
12650 * server.c (process_point_options): Stop at 'X' when parsing.
12652 2012-07-19 Michael Eager <eager@eagercon.com>
12654 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
12656 * linux-x86-low.c (x86_insert_point, x86_remove_point):
12657 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
12658 hardware breakpoint.
12660 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
12662 * gdbserver/linux-low.c (initialize_low): Call
12663 linux_ptrace_init_warnings.
12665 2012-07-02 Doug Evans <dje@google.com>
12667 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
12670 2012-07-02 Stan Shebs <stan@codesourcery.com>
12672 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
12673 (ax.o): Add it to build rule.
12675 (OBS): Add format.o.
12676 (IPA_OBS): Add format.o.
12677 * server.c (handle_query): Claim support for breakpoint commands.
12678 (process_point_options): Add command case.
12679 (process_serial_event): Leave running if there are printfs in
12681 * mem-break.h (any_persistent_commands): Declare.
12682 (add_breakpoint_commands): Declare.
12683 (gdb_no_commands_at_breakpoint): Declare.
12684 (run_breakpoint_commands): Declare.
12685 * mem-break.c (struct point_command_list): New struct.
12686 (struct breakpoint): New field command_list.
12687 (any_persistent_commands): New function.
12688 (add_commands_to_breakpoint): New function.
12689 (add_breakpoint_commands): New function.
12690 (gdb_no_commands_at_breakpoint): New function.
12691 (run_breakpoint_commands): New function.
12692 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
12694 * ax.c: Include format.h.
12695 (ax_printf): New function.
12696 (gdb_eval_agent_expr): Add printf opcode.
12698 2012-06-13 Yao Qi <yao@codesourcery.com>
12700 * server.c (start_inferior): Remove duplicated writes to fields
12701 'last_resume_kind' and 'last_status' of 'current_inferior'.
12703 2012-06-12 Yao Qi <yao@codesourcery.com>
12704 Pedro Alves <palves@redhat.com>
12706 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
12708 * server.c (handle_v_cont): Extend comment.
12710 2012-06-11 Yao Qi <yao@codesourcery.com>
12712 * linux-low.c (linux_attach): Add 'static'.
12714 2012-06-06 Yao Qi <yao@codesourcery.com>
12716 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
12718 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12720 Fix gcc -flto compilation warning.
12721 * server.c (main): Make variable multi_mode and attach volatile.
12723 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12725 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
12726 if the platform doesn't know about it.
12728 2012-05-30 Jeff Kenton <jkenton@tilera.com>
12730 * Makefile.in (SFILES): Add linux-tile-low.c.
12731 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
12732 * configure.srv: Handle tilegx-*-linux*.
12733 * linux-tile-low.c: New file.
12735 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12737 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
12739 2012-05-24 Pedro Alves <palves@redhat.com>
12743 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
12745 2012-05-24 Pedro Alves <palves@redhat.com>
12749 Replace target_signal with gdb_signal throughout.
12751 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
12753 * linux-low.c (linux_store_registers): Avoid the copying sequence
12754 when no data has been retrieved by ptrace.
12756 2012-05-22 Will Deacon <will.deacon@arm.com>
12758 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
12759 Include asm/ptrace.h.
12760 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
12763 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
12765 * linux-low.c (linux_store_registers): Don't re-retrieve data
12766 with ptrace that has already been obtained from /proc. Always
12767 copy any data retrieved with ptrace to the buffer supplied.
12769 2012-05-11 Yao Qi <yao@codesourcery.com>
12770 Pedro Alves <palves@redhat.com>
12772 * linux-low.c (enum stopping_threads_kind): New.
12773 (stopping_threads): Change type to `enum stopping_threads_kind'.
12774 (handle_extended_wait): If stopping and suspending threads, leave
12775 the new_lwp suspended too.
12776 (linux_wait_for_event): Adjust.
12777 (stop_all_lwps): Set `stopping_threads' to
12778 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
12779 whether we're suspending threads or just stopping them. Assert no
12782 2012-04-29 Yao Qi <yao@codesourcery.com>
12784 * server.h: Move some code to ...
12785 * gdbthread.h: ... here. New.
12786 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
12787 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
12788 (nto-low.o, win32-low.o): Likewise.
12789 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
12790 * regcache.c, remote-utils.c, server.c: Likewise.
12791 * target.c, tracepoint.c, win32-low.c: Likewise.
12793 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12795 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
12796 (PTRACE_ARG4_TYPE): Likewise.
12797 (PTRACE_XFER_TYPE): Likewise.
12798 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
12799 ptrace to PTRACE_ARG3_TYPE.
12800 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
12801 (PTRACE_ARG4_TYPE): Likewise.
12802 (PTRACE_XFER_TYPE): Likewise.
12803 (linux_detach_one_lwp): Cast fourth argument of
12804 ptrace to long then PTRACE_ARG4_TYPE.
12805 (regsets_fetch_inferior_registers): Cast third argument of
12806 ptrace to long then PTRACE_ARG3_TYPE.
12807 (regsets_store_inferior_registers): Likewise.
12809 2012-04-20 Pedro Alves <palves@redhat.com>
12811 * configure: Regenerate.
12813 2012-04-19 Pedro Alves <palves@redhat.com>
12815 * Makefile.in (GNULIB_BUILDDIR): New.
12816 (LIBGNU, INCGNU, GNULIB_H): Adjust.
12817 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
12818 (all, install-only, uninstall, clean-info, all-lib, clean): No
12819 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
12820 (maintainer-clean realclean distclean): Use subdir_do.
12822 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
12823 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
12824 * acinclude.m4: Include acx_configure_dir.m4.
12825 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
12826 calls. Call AC_PROG_RANLIB. Configure gnulib using
12829 (GNULIB_STDINT_H): Adjust.
12830 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
12831 * gdbreplay.c: Include build-gnulib/config.h.
12832 * server.h: Likewise.
12833 * aclocal.m4: Regenerate.
12834 * config.in: Regenerate.
12835 * configure: Regenerate.
12837 2012-04-19 Pedro Alves <palves@redhat.com>
12839 * Makefile.in (LIBGNU, INCGNU): Adjust.
12840 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
12841 (all, install-only, uninstall, clean-info, all-lib, clean)
12842 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
12843 * configure.ac: Adjust AC_OUTPUT output.
12844 * aclocal.m4: Regenerate.
12845 * configure: Regenerate.
12847 2012-04-19 Pedro Alves <palves@redhat.com>
12849 * Makefile.in (generated_files): New.
12850 (server_h): Remove the explicit dependency on config.h, and depend
12851 on $generated_files.
12853 2012-04-19 Pedro Alves <palves@redhat.com>
12855 * Makefile.in (INCGNU): Add -Ignulib.
12857 2012-04-19 Pedro Alves <palves@redhat.com>
12859 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
12860 (INCGNU): ... this, and spell out -I here.
12861 (GNULIB_LIB): Rename to ...
12862 (LIBGNU): ... this.
12863 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
12865 2012-04-19 Pedro Alves <palves@redhat.com>
12867 * config.in: Regenerate.
12869 2012-04-19 Pedro Alves <palves@redhat.com>
12871 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
12872 * server.h (memmem): Remove declaration.
12873 * config.in: Regenerate.
12874 * configure: Regenerate.
12876 2012-04-19 Yao Qi <yao@codesourcery.com>
12878 * Makefile.in (SFILES): Add common/vec.c.
12882 2012-04-19 Yao Qi <yao@codesourcery.com>
12884 * remote-utils.c (prepare_resume_reply): Replace with macro
12885 target_core_of_thread.
12886 * server.c (handle_qxfer_threads_proper): Likewise.
12887 * target.h (traget_core_of_thread): New macro.
12889 2012-04-18 Pedro Alves <palves@redhat.com>
12891 * aclocal.m4: Regenerate.
12892 * configure: Regenerate.
12894 2012-04-16 Yao Qi <yao@codesourcery.com>
12896 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
12897 duplicated on address.
12899 2012-04-16 Yao Qi <yao@codesourcery.com>
12901 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
12902 (struct tracepoint_action_ops) <send>: New field.
12903 (m_tracepoint_action_send, r_tracepoint_action_send): New.
12904 (agent_expr_send, x_tracepoint_action_send): New.
12905 (l_tracepoint_action_send): New.
12906 (cmd_qtdp): Download and install tracepoint
12907 according to `use_agent'.
12908 (run_inferior_command): Add one more parameter `len'.
12910 (tracepoint_send_agent): New.
12911 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
12913 2012-04-16 Yao Qi <yao@codesourcery.com>
12915 * tracepoint.c (download_tracepoints): Moved to ...
12916 (cmd_qtstart): ... here.
12918 2012-04-14 Yao Qi <yao@codesourcery.com>
12920 * tracepoint.c: Include inttypes.h.
12921 (struct collect_memory_action): Use sized types.
12922 (struct tracepoint): Likewise.
12923 (cmd_qtdp, stop_tracing): Update print specifiers.
12924 (cmd_qtp, response_tracepoint): Likewise.
12925 (collect_data_at_tracepoint): Likewise.
12926 (collect_data_at_step): Likewise.
12928 2012-04-14 Yao Qi <yao@codesourcery.com>
12930 Import gnulib module inttypes.
12931 * aclocal.m4, config.in, configure: Regenerated.
12933 2012-04-14 Yao Qi <yao@codesourcery.com>
12935 * Makefile.in (maintainer-clean, realclean, distclean): Remove
12936 Makefile and config.status at last.
12938 2012-04-13 Yao Qi <yao@codesourcery.com>
12940 * tracepoint.c: Include stdint.h unconditionally.
12942 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12944 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
12945 on BFD_HAVE_SYS_PROCFS_TYPE.
12946 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
12947 * configure: Regenerate.
12948 * config.in: Likewise.
12950 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
12952 * Makefile.in (clean): Also remove x32.c x32-linux.c
12953 x32-avx.c x32-avx-linux.c.
12954 (x32.o): New target.
12956 (x32-linux.o): Likewise.
12957 (x32-linux.c): Likewise.
12958 (x32-avx.o): Likewise.
12959 (x32-avx.c): Likewise.
12960 (x32-avx-linux.o): Likewise.
12961 (x32-avx-linux.c): Likewise.
12963 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
12964 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
12965 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
12966 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
12967 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
12968 i386/x32-avx-linux.xml.
12970 * linux-x86-low.c (init_registers_x32_linux): New prototype.
12971 (init_registers_x32_avx_linux): Likwise.
12972 (x86_linux_update_xmltarget): Call init_registers_x32_linux
12973 or init_registers_x32_avx_linux if linux_is_elf64 is false.
12975 2012-04-13 Pedro Alves <palves@redhat.com>
12977 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
12978 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
12979 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
12980 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
12983 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
12985 * linux-x86-low.c (compat_x32_clock_t): New.
12986 (compat_x32_siginfo_t): Likewise.
12987 (compat_x32_siginfo_from_siginfo): Likewise.
12988 (siginfo_from_compat_x32_siginfo): Likewise.
12989 (linux_is_elf64): Likewise.
12990 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
12991 and siginfo_from_compat_x32_siginfo for x32.
12992 (x86_arch_setup): Set linux_is_elf64.
12994 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
12997 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
12999 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
13000 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
13001 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
13002 compatible with process.
13004 2012-04-12 Yao Qi <yao@codesourcery.com>
13006 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
13007 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
13008 (install-only, install-info, clean): Handle sub dir gnulib.
13009 (all-lib, am--refresh): New targets.
13010 (memmem.o): Remove target.
13011 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
13012 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
13013 (AC_REPLACE_FUNCS): Remove memmem.
13014 Invoke gl_INIT and AM_INIT_AUTOMAKE.
13015 (AC_OUTPUT): Generate Makefile in gnulib/.
13016 * aclocal.m4, config.in, configure: Regenerated.
13018 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
13020 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
13022 2012-04-05 Pedro Alves <palves@redhat.com>
13024 -Werror=strict-aliasing
13026 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
13029 2012-04-04 Pedro Alves <palves@redhat.com>
13031 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
13032 (sparc_store_gregset_from_stack, sparc_store_gregset)
13033 (sparc_breakpoint_at): Fix formatting.
13035 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
13037 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
13039 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
13040 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
13041 * config.in: Regenerate.
13042 * configure: Likewise.
13044 2012-03-29 Pedro Alves <palves@redhat.com>
13046 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
13047 Correct ptrace arguments.
13049 2012-03-28 Pedro Alves <palves@redhat.com>
13051 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
13052 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
13053 (IA64_FR1_REGNUM): New defines.
13054 (ia64_fetch_register): New.
13055 (the_low_target): Install it.
13056 * linux-low.h (struct linux_target_ops) <fetch_register>: New
13058 * linux-low.c (linux_fetch_registers): Try the
13059 the_low_target.fetch_register hook first.
13061 * linux-arm-low.c (the_low_target): Adjust.
13062 * linux-bfin-low.c (the_low_target): Adjust.
13063 * linux-cris-low.c (the_low_target): Adjust.
13064 * linux-crisv32-low.c (the_low_target): Adjust.
13065 * linux-m32r-low.c (the_low_target): Adjust.
13066 * linux-m68k-low.c (the_low_target): Adjust.
13067 * linux-mips-low.c (the_low_target): Adjust.
13068 * linux-ppc-low.c (the_low_target): Adjust.
13069 * linux-s390-low.c (the_low_target): Adjust.
13070 * linux-sh-low.c (the_low_target): Adjust.
13071 * linux-sparc-low.c (the_low_target): Adjust.
13072 * linux-tic6x-low.c (the_low_target): Adjust.
13073 * linux-x86-low.c (the_low_target): Adjust.
13074 * linux-xtensa-low.c (the_low_target): Adjust.
13076 2012-03-26 Pedro Alves <palves@redhat.com>
13078 * server.c (handle_qxfer_libraries): Don't bail early if
13079 the_target->qxfer_libraries_svr4 is not NULL.
13081 2012-03-26 Pedro Alves <palves@redhat.com>
13083 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
13085 2012-03-23 Pedro Alves <palves@redhat.com>
13087 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
13088 "library-list-svr4" element's start tag when the the DSO list is
13091 2012-03-23 Pedro Alves <palves@redhat.com>
13093 * linux-low.c (read_one_ptr): Read the inferior's pointer through
13094 a variable whose type size is the same as the inferior's pointer
13097 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
13099 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
13101 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
13102 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
13103 * linux-low.h: Include <signal.h>.
13104 (struct siginfo): Remove forward declaration.
13105 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
13108 2012-03-21 Mike Frysinger <vapier@gentoo.org>
13110 * .gitignore: Ignore more files.
13112 2012-03-19 Pedro Alves <palves@redhat.com>
13113 Jan Kratochvil <jan.kratochvil@redhat.com>
13115 * server.c (cont_thread, general_thread): Add describing comments.
13116 (start_inferior): Clear `cont_thread'.
13117 (handle_v_cont): Don't set `cont_thread' if resuming all threads
13120 2012-03-15 Yao Qi <yao@codesourcery.com>
13122 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
13124 (cmd_qtdp): ... here.
13126 2012-03-15 Yao Qi <yao@codesourcery.com>
13128 * tracepoint.c (struct tracepoint_action_ops): New.
13129 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
13130 (m_tracepoint_action_download): New.
13131 (r_tracepoint_action_download): New.
13132 (x_tracepoint_action_download): New.
13133 (l_tracepoint_action_download): New.
13134 (add_tracepoint_action): Install `action->ops' according type.
13135 (download_tracepoint_1): Move code `download' function pointer
13136 of various tracepoint_action_ops.
13138 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13140 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
13141 linux_ptrace_attach_warnings.
13143 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13145 * Makefile.in (linux-ptrace.o): New.
13146 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
13147 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
13148 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
13149 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
13150 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
13152 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
13154 2012-03-08 Yao Qi <yao@codesourcery.com>
13155 Pedro Alves <palves@redhat.com>
13157 Fix PR server/13392.
13158 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
13159 offset of JMP insn.
13160 * tracepoint.c (remove_tracepoint): New.
13161 (cmd_qtdp): Call remove_tracepoint when failed to install.
13163 2012-03-07 Pedro Alves <palves@redhat.com>
13165 * linux-low.c (get_detach_signal): New.
13166 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
13167 Pass on pending signals to PTRACE_DETACH. Check the result of the
13169 * server.c (program_signals, program_signals_p): New.
13170 (handle_general_set): Handle QProgramSignals.
13171 * server.h (program_signals, program_signals_p): Declare.
13173 2012-03-05 Pedro Alves <palves@redhat.com>
13174 Jan Kratochvil <jan.kratochvil@redhat.com>
13176 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
13179 2012-03-03 Yao Qi <yao@codesourcery.com>
13181 * tracepoint.c (tracepoint_look_up_symbols): Update call to
13182 agent_look_up_symbols.
13184 2012-03-03 Yao Qi <yao@codesourcery.com>
13186 * Makefile.in (linux-low.o): Keep dependence on agent.h.
13187 (linux-x86-low.o): Likewise.
13188 * server.h: Remove in_process_agent_loaded.
13189 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
13193 2012-03-03 Yao Qi <yao@codesourcery.com>
13195 * tracepoint.c (gdb_agent_capability): New global.
13196 (in_process_agent_loaded_ust): Renamed to
13197 `in_process_agent_supports_ust'.
13199 (in_process_agent_supports_ust): Call agent_capability_check.
13200 (clear_installed_tracepoints): Assert that agent supports
13203 2012-03-03 Yao Qi <yao@codesourcery.com>
13205 * linux-low.c (linux_supports_agent): New.
13206 (linux_target_ops): Initialize field `supports_agent' with
13207 linux_supports_agent.
13208 * target.h (struct target_ops) <supports_agent>: New.
13209 (target_supports_agent): New macro.
13210 * server.c (handle_general_set): Handle packet 'QAgent'.
13211 (handle_query): Send `QAgent+'.
13212 * Makefile.in (server.o): Depends on agent.h.
13214 2012-03-03 Yao Qi <yao@codesourcery.com>
13216 * Makefile.in (OBS): Add agent.o.
13217 Add new rule for agent.o.
13218 Track dependence of tracepoint.c on agent.h.
13219 * tracepoint.c (run_inferior_command_1):
13220 (run_inferior_command): Call agent_run_command.
13221 (gdb_ust_connect_sync_socket): Deleted. Move it to
13223 (resume_thread, stop_thread): Likewise.
13224 (gdb_ust_socket_init): Renamed to ...
13225 (gdb_agent_socket_init): ... New.
13226 (gdb_ust_thread): Renamed to ...
13227 (gdb_agent_helper_thread): ... New.
13228 (gdb_ust_init): Move some code to ...
13229 (gdb_agent_init): ... here. New.
13230 [HAVE_UST]: Call gdb_ust_init.
13231 (initialize_tracepoint_ftlib): Call gdb_agent_init.
13232 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
13233 * config.in, configure: Regenerated.
13235 2012-03-02 Pedro Alves <palves@redhat.com>
13237 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
13238 * linux-low.c (struct simple_pid_list): New.
13239 (stopped_pids): New a struct simple_pid_list pointer.
13240 (add_to_pid_list, pull_pid_from_list): New.
13241 (handle_extended_wait): Don't assume the first signal new children
13242 report is SIGSTOP. Adjust call to pull_pid_from_list.
13243 (linux_wait_for_lwp): Adjust.
13245 2012-03-02 Yao Qi <yao@codesourcery.com>
13247 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
13250 2012-03-02 Yao Qi <yao@codesourcery.com>
13252 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
13253 `stop_pc' and `tpoint'. Update caller.
13255 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
13257 * linux-low.h (linux_target_ops): Add regset_bitmap member.
13258 * linux-low.c (use_linux_regsets): New macro.
13259 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
13260 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
13261 (linux_register_in_regsets): New function.
13262 (usr_fetch_inferior_registers): Skip registers covered by
13264 (usr_store_inferior_registers): Likewise.
13265 (usr_fetch_inferior_registers): New macro.
13266 (usr_store_inferior_registers): Likewise.
13267 (linux_fetch_registers): Handle mixed regset/non-regset targets.
13268 (linux_store_registers): Likewise.
13269 * linux-mips-low.c (init_registers_mips_dsp_linux): New
13271 (init_registers_mips64_dsp_linux): Likewise.
13272 (init_registers_mips_linux): New macro.
13273 (init_registers_mips_dsp_linux): Likewise.
13274 (mips_dsp_num_regs): Likewise.
13275 (DSP_BASE, DSP_CONTROL): New fallback macros.
13276 (mips_base_regs): New macro.
13277 (mips_regmap): Use it. Fix the size.
13278 (mips_dsp_regmap): New variable.
13279 (mips_dsp_regset_bitmap): Likewise.
13280 (mips_arch_setup): New function.
13281 (mips_cannot_fetch_register): Use the_low_target.regmap rather
13283 (mips_cannot_store_register): Likewise.
13284 (the_low_target): Update .arch_setup, .num_regs and .regmap
13285 initializers. Add .regset_bitmap initializer.
13286 * linux-arm-low.c (the_low_target): Add .regset_bitmap
13288 * linux-bfin-low.c (the_low_target): Likewise.
13289 * linux-cris-low.c (the_low_target): Likewise.
13290 * linux-crisv32-low.c (the_low_target): Likewise.
13291 * linux-ia64-low.c (the_low_target): Likewise.
13292 * linux-m32r-low.c (the_low_target): Likewise.
13293 * linux-m68k-low.c (the_low_target): Likewise.
13294 * linux-ppc-low.c (the_low_target): Likewise.
13295 * linux-s390-low.c (the_low_target): Likewise.
13296 * linux-sh-low.c (the_low_target): Likewise.
13297 * linux-sparc-low.c (the_low_target): Likewise.
13298 * linux-tic6x-low.c (the_low_target): Likewise.
13299 * linux-x86-low.c (the_low_target): Likewise.
13300 * linux-xtensa-low.c (the_low_target): Likewise.
13301 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
13302 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
13303 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
13305 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
13306 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
13308 2012-02-29 Yao Qi <yao@codesourcery.com>
13309 Pedro Alves <palves@redhat.com>
13311 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
13312 `step_over_finished' is true.
13314 2012-02-27 Pedro Alves <palves@redhat.com>
13316 * linux-low.c (pid_is_stopped): Delete, moved to common/.
13317 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
13319 2012-02-27 Pedro Alves <palves@redhat.com>
13322 * linux-low.c (pid_is_stopped): New.
13323 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
13325 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
13327 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
13330 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
13332 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
13334 2012-02-24 Luis Machado <lgustavo@codesourcery>
13336 * server.c (handle_query): Advertise support for target-side
13337 breakpoint condition evaluation.
13338 (process_point_options): New function.
13339 (process_serial_event): When inserting a breakpoint, check for
13340 a target-side condition that should be evaluated.
13342 * mem-break.c: Include regcache.h and ax.h.
13343 (point_cond_list_t): New data structure.
13344 (breakpoint) <cond_list>: New field.
13345 (find_gdb_breakpoint_at): Make non-static.
13346 (delete_gdb_breakpoint_at): Clear any target-side
13348 (clear_gdb_breakpoint_conditions): New function.
13349 (add_condition_to_breakpoint): Likewise.
13350 (add_breakpoint_condition): Likewise.
13351 (gdb_condition_true_at_breakpoint): Likewise.
13352 (gdb_breakpoint_here): Return result directly instead
13353 of going through a local variable.
13355 * mem-break.h (find_gdb_breakpoint_at): New prototype.
13356 (clear_gdb_breakpoint_conditions): Likewise.
13357 (add_breakpoint_condition): Likewise.
13358 (gdb_condition_true_at_breakpoint): Likewise.
13360 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
13361 (need_step_over_p): Take target-side breakpoint condition into
13364 2012-02-24 Luis Machado <lgustavo@codesourcery>
13366 * server.h: Include tracepoint.h.
13367 (agent_mem_read, agent_get_trace_state_variable_value,
13368 agent_set_trace_state_variable_value,
13369 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
13370 get_set_tsv_func_addr): New prototypes.
13372 * ax.h: New include file.
13373 * ax.c: New source file.
13375 * tracepoint.c: Include ax.h.
13376 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
13377 agent_expr, eval_result_type): Move to ax.h.
13378 (parse_agent_expr): Rename to ...
13379 (gdb_parse_agent_expr): ... this, make it non-static and move
13381 (unparse_agent_expr) Rename to ...
13382 (gdb_unparse_agent_expr): ... this, make it non-static and move
13384 (eval_agent_expr): Rename to ...
13385 (eval_tracepoint_agent_expr): ... this.
13386 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
13387 forward declarations.
13388 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
13389 (agent_get_trace_state_variable_value): New function.
13390 (agent_set_trace_state_variable_value): New function.
13391 (cmd_qtdp): Call gdb_parse_agent_expr (...).
13392 (response_tracepoint): Call gdb_unparse_agent_expr (...).
13393 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
13394 (condition_true_at_tracepoint): Likewise.
13395 (parse_agent_expr): Rename to ...
13396 (gdb_parse_agent_expr): ... this and move to ax.c.
13397 (unparse_agent_expr): Rename to ...
13398 (gdb_unparse_agent_expr): ... this and move to ax.c.
13399 (gdb_agent_op_name): Move to ax.c.
13400 (eval_agent_expr): Rename to ...
13401 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
13403 (eval_tracepoint_agent_expr): New function.
13404 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
13406 (current_insn_ptr, emit_error, struct bytecode_address): Move to
13408 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
13409 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
13410 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
13411 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
13412 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
13413 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
13414 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
13415 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
13416 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
13417 (compile_bytecodes): Remove forward declaration.
13418 (is_goto_target): Move to ax.c.
13419 (compile_bytecodes): Move to ax.c and call
13420 agent_get_trace_state_variable_value (...) and
13421 agent_set_trace_state_variable_value (...).
13423 * Makefile.in: Update ax.c and IPA dependencies.
13425 2012-02-24 Pedro Alves <palves@redhat.com>
13427 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
13428 (cmd_bigqtbuffer_circular): ... this. Only handle
13429 'QTBuffer:circular:'.
13430 (handle_tracepoint_general_set): Adjust.
13432 2012-02-16 Yao Qi <yao@codesourcery.com>
13434 * inferiors.c: Move code to ...
13435 * dll.c: .... here. New.
13436 * server.h: Declare clear_dlls.
13437 * Makefile.in (SFILES): Add dll.c.
13441 2012-02-11 Yao Qi <yao@codesourcery.com>
13443 * server.c: (handle_monitor_command): Add a new parameter
13445 (handle_query): Update caller.
13447 2012-02-09 Joel Brobecker <brobecker@adacore.com>
13449 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
13450 * configure, config.in: Regenerate.
13451 * hostio.c: Provide an alternate implementation if HAVE_READLINK
13454 2012-02-02 Pedro Alves <palves@redhat.com>
13456 Try SIGKILL first, then PTRACE_KILL.
13457 * linux-low.c (linux_kill_one_lwp): New.
13458 (linux_kill_one_lwp): Rename to ...
13459 (kill_one_lwp_callback): ... this. Use the new
13460 linux_kill_one_lwp.
13462 2012-02-02 Pedro Alves <palves@redhat.com>
13464 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
13467 2012-01-27 Pedro Alves <palves@redhat.com>
13469 * linux-low.c (linux_child_pid_to_exec_file): Delete.
13470 (elf_64_file_p): Make static.
13471 (linux_pid_exe_is_elf_64_file): New.
13472 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
13473 Delete declarations.
13474 (linux_pid_exe_is_elf_64_file): Declare.
13475 * linux-x86-low.c (x86_arch_setup): Use
13476 linux_pid_exe_is_elf_64_file.
13478 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
13480 * linux-low.c (linux_wait_for_event_1): Rename to ...
13481 (linux_wait_for_event): ... here and merge it with former
13482 linux_wait_for_event - new variable wait_ptid, use it.
13483 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
13485 2012-01-23 Pedro Alves <palves@redhat.com>
13487 * server.c (main): Avoid yet another case of infinite loop while
13488 detaching/killing after a longjmp.
13490 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13493 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
13495 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
13497 * hostio.c (handle_readlink): New function.
13498 (handle_vFile): Call it to handle "vFile:readlink" packets.
13500 2012-01-20 Pedro Alves <palves@redhat.com>
13501 Ulrich Weigand <ulrich.weigand@linaro.org>
13503 * server.c (handle_v_requests): Only support vAttach and vRun to
13504 start multiple processes when in extended protocol mode.
13506 2012-01-17 Pedro Alves <palves@redhat.com>
13508 * tracepoint.c (initialize_tracepoint): Use mmap instead of
13509 memalign plus mprotect to allocate the scratch buffer.
13511 2012-01-13 Pedro Alves <palves@redhat.com>
13513 * server.c (attach_inferior): Clear `cont_thread'.
13515 2012-01-13 Pedro Alves <palves@redhat.com>
13517 * server.c (main): Avoid infinite loop while detaching/killing
13520 2012-01-09 Doug Evans <dje@google.com>
13522 * server.c (start_inferior): Set last_ptid in --wrapper case.
13524 2012-01-06 Yao Qi <yao@codesourcery.com>
13526 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
13528 [IN_PROCESS_AGENT] (debug_agent): New global variable.
13530 2012-01-04 Yao Qi <yao@codesourcery.com>
13532 * tracepoint.c (cmd_qtdp): Print debug message
13533 for static tracepoint.
13535 2012-01-04 Yao Qi <yao@codesourcery.com>
13537 * tracepoint.c (trace_vdebug): Differentiate debug message
13538 between gdbserver and IPA.
13540 2012-01-03 Yao Qi <yao@codesourcery.com>
13542 * tracepoint.c (tracepoint_was_hit): Don't collect for
13545 2012-01-02 Joel Brobecker <brobecker@adacore.com>
13547 * terminal.h: Reformat copyright header.
13549 2012-01-02 Joel Brobecker <brobecker@adacore.com>
13551 * server.c (gdbserver_version): Update copyright year.
13552 * gdbreplay.c (gdbreplay_version): Likewise.
13554 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
13556 * linux-low.c (linux_create_inferior): Put empty if clause for write.
13559 2011-12-18 Hui Zhu <teawater@gmail.com>
13560 * linux-low.c (linux_create_inferior): Save return value to ret.
13562 2011-12-18 Hui Zhu <teawater@gmail.com>
13564 * linux-low.c (linux_create_inferior): Save return value to ret.
13566 2011-12-16 Doug Evans <dje@google.com>
13568 * linux-low.c (linux_create_inferior): If stdio connection,
13569 redirect stdin from /dev/null, stdout to stderr.
13570 * remote-utils.c (remote_is_stdio): New static global.
13571 (remote_connection_is_stdio): New function.
13572 (remote_prepare): Handle stdio connection.
13573 (remote_open): Ditto.
13574 (remote_close): Don't close stdin for stdio connections.
13575 (read_prim,write_prim): New functions. Replace all calls to
13576 read/write to these.
13577 * server.c (main): Watch for "-" argument. Move call to
13578 remote_prepare before start_inferior.
13579 * server.h (STDIO_CONNECTION_NAME): New macro.
13580 (remote_connection_is_stdio): Declare.
13582 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
13583 in debugging output.
13585 2011-12-15 Yao Qi <yao@codesourcery.com>
13587 * tracepoint.c: Include sys/syscall.h.
13588 (gdb_ust_thread): Remove preprocessor conditional.
13590 2011-12-14 Pedro Alves <pedro@codesourcery.com>
13592 * linux-low.c (linux_detach_one_lwp): Call
13593 the_low_target.prepare_to_resume before detaching.
13595 2011-12-14 Yao Qi <yao@codesourcery.com>
13597 * tracepoint.c (gdb_ust_thread): Don't ignore return value
13600 2011-12-14 Yao Qi <yao@codesourcery.com>
13602 * i386-low.c (i386_low_stopped_data_address): Initialize local
13603 variable `control'.
13605 2011-12-13 Pedro Alves <pedro@codesourcery.com>
13609 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
13610 DR_CONTROL unless necessary. Extend comments.
13611 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
13612 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
13614 2011-12-13 Yao Qi <yao@codesourcery.com>
13616 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
13618 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
13620 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
13622 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
13623 Print new debug message for such case.
13625 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
13627 Fix overlapping memcpy.
13628 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
13629 the read_inferior_memory transfer.
13630 (delete_fast_tracepoint_jump): New variable buf. Use it for the
13631 write_inferior_memory transfer.
13632 (set_fast_tracepoint_jump): New variable buf. Use it for the
13633 read_inferior_memory and write_inferior_memory transfers.
13634 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
13635 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
13636 Use it for the write_inferior_memory transfer.
13637 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
13640 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
13642 * linux-low.c (fetch_register, store_register): Make code
13643 consistent, fix formatting.
13645 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
13647 * linux-low.c (usr_store_inferior_registers): Factor out code
13648 to handle individual registers into...
13649 (store_register): ... this new function.
13651 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
13653 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
13654 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
13655 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
13656 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
13657 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
13658 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
13659 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
13660 (srv_xmlfiles): Add new XML files.
13662 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
13664 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
13665 (init_registers_s390_linux32v1): Add prototype.
13666 (init_registers_s390_linux32v2): Likewise.
13667 (init_registers_s390_linux64v1): Likewise.
13668 (init_registers_s390_linux64v2): Likewise.
13669 (init_registers_s390x_linux64v1): Likewise.
13670 (init_registers_s390x_linux64v2): Likewise.
13671 (s390_num_regs): Increment to 52.
13672 (s390_regmap): Add orig_r2 register.
13673 (s390_num_regs_3264): Increment to 68.
13674 (s390_regmap_3264): Add orig_r2 register.
13675 (s390_collect_ptrace_register): Handle orig_r2 register.
13676 (s390_supply_ptrace_register): Likewise.
13677 (s390_fill_last_break): New function.
13678 (s390_store_last_break): Likewise.
13679 (s390_fill_system_call): New function.
13680 (s390_store_system_call): Likewise.
13681 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
13683 (s390_check_regset): New function.
13684 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
13685 NT_S390_SYSTEM_CALL regsets and use appropriate description.
13686 Update target_regsets for available register sets.
13688 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
13689 Jan Kratochvil <jan.kratochvil@redhat.com>
13691 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
13692 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
13694 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
13695 * linux-low.h (struct process_info_private): New member r_debug.
13696 * server.c (handle_qxfer_libraries): Call
13697 the_target->qxfer_libraries_svr4.
13698 (handle_qxfer_libraries_svr4): New function.
13699 (qxfer_packets): New entry "libraries-svr4".
13700 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
13701 * target.h (struct target_ops): New member qxfer_libraries_svr4.
13702 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
13703 PACKET_qXfer_libraries_svr4.
13705 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
13707 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
13708 PSW address/mask between 8-byte and 16-byte formats.
13709 (s390_supply_ptrace_register): Likewise.
13710 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
13711 basic addressing mode bit.
13713 2011-11-24 Stan Shebs <stan@codesourcery.com>
13715 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
13717 2011-11-17 Stan Shebs <stan@codesourcery.com>
13719 * tracepoint.c (struct tracepoint): New field traceframe_usage.
13720 (tracing_start_time): New global.
13721 (tracing_stop_time): New global.
13722 (tracing_user_name): New global.
13723 (tracing_notes): New global.
13724 (tracing_stop_note): New global.
13725 (cmd_qtstart): Set traceframe_usage, start_time.
13726 (stop_tracing): Set stop_time.
13727 (cmd_qtstatus): Report additional status.
13728 (cmd_qtp): New function.
13729 (handle_tracepoint_query): Call it.
13730 (cmd_qtnotes): New function.
13731 (handle_tracepoint_general_set): Call it.
13732 (get_timestamp): Rename from tsv_get_timestamp.
13734 2011-11-14 Stan Shebs <stan@codesourcery.com>
13735 Kwok Cheung Yeung <kcy@codesourcery.com>
13737 * linux-x86-low.c (small_jump_insn): New.
13738 (i386_install_fast_tracepoint_jump_pad): Add arguments for
13739 trampoline and error message, build a trampoline and issue a small
13740 jump instruction to it.
13741 (x86_install_fast_tracepoint_jump_pad): Add arguments for
13742 trampoline and error message.
13743 (x86_get_min_fast_tracepoint_insn_len): New.
13744 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
13745 * linux-low.h (struct linux_target_ops): Add arguments to
13746 install_fast_tracepoint_jump_pad operation, add new operation.
13747 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
13749 (linux_get_min_fast_tracepoint_insn_len): New function.
13750 (linux_target_op): Add new operation.
13751 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
13752 (gdb_trampoline_buffer_end): Ditto.
13753 (gdb_trampoline_buffer_error): Ditto.
13754 (struct ipa_sym_addresses): Add fields for new IPA variables.
13755 (symbol_list): Add entries for new IPA variables.
13756 (struct tracepoint): Add fields to hold the address range of the
13757 trampoline used by the tracepoint.
13758 (trampoline_buffer_head): New static variable.
13759 (trampoline_buffer_tail): Ditto.
13760 (claim_trampoline_space): New function.
13761 (have_fast_tracepoint_trampoline_buffer): New function.
13762 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
13764 (install_fast_tracepoint): Ditto, also add error buffer argument.
13765 (cmd_qtminftpilen): New function.
13766 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
13767 (fast_tracepoint_from_trampoline_address): New function.
13768 (fast_tracepoint_collecting): Handle trampoline as part of jump
13770 (set_trampoline_buffer_space): New function.
13771 (initialize_tracepoint): Initialize new IPA variables.
13772 * target.h (struct target_ops): Add arguments to
13773 install_fast_tracepoint_jump_pad operation, add new
13774 get_min_fast_tracepoint_insn_len operation.
13775 (target_get_min_fast_tracepoint_insn_len): New.
13776 (install_fast_tracepoint_jump_pad): Add arguments.
13777 * server.h (IPA_BUFSIZ): Define.
13778 * linux-i386-ipa.c: Include extra header files.
13779 (initialize_fast_tracepoint_trampoline_buffer): New function.
13780 (initialize_low_tracepoint): Call it.
13781 * server.h (set_trampoline_buffer_space): Declare.
13782 (claim_trampoline_space): Ditto.
13783 (have_fast_tracepoint_trampoline_buffer): Ditto.
13785 2011-11-14 Yao Qi <yao@codesourcery.com>
13787 * server.c (handle_query): Handle InstallInTrace for qSupported.
13788 * tracepoint.c (add_tracepoint): Sort list.
13789 (install_tracepoint, download_tracepoint): New.
13790 (cmd_qtdp): Call them to install and download tracepoints.
13791 (sort_tracepoints): Removed.
13792 (cmd_qtstart): Update.
13794 2011-11-14 Yao Qi <yao@codesourcery.com>
13796 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
13797 * mem-break.h: Declare.
13798 * tracepoint.c (cmd_qtstart): Move some code to ...
13799 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
13801 (download_tracepoints): Move some code to ...
13802 (download_tracepoint_1): ... here. New.
13804 2011-11-08 Yao Qi <yao@codesourcery.com>
13806 * remote-utils.c (relocate_instruction): A comment fix.
13808 2011-11-07 Joel Brobecker <brobecker@adacore.com>
13810 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
13811 (i386_dr_low_get_control, i386_dr_low_get_status): Use
13812 dr_status_mirror and dr_control_mirror from debug_reg_state.
13813 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
13814 (i386_initial_stuff): Remove use of deleted globals.
13815 (i386_get_thread_context, i386_set_thread_context,
13816 i386_thread_added): Use dr_status_mirror and dr_control_mirror
13817 from debug_reg_state.
13819 2011-11-05 Yao Qi <yao@codesourcery.com>
13821 * tracepoint.c (gdb_collect): Loop over tracepoints of same
13822 address as TPOINT's.
13824 2011-11-02 Stan Shebs <stan@codesourcery.com>
13826 * tracepoint.c (agent_mem_read_string): New function.
13827 (eval_agent_expr): Call it for tracenz.
13828 * server.c (handle_query): Report support for tracenz.
13830 2011-11-02 Yao Qi <yao@codesourcery.com>
13832 * tracepoint.c (cmd_qtstart): Remove unused local variables.
13834 2011-11-02 Yao Qi <yao@codesourcery.com>
13836 * target.h: Fix a typo in comment.
13838 2011-10-31 Pedro Alves <pedro@codesourcery.com>
13840 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
13841 clobber the breakpoints' shadows with fast tracepoint jumps.
13842 * mem-break.h (check_mem_write): Add `myaddr' parameter.
13843 * target.c (write_inferior_memory): Also pass MYADDR down to
13846 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
13848 * configure.ac: Check support for personality routine.
13849 * configure: Regenerate.
13850 * config.in: Likewise.
13851 * linux-low.c: Include <sys/personality.h>.
13852 Define ADDR_NO_RANDOMIZE if necessary.
13853 (linux_create_inferior): Disable address space randomization when
13854 forking inferior, if requested.
13855 (linux_supports_disable_randomization): New function.
13856 (linux_target_ops): Install it.
13857 * server.h (disable_randomization): Declare.
13858 * server.c (disable_randomization): New global variable.
13859 (handle_general_set): Handle QDisableRandomization.
13860 (handle_query): Likewise for qSupported.
13861 (main): Support --disable-randomization and --no-disable-randomization
13862 command line arguments.
13863 * target.h (struct target_ops): Add supports_disable_randomization.
13864 (target_supports_disable_randomization): New macro.
13866 2011-09-29 Mike Frysinger <vapier@gentoo.org>
13868 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
13870 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
13871 [!PT_GETDSBT] (target_loadmap): New definition.
13872 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
13873 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
13874 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
13875 and PT_GETDSBT to LINUX_LOADMAP.
13876 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
13877 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
13879 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
13881 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
13882 (arm_linux_hwbp_cap): New static variable.
13883 (arm_linux_get_hwbp_cap): Replace by ...
13884 (arm_linux_init_hwbp_cap): ... this new function.
13885 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
13886 (arm_linux_get_hw_watchpoint_count): Likewise.
13887 (arm_linux_get_hw_watchpoint_max_length): Likewise.
13888 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
13889 (arm_prepare_to_resume): Use perror_with_name instead of error.
13891 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
13893 * linux-arm-low.c: Include <signal.h>.
13894 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
13895 (struct arm_linux_hwbp_cap): New data type.
13896 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
13897 (struct arm_linux_hw_breakpoint): New data type.
13898 (MAX_BPTS, MAX_WPTS): Define.
13899 (struct arch_process_info, struct arch_lwp_info): New data types.
13900 (arm_linux_get_hwbp_cap): New function.
13901 (arm_linux_get_hw_breakpoint_count): Likewise.
13902 (arm_linux_get_hw_watchpoint_count): Likewise.
13903 (arm_linux_get_hw_watchpoint_max_length): Likewise.
13904 (arm_hwbp_control_initialize): Likewise.
13905 (arm_hwbp_control_is_enabled): Likewise.
13906 (arm_hwbp_control_is_initialized): Likewise.
13907 (arm_hwbp_control_disable): Likewise.
13908 (arm_linux_hw_breakpoint_equal): Likewise.
13909 (arm_linux_hw_point_initialize): Likewise.
13910 (struct update_registers_data): New data structure.
13911 (update_registers_callback: New function.
13912 (arm_insert_point): Likewise.
13913 (arm_remove_point): Likewise.
13914 (arm_stopped_by_watchpoint): Likewise.
13915 (arm_stopped_data_address): Likewise.
13916 (arm_new_process): Likewise.
13917 (arm_new_thread): Likewise.
13918 (arm_prepare_to_resume): Likewise.
13919 (the_low_target): Register arm_insert_point, arm_remove_point,
13920 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
13921 arm_new_thread, and arm_prepare_to_resume.
13923 2011-09-15 Stan Shebs <stan@codesourcery.com>
13925 * server.h (struct emit_ops): Add compare-goto fields.
13926 * tracepoint.c (gdb_agent_op_sizes): New table.
13927 (emit_eq_goto): New function.
13928 (emit_ne_goto): New function.
13929 (emit_lt_goto): New function.
13930 (emit_le_goto): New function.
13931 (emit_gt_goto): New function.
13932 (emit_ge_goto): New function.
13933 (is_goto_target): New function.
13934 (compile_bytecodes): Recognize special cases of compare-goto
13935 combinations and call specialized emitters for them.
13936 * linux-x86-low.c (amd64_emit_eq_goto): New function.
13937 (amd64_emit_ne_goto): New function.
13938 (amd64_emit_lt_goto): New function.
13939 (amd64_emit_le_goto): New function.
13940 (amd64_emit_gt_goto): New function.
13941 (amd64_emit_ge_goto): New function.
13942 (amd64_emit_ops): Add the new functions.
13943 (i386_emit_eq_goto): New function.
13944 (i386_emit_ne_goto): New function.
13945 (i386_emit_lt_goto): New function.
13946 (i386_emit_le_goto): New function.
13947 (i386_emit_gt_goto): New function.
13948 (i386_emit_ge_goto): New function.
13949 (i386_emit_ops): Add the new functions.
13951 2011-09-08 Stan Shebs <stan@codesourcery.com>
13953 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
13954 (i386_emit_epilogue): Restore %ebx.
13956 2011-08-31 Jie Zhang <jzhang918@gmail.com>
13958 * server.c (step_thread): Remove definition.
13959 (process_serial_event): Don't handle Hs.
13960 * server.h (step_thread): Remove declaration.
13961 * target.c (set_desired_inferior): Remove use of step_thread.
13963 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
13965 * linux-low.c: Include linux-procfs.h.
13966 (linux_attach_lwp_1): Update comments.
13967 (linux_attach): Scan for existing threads when attaching to a
13968 process that is the tgid.
13969 * Makefile.in: Update dependencies.
13971 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
13973 * configure.srv: Add linux-procfs.o dependencies.
13975 2011-08-14 Yao Qi <yao@codesourcery.com>
13977 * target.h (struct target_ops): Fix indent.
13978 * win32-low.c (win32_target_ops): Fix comment.
13980 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
13981 Yao Qi <yao@codesourcery.com>
13983 * Makefile.in (clean): Remove tic6x-*.c files.
13984 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
13985 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
13986 (tic6x-c64xp-linux.c): Likewise.
13987 * configure.srv: Add support for tic6x-*-uclinux.
13988 * linux-tic6x-low.c: New.
13989 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
13991 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
13992 Yao Qi <yao@codesourcery.com>
13994 * target.h (struct target_ops): Add read_loadmap.
13995 * linux-low.c (struct target_loadseg): New type.
13996 (struct target_loadmap): New type.
13997 (linux_read_loadmap): New function.
13998 (linux_target_ops): Add linux_read_loadmap.
13999 * server.c (handle_query): Support qXfer:fdpic:read packet.
14000 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
14003 2011-08-05 Eli Zaretskii <eliz@gnu.org>
14005 * win32-low.c: Include <stdint.h>.
14007 2011-07-22 Pedro Alves <pedro@codesourcery.com>
14009 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
14010 to the inferior here.
14011 (i386_remove_aligned_watchpoint): Ditto.
14012 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
14013 fit part of the watchpoint in the debug registers.
14014 (i386_update_inferior_debug_regs): New.
14015 (i386_low_insert_watchpoint): Work on a local mirror of the debug
14016 registers, and only update the inferior on success.
14017 (i386_low_remove_watchpoint): Ditto.
14019 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
14021 * linux-low.c (compare_ints, unique, list_threads, show_process,
14022 linux_core_of_thread): Delete.
14023 (linux_target_ops): Change linux_core_of_thread to
14024 linux_common_core_of_thread.
14025 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
14026 * utils.c (malloc_failure): Change type of argument.
14027 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
14028 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
14029 common/linux-osdata.c, common/ptid.c and common/buffer.c.
14030 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
14031 (IPA_OBJS): Add common-utils-ipa.o.
14032 (ptid_h, linux_osdata_h): New macros.
14033 (server_h): Add common/common-utils.h, common/xml-utils.h,
14034 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
14036 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
14037 ptid.o, buffer.o): New rules.
14038 (linux-low.o): Add common/linux-osdata.h as a dependency.
14039 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
14040 * configure.ac: Add AC_HEADER_DIRENT check.
14041 * config.in: Regenerate.
14042 * configure: Regenerate.
14043 * remote-utils.c (xml_escape_text): Delete.
14044 (buffer_grow, buffer_free, buffer_init, buffer_finish,
14045 buffer_xml_printf): Move to common/buffer.c.
14046 * server.c (main): Remove call to initialize_inferiors.
14047 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
14048 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
14049 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
14050 internal_error, gdb_assert, gdb_assert_fail): Delete.
14051 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
14052 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
14054 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
14055 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
14056 initialize_inferiors): Delete.
14058 2011-07-20 Pedro Alves <pedro@codesourcery.com>
14060 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
14063 2011-05-31 Pedro Alves <pedro@codesourcery.com>
14065 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
14067 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
14069 2011-05-26 Yao Qi <yao@codesourcery.com>
14071 * Makefile.in (thread-db.o): Track dependence to
14072 common/gdb_thread_db.h.
14073 * thread-db.c: include gdb_thread_db.h from right place.
14075 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
14077 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
14078 __FILE__ and __LINE__ to internal_error.
14080 2011-05-13 Doug Evans <dje@google.com>
14082 * thread-db.c (try_thread_db_load_from_sdir): New function.
14083 (try_thread_db_load_from_dir): New function.
14084 (thread_db_load_search): Handle $sdir, ignore $pdir.
14085 Remove trying of system directories if search of
14086 libthread-db-search-path fails, that is now done via $sdir.
14088 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
14090 * server.c (handle_query): Add EnableDisableTracepoints to the list
14091 of supported features.
14092 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
14094 (cmd_qtenable_disable): New.
14095 (cmd_qtstart): Install tracepoints even if disabled.
14096 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
14097 receiving a QTEnable or QTDisable packet.
14098 (gdb_collect): Skip data collection if fast tracepoint is disabled.
14099 (ust_marker_to_static_tracepoint): Do not ignore disabled static
14101 (gdb_probe): Skip data collection if static tracepoint is disabled.
14103 2011-05-10 Doug Evans <dje@google.com>
14105 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
14107 2011-05-04 Doug Evans <dje@google.com>
14109 * linux-low.c (linux_join): Skip process lookup.
14110 * spu-low.c (spu_join): Ditto.
14111 * server.c (join_inferiors_callback): Delete.
14112 (process_serial_event): For 'D' packet (detach) call join_inferior
14115 2011-05-04 Joseph Myers <joseph@codesourcery.com>
14117 * README: Don't mention xscale*-*-linux*.
14118 * configure.srv (xscale*-*-linux*): Don't handle target.
14120 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
14122 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
14124 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
14125 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
14126 (i386_emit_void_call_2): Likewise.
14128 2011-04-26 Yao Qi <yao@codesourcery.com>
14130 * linux-low.c: Move common macros to linux-ptrace.h.
14131 Include linux-ptrace.h.
14132 * Makefile.in (linux_ptrace_h): New.
14133 (linux-low.o): Depends on linux-ptrace.h.
14135 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
14137 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
14138 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
14139 (remote_prepare): New function with most of the TCP code from ...
14140 (remote_open): ... here. Detect PORT here unconditionally. Move also
14141 setting transport_is_reliable.
14142 * server.c (run_once): New variable.
14143 (gdbserver_usage): Document it.
14144 (main): Set run_once for `--once'. Call remote_prepare. Exit after
14145 the first run if RUN_ONCE.
14146 * server.h (run_once, remote_prepare): New declarations.
14148 2011-04-19 Tom Tromey <tromey@redhat.com>
14150 * win32-low.c (handle_load_dll): Remove duplicate "the".
14152 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
14154 Remove support for old Cygwin 1.5 versions.
14155 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
14156 function to avoid warning.
14157 (win32_add_one_solib): Use cygwin_conv_path function to avoid
14160 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
14162 * gdbserver/server.h (Macro _): Define it if not available.
14164 2011-03-14 Michael Snyder <msnyder@vmware.com>
14166 * hostio.c (handle_close): Remove unnecessary null test.
14168 2011-03-10 Joel Brobecker <brobecker@adacore.com>
14170 * Makefile.in (maintainer-clean realclean distclean): Remove
14171 "make ... subdir_do" command.
14173 2011-03-10 Michael Snyder <msnyder@vmware.com>
14175 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
14177 * server.c (handle_v_run): Free alloced buffer on early return.
14179 2011-03-09 Yao Qi <yao@codesourcery.com>
14182 2011-03-04 Yao Qi <yao@codesourcery.com>
14184 * Makefile.in: Remove GNU make feature --directory.
14186 2011-03-05 Yao Qi <yao@codesourcery.com>
14188 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
14189 (subdir_do): New make target. Copied from gdb/Makefile.
14190 (maintainer-clean, realclean, distclean, clean): Call corresponding
14191 make targets in common/Makefile.
14193 2011-02-11 Yao Qi <yao@codesourcery.com>
14195 * configure.ac: Call AC_PROG_RANLIB.
14196 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
14197 * configure: Regenerate.
14199 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14201 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
14203 2011-03-06 Yao Qi <yao@codesourcery.com>
14205 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
14207 2011-03-05 Yao Qi <yao@codesourcery.com>
14209 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
14210 (subdir_do): New make target. Copied from gdb/Makefile.
14211 (maintainer-clean, realclean, distclean, clean): Call corresponding
14212 make targets in common/Makefile.
14214 2011-03-04 Yao Qi <yao@codesourcery.com>
14216 * Makefile.in: Remove GNU make feature --directory.
14218 2011-03-04 Michael Snyder <msnyder@vmware.com>
14220 * server.c (queue_stop_reply): Call xmalloc not malloc.
14222 2011-03-02 Michael Snyder <msnyder@vmware.com>
14224 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
14226 2011-02-28 Michael Snyder <msnyder@vmware.com>
14228 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
14229 (cmd_qtframe): Ditto.
14230 (cmd_qtbuffer): Ditto.
14231 (cmd_bigqtbuffer): Ditto.
14233 * utils.c (decimal2str): Initialize 'width' to nine, then
14234 don't mess with it.
14236 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
14238 * hostio.c (require_data): Free *data, not data.
14240 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14242 * hostio.c (require_data): Use free, not xfree.
14244 2011-02-27 Michael Snyder <msnyder@vmware.com>
14246 * server.c (handle_query): Discard unused value.
14248 * hostio.c (require_data): Free malloc memory before returning
14251 2011-02-26 Michael Snyder <msnyder@vmware.com>
14253 * linux-low.c (list_threads): Call closedir for dirent.
14255 2011-02-27 Michael Snyder <msnyder@vmware.com>
14257 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
14258 a case statement falls through.
14260 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
14262 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
14265 2011-02-26 Michael Snyder <msnyder@vmware.com>
14267 * utils.c (decimal2str): Eliminate dead code and dead param.
14268 (pulongest): Drop dead param from call to decimal2str.
14271 2011-02-24 Joel Brobecker <brobecker@adacore.com>
14273 Revert the following patch (not approved yet):
14274 2011-02-21 Hui Zhu <teawater@gmail.com>
14275 * tracepoint.c (tp_printf): New function.
14276 (eval_agent_expr): Handle gdb_agent_op_printf.
14278 2011-02-21 Hui Zhu <teawater@gmail.com>
14280 * tracepoint.c (tp_printf): New function.
14281 (eval_agent_expr): Handle gdb_agent_op_printf.
14283 2011-02-18 Tom Tromey <tromey@redhat.com>
14285 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
14286 (tracepoint.o): Likewise.
14287 * tracepoint.c (enum gdb_agent_op): Use ax.def.
14288 (gdb_agent_op_names): Likewise.
14290 2011-02-18 Tom Tromey <tromey@redhat.com>
14292 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
14293 gdb_agent_op_rot>: New constants.
14294 (gdb_agent_op_names): Add pick and roll.
14295 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
14298 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
14300 * aclocal.m4: Regenerated with aclocal-1.11.1.
14302 2011-02-14 Pedro Alves <pedro@codesourcery.com>
14304 * server.c (handle_qxfer_traceframe_info): New.
14305 (qxfer_packets): Register "traceframe-info".
14306 (handle_query): Report support for qXfer:traceframe-info:read+.
14307 * tracepoint.c (match_blocktype): New.
14308 (traceframe_find_block_type): Rename to ...
14309 (traceframe_walk_blocks): ... this. Add callback filter argument,
14311 (traceframe_find_block_type): New, reimplemented on top of
14312 traceframe_walk_blocks.
14313 (build_traceframe_info_xml): New.
14314 (traceframe_read_info): New.
14315 * server.h (traceframe_read_info): Declare.
14317 2011-02-11 Yao Qi <yao@codesourcery.com>
14319 * configure.ac: Call AC_PROG_RANLIB.
14320 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
14321 * configure: Regenerate.
14323 2011-02-07 Pedro Alves <pedro@codesourcery.com>
14325 * server.c (gdb_read_memory): Change return semantics to allow
14327 (handle_search_memory_1): Adjust.
14328 (process_serial_event) <'m' packet>: Handle partial transfers.
14329 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
14331 2011-01-28 Pedro Alves <pedro@codesourcery.com>
14333 * regcache.c (init_register_cache): Initialize
14334 regcache->register_status.
14335 (free_register_cache): Release regcache->register_status.
14336 (regcache_cpy): Copy register_status.
14337 (registers_to_string): Print 'x's for unavailable registers.
14338 (supply_register): Mark the register's status valid or
14339 unavailable, depending on whether a buffer was passed in or not.
14340 (supply_register_zeroed): New.
14341 (supply_regblock): Mark the registers' status valid or
14342 unavailable, depending on whether a buffer was passed in or not.
14343 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
14344 (struct regcache): New `register_status' field.
14345 (supply_register_zeroed): Declare.
14346 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
14347 supply_register_zeroed, rather than passing a NULL buffer to
14349 * tracepoint.c (fetch_traceframe_registers): Update comment.
14351 2011-01-28 Pedro Alves <pedro@codesourcery.com>
14353 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
14356 2011-01-25 Pedro Alves <pedro@codesourcery.com>
14358 * server.h (decode_xfer_write): Change prototype.
14359 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
14360 and don't extract the annex here.
14361 * server.c (decode_xfer_read): Remove `annex' parameter,
14362 and don't extract the annex here.
14363 (decode_xfer): New.
14364 (struct qxfer): New.
14365 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
14366 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
14367 (handle_qxfer_statictrace): New functions, abstracted out from
14368 handle_query, and made to use the struct qxfer interface.
14369 (handle_threads_qxfer_proper): Rename to ...
14370 (handle_qxfer_threads_proper): ... this.
14371 (handle_threads_qxfer): Rename to ...
14372 (handle_qxfer_threads): ... this. Adjust.
14373 (qxfer_packets): New array.
14374 (handle_qxfer): New function.
14375 (handle_query): Use handle_qxfer.
14377 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
14379 * gdbreplay.c: Shorten lines of >= 80 columns.
14380 * linux-low.c: Ditto.
14381 * linux-ppc-low.c: Ditto.
14382 * linux-s390-low.c: Ditto.
14383 * linux-sparc-low.c: Ditto.
14384 * linux-x86-low.c: Ditto.
14385 * linux-xtensa-low.c: Ditto.
14386 * mem-break.c: Ditto.
14387 * nto-low.c: Ditto.
14388 * regcache.h: Ditto.
14389 * remote-utils.c: Ditto.
14392 * thread-db.c: Ditto.
14393 * tracepoint.c: Ditto.
14395 * win32-low.h: Ditto.
14397 2011-01-05 Joel Brobecker <brobecker@adacore.com>
14399 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
14402 2011-01-01 Joel Brobecker <brobecker@adacore.com>
14404 * server.c (gdbserver_version): Update copyright year in version
14406 * gdbreplay.c (gdbreplay_version): Ditto.
14408 2010-12-29 Jie Zhang <jie.zhang@analog.com>
14410 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
14411 * linux-bfin-low.c: New file.
14412 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
14413 PT_DATA_ADDR for BFIN targets.
14414 * Makefile.in (SFILES): Add linux-bfin-low.c.
14415 (clean): Remove reg-bfin.c.
14416 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
14417 * README: Mention supported Blackfin targets.
14419 2010-12-23 Mike Frysinger <vapier@gentoo.org>
14421 * .gitignore: New file.
14423 2010-11-16 Mike Frysinger <vapier@gentoo.org>
14425 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
14427 2010-10-22 Jie Zhang <jie@codesourcery.com>
14429 * Makefile.in: Add FLAGS_TO_PASS variable.
14430 (install): Remove dependency of install-only and recursively
14431 invoke make for install-only.
14433 2010-10-04 Doug Evans <dje@google.com>
14435 * Makefile.in (uninstall): Use $(DESTDIR).
14437 2010-09-24 Pedro Alves <pedro@codesourcery.com>
14441 * linux-x86-low.c (compat_siginfo_from_siginfo)
14442 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
14443 si_code is < 0. Check for si_code == SI_TIMER before checking for
14446 2010-09-13 Joel Brobecker <brobecker@adacore.com>
14448 * lynx-i386-low.c: New file.
14449 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
14451 2010-09-13 Joel Brobecker <brobecker@adacore.com>
14453 * lynx-low.c (ptrace_request_to_str): Remove handling for
14454 request values that have been removed in LynxOS 5.x.
14456 2010-09-13 Joel Brobecker <brobecker@adacore.com>
14458 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
14461 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
14463 * configure.ac: Add --enable-inprocess-agent option.
14464 * configure: Rebuilt.
14466 2010-09-06 Yao Qi <yao@codesourcery.com>
14468 * linux-low.c (linux_kill): Remove unused variable.
14469 (linux_stabilize_threads): Likewise.
14470 * server.c (start_inferior): Likewise.
14471 (queue_stop_reply_callback): Likewise.
14472 * tracepoint.c (do_action_at_tracepoint): Likewise.
14474 2010-09-06 Yao Qi <yao@codesourcery.com>
14476 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
14479 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
14481 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
14483 2010-09-06 Pedro Alves <pedro@codesourcery.com>
14485 * Makefile.in (install-only): Replace $IPA_DEPFILES with
14488 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14490 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
14491 gdbserver/lynx-ppc-low.c: New files.
14492 * Makefile.in (lynx_low_h): New variable.
14493 (lynx-low.o, lynx-ppc-low.o): New rules.
14494 * configure.ac: On LynxOS, link with -lnetinet.
14495 * configure.srv: Add handling of powerpc-*-lynxos* targets.
14496 * configure: regenerate.
14498 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14500 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
14501 * configure.ac: Add check for vasprintf and vsnprintf.
14502 * configure, config.in: Regenerate.
14503 * server.h (vasprintf, vsnprintf): Add conditional declarations.
14505 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14507 * gdbreplay.c: Move include of alloca.h up, next to include of
14509 * server.h: Add include of malloc.h.
14510 * mem-break.c: Remove include of malloc.h.
14511 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
14513 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14515 * Makefile.in (memmem.o): Build with -Wno-error.
14517 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14519 * utils.c (xsnprintf): Make non-static.
14520 * server.h: Add xsnprintf declaration.
14521 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
14522 replace calls to snprintf by calls to xsnprintf throughout.
14524 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14526 * configure.ac: Add configure check for alloca.
14527 * configure, config.in: Regenerate.
14528 * server.h: Include alloca.h if it exists.
14529 * gdbreplay.c: Include alloca.h if it exists.
14531 2010-08-28 Pedro Alves <pedro@codesourcery.com>
14533 * linux-low.c (__SIGRTMIN): Define if not already defined.
14534 (linux_create_inferior): Check for __ANDROID__ rather than
14536 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
14537 are already deferred.
14538 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
14539 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
14540 stopped and already has a pending signal to report.
14541 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
14542 a pending signal to report or is moving out of a jump pad.
14543 (linux_init_signals): Check for __ANDROID__ rather than
14546 2010-08-28 Pedro Alves <pedro@codesourcery.com>
14548 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
14549 debug_threads check. Avoid a linear search when not doing debug
14552 2010-08-27 Pedro Alves <pedro@codesourcery.com>
14554 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
14555 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
14556 (struct file_handler) <fd>: Change type to gdb_fildes_t.
14557 (process_event): Change local fd's type to gdb_fildes_t.
14558 (create_file_handler): Adjust prototype.
14559 (delete_file_handler): Adjust prototype.
14560 (handle_file_event): Adjust prototype. Use pfildes.
14561 (create_file_event): Adjsut prototype.
14562 * remote-utils.c (remote_desc, listen_desc): Change type to
14564 * server.h: New gdb_fildes_t typedef.
14565 [USE_WIN32API]: Include winsock2.h.
14566 (delete_file_handler, add_file_handler): Adjust prototypes.
14567 (pfildes): Declare.
14568 * utils.c (pfildes): New.
14570 2010-08-27 Pedro Alves <pedro@codesourcery.com>
14572 * configure.ac (build_warnings): Add -Wno-char-subscripts.
14573 * configure: Regenerate.
14575 2010-08-27 Pedro Alves <pedro@codesourcery.com>
14577 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
14578 (linux_done_accessing_memory): ... this.
14579 (linux_target_ops): Adjust.
14580 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
14581 * nto-low.c (nto_target_ops): Adjust comment.
14582 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
14583 * spu-low.c (spu_target_ops): Adjust comment.
14584 * target.h (target_ops): Rename unprepare_to_access_memory field
14585 to done_accessing_memory.
14586 (unprepare_to_access_memory): Rename to ...
14587 (done_accessing_memory): ... this.
14589 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14591 * linux-low.c (linux_prepare_to_access_memory): New.
14592 (linux_unprepare_to_access_memory): New.
14593 (linux_target_ops): Install them.
14594 * server.c (read_memory): Rename to ...
14595 (gdb_read_memory): ... this. Use
14596 prepare_to_access_memory/prepare_to_access_memory.
14597 (write_memory): Rename to ...
14598 (gdb_write_memory): ... this. Use
14599 prepare_to_access_memory/prepare_to_access_memory.
14600 (handle_search_memory_1): Adjust.
14601 (process_serial_event): Adjust.
14602 * target.h (struct target_ops): New fields
14603 prepare_to_access_memory and unprepare_to_access_memory.
14604 (prepare_to_access_memory, unprepare_to_access_memory): New.
14605 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
14606 prepare_to_access_memory/prepare_to_access_memory.
14607 * nto-low.c (nto_target_ops): Adjust.
14608 * spu-low.c (spu_target_ops): Adjust.
14609 * win32-low.c (win32_target_ops): Adjust.
14611 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14613 * Makefile.in (WARN_CFLAGS): Get it from configure.
14614 (WERROR_CFLAGS): New.
14615 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
14616 * configure.ac: Introduce --enable-werror, which adds -Werror to
14617 the compiler command line. Enabled by default. Disable with
14618 --disable-werror. Add -Wdeclaration-after-statement
14619 Wpointer-arith and -Wformat-nonliteral to warning flags.
14620 * configure: Regenerate.
14622 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14624 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
14626 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14628 * gdbreplay.c (remote_error): New.
14630 (expect): Use gdbchar. Check for error reading from GDB.
14631 Clarify sync error output.
14632 (play): Check for errors writing to GDB.
14633 * linux-low.c (sigchld_handler): Really ignore `write' errors.
14634 * remote-utils.c (getpkt): Check for errors writing to the remote
14637 2010-08-25 Pedro Alves <pedro@codesourcery.com>
14639 * linux-low.c (linux_wait_1): Move non-debugging code out of
14640 `debug_threads' control.
14642 2010-08-25 Pedro Alves <pedro@codesourcery.com>
14644 * linux-low.c (linux_wait_1): Don't set last_status here.
14645 * server.c (push_event, queue_stop_reply_callback): Assert we're
14646 not pushing a TARGET_WAITKIND_IGNORE event.
14647 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
14648 (myresume, handle_target_event): Set the thread's last_resume_kind
14649 and last_status from the target returned status.
14651 2010-08-25 Pedro Alves <pedro@codesourcery.com>
14655 * linux-x86-low.c (update_debug_registers_callback): New.
14656 (i386_dr_low_set_addr): Use it.
14657 (i386_dr_low_get_addr): New.
14658 (i386_dr_low_set_control): Use update_debug_registers_callback.
14659 (i386_dr_low_get_control): New.
14660 (i386_dr_low_get_status): Adjust.
14661 * linux-low.c (linux_stop_lwp): New.
14662 * linux-low.h (linux_stop_lwp): Declare.
14664 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
14665 argument instead of a i386_debug_reg_state.
14666 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
14667 a i386_debug_reg_state.
14668 (i386_insert_aligned_watchpoint): Adjust.
14669 (i386_remove_aligned_watchpoint): Adjust.
14670 (i386_low_stopped_data_address): Read the debug registers from the
14671 inferior instead of from the mirrors.
14672 * i386-low.h (struct i386_debug_reg_state): Extend comment.
14673 (i386_dr_low_get_addr): Declare.
14674 (i386_dr_low_get_control): Declare.
14675 (i386_dr_low_get_status): Change prototype.
14677 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
14678 (i386_dr_low_get_addr): New.
14679 (i386_dr_low_get_control): New.
14680 (i386_dr_low_get_status): Adjust prototype. Return
14682 (i386_initial_stuff): Clear dr_status_mirror and
14684 (i386_get_thread_context): Adjust.
14685 (i386_set_thread_context): Adjust.
14686 (i386_thread_added): Adjust.
14688 2010-08-24 Pedro Alves <pedro@codesourcery.com>
14690 * linux-low.h (linux_thread_area): Delete declaration.
14692 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
14694 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
14695 after its termination.
14697 2010-08-09 Pedro Alves <pedro@codesourcery.com>
14699 * linux-low.c (gdb_wants_lwp_stopped): Delete.
14700 (gdb_wants_all_stopped): Delete.
14701 (linux_wait_1): Don't call them.
14702 * server.c (handle_v_cont): Tag all threads as want-stopped.
14703 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
14704 stopped as "client-wants-stopped".
14706 2010-07-31 Pedro Alves <pedro@codesourcery.com>
14708 * Makefile.in (signals_h): New.
14709 (server_h): Depend on it.
14710 (server.o): Don't depend on $(signals_def).
14711 (signals.o): Depend on $(signals_def).
14713 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
14715 * Makefile.in (signals_def): New.
14716 (server_h): Append include/gdb/signals.h and signals_def.
14717 (server.o): Append signals_def.
14719 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
14721 * server.c (handle_target_event): Use target_signal_to_host for
14722 resume_info.sig initialization.
14723 * target.h (struct thread_resume) <sig>: New comment.
14725 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
14727 * server.c (handle_query): strcpy() the returned string from paddress()
14728 instead of sprintf().
14729 * utils.c (paddress): Return phex_nz().
14731 2010-07-07 Joel Brobecker <brobecker@adacore.com>
14733 * server.c (handle_v_cont): Call mourn_inferior if process
14735 (myresume): Likewise.
14737 2010-07-01 Pedro Alves <pedro@codesourcery.com>
14739 Static tracepoints, and integration with UST.
14741 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
14742 * mem-break.c (uninsert_all_breakpoints)
14743 (reinsert_all_breakpoints): New.
14744 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
14745 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
14746 (gdb_agent_ust_loaded, helper_thread_id)
14747 (gdb_agent_helper_thread_id): New macros.
14748 (struct ipa_sym_addresses): Add addr_ust_loaded,
14749 addr_helper_thread_id, addr_cmd_buf.
14750 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
14751 (in_process_agent_loaded_ust): New.
14752 (write_e_ust_not_loaded): New.
14753 (maybe_write_ipa_ust_not_loaded): New.
14754 (struct collect_static_trace_data_action): New.
14755 (enum tracepoint_type) <static_tracepoint>: New.
14756 (struct tracepoint) <handle>: Mention static tracepoints.
14757 (struct static_tracepoint_ctx): New.
14758 (CMD_BUF_SIZE): New.
14759 (add_tracepoint_action): Handle static tracepoint actions.
14760 (unprobe_marker_at): New.
14761 (clear_installed_tracepoints): Handle static tracepoints.
14762 (cmd_qtdp): Handle static tracepoints.
14763 (probe_marker_at): New.
14764 (cmd_qtstart): Handle static tracepoints.
14765 (response_tracepoint): Handle static tracepoints.
14766 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
14767 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
14768 (get_context_regcache): Handle static tracepoints.
14769 (do_action_at_tracepoint): Handle static tracepoint actions.
14770 (traceframe_find_block_type): Handle static trace data blocks.
14771 (traceframe_read_sdata): New.
14772 (download_tracepoints): Download static tracepoint actions.
14773 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
14774 (GDB_PROBE_NAME): New.
14776 (GET_UST_SYM): New.
14779 (ust_marker_to_static_tracepoint): New.
14781 (collect_ust_data_at_tracepoint): New.
14782 (gdb_ust_probe): New.
14783 (UNIX_PATH_MAX, SOCK_DIR): New.
14784 (gdb_ust_connect_sync_socket): New.
14785 (resume_thread, stop_thread): New.
14786 (run_inferior_command): New.
14787 (init_named_socket): New.
14788 (gdb_ust_socket_init): New.
14789 (cstr_to_hexstr): New.
14791 (first_marker, next_marker): New.
14792 (response_ust_marker): New.
14793 (cmd_qtfstm, cmd_qtsstm): New.
14794 (unprobe_marker_at, probe_marker_at): New.
14795 (cmd_qtstmat, gdb_ust_thread): New.
14796 (gdb_ust_init): New.
14797 (initialize_tracepoint_ftlib): Call gdb_ust_init.
14798 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
14799 (ST_REGENTRY): New.
14800 (x86_64_st_collect_regmap): New.
14801 (X86_64_NUM_ST_COLLECT_GREGS): New.
14802 (AMD64_RIP_REGNUM): New.
14803 (supply_static_tracepoint_registers): New.
14804 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
14805 (ST_REGENTRY): New.
14806 (i386_st_collect_regmap): New.
14807 (i386_NUM_ST_COLLECT_GREGS): New.
14808 (supply_static_tracepoint_registers): New.
14809 * server.c (handle_query): Handle qXfer:statictrace:read.
14810 <qSupported>: Report support for StaticTracepoints, and
14811 qXfer:statictrace:read features.
14812 * server.h (traceframe_read_sdata)
14813 (supply_static_tracepoint_registers): Declare.
14814 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
14815 (unpack_varlen_hex): Include in IPA build.
14816 * Makefile.in (ustlibs, ustinc): New.
14817 (IPA_OBJS): Add remote-utils-ipa.o.
14818 ($(IPA_LIB)): Link -ldl and -lpthread.
14820 (IPAGENT_CFLAGS): Add UST_CFLAGS.
14821 * config.in, configure: Regenerate.
14823 2010-06-20 Ian Lance Taylor <iant@google.com>
14824 Pedro Alves <pedro@codesourcery.com>
14826 * linux-x86-low.c (always_true): Delete.
14827 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
14828 trying to fool the compiler with always_true.
14830 2010-06-20 Pedro Alves <pedro@codesourcery.com>
14832 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
14833 conditions in gdbserver.
14835 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
14837 * spu-low.c (spu_read_memory): Wrap around local store limit.
14838 (spu_write_memory): Likewise.
14840 2010-06-15 Pedro Alves <pedro@codesourcery.com>
14842 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
14843 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
14845 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
14847 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
14848 uses with LONGEST uses.
14850 2010-06-14 Stan Shebs <stan@codesourcery.com>
14851 Pedro Alves <pedro@codesourcery.com>
14855 * linux-x86-low.c: Include limits.h.
14857 (always_true): New.
14860 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
14861 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
14862 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
14863 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
14864 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
14865 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
14866 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
14867 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
14868 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
14869 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
14870 (amd64_emit_void_call_2): New.
14871 (amd64_emit_ops): New.
14872 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
14873 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
14874 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
14875 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
14876 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
14877 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
14878 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
14879 (i386_emit_call, i386_emit_reg, i386_emit_pop)
14880 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
14881 (i386_emit_stack_adjust, i386_emit_int_call_1)
14882 (i386_emit_void_call_2): New.
14883 (i386_emit_ops): New.
14884 (x86_emit_ops): New.
14885 (the_low_target): Install x86_emit_ops.
14886 * server.h (struct emit_ops): New.
14887 (get_raw_reg_func_addr): Declare.
14888 (current_insn_ptr, emit_error): Declare.
14889 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
14890 (set_trace_state_variable_value): New defines.
14891 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
14892 addr_get_trace_state_variable_value and
14893 addr_set_trace_state_variable_value.
14894 (symbol_list): New fields for get_raw_reg,
14895 get_trace_state_variable_value and set_trace_state_variable_value.
14896 (condfn): New typedef.
14897 (struct tracepoint): New field `compiled_cond'.
14898 (do_action_at_tracepoint): Clear compiled_cond.
14899 (get_trace_state_variable_value, set_trace_state_variable_value):
14901 (condition_true_at_tracepoint): If there's a compiled condition,
14903 (current_insn_ptr, emit_error): New globals.
14904 (struct bytecode_address): New.
14905 (get_raw_reg_func_addr): New.
14906 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
14907 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
14908 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
14909 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
14910 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
14911 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
14912 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
14913 (compile_tracepoint_condition, compile_bytecodes): New.
14914 * target.h (emit_ops): Forward declare.
14915 (struct target_ops): New field emit_ops.
14916 (target_emit_ops): New.
14917 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
14918 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
14919 * linux-low.c (linux_emit_ops): New.
14920 (linux_target_ops): Install it.
14921 * linux-low.h (struct linux_target_ops): New field emit_ops.
14923 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
14925 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
14926 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
14928 2010-06-01 Pedro Alves <pedro@codesourcery.com>
14929 Stan Shebs <stan@codesourcery.com>
14931 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
14932 (all): Depend on $(extra_libraries).
14933 (install-only): Install the IPA.
14934 (IPA_OBJS, IPA_LIB): New.
14935 (clean): Remove the IPA lib.
14936 (IPAGENT_CFLAGS): New.
14937 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
14938 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
14939 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
14940 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
14941 * configure.ac: Check for atomic builtins support in the compiler.
14942 (IPA_DEPFILES, extra_libraries): Define.
14943 * configure.srv (ipa_obj): Add description.
14944 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
14945 (i[34567]86-*-linux*): Set ipa_obj.
14946 (x86_64-*-linux*): Set ipa_obj.
14947 * linux-low.c (stabilizing_threads): New.
14948 (supports_fast_tracepoints): New.
14949 (linux_detach): Stabilize threads before detaching.
14950 (handle_tracepoints): Handle internal tracing breakpoints. Assert
14951 the lwp is either not stabilizing, or is moving out of a jump pad.
14952 (linux_fast_tracepoint_collecting): New.
14953 (maybe_move_out_of_jump_pad): New.
14954 (enqueue_one_deferred_signal): New.
14955 (dequeue_one_deferred_signal): New.
14956 (linux_wait_for_event_1): If moving out of a jump pad, defer
14957 pending signals to later.
14958 (linux_stabilize_threads): New.
14959 (linux_wait_1): Check if threads need moving out of jump pads, and
14961 (stuck_in_jump_pad_callback): New.
14962 (move_out_of_jump_pad_callback): New.
14963 (lwp_running): New.
14964 (linux_resume_one_lwp): Handle moving out of jump pads.
14965 (linux_set_resume_request): Dequeue deferred signals.
14966 (need_step_over_p): Also step over fast tracepoint jumps.
14967 (start_step_over): Also uninsert fast tracepoint jumps.
14968 (finish_step_over): Also reinsert fast tracepoint jumps.
14969 (linux_install_fast_tracepoint_jump): New.
14970 (linux_target_ops): Install linux_stabilize_threads and
14971 linux_install_fast_tracepoint_jump_pad.
14972 * linux-low.h (linux_target_ops) <get_thread_area,
14973 install_fast_tracepoint_jump_pad>: New fields.
14974 (struct lwp_info) <collecting_fast_tracepoint,
14975 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
14976 (linux_get_thread_area): Declare.
14977 * linux-x86-low.c (jump_insn): New.
14978 (x86_get_thread_area): New.
14979 (append_insns): New.
14980 (push_opcode): New.
14981 (amd64_install_fast_tracepoint_jump_pad): New.
14982 (i386_install_fast_tracepoint_jump_pad): New.
14983 (x86_install_fast_tracepoint_jump_pad): New.
14984 (the_low_target): Install x86_get_thread_area and
14985 x86_install_fast_tracepoint_jump_pad.
14986 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
14987 (struct fast_tracepoint_jump): New.
14988 (fast_tracepoint_jump_insn): New.
14989 (fast_tracepoint_jump_shadow): New.
14990 (find_fast_tracepoint_jump_at): New.
14991 (fast_tracepoint_jump_here): New.
14992 (delete_fast_tracepoint_jump): New.
14993 (set_fast_tracepoint_jump): New.
14994 (uninsert_fast_tracepoint_jumps_at): New.
14995 (reinsert_fast_tracepoint_jumps_at): New.
14996 (set_breakpoint_at): Use write_inferior_memory.
14997 (uninsert_raw_breakpoint): Use write_inferior_memory.
14998 (check_mem_read): Mask out fast tracepoint jumps.
14999 (check_mem_write): Mask out fast tracepoint jumps.
15000 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
15001 (set_fast_tracepoint_jump): Declare.
15002 (delete_fast_tracepoint_jump)
15003 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
15004 (reinsert_fast_tracepoint_jumps_at): Declare.
15005 * regcache.c: Don't compile many functions when building the
15006 in-process agent library.
15007 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
15008 the register buffer in the heap.
15009 (free_register_cache): If the register buffer isn't owned by the
15010 regcache, don't free it.
15011 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
15012 pre-existing register caches.
15013 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
15015 (convert_ascii_to_int): : Constify `from' parameter type.
15016 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
15017 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
15018 the needed buffer in-place.
15019 (relocate_instruction): New.
15020 * server.c (handle_query) <qSymbols>: If the target supports
15021 tracepoints, give it a chance of looking up symbols. Report
15022 support for fast tracepoints.
15023 (handle_status): Stabilize threads.
15024 (process_serial_event): Adjust.
15025 * server.h (struct fast_tracepoint_jump): Forward declare.
15026 (struct process_info) <fast_tracepoint_jumps>: New field.
15027 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
15028 (decode_X_packet, decode_M_packet): Adjust.
15029 (relocate_instruction): Declare.
15030 (in_process_agent_loaded): Declare.
15031 (tracepoint_look_up_symbols): Declare.
15032 (struct fast_tpoint_collect_status): Declare.
15033 (fast_tracepoint_collecting): Declare.
15034 (force_unlock_trace_buffer): Declare.
15035 (handle_tracepoint_bkpts): Declare.
15036 (initialize_low_tracepoint)
15037 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
15038 * target.h (struct target_ops) <stabilize_threads,
15039 install_fast_tracepoint_jump_pad>: New fields.
15040 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
15041 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
15042 [HAVE_STDINT_H]: Include stdint.h.
15043 (trace_debug_1): Rename to ...
15044 (trace_vdebug): ... this.
15045 (trace_debug): Rename to ...
15046 (trace_debug_1): ... this. Add `level' parameter.
15047 (trace_debug): New.
15048 (ATTR_USED, ATTR_NOINLINE): New.
15049 (IP_AGENT_EXPORT): New.
15050 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
15051 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
15052 (about_to_request_buffer_space, trace_buffer_is_full)
15053 (stopping_tracepoint, expr_eval_result, error_tracepoint)
15054 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
15055 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
15056 (traceframe_write_count, traceframes_created)
15057 (trace_state_variables)
15058 New renaming defines.
15059 (struct ipa_sym_addresses): New.
15060 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
15061 (symbol_list): New.
15062 (ipa_sym_addrs): New.
15063 (all_tracepoint_symbols_looked_up): New.
15064 (in_process_agent_loaded): New.
15065 (write_e_ipa_not_loaded): New.
15066 (maybe_write_ipa_not_loaded): New.
15067 (tracepoint_look_up_symbols): New.
15068 (debug_threads) [IN_PROCESS_AGENT]: New.
15069 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
15070 (UNKNOWN_SIDE_EFFECTS): New.
15071 (stop_tracing): New.
15072 (flush_trace_buffer): New.
15073 (stop_tracing_bkpt): New.
15074 (flush_trace_buffer_bkpt): New.
15075 (read_inferior_integer): New.
15076 (read_inferior_uinteger): New.
15077 (read_inferior_data_pointer): New.
15078 (write_inferior_data_pointer): New.
15079 (write_inferior_integer): New.
15080 (write_inferior_uinteger): New.
15081 (struct collect_static_trace_data_action): Delete.
15082 (enum tracepoint_type): New.
15083 (struct tracepoint) <type>: New field `type'.
15084 <actions_str, step_actions, step_actions_str>: Only include in
15086 <orig_size, obj_addr_on_target, adjusted_insn_addr>
15087 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
15088 (tracepoints): Use IP_AGENT_EXPORT.
15089 (last_tracepoint): Don't include in the IPA.
15090 (stopping_tracepoint): Use IP_AGENT_EXPORT.
15091 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
15092 (alloced_trace_state_variables): New.
15093 (trace_state_variables): Use IP_AGENT_EXPORT.
15094 (traceframe_t): Delete unused variable.
15095 (circular_trace_buffer): Don't include in the IPA.
15096 (trace_buffer_start): Delete.
15097 (struct trace_buffer_control): New.
15098 (trace_buffer_free): Delete.
15099 (struct ipa_trace_buffer_control): New.
15100 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
15101 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
15103 (trace_buffer_ctrl): New.
15104 (TRACE_BUFFER_CTRL_CURR): New.
15105 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
15106 Reimplement as macros.
15107 (trace_buffer_wrap): Delete.
15108 (traceframe_write_count, traceframe_read_count)
15109 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
15110 (struct tracepoint_hit_ctx) <type>: New field.
15111 (struct fast_tracepoint_ctx): New.
15112 (memory_barrier): New.
15114 (record_tracepoint_error): Update atomically in the IPA.
15115 (clear_inferior_trace_buffer): New.
15116 (about_to_request_buffer_space): New.
15117 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
15118 updating the same buffer.
15119 (add_tracepoint): Default the tracepoint's type to trap
15120 tracepoint, and orig_size to -1.
15121 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
15122 internal variables.
15123 (create_trace_state_variable): New parameter `gdb'. Handle it.
15124 (clear_installed_tracepoints): Clear fast tracepoint jumps.
15125 (cmd_qtdp): Handle fast tracepoints.
15126 (cmd_qtdv): Adjust.
15127 (max_jump_pad_size): New.
15128 (gdb_jump_pad_head): New.
15129 (get_jump_space_head): New.
15130 (claim_jump_space): New.
15131 (sort_tracepoints): New.
15132 (MAX_JUMP_SIZE): New.
15133 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
15135 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
15136 support. Upload fast traceframes, and delete internal IPA
15138 (stop_tracing_handler): New.
15139 (flush_trace_buffer_handler): New.
15140 (cmd_qtstop): Upload fast tracepoints.
15141 (response_tracepoint): Handle fast tracepoints.
15142 (tracepoint_finished_step): Upload fast traceframes. Set the
15143 tracepoint hit context's tracepoint type.
15144 (handle_tracepoint_bkpts): New.
15145 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
15146 type. Add comment about fast tracepoints.
15147 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
15148 non-existing action_str field.
15149 (get_context_regcache): Handle fast tracepoints.
15150 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
15152 (fast_tracepoint_from_jump_pad_address): New.
15153 (fast_tracepoint_from_ipa_tpoint_address): New.
15154 (collecting_t): New.
15155 (force_unlock_trace_buffer): New.
15156 (fast_tracepoint_collecting): New.
15158 (gdb_collect): New.
15159 (write_inferior_data_ptr): New.
15160 (target_tp_heap): New.
15161 (target_malloc): New.
15162 (download_agent_expr): New.
15164 (download_tracepoints): New.
15165 (download_trace_state_variables): New.
15166 (upload_fast_traceframes): New.
15167 (IPA_FIRST_TRACEFRAME): New.
15168 (IPA_NEXT_TRACEFRAME_1): New.
15169 (IPA_NEXT_TRACEFRAME): New.
15170 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
15171 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
15172 (gdb_jump_pad_buffer_end): New.
15173 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
15174 (initialize_tracepoint): Adjust.
15175 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
15176 buffer. Initialize the low module.
15177 * utils.c (PREFIX, TOOLNAME): New.
15178 (malloc_failure): Use PREFIX.
15179 (error): In the IPA, an error causes an exit.
15180 (fatal, warning): Use PREFIX.
15181 (internal_error): Use TOOLNAME.
15182 (NUMCELLS): Increase to 10.
15183 * configure, config.in: Regenerate.
15185 2010-06-01 Pedro Alves <pedro@codesourcery.com>
15187 * server.c (handle_query) <qSupported>: Do two passes over the
15188 qSupported string to avoid nesting strtok.
15190 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15192 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
15194 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
15195 -Wl,--dynamic-list.
15196 * configure: Regenerate.
15197 * proc-service.list: New.
15199 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15201 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
15204 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
15206 * gdbreplay.c (remote_open): Check error return from socket() call by
15207 its equality to -1 not by it being negative.
15208 * remote-utils.c (remote_open): Likewise.
15210 2010-05-23 Pedro Alves <pedro@codesourcery.com>
15212 * config.h: Regenerate.
15214 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
15216 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
15217 doesn't provide PTRACE_GET_THREAD_AREA.
15219 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
15221 * linux-m68k-low.c: Include <asm/ptrace.h>
15222 (ps_get_thread_area): Implement.
15224 2010-05-03 Doug Evans <dje@google.com>
15226 * event-loop.c (struct callback_event): New struct.
15227 (callback_list): New global.
15228 (append_callback_event, delete_callback_event): New functions.
15229 (process_callback): New function.
15230 (start_event_loop): Call it.
15231 * remote-utils.c (NOT_SCHEDULED): Define.
15232 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
15233 moved out of readchar.
15234 (readchar): Rewrite. Call reschedule before returning.
15235 (reset_readchar): New function.
15236 (remote_close): Call it.
15237 (process_remaining, reschedule): New functions.
15238 * server.h (callback_handler_func): New typedef.
15239 (append_callback_event, delete_callback_event): Declare.
15241 2010-05-03 Pedro Alves <pedro@codesourcery.com>
15243 * proc-service.c (ps_pglobal_lookup): Use
15244 thread_db_look_up_one_symbol.
15245 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
15246 parameter. Use it instead of all_symbols_looked_up.
15247 * server.h (struct process_info) <all_symbols_looked_up>: Delete
15249 (all_symbols_looked_up): Don't declare.
15250 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
15251 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
15253 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
15254 Set all_symbols_looked_up here.
15255 (thread_db_look_up_one_symbol): New.
15256 (thread_db_get_tls_address): Adjust.
15257 (thread_db_load_search, try_thread_db_load_1): Always allocate the
15258 thread_db object on the heap, and tentatively set it in the
15260 (thread_db_init): Don't set all_symbols_looked_up here.
15261 * linux-low.h (thread_db_look_up_one_symbol): Declare.
15263 2010-05-03 Pedro Alves <pedro@codesourcery.com>
15265 * linux-low.c (linux_kill, linux_detach): Adjust.
15266 (status_pending_p_callback): Remove redundant statement. Check
15267 for !TARGET_WAITIKIND_IGNORE, instead of
15268 TARGET_WAITKIND_STOPPED.
15269 (handle_tracepoints): Make sure LWP is locked. Adjust.
15270 (linux_wait_for_event_1): Adjust.
15271 (linux_cancel_breakpoints): New.
15272 (unsuspend_one_lwp): New.
15273 (unsuspend_all_lwps): New.
15274 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
15275 (send_sigstop_callback): Change return type to int, add new
15276 `except' parameter and handle it.
15277 (suspend_and_send_sigstop_callback): New.
15278 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
15279 pass them down. If SUSPEND, also increment the lwp's suspend
15281 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
15282 (need_step_over_p): Don't consider suspended LWPs.
15283 (start_step_over): Adjust.
15284 (proceed_one_lwp): Change return type to int, add new `except'
15285 parameter and handle it.
15286 (unsuspend_and_proceed_one_lwp): New.
15287 (proceed_all_lwps): Use find_inferior instead of
15289 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
15290 also decrement the suspend count of LWPs. Pass `except' down,
15291 instead of hacking its suspend count.
15292 (linux_pause_all): Add `freeze' parameter. Adjust.
15293 (linux_unpause_all): New.
15294 (linux_target_ops): Install linux_unpause_all.
15295 * server.c (handle_status): Adjust.
15296 * target.h (struct target_ops): New fields `unpause_all' and
15297 `cancel_breakpoints'. Add new parameter to `pause_all'.
15298 (pause_all): Add new `freeze' parameter.
15299 (unpause_all): New.
15300 (cancel_breakpoints): New.
15301 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
15302 cancel breakpoints.
15303 (cmd_qtstart): Pause threads.
15304 (stop_tracing): Pause threads, and cancel breakpoints.
15305 * win32-low.c (win32_target_ops): Adjust.
15307 2010-05-03 Pedro Alves <pedro@codesourcery.com>
15309 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
15310 the inferior right away from here...
15311 (linux_wait_1): ... to here, and adjust to check the thread's
15312 last_resume_kind instead of the lwp's step or stop_expected flags.
15314 2010-05-02 Pedro Alves <pedro@codesourcery.com>
15316 * README: Use consistent `GDB' and `GDBserver' spellings.
15318 2010-05-02 Pedro Alves <pedro@codesourcery.com>
15320 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
15321 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
15322 (linux_detach_one_lwp): Assume the lwp is stopped.
15323 (any_thread_of): Delete.
15324 (linux_detach): Stop all lwps here. Don't blindly delete all
15326 (delete_lwp_callback): New.
15327 (linux_mourn): Delete all lwps of the process that is gone.
15328 (linux_wait_1): Don't delete the last lwp of the process here.
15329 * mem-break.h (mark_breakpoints_out): Declare.
15330 * mem-break.c (mark_breakpoints_out): New.
15331 (free_all_breakpoints): Use it.
15332 * server.c (handle_target_event): If the process is gone, mark
15334 * thread-db.c (struct thread_db) <create_bp>: New field.
15335 (thread_db_enable_reporting): Fix prototype. Store a thread event
15336 breakpoint reference in the thread_db struct.
15337 (thread_db_load_search): Clear the thread_db object.
15338 (try_thread_db_load_1): Ditto.
15339 (switch_to_process): New.
15340 (disable_thread_event_reporting): Use it.
15341 (remove_thread_event_breakpoints): New.
15342 (thread_db_detach, thread_db_mourn): Use it.
15344 2010-05-01 Pedro Alves <pedro@codesourcery.com>
15346 * linux-low.c (linux_enable_event_reporting): New.
15347 (linux_wait_for_event_1, handle_extended_wait): Use it.
15349 2010-04-30 Pedro Alves <pedro@codesourcery.com>
15351 * linux-low.c (linux_kill_one_lwp, linux_kill)
15352 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
15353 (send_sigstop): Take an lwp_info as parameter instead. Queue a
15354 SIGSTOP even if the LWP is stopped.
15355 (send_sigstop_callback): New.
15356 (stop_all_lwps): Use send_sigstop_callback instead.
15357 (linux_resume_one_thread): Adjust.
15358 (proceed_one_lwp): Still proceed an LWP that the client has
15359 requested to stop, if we haven't reported it as stopped yet. Make
15360 sure that LWPs the client want stopped, have a pending SIGSTOP.
15362 2010-04-26 Doug Evans <dje@google.com>
15364 * server.c (handle_general_set): Make static.
15366 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
15367 Print received char after testing for error/eof instead of before.
15368 (input_interrupt): Tweak comment.
15370 2010-04-23 Doug Evans <dje@google.com>
15372 * server.c (start_inferior): Print inferior argv if --debug.
15374 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
15376 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
15377 * nto-x86-low.c: Include server.h
15379 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
15381 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
15382 be consistent with other sources of this directory.
15383 (init_registers_amd64): Correct name of source file of this function
15386 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15388 * configure.srv (x86_64-*-mingw*): New configuration for Windows
15389 64-bit executables.
15391 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15393 * win32-i386-low.c: Add 64-bit support.
15394 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
15395 (init_registers_amd64): Declare.
15396 (mappings): Add 64-bit version of array.
15397 (init_windows_x86): New function.
15398 (the_low_target): Change init_arch field to init_windows_x86.
15400 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15402 * win32-low.c: Adapt to support also 64-bit architecture.
15403 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
15404 (get_image_name): Use SIZE_T type for local variable `done'.
15405 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
15406 (toolhelp_get_dll_name): Idem.
15407 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
15408 Use uintptr_t typecast to avoid warning.
15409 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
15410 (handle_exception): Use phex_nz to avoid warning.
15411 (win32_wait): Remove unused local variable `process'.
15413 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15415 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
15418 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
15420 * configure.ac: Use `ws2_32' library for srv_mingw.
15421 * configure: Regenerate.
15422 * gdbreplay.c: Include winsock2.h instead of winsock.h.
15423 * remote-utils.c: Likewise.
15425 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
15427 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
15428 if __x86_64__ is defined.
15430 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
15432 * configure: Regenerate.
15434 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
15436 * server.c (handle_query): Handle 'qGetTIBAddr' query.
15437 * target.h (target_ops): New get_tib_address field.
15438 * win32-low.h (win32_thread_info): Add thread_local_base field.
15439 * win32-low.c (child_add_thread): Add tlb argument.
15440 Set thread_local_base field to TLB.
15441 (get_child_debug_event): Adapt to child_add_thread change.
15442 (win32_get_tib_address): New function.
15443 (win32_target_ops): Set get_tib_address field to
15444 win32_get_tib_address.
15445 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
15447 2010-04-12 Pedro Alves <pedro@codesourcery.com>
15449 * linux-low.c (linux_mourn): Also remove the process.
15450 * server.c (handle_target_event): Don't remove the process here.
15451 * nto-low.c (nto_mourn): New.
15452 (nto_target_ops): Install it.
15453 * spu-low.c (spu_mourn): New.
15454 (spu_target_ops): Install it.
15455 * win32-low.c (win32_mourn): New.
15456 (win32_target_ops): Install it.
15458 2010-04-12 Pedro Alves <pedro@codesourcery.com>
15460 * server.h (buffer_xml_printf): Remove redundant `;'.
15462 2010-04-12 Pedro Alves <pedro@codesourcery.com>
15464 * regcache.c (set_register_cache): Invalidate regcaches before
15465 changing the register cache layout.
15466 (regcache_invalidate_one): Allow a NULL regcache.
15467 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
15468 regcaches before changing the register cache layout or the target
15471 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
15473 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
15474 variable warning on Linux/x86-64.
15476 2010-04-11 Pedro Alves <pedro@codesourcery.com>
15478 GDBserver disconnected tracing support.
15480 * linux-low.c (linux_remove_process): Delete.
15481 (add_lwp): Don't set last_resume_kind here.
15482 (linux_kill): Use `mourn'.
15483 (linux_detach): Use `thread_db_detach', and `mourn'.
15484 (linux_mourn): New.
15485 (linux_attach_lwp_1): Adjust comment.
15486 (linux_attach): last_resume_kind moved the thread_info; adjust.
15487 (status_pending_p_callback): Adjust.
15488 (linux_wait_for_event_1): Adjust.
15489 (count_events_callback, select_singlestep_lwp_callback)
15490 (select_event_lwp_callback, cancel_breakpoints_callback)
15491 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
15492 (proceed_one_lwp): Adjust.
15493 (linux_async): Add debug output.
15494 (linux_thread_stopped): New.
15495 (linux_pause_all): New.
15496 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
15498 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
15499 (thread_db_free): Delete declaration.
15500 (thread_db_detach, thread_db_mourn): Declare.
15501 * thread-db.c (thread_db_init): Use thread_db_mourn.
15502 (thread_db_free): Delete, split in two.
15503 (disable_thread_event_reporting): New.
15504 (thread_db_detach): New.
15505 (thread_db_mourn): New.
15507 * server.h (struct thread_info) <last_resume_kind>: New field.
15508 <attached>: Add comment.
15509 <gdb_detached>: New field.
15510 (handler_func): Change return type to int.
15511 (handle_serial_event, handle_target_event): Ditto.
15512 (gdb_connected): Declare.
15514 (disconnected_tracing): Declare.
15515 (stop_tracing): Declare.
15517 * server.c (handle_query) <qSupported>: Report support for
15518 disconnected tracing.
15519 (queue_stop_reply_callback): Account for running threads.
15520 (gdb_wants_thread_stopped): New.
15521 (gdb_wants_all_threads_stopped): New.
15522 (gdb_reattached_process): New.
15523 (handle_status): Clear the `gdb_detached' flag of all processes.
15524 In all-stop, stop all threads.
15525 (main): Be sure to leave tfind mode. Handle disconnected tracing.
15526 (process_serial_event): If the remote connection breaks, or if an
15527 exit was forced with "monitor exit", force an event loop exit.
15528 Handle disconnected tracing on detach.
15529 (handle_serial_event): Adjust.
15530 (handle_target_event): If GDB isn't connected, forward events back
15531 to the inferior, unless the last process exited, in which case,
15532 exit gdbserver. Adjust interface.
15534 * remote-utils.c (remote_open): Don't block in accept. Instead
15535 register an event loop source on the listen socket file
15536 descriptor. Refactor bits into ...
15537 (listen_desc): ... this new global.
15538 (gdb_connected): ... this new function.
15539 (enable_async_notification): ... this new function.
15540 (handle_accept_event): ... this new function.
15541 (remote_close): Clear remote_desc.
15543 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
15545 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
15547 (mourn_inferior): Define.
15548 (target_process_qsupported): Avoid the dangling else problem.
15549 (thread_stopped): Define.
15550 (pause_all): Define.
15551 (target_waitstatus_to_string): Declare.
15552 * target.c (target_waitstatus_to_string): New.
15554 * tracepoint.c (tracing): Make extern.
15555 (disconnected_tracing): New.
15556 (stop_tracing): Make extern. Handle tracing stops due to GDB
15558 (cmd_qtdisconnected): New.
15559 (cmd_qtstatus): Report disconnected tracing status in trace reply.
15560 (handle_tracepoint_general_set): Handle QTDisconnected.
15562 * event-loop.c (event_handler_func): Change return type to int.
15563 (process_event): Bail out if the event handler wants the event
15565 (handle_file_event): Ditto.
15566 (start_event_loop): Bail out if the event handler wants the event
15569 * nto-low.c (nto_target_ops): Adjust.
15570 * spu-low.c (spu_wait): Don't remove the process here.
15571 (spu_target_ops): Adjust.
15572 * win32-low.c (win32_wait): Don't remove the process here.
15573 (win32_target_ops): Adjust.
15575 2010-04-11 Pedro Alves <pedro@codesourcery.com>
15577 * regcache.c (realloc_register_cache): Invalidate inferior's
15578 regcache before recreating it.
15580 2010-04-09 Pedro Alves <pedro@codesourcery.com>
15582 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
15584 2010-04-09 Stan Shebs <stan@codesourcery.com>
15585 Pedro Alves <pedro@codesourcery.com>
15587 * server.h (LONGEST): New.
15588 (struct thread_info) <while_stepping>: New field.
15589 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
15591 (initialize_tracepoint, handle_tracepoint_general_set)
15592 (handle_tracepoint_query, tracepoint_finished_step)
15593 (tracepoint_was_hit, release_while_stepping_state_list):
15594 (current_traceframe): Declare.
15595 * server.c (handle_general_set): Handle tracepoint packets.
15596 (read_memory): New.
15597 (write_memory): New.
15598 (handle_search_memory_1): Use read_memory.
15599 (handle_query): Report support for conditional tracepoints, trace
15600 state variables, and tracepoint sources. Handle tracepoint
15602 (main): Initialize the tracepoints module.
15603 (process_serial_event): Handle traceframe reads/writes.
15605 * linux-low.c (handle_tracepoints): New.
15606 (linux_wait_1): Call it.
15607 (linux_resume_one_lwp): Handle while-stepping.
15608 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
15609 (linux_target_ops): Install them.
15610 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
15612 * linux-x86-low.c (x86_supports_tracepoints): New.
15613 (the_low_target). Install it.
15615 * mem-break.h (delete_breakpoint): Declare.
15616 * mem-break.c (delete_breakpoint): Make external.
15618 * target.h (struct target_ops): Add `supports_tracepoints',
15619 `read_pc', and `write_pc' fields.
15620 (target_supports_tracepoints): Define.
15621 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
15624 * regcache.h (struct regcache) <registers_owned>: New field.
15625 (init_register_cache, regcache_cpy): Declare.
15626 (regcache_read_pc, regcache_write_pc): Declare.
15627 (register_cache_size): Declare.
15628 (supply_regblock): Declare.
15629 * regcache.c (init_register_cache): New.
15630 (new_register_cache): Use it.
15631 (regcache_cpy): New.
15632 (register_cache_size): New.
15633 (supply_regblock): New.
15634 (regcache_read_pc, regcache_write_pc): New.
15636 * tracepoint.c: New.
15638 * Makefile.in (OBS): Add tracepoint.o.
15639 (tracepoint.o): New rule.
15641 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
15643 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
15645 (i386-mmx.c): Likewise.
15646 (i386-mmx-linux.o): Likewise.
15647 (i386-mmx-linux.c): Likewise.
15649 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
15650 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
15651 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
15652 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
15654 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
15655 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
15656 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
15658 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
15660 * Makefile.in (clean): Updated.
15662 (i386-avx.c): Likewise.
15663 (i386-avx-linux.o): Likewise.
15664 (i386-avx-linux.c): Likewise.
15665 (amd64-avx.o): Likewise.
15666 (amd64-avx.c): Likewise.
15667 (amd64-avx-linux.o): Likewise.
15668 (amd64-avx-linux.c): Likewise.
15670 * configure.srv (srv_i386_regobj): Add i386-avx.o.
15671 (srv_i386_linux_regobj): Add i386-avx-linux.o.
15672 (srv_amd64_regobj): Add amd64-avx.o.
15673 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
15674 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
15675 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
15676 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
15677 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
15678 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
15679 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
15681 * i387-fp.c: Include "i386-xstate.h".
15683 (i387_cache_to_xsave): Likewise.
15684 (i387_xsave_to_cache): Likewise.
15685 (x86_xcr0): Likewise.
15687 * i387-fp.h (i387_cache_to_xsave): Likewise.
15688 (i387_xsave_to_cache): Likewise.
15689 (x86_xcr0): Likewise.
15691 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
15692 * linux-crisv32-low.c (target_regsets): Likewise.
15693 * linux-m68k-low.c (target_regsets): Likewise.
15694 * linux-mips-low.c (target_regsets): Likewise.
15695 * linux-ppc-low.c (target_regsets): Likewise.
15696 * linux-s390-low.c (target_regsets): Likewise.
15697 * linux-sh-low.c (target_regsets): Likewise.
15698 * linux-sparc-low.c (target_regsets): Likewise.
15699 * linux-xtensa-low.c (target_regsets): Likewise.
15701 * linux-low.c: Include <sys/uio.h>.
15702 (regsets_fetch_inferior_registers): Support nt_type.
15703 (regsets_store_inferior_registers): Likewise.
15704 (linux_process_qsupported): New.
15705 (linux_target_ops): Add linux_process_qsupported.
15707 * linux-low.h (regset_info): Add nt_type.
15708 (linux_target_ops): Add process_qsupported.
15710 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
15712 (init_registers_i386_avx_linux): New.
15713 (init_registers_amd64_avx_linux): Likewise.
15714 (xmltarget_i386_linux_no_xml): Likewise.
15715 (xmltarget_amd64_linux_no_xml): Likewise.
15716 (PTRACE_GETREGSET): Likewise.
15717 (PTRACE_SETREGSET): Likewise.
15718 (x86_fill_xstateregset): Likewise.
15719 (x86_store_xstateregset): Likewise.
15720 (use_xml): Likewise.
15721 (x86_linux_update_xmltarget): Likewise.
15722 (x86_linux_process_qsupported): Likewise.
15723 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
15724 (x86_arch_setup): Don't call init_registers_amd64_linux nor
15725 init_registers_i386_linux here. Call
15726 x86_linux_update_xmltarget.
15727 (the_low_target): Add x86_linux_process_qsupported.
15729 * server.c (handle_query): Call target_process_qsupported.
15731 * target.h (target_ops): Add process_qsupported.
15732 (target_process_qsupported): New.
15734 2010-04-03 Pedro Alves <pedro@codesourcery.com>
15736 * inferiors.c (add_thread): Set last_status kind to
15737 TARGET_WAITKIND_IGNORE.
15738 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
15739 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
15740 (linux_wait_1): Move `thread' local definition to block that uses
15741 it. Don't NULL initialize `event_child'.
15742 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
15743 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
15744 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
15746 2010-04-01 Pedro Alves <pedro@codesourcery.com>
15748 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
15749 an extended waitstatus, or by a watchpoint.
15750 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
15751 thread was stepping or has been stopped by a watchpoint.
15753 2010-04-01 Pedro Alves <pedro@codesourcery.com>
15755 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
15756 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
15757 of another, then delete the previous, and validate all
15759 (validate_inserted_breakpoint): New.
15760 (delete_disabled_breakpoints): New.
15761 (validate_breakpoints): New.
15762 (check_mem_read): Validate breakpoints before trusting their
15763 shadow. Delete disabled breakpoints.
15764 (check_mem_write): Validate breakpoints before trusting they
15765 should be inserted. Delete disabled breakpoints.
15766 * mem-break.h (validate_breakpoints):
15767 * server.c (handle_query): Validate breakpoints when we see a
15770 2010-04-01 Pedro Alves <pedro@codesourcery.com>
15772 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
15773 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
15774 if we could tell there's a GDB breakpoint at stop_pc.
15775 (need_step_over_p): Don't do a step over if we find a GDB
15776 breakpoint at the resume PC.
15778 * mem-break.c (struct raw_breakpoint): New.
15779 (enum bkpt_type): New type `gdb_breakpoint'.
15780 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
15781 fields. New field `raw'.
15782 (find_raw_breakpoint_at): New.
15783 (set_raw_breakpoint_at): Handle refcounting. Create a raw
15784 breakpoint instead.
15785 (set_breakpoint_at): Adjust.
15786 (delete_raw_breakpoint): New.
15787 (release_breakpoint): New.
15788 (delete_breakpoint): Rename to...
15789 (delete_breakpoint_1): ... this. Add proc parameter. Use
15790 release_breakpoint. Return ENOENT.
15791 (delete_breakpoint): Reimplement.
15792 (find_breakpoint_at): Delete.
15793 (find_gdb_breakpoint_at): New.
15794 (delete_breakpoint_at): Delete.
15795 (set_gdb_breakpoint_at): New.
15796 (delete_gdb_breakpoint_at): New.
15797 (gdb_breakpoint_here): New.
15798 (set_reinsert_breakpoint): Use release_breakpoint.
15799 (uninsert_breakpoint): Rename to ...
15800 (uninsert_raw_breakpoint): ... this.
15801 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
15802 (reinsert_raw_breakpoint): Change parameter type to
15804 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
15806 (check_breakpoints): Adjust. Use release_breakpoint.
15807 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
15808 (breakpoint_inserted_here): Ditto.
15809 (check_mem_read): Adjust to iterate over raw breakpoints instead.
15810 Don't trust the breakpoint's shadow if it is not inserted.
15811 (check_mem_write): Adjust to iterate over raw breakpoints instead.
15812 (delete_all_breakpoints): Adjust.
15813 (free_all_breakpoints): Mark all breakpoints as uninserted, and
15814 use delete_breakpoint_1.
15816 * mem-break.h (breakpoints_supported): Delete declaration.
15817 (set_gdb_breakpoint_at): Declare.
15818 (gdb_breakpoint_here): Declare.
15819 (delete_breakpoint_at): Delete.
15820 (delete_gdb_breakpoint_at): Declare.
15822 * server.h (struct raw_breakpoint): Forward declare.
15823 (struct process_info): New field `raw_breakpoints'.
15825 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
15828 2010-03-24 Pedro Alves <pedro@codesourcery.com>
15830 * linux-low.c (status_pending_p_callback): Fix comment.
15831 (linux_wait_for_event_1): Move most of the internal breakpoint
15832 handling from here...
15833 (linux_wait_1): ... to here.
15834 (count_events_callback): New.
15835 (select_singlestep_lwp_callback): New.
15836 (select_event_lwp_callback): New.
15837 (cancel_breakpoints_callback): New.
15838 (select_event_lwp): New.
15839 (linux_wait_1): Simplify internal breakpoint handling. Give equal
15840 priority to all LWPs that have had events that should be reported
15841 to the client. Cancel breakpoints when about to reporting the
15842 event to the client, not while stopping lwps. No longer cancel
15843 finished single-steps here.
15844 (cancel_finished_single_step): Delete.
15845 (cancel_finished_single_steps): Delete.
15847 2010-03-24 Pedro Alves <pedro@codesourcery.com>
15849 * mem-break.c (enum bkpt_type): New.
15850 (struct breakpoint): New field `type'.
15851 (set_breakpoint_at): Change return type to struct breakpoint
15852 pointer. Set type to `other_breakpoint' by default.
15853 (delete_breakpoint): Rewrite, supporting more than one breakpoint
15854 in the breakpoint list.
15855 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
15856 (reinsert_breakpoint): Rename to ...
15857 (reinsert_raw_breakpoint): ... this.
15858 (reinsert_breakpoints_at): Adjust.
15859 * mem-break.h (struct breakpoint): Declare.
15860 (set_breakpoint_at): Change return type to struct breakpoint
15863 2010-03-24 Pedro Alves <pedro@codesourcery.com>
15865 * server.c (handle_query): Assign, not compare.
15867 2010-03-24 Pedro Alves <pedro@codesourcery.com>
15869 Teach linux gdbserver to step-over-breakpoints.
15871 * linux-low.c (can_hardware_single_step): New.
15872 (supports_breakpoints): New.
15873 (handle_extended_wait): If stopping threads, read the stop pc of
15874 the new cloned LWP.
15876 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
15877 low target doesn't support retrieving the PC.
15878 (add_lwp): Set last_resume_kind to resume_continue.
15879 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
15880 (linux_attach): Don't clear stop_expected. Set the lwp's
15881 last_resume_kind to resume_stop.
15882 (linux_detach_one_lwp): Don't check for removed breakpoints.
15883 (check_removed_breakpoint): Delete.
15884 (status_pending_p): Rename to ...
15885 (status_pending_p_callback): ... this. Don't check for removed
15886 breakpoints. Don't consider threads that are stopped from GDB's
15888 (linux_wait_for_lwp): Always read the stop_pc here.
15889 (cancel_breakpoint): New.
15890 (step_over_bkpt): New global.
15891 (linux_wait_for_event_1): Implement stepping over breakpoints.
15892 (gdb_wants_lwp_stopped): New.
15893 (gdb_wants_all_stopped): New.
15894 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
15895 single-step traps here. Store the thread's last reported target
15897 (send_sigstop): Don't clear stop_expected. Always set it,
15899 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
15900 (cancel_finished_single_step): New.
15901 (cancel_finished_single_steps): New.
15902 (wait_for_sigstop): Don't cancel finished single-step traps here.
15903 (linux_resume_one_lwp): Don't check for removed breakpoints.
15904 Don't set `step' on non-hardware step archs.
15905 (linux_set_resume_request): Ignore resume_stop requests if already
15906 stopping or stopped. Set the lwp's last_resume_kind.
15907 (resume_status_pending_p): Don't check for removed breakpoints.
15908 (need_step_over_p): New.
15909 (start_step_over): New.
15910 (finish_step_over): New.
15911 (linux_resume_one_thread): Always queue a sigstop for resume_stop
15912 requests. Clear the thread's last reported target waitstatus.
15913 Don't use the `suspended' flag. Don't consider pending breakpoints.
15914 (linux_resume): Start a step-over if necessary.
15915 (proceed_one_lwp): New.
15916 (proceed_all_lwps): New.
15917 (unstop_all_lwps): New.
15918 * linux-low.h (struct lwp_info): Rewrite comment for the
15919 `suspended' flag. Add the `stop_pc' field. Delete the
15920 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
15921 Add `'last_resume_kind' and `need_step_over' fields.
15922 * inferiors.c (struct thread_info): Delete, moved elsewhere.
15923 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
15924 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
15925 (set_raw_breakpoint_at): New.
15926 (set_breakpoint_at): Rewrite to use it.
15927 (reinsert_breakpoint_handler): Delete.
15928 (set_reinsert_breakpoint): New.
15929 (reinsert_breakpoint_by_bp): Delete.
15930 (delete_reinsert_breakpoints): New.
15931 (uninsert_breakpoint): Rewrite.
15932 (uninsert_breakpoints_at): New.
15933 (reinsert_breakpoint): Rewrite.
15934 (reinsert_breakpoints_at): New.
15935 (check_breakpoints): Rewrite.
15936 (breakpoint_here): New.
15937 (breakpoint_inserted_here): New.
15938 (check_mem_read): Adjust.
15939 * mem-break.h (breakpoints_supported, breakpoint_here)
15940 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
15941 (reinsert_breakpoint_by_bp): Delete declaration.
15942 (delete_reinsert_breakpoints): Declare.
15943 (reinsert_breakpoint): Delete declaration.
15944 (reinsert_breakpoints_at): Declare.
15945 (uninsert_breakpoint): Delete declaration.
15946 (uninsert_breakpoints_at): Declare.
15947 (check_breakpoints): Adjust prototype.
15948 * server.h: Adjust include order.
15949 (struct thread_info): Declare here. Add a `last_status' field.
15951 2010-03-23 Michael Snyder <msnyder@vmware.com>
15953 * server.c (crc32): New function.
15954 (handle_query): Add handling for 'qCRC:' request.
15956 2010-03-23 Pedro Alves <pedro@codesourcery.com>
15958 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
15959 lwp had been stopped by a watchpoint.
15961 2010-03-16 Pedro Alves <pedro@codesourcery.com>
15963 * server.h (internal_error): Declare.
15964 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
15965 * utils.c (internal_error): New function.
15967 2010-03-15 Andreas Schwab <schwab@redhat.com>
15969 * configure.srv: Fix typo setting srv_regobj.
15971 2010-03-15 Pedro Alves <pedro@codesourcery.com>
15973 * linux-low.c (fetch_register): Avoid passing a non string literal
15975 (usr_store_inferior_registers): Ditto.
15977 2010-03-14 Pedro Alves <pedro@codesourcery.com>
15979 * linux-low.c (linux_write_memory): Bail out early if peeking
15982 2010-03-14 Pedro Alves <pedro@codesourcery.com>
15984 * linux-low.h (struct lwp_info): New fields
15985 `stopped_by_watchpoint' and `stopped_data_address'.
15986 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
15987 here, and cache them in the lwp object.
15988 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
15990 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
15992 (linux_stopped_by_watchpoint): Rewrite.
15993 (linux_stopped_data_address): Rewrite.
15995 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
15997 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
15998 switching the current inferior, not before.
16000 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
16002 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
16003 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
16004 i386-linux.c and amd64-linux.c.
16005 (reg-i386.o): Removed.
16006 (reg-i386.c): Likewise.
16007 (reg-i386-linux.o): Likewise.
16008 (reg-i386-linux.c): Likewise.
16009 (reg-x86-64.o): Likewise.
16010 (reg-x86-64.c): Likewise.
16011 (reg-x86-64-linux.o): Likewise.
16012 (reg-x86-64-linux.c): Likewise.
16014 (i386.c): Likewise.
16015 (i386-linux.o): Likewise.
16016 (i386-linux.c): Likewise.
16017 (amd64.o): Likewise.
16018 (amd64.c): Likewise.
16019 (amd64-linux.o): Likewise.
16020 (amd64-linux.c): Likewise.
16022 * configure.srv (srv_i386_regobj): New.
16023 (srv_i386_linux_regobj): Likewise.
16024 (srv_amd64_regobj): Likewise.
16025 (srv_amd64_linux_regobj): Likewise.
16026 (srv_i386_32bit_xmlfiles): Likewise.
16027 (srv_i386_64bit_xmlfiles): Likewise.
16028 (srv_i386_xmlfiles): Likewise.
16029 (srv_amd64_xmlfiles): Likewise.
16030 (srv_i386_linux_xmlfiles): Likewise.
16031 (srv_amd64_linux_xmlfiles): Likewise.
16032 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
16033 srv_xmlfiles to $srv_i386_xmlfiles.
16034 (i[34567]86-*-mingw32ce*): Likewise.
16035 (i[34567]86-*-mingw*): Likewise.
16036 (i[34567]86-*-nto*): Likewise.
16037 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
16038 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
16039 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
16040 (x86_64-*-linux*): Likewise.
16042 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
16043 (init_registers_amd64_linux): New.
16044 (x86_arch_setup): Replace init_registers_x86_64_linux with
16045 init_registers_amd64_linux.
16047 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
16049 * configure.ac: Check for libdl. If it is not available link against
16050 static libthread_db.
16051 * configure: Regenerate.
16053 2010-02-22 Pedro Alves <pedro@codesourcery.com>
16057 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
16058 handing a read watchpoint.
16059 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
16061 2010-02-12 Doug Evans <dje@google.com>
16063 * linux-low.c (linux_supports_tracefork_flag): Document.
16064 (linux_look_up_symbols): Add comment.
16066 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
16068 * regcache.c (supply_register): Clear regcache if buf is NULL.
16070 2010-02-02 Nicolas Roche <roche@sourceware.org>
16071 Joel Brobecker <brobecker@adacore.com>
16073 * inferiors.c (find_inferior): Add function documentation.
16074 (unloaded_dll): Handle the case where the unloaded dll has not
16075 been previously registered in the dll list.
16077 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
16079 * linux-arm-low.c (thumb_breakpoint_len): Delete.
16080 (thumb2_breakpoint): New.
16081 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
16083 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
16085 * linux-low.c (get_stop_pc): Check for SIGTRAP.
16086 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
16089 2010-01-21 Pedro Alves <pedro@codesourcery.com>
16091 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
16093 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16095 * linux-s390-low.c (s390_collect_ptrace_register)
16096 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
16098 2010-01-21 Doug Evans <dje@google.com>
16100 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
16101 (PTRACE_ARG4_TYPE): New macro.
16102 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
16103 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
16104 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
16105 (usr_store_inferior_registers): Ditto.
16106 (linux_read_memory, linux_write_memory): Ditto.
16107 (linux_test_for_tracefork): Ditto.
16109 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
16110 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
16112 2010-01-21 Pedro Alves <pedro@codesourcery.com>
16114 * proc-service.c (ps_lgetregs): Don't refetch registers from the
16117 2010-01-21 Pedro Alves <pedro@codesourcery.com>
16119 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
16120 prototype to take a regcache. Adjust.
16122 2010-01-20 Pedro Alves <pedro@codesourcery.com>
16124 * regcache.h (struct thread_info): Forward declare.
16125 (struct regcache): New.
16126 (new_register_cache): Adjust prototype.
16127 (get_thread_regcache): Declare.
16128 (free_register_cache): Adjust prototype.
16129 (registers_to_string, registers_from_string): Ditto.
16130 (supply_register, supply_register_by_name, collect_register)
16131 (collect_register_as_string, collect_register_by_name): Ditto.
16132 * regcache.c (struct inferior_regcache_data): Delete.
16133 (get_regcache): Rename to ...
16134 (get_thread_regcache): ... this. Adjust. Switch inferior before
16135 fetching registers.
16136 (regcache_invalidate_one): Adjust.
16137 (regcache_invalidate): Fix prototype.
16138 (new_register_cache): Return the new register cache.
16139 (free_register_cache): Change prototype.
16140 (realloc_register_cache): Adjust.
16141 (registers_to_string): Change prototype to take a regcache. Adjust.
16142 (registers_from_string): Ditto.
16143 (register_data): Ditto.
16144 (supply_register): Ditto.
16145 (supply_register_by_name): Ditto.
16146 (collect_register): Ditto.
16147 (collect_register_as_string): Ditto.
16148 (collect_register_by_name): Ditto.
16149 * server.c (process_serial_event): Adjust.
16150 * linux-low.h (regset_fill_func, regset_store_func): Change
16152 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
16154 * linux-low.c (get_stop_pc): Adjust.
16155 (check_removed_breakpoint): Adjust.
16156 (linux_wait_for_event): Adjust.
16157 (linux_resume_one_lwp): Adjust.
16158 (fetch_register): Add regcache parameter. Adjust.
16159 (usr_store_inferior_registers): Ditto.
16160 (regsets_fetch_inferior_registers): Ditto.
16161 (regsets_store_inferior_registers): Ditto.
16162 (linux_fetch_registers, linux_store_registers): Ditto.
16163 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
16165 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
16167 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
16168 prototype to take a regcache.
16169 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
16170 * remote-utils.c (convert_ascii_to_int, outreg)
16171 (prepare_resume_reply): Change prototype to take a regcache.
16173 * target.h (struct target_ops) <fetch_registers, store_registers>:
16174 Change prototype to take a regcache.
16175 (fetch_inferior_registers, store_inferior_registers): Change
16176 prototype to take a regcache. Adjust.
16177 * proc-service.c (ps_lgetregs): Adjust.
16178 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
16179 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
16180 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
16181 take a regcache. Adjust.
16182 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
16183 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
16184 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
16185 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
16186 * linux-cris-low.c (cris_get_pc, cris_set_pc)
16187 (cris_cannot_fetch_register):
16188 (cris_breakpoint_at): Change prototype to take a regcache.
16190 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
16191 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
16192 to take a regcache. Adjust.
16193 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
16195 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
16196 take a regcache. Adjust.
16197 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
16198 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
16199 (m68k_set_pc): Change prototype to take a regcache. Adjust.
16200 * linux-mips-low.c (mips_get_pc):
16201 (mips_set_pc): Change prototype to take a regcache. Adjust.
16202 (mips_reinsert_addr): Adjust.
16203 (mips_collect_register): Change prototype to take a regcache.
16205 (mips_supply_register):
16206 (mips_collect_register_32bit, mips_supply_register_32bit)
16207 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
16208 (mips_store_fpregset): Ditto.
16209 * linux-ppc-low.c (ppc_supply_ptrace_register)
16210 (ppc_supply_ptrace_register): Ditto.
16211 (parse_spufs_run): Adjust.
16212 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
16213 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
16214 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
16215 take a regcache. Adjust.
16216 * linux-s390-low.c (s390_collect_ptrace_register)
16217 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
16218 (s390_set_pc): Change prototype to take a regcache. Adjust.
16219 (s390_arch_setup): Adjust.
16220 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
16221 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
16222 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
16223 (sparc_fill_gregset, sparc_store_gregset_from_stack)
16224 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
16226 (sparc_breakpoint_at): Adjust.
16227 * linux-xtensa-low.c (xtensa_fill_gregset):
16228 (xtensa_store_gregset):
16229 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
16230 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
16231 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
16232 prototype to take a regcache. Adjust.
16233 * win32-arm-low.c (arm_fetch_inferior_register)
16234 (arm_store_inferior_register): Change prototype to take a
16236 * win32-i386-low.c (i386_fetch_inferior_register)
16237 (i386_store_inferior_register): Change prototype to take a
16239 * win32-low.c (child_fetch_inferior_registers)
16240 (child_store_inferior_registers): Change prototype to take a
16242 (win32_wait): Adjust.
16243 (win32_fetch_inferior_registers): Change prototype to take a
16245 (win32_store_inferior_registers): Adjust.
16246 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
16247 store_inferior_register>: Change prototype to take a regcache.
16249 2010-01-20 Doug Evans <dje@google.com>
16251 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
16253 (linux_wait_for_event1, linux_init_signals): Ditto.
16254 (W_STOPCODE): Provide definition if missing.
16256 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
16258 * linux-low.c (linux_core_of_thread): New.
16259 (compare_ints, show_process, list_threads): New.
16260 (linux_qxfer_osdata): Report threads and cores.
16261 (linux_target_op): Register linux_core_of_thread.
16262 * remote-utils.c (prepare_resume_reply): Report the core.
16263 (buffer_xml_printf): Support %d specifier.
16264 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
16266 (handle_query): Handle qXfer:threads. Announce availability
16268 * target.h (struct target_ops): New field core_of_thread.
16270 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
16272 * Makefile.in (clean): Remove new generated files.
16273 (reg-s390.o, reg-s390.c): Remove rules.
16274 (reg-s390x.o, reg-s390x.c): Likewise.
16275 (s390-linux32.o, s390-linux32.c): Add rules.
16276 (s390-linux64.o, s390-linux64.c): Likewise.
16277 (s390x-linux64.o, s390x-linux64.c): Likewise.
16278 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
16279 * linux-s390-low.c: Include <elf.h>.
16280 (HWCAP_S390_HIGH_GPRS): Define if undefined.
16281 (init_registers_s390): Remove prototype.
16282 (init_registers_s390x): Likewise.
16283 (init_registers_s390_linux32): Add prototype.
16284 (init_registers_s390_linux64): Likewise.
16285 (init_registers_s390x_linux64): Likewise.
16286 (s390_num_regs_3264): New define.
16287 (s390_regmap_3264): New global variable.
16288 (s390_cannot_fetch_register): Remove obsolete check.
16289 (s390_cannot_store_register): Likewise.
16290 (s390_collect_ptrace_register): Handle upper/lower register halves.
16291 (s390_supply_ptrace_register): Likewise.
16292 (s390_fill_gregset): Update to register number changes.
16293 (s390_get_hwcap): New routine.
16294 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
16295 Install appropriate regmap and register set.
16297 2010-01-01 Joel Brobecker <brobecker@adacore.com>
16299 * server.c (gdbserver_version): Update copyright year to 2010.
16300 * gdbreplay.c (gdbreplay_version): Likewise.
16302 2009-12-28 Doug Evans <dje@google.com>
16304 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
16305 elf/external.h. Include <elf.h> instead but only if necessary.
16307 2009-12-28 Pedro Alves <pedro@codesourcery.com>
16309 * linux-low.c (linux_remove_process): Remove `detaching'
16310 parameter. Don't release/detach from thread_db here.
16311 (linux_kill): Release/detach from thread_db here, ...
16312 (linux_detach): ... and here, before actually detaching.
16313 (linux_wait_1): ... and here, when a process exits.
16314 * thread-db.c (any_thread_of): New.
16315 (thread_db_free): Switch the current inferior to a thread of the
16318 2009-12-21 Doug Evans <dje@google.com>
16320 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
16322 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
16323 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
16324 warning ifndef __NR_tkill. Move setting of errno there too.
16325 Delete unnecessary resetting of errno after syscall.
16326 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
16328 * configure.ac: Check for dladdr.
16329 * config.in: Regenerate.
16330 * configure: Regenerate.
16331 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
16332 (try_thread_db_load): Update.
16334 * linux-low.c (my_waitpid): Delete unnecessary prototype.
16336 2009-12-18 Doug Evans <dje@google.com>
16338 * event-loop.c: Include unistd.h if it exists.
16340 * linux-low.c (my_waitpid): Move definition away from being in
16341 between linux_tracefork_child/linux_test_for_tracefork.
16343 * gdb_proc_service.h (psaddr_t): Fix type.
16344 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
16345 signature to match glibc.
16347 2009-12-16 Doug Evans <dje@google.com>
16349 * linux-low.c (linux_read_memory): Fix argument to read.
16351 2009-11-26 Pedro Alves <pedro@codesourcery.com>
16353 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
16354 events, don't leave current_inferior pointing at null.
16356 2009-11-26 Pedro Alves <pedro@codesourcery.com>
16358 * win32-low.c (LOG): Delete.
16359 (OUTMSG): Output to stderr.
16360 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
16361 on compile time LOG macro.
16362 (win32_wait): Fix debug output.
16364 2009-11-26 Pedro Alves <pedro@codesourcery.com>
16366 * win32-low.c (win32_add_one_solib): If the dll name is
16367 "ntdll.dll", prepend the system directory to the dll path.
16369 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
16371 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
16373 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
16374 Vladimir Prus <vladimir@codesourcery.com>
16376 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
16377 * configure.ac: Check for __mcoldfire__ and set
16378 gdb_cv_m68k_is_coldfire.
16379 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
16380 reg-cf.o and reg-m68k.o.
16381 * configure: Regenerated.
16383 2009-11-16 Pedro Alves <pedro@codesourcery.com>
16385 * linux-low.c (linux_remove_process): Add `detaching' parameter.
16386 Pass it to thread_db_free.
16387 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
16388 proper `detaching' argument to linux_remove_process.
16389 * linux-low.h (thread_db_free): Add `detaching' parameter.
16390 * thread-db.c (thread_db_init): Pass false as `detaching' argument
16392 (thread_db_free): Add `detaching' parameter. Only
16393 call td_ta_clear_event if detaching from process.
16395 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
16397 * thread-db.c (thread_db_free): Fix typo.
16399 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
16402 * thread-db.c (thread_db_free): Call td_ta_clear_event.
16404 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
16406 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
16407 with an i686 compiler.
16408 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
16410 * configure: Rebuilt.
16412 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
16416 * server.c (handle_search_memory_1): Correct read_addr initialization
16417 in loop for searching subsequent chunks.
16419 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
16421 * configure.ac: New --with-libthread-db option.
16422 * thread-db.c: Allow direct dependence on libthread_db.
16423 (thread_db_free): Adjust.
16424 * config.in: Regenerate.
16425 * configure: Likewise.
16427 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
16430 * thread-db.c (attach_thread): New function.
16431 (maybe_attach_thread): Return success/failure.
16432 (find_new_threads_callback): Adjust.
16433 (thread_db_find_new_threads): Loop until no new threads.
16435 2009-10-13 Pedro Alves <pedro@codesourcery.com>
16437 * proc-service.c (ps_lgetregs): Formatting.
16439 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
16441 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
16442 * configure.ac: Adjust.
16443 * linux-low.h (struct process_info_private): Move members to struct
16445 (thread_db_free, thread_db_handle_monitor_command): New prototype.
16446 * linux-low.c (linux_remove_process): Adjust.
16447 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
16448 * server.c (handle_query): Move code ...
16449 (handle_monitor_command): ... here. New function.
16450 * target.h (struct target_ops): New member.
16451 * thread-db.c (struct thread_db): New.
16452 (libthread_db_search_path): New variable.
16453 (thread_db_create_event, thread_db_enable_reporting)
16454 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
16455 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
16456 (try_thread_db_load_1, dladdr_to_soname): New functions.
16457 (try_thread_db_load, thread_db_load_search): New functions.
16458 (thread_db_init): Search for libthread_db.
16459 (thread_db_free): New function.
16460 (thread_db_handle_monitor_command): Likewise.
16461 * config.in: Regenerate.
16462 * configure: Regenerate.
16464 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
16466 * spu-low.c (spu_kill): Wait for inferior to terminate.
16467 Call clear_inferiors.
16468 (spu_detach): Call clear_inferiors.
16470 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16472 * aclocal.m4: Regenerate.
16473 * config.in: Likewise.
16474 * configure: Likewise.
16476 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16478 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
16479 (parse_spufs_run): New function.
16480 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
16481 (ppc_breakpoint_at): Handle SPU breakpoints.
16483 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16485 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
16486 (SPUFS_MAGIC): Define.
16487 (spu_enumerate_spu_ids): New function.
16488 (linux_qxfer_spu): New function.
16489 (linux_target_ops): Install linux_qxfer_spu.
16491 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16493 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
16494 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
16495 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
16496 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
16497 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
16498 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
16499 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
16500 (init_registers_powerpc_cell32l): Add prototype.
16501 (init_registers_powerpc_cell64l): Likewise.
16502 (ppc_arch_setup): Detect Cell/B.E. architecture.
16504 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16506 * Makefile.in (datarootdir): New variable.
16508 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
16510 * linux-low.c (linux_write_memory): Update debugging output.
16511 * Makefile.in (clean): Add new descriptions.
16512 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
16513 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
16514 * configure.srv: Add new files for arm*-*-linux*.
16515 * linux-arm-low.c: Add new declarations.
16516 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
16517 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
16518 (HWCAP_VFPv3D16): New.
16519 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
16520 instead of __IWMMXT__.
16521 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
16522 (arm_arch_setup): New.
16523 (target_regsets): Remove #ifdef. Add VFP regset.
16524 (the_low_target): Use arm_arch_setup.
16526 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
16528 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
16529 the main thread again.
16531 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
16533 Adding Neutrino gdbserver.
16534 * configure: Regenerated.
16535 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
16536 * configure.srv (i[34567]86-*-nto*): New target.
16537 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
16538 * remote-utils.c [__QNX__]: Include sys/iomgr.h
16539 (nto_comctrl) [__QNX__]: New function.
16540 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
16542 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
16544 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
16547 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
16548 Pedro Alves <pedro@codesourcery.com>
16550 * win32-i386-low.c (i386_get_thread_context): Handle systems that
16551 don't support CONTEXT_EXTENDED_REGISTERS.
16552 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
16553 (the_low_target): Install them.
16554 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
16555 failing with ERROR_PIPE_NOT_CONNECTED.
16557 2009-06-30 Doug Evans <dje@google.com>
16558 Pierre Muller <muller@ics.u-strasbg.fr>
16560 Add h/w watchpoint support to x86-linux, win32-i386.
16561 * Makefile.in (SFILES): Add i386-low.c
16562 (i386_low_h): Define.
16563 (i386-low.o): Add dependencies.
16564 (linux-x86-low.o): Add i386-low.h dependency.
16565 (win32-i386-low.o): Ditto.
16566 * i386-low.c: New file.
16567 * i386-low.h: New file.
16568 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
16569 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
16570 * linux-low.c (linux_add_process): Initialize arch_private.
16571 (linux_remove_process): Free arch_private.
16572 (add_lwp): Initialize arch_private.
16573 (delete_lwp): Free arch_private.
16574 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
16576 * linux-low.h (process_info_private): New member arch_private.
16577 (lwp_info): New member arch_private.
16578 (linux_target_ops): New members new_process, new_thread,
16580 (ptid_of): New macro.
16581 * linux-x86-low.c: Include stddef.h, i386-low.h.
16582 (arch_process_info): New struct.
16583 (arch_lwp_info): New struct.
16584 (x86_linux_dr_get, x86_linux_dr_set): New functions.
16585 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
16586 (i386_dr_low_get_status): New function.
16587 (x86_insert_point, x86_remove_point): New functions.
16588 (x86_stopped_by_watchpoint): New function.
16589 (x86_stopped_data_address): New function.
16590 (x86_linux_new_process, x86_linux_new_thread): New functions.
16591 (x86_linux_prepare_to_resume): New function.
16592 (the_low_target): Add entries for insert_point, remove_point,
16593 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
16595 * server.c (debug_hw_points): New global.
16596 (monitor_show_help): Document set debug-hw-points.
16597 (handle_query): Process "set debug-hw-points".
16598 * server.h (debug_hw_points): Declare.
16599 (paddress): Declare.
16600 * utils.c (NUMCELLS, CELLSIZE): New macros.
16601 (get_sell, xsnprintf, paddress): New functions.
16602 * win32-arm-low.c (the_low_target): Add entries for insert_point,
16603 remove_point, stopped_by_watchpoint, stopped_data_address.
16604 * win32-i386-low.c: Include i386-low.h.
16605 (debug_reg_state): Replaces dr.
16606 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
16607 (i386_dr_low_get_status): New function.
16608 (i386_insert_point, i386_remove_point): New functions.
16609 (i386_stopped_by_watchpoint): New function.
16610 (i386_stopped_data_address): New function.
16611 (i386_initial_stuff): Update.
16612 (get_thread_context,set_thread_context,i386_thread_added): Update.
16613 (the_low_target): Add entries for insert_point,
16614 remove_point, stopped_by_watchpoint, stopped_data_address.
16615 * win32-low.c (win32_insert_watchpoint): New function.
16616 (win32_remove_watchpoint): New function.
16617 (win32_stopped_by_watchpoint): New function.
16618 (win32_stopped_data_address): New function.
16619 (win32_target_ops): Add entries for insert_watchpoint,
16620 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
16621 * win32-low.h (win32_target_ops): New members insert_point,
16622 remove_point, stopped_by_watchpoint, stopped_data_address.
16624 2009-06-25 Pedro Alves <pedro@codesourcery.com>
16626 * server.c (process_serial_event): Re-return unsupported, not
16627 error, if the type isn't recognized. Re-allow supporting only
16628 insert or remove packets. Also call require_running for
16629 breakpoints. Add missing break statement to default case. Tidy.
16630 * target.h (struct target_ops): Rename insert_watchpoint to
16631 insert_point, and remove_watchpoint to remove_point.
16633 * linux-low.h (struct linux_target_ops): Likewise.
16634 * linux-low.c (linux_insert_watchpoint): Rename to ...
16635 (linux_insert_point): ... this. Adjust.
16636 (linux_remove_watchpoint): Rename to ...
16637 (linux_remove_point): ... this. Adjust.
16638 (linux_target_ops): Adjust.
16639 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
16640 (cris_insert_point): ... this.
16641 (cris_remove_watchpoint): Rename to ...
16642 (cris_remove_point): ... this.
16643 (the_low_target): Adjust.
16645 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
16647 * server.c (handle_v_kill): Pass signal_pid to
16648 kill_inferior if multi_process is zero.
16650 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
16652 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
16653 * target.h (target_ops): Comment for *_watchpoint to make it clear
16654 the functions can get types '0' and '1'.
16656 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
16658 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
16659 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
16660 * regcache.c (get_regcache): Likewise.
16661 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
16662 * win32-low.c (child_fetch_inferior_registers): Remove check for
16665 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
16666 Pedro Alves <pedro@codesourcery.com>
16668 * target.h (struct target_ops) <supports_multi_process>: New
16670 (target_supports_multi_process): New.
16671 * server.c (handle_query): Even if GDB reports support, only
16672 enable multi-process if the target also supports it. Report
16673 multi-process support only if the target backend supports it.
16674 * linux-low.c (linux_supports_multi_process): New function.
16675 (linux_target_ops): Install it as target_supports_multi_process
16678 2009-05-24 Doug Evans <dje@google.com>
16680 Global renaming of find_thread_pid to find_thread_ptid.
16681 * server.h (find_thread_ptid): Renamed from find_thread_pid.
16682 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
16683 All callers updated.
16685 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
16686 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
16689 * linux-low.c (get_stop_pc): Print pc if debug_threads.
16690 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
16691 (linux_resume_one_lwp): Ditto.
16693 2009-05-23 Doug Evans <dje@google.com>
16695 * linux-low.c (linux_resume_one_lwp): Change type of first arg
16696 from struct inferior_list_entry * to struct lwp_info *.
16697 All callers updated.
16699 2009-05-13 Doug Evans <dje@google.com>
16701 * linux-x86-low.c: Don't include assert.h.
16702 (x86_siginfo_fixup): Use fatal, not assert.
16703 (x86_arch_setup): Fix comment.
16705 2009-05-12 Doug Evans <dje@google.com>
16707 Biarch support for i386/amd64 gdbserver.
16708 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
16709 Add linux-x86-low.c.
16710 (linux-i386-low.o, linux-x86-64-low.o): Delete.
16711 (linux-x86-low.o): Add.
16712 * linux-x86-64-low.c: Delete.
16713 * linux-i386-low.c: Delete.
16714 * linux-x86-low.c: New file.
16715 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
16717 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
16719 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
16720 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
16721 (linux_child_pid_to_exec_file): New function.
16722 (elf_64_header_p, elf_64_file_p): New functions.
16723 (siginfo_fixup): New function.
16724 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
16725 give target a chance to convert layout.
16726 * linux-low.h (linux_target_ops): New member siginfo_fixup.
16727 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
16729 2009-05-07 Doug Evans <dje@google.com>
16731 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
16732 (regsets_store_inferior_registers): Ditto.
16734 2009-05-06 Pedro Alves <pedro@codesourcery.com>
16738 * linux-low.c (must_set_ptrace_flags): Delete.
16739 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
16741 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
16742 `lwp->must_set_ptrace_flags' instead.
16743 (linux_wait_for_event_1): Set ptrace options here.
16744 (linux_wait_1): ... not here.
16746 2009-04-30 Doug Evans <dje@google.com>
16748 * inferiors.c (started_inferior_callback): New function.
16749 (attached_inferior_callback): New function.
16750 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
16751 * server.c (print_started_pid, print_attached_pid): New functions.
16752 (detach_or_kill_for_exit): New function.
16753 (main): Call it instead of for_each_inferior (kill_inferior_callback).
16754 * server.h (have_started_inferiors_p): Declare.
16755 (have_attached_inferiors_p): Declare.
16757 * inferiors.c (remove_process): Fix memory leak, free process.
16758 * linux-low.c (linux_remove_process): New function.
16759 (linux_kill): Call it instead of remove_process.
16760 (linux_detach, linux_wait_1): Ditto.
16762 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
16764 * configure.srv: Add x86 Windows CE target.
16766 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
16768 * inferiors.c (get_thread_process): Make global.
16769 * server.h (get_thread_process): Add prototype.
16770 * thread-db.c (find_one_thread): Use get_thread_process
16771 instead of current_process.
16772 (thread_db_get_tls_address): Do not crash if called when
16773 thread layer is not yet initialized.
16775 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
16777 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
16778 * spu-low.c (current_tid): Rename to ...
16779 (current_ptid): ... this.
16780 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
16781 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
16782 ptid_get_lwp (current_ptid) instead of current_tid.
16783 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
16784 instead of current_tid. Use find_process_pid to verify pid
16785 argument is valid. Pass proper argument to remove_process.
16786 (spu_thread_alive): Compare current_ptid instead of current_tid.
16787 (spu_resume): Likewise.
16789 2009-04-02 Pedro Alves <pedro@codesourcery.com>
16791 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
16794 2009-04-01 Pedro Alves <pedro@codesourcery.com>
16796 Implement the multiprocess extensions, and add linux multiprocess
16799 * server.h (ULONGEST): Declare.
16800 (struct ptid, ptid_t): New.
16801 (minus_one_ptid, null_ptid): Declare.
16802 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
16803 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
16804 (struct inferior_list_entry): Change `id' type from unsigned from
16806 (struct sym_cache, struct breakpoint, struct
16807 process_info_private): Forward declare.
16808 (struct process_info): Declare.
16809 (current_process): Declare.
16810 (all_processes): Declare.
16811 (initialize_inferiors): Declare.
16812 (add_thread): Adjust to use ptid_t.
16813 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
16814 (add_process, remove_process, find_thread_pid): Declare.
16815 (find_inferior_id): Adjust to use ptid_t.
16816 (cont_thread, general_thread, step_thread): Change type to ptid_t.
16817 (multi_process): Declare.
16818 (push_event): Adjust to use ptid_t.
16819 (read_ptid, write_ptid): Declare.
16820 (prepare_resume_reply): Adjust to use ptid_t.
16821 (clear_symbol_cache): Declare.
16822 * inferiors.c (all_processes): New.
16823 (null_ptid, minus_one_ptid): New.
16824 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
16825 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
16826 (add_thread): Change unsigned long to ptid. Remove gdb_id
16828 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
16829 (gdb_id_to_thread): Rename to ...
16830 (find_thread_pid): ... this. Change unsigned long to ptid.
16831 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
16832 (loaded_dll, pull_pid_from_list): Adjust.
16833 (add_process, remove_process, find_process_pid)
16834 (get_thread_process, current_process, initialize_inferiors): New.
16835 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
16836 (struct target_waitstatus) <related_pid>: Ditto.
16837 (struct target_ops) <kill, detach>: Add `pid' argument. Change
16838 return type to int.
16839 (struct target_ops) <join>: Add `pid' argument.
16840 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
16841 (struct target_ops) <wait>: Add `ptid' field. Change return type
16843 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
16844 (mywait): Add `ptid' argument. Change return type to ptid_t.
16845 (target_pid_to_str): Declare.
16846 * target.c (set_desired_inferior): Adjust to use ptids.
16847 (mywait): Add new `ptid' argument. Adjust.
16848 (target_pid_to_str): New.
16849 * mem-break.h (free_all_breakpoints): Declare.
16850 * mem-break.c (breakpoints): Delelete.
16851 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
16852 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
16853 to use per-process breakpoint list.
16854 (free_all_breakpoints): New.
16855 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
16856 (symbol_cache, all_symbols_looked_up): Delete.
16858 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
16860 (prepare_resume_reply): Change ptid argument's type from unsigned
16861 long to ptid_t. Adjust. Implement W;process and X;process.
16862 (free_sym_cache, clear_symbol_cache): New.
16863 (look_up_one_symbol): Adjust to per-process symbol cache. *
16864 * server.c (cont_thread, general_thread, step_thread): Change type
16866 (attached): Delete.
16867 (multi_process): New.
16868 (last_ptid): Change type to ptid_t.
16869 (struct vstop_notif) <ptid>: Change type to ptid_t.
16870 (queue_stop_reply, push_event): Change `ptid' argument's type to
16872 (discard_queued_stop_replies): Add `pid' argument.
16873 (start_inferior): Adjust to use ptids. Adjust to mywait interface
16874 changes. Don't reference the `attached' global.
16875 (attach_inferior): Adjust to mywait interface changes.
16876 (handle_query): Adjust to use ptids. Parse GDB's qSupported
16877 features. Handle and report "multiprocess+". Handle
16879 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
16881 (handle_v_kill): New.
16882 (handle_v_stopped): Adjust to use target_pid_to_str.
16883 (handle_v_requests): Allow multiple attaches and runs when
16884 multiprocess extensions are in effect. Handle "vKill".
16885 (myresume): Adjust to use ptids.
16886 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
16887 (handle_status): Adjust to discard_queued_stop_replies interface
16889 (first_thread_of, kill_inferior_callback)
16890 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
16891 (main): Call initialize_inferiors. Adjust to use ptids, killing
16892 and detaching from all inferiors. Handle multiprocess packet
16894 * linux-low.h: Include gdb_proc_service.h.
16895 (struct process_info_private): New.
16896 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
16897 <lwpid_of>: Use ptid_get_lwp.
16898 (get_lwp_thread): Adjust.
16899 (struct lwp_info): Add `dead' member.
16900 (find_lwp_pid): Declare.
16901 * linux-low.c (thread_db_active): Delete.
16902 (new_inferior): Adjust comment.
16903 (inferior_pid): Delete.
16904 (linux_add_process): New.
16905 (handle_extended_wait): Adjust.
16906 (add_lwp): Change unsigned long to ptid.
16907 (linux_create_inferior): Add process to processes table. Adjust
16908 to use ptids. Don't set new_inferior here.
16909 (linux_attach_lwp): Rename to ...
16910 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
16911 it. Adjust to use ptids.
16912 (linux_attach_lwp): New.
16913 (linux_attach): Add process to processes table. Don't set
16915 (struct counter): New.
16916 (second_thread_of_pid_p, last_thread_of_process_p): New.
16917 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
16918 multiple processes.
16919 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
16920 processes. Remove process from process table.
16921 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
16922 to multiple processes.
16923 (any_thread_of): New.
16924 (linux_detach): Add `pid' argument, and handle it. Remove process
16925 from processes table.
16926 (linux_join): Add `pid' argument. Handle it.
16927 (linux_thread_alive): Change unsighed long argument to ptid_t.
16928 Consider dead lwps as not being alive.
16929 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
16930 threads we're not interested in.
16931 (same_lwp, find_lwp_pid): New.
16932 (linux_wait_for_lwp): Change `pid' argument's type from int to
16934 (linux_wait_for_event): Rename to ...
16935 (linux_wait_for_event_1): ... this. Change `pid' argument's type
16936 from int to ptid_t. Adjust.
16937 (linux_wait_for_event): New.
16938 (linux_wait_1): Add `ptid' argument. Change return type to
16939 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
16940 that exit from the process table.
16941 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
16943 (mark_lwp_dead): New.
16944 (wait_for_sigstop): Adjust to use ptids. If a process exits while
16945 stopping all threads, mark its main lwp as dead.
16946 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
16948 (fetch_register, usr_store_inferior_registers)
16949 (regsets_fetch_inferior_registers)
16950 (regsets_store_inferior_registers, linux_read_memory)
16951 (linux_write_memory): Inline `inferior_pid'.
16952 (linux_look_up_symbols): Adjust to use per-process
16953 `thread_db_active'.
16954 (linux_request_interrupt): Adjust to use ptids.
16955 (linux_read_auxv): Inline `inferior_pid'.
16956 (initialize_low): Don't reference thread_db_active.
16957 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
16958 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
16959 (ps_getpid): Return the pid of the current inferior.
16960 * thread-db.c (proc_handle, thread_agent): Delete.
16961 (thread_db_create_event, thread_db_enable_reporting): Adjust to
16963 (find_one_thread): Change argument type to ptid_t. Adjust to
16965 (maybe_attach_thread): Adjust to per-process data and ptids.
16966 (thread_db_find_new_threads): Ditto.
16967 (thread_db_init): Ditto.
16968 * spu-low.c (spu_create_inferior, spu_attach): Add process to
16969 processes table. Adjust to use ptids.
16970 (spu_kill, spu_detach): Adjust interface. Remove process from
16972 (spu_join, spu_thread_alive): Adjust interface.
16973 (spu_wait): Adjust interface. Remove process from processes
16974 table. Adjust to use ptids.
16975 * win32-low.c (current_inferior_tid): Delete.
16976 (current_inferior_ptid): New.
16977 (debug_event_ptid): New.
16978 (thread_rec): Take a ptid. Adjust.
16979 (child_add_thread): Add `pid' argument. Adjust to use ptids.
16980 (child_delete_thread): Ditto.
16981 (do_initial_child_stuff): Add `attached' argument. Add process to
16983 (child_fetch_inferior_registers, child_store_inferior_registers):
16985 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
16986 (win32_attach): Pass 1 to do_initial_child_stuff.
16987 (win32_kill): Adjust interface. Remove process from processes
16989 (win32_detach): Ditto.
16990 (win32_join): Adjust interface.
16991 (win32_thread_alive): Take a ptid.
16992 (win32_resume): Adjust to use ptids.
16993 (get_child_debug_event): Ditto.
16994 (win32_wait): Adjust interface. Remove exiting process from
16997 2009-04-01 Pedro Alves <pedro@codesourcery.com>
16999 Non-stop mode support.
17001 * server.h (non_stop): Declare.
17002 (gdb_client_data, handler_func): Declare.
17003 (delete_file_handler, add_file_handler, start_event_loop):
17005 (handle_serial_event, handle_target_event, push_event)
17006 (putpkt_notif): Declare.
17007 * target.h (enum resume_kind): New.
17008 (struct thread_resume): Replace `step' field by `kind' field.
17009 (TARGET_WNOHANG): Define.
17010 (struct target_ops) <wait>: Add `options' argument.
17011 <supports_non_stop, async, start_non_stop>: New fields.
17012 (target_supports_non_stop, target_async): New.
17013 (start_non_stop): Declare.
17014 (mywait): Add `options' argument.
17015 * target.c (mywait): Add `options' argument. Print child exit
17016 notifications here.
17017 (start_non_stop): New.
17018 * server.c (non_stop, own_buf, mem_buf): New globals.
17019 (struct vstop_notif): New.
17020 (notif_queue): New global.
17021 (queue_stop_reply, push_event, discard_queued_stop_replies)
17022 (send_next_stop_reply): New.
17023 (start_inferior): Adjust to use resume_kind. Adjust to mywait
17025 (attach_inferior): In non-stop mode, don't wait for the target
17027 (handle_general_set): Handle QNonStop.
17028 (handle_query): When handling qC, return the current general
17029 thread, instead of the first thread of the list.
17030 (handle_query): If the backend supports non-stop mode, include
17031 QNonStop+ in the qSupported query response.
17032 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
17034 (handle_v_attach, handle_v_run): Handle non-stop mode.
17035 (handle_v_stopped): New.
17036 (handle_v_requests): Report support for vCont;t. Handle vStopped.
17037 (myresume): Adjust to use resume_kind. Handle non-stop.
17038 (queue_stop_reply_callback): New.
17039 (handle_status): Handle non-stop mode.
17040 (main): Clear non_stop flag on reconnection. Use the event-loop.
17041 Refactor serial protocol handling from here ...
17042 (process_serial_event): ... to this new function. When GDB
17043 selects any thread, select one here. In non-stop mode, wait until
17044 GDB acks all pending events before exiting.
17045 (handle_serial_event, handle_target_event): New.
17046 * remote-utils.c (remote_open): Install remote_desc in the event
17048 (remote_close): Remove remote_desc from the event loop.
17049 (putpkt_binary): Rename to...
17050 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
17051 (putpkt_binary): New as wrapper around putpkt_binary_1.
17052 (putpkt_notif): New.
17053 (prepare_resume_reply): In non-stop mode, don't change the
17055 * event-loop.c: New.
17056 * Makefile.in (OBJ): Add event-loop.o.
17057 (event-loop.o): New rule.
17059 * linux-low.h (pid_of): Moved here.
17061 (get_lwp_thread): Use lwpid_of.
17062 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
17063 * linux-low.c (pid_of): Delete.
17064 (inferior_pid): Use lwpid_of.
17065 (linux_event_pipe): New.
17066 (target_is_async_p): New.
17068 (handle_extended_wait): Use lwpid_of.
17069 (add_lwp): Don't set lwpid field.
17070 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
17071 (linux_kill_one_lwp): If killing a running lwp, stop it first.
17072 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
17073 (linux_detach_one_lwp): If detaching from a running lwp, stop it
17074 first. Adjust to linux_wait_for_event interface changes. Use
17076 (linux_detach): Don't delete the main lwp here.
17077 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
17078 (status_pending_p): Don't consider explicitly suspended lwps.
17079 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
17080 pointer. Add OPTIONS argument. Change return type to int. Use
17081 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
17082 (linux_wait_for_event): Take an integer pid instead of a lwp_info
17083 pointer. Add status pointer argument. Return a pid instead of a
17084 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
17085 changes. In non-stop mode, don't switch to a random thread.
17086 (linux_wait): Rename to...
17087 (linux_wait_1): ... this. Add target_options argument, and handle
17088 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
17089 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
17090 clean exit and signal exit code. Don't stop all threads in
17091 non-stop mode. In all-stop mode, only stop all threads when
17092 reporting a stop to GDB. Handle explicit thread stop requests.
17093 (async_file_flush, async_file_mark): New.
17095 (send_sigstop): Use lwpid_of.
17096 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
17097 interface changes. In non-stop mode, don't switch to a random
17099 (linux_resume_one_lwp): Use lwpid_of.
17100 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
17101 (linux_resume_one_thread): ... this. Handle resume_stop. In
17102 non-stop mode, don't look for pending flag in all threads.
17103 (resume_status_pending_p): Don't consider explicitly suspended
17105 (my_waitpid): Reimplement. Emulate __WALL.
17106 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
17108 (sigchld_handler, linux_supports_non_stop, linux_async)
17109 (linux_start_non_stop): New.
17110 (linux_target_ops): Register linux_supports_non_stop, linux_async
17111 and linux_start_non_stop.
17112 (initialize_low): Install SIGCHLD handler.
17113 * thread-db.c (thread_db_create_event, find_one_thread)
17114 (thread_db_get_tls_address): Use lwpid_of.
17115 * win32-low.c (win32_detach): Adjust to use resume_kind.
17116 (win32_wait): Add `options' argument.
17117 * spu-low.c (spu_resume): Adjust to use resume_kind.
17118 (spu_wait): Add `options' argument.
17120 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17122 Decouple target code from remote protocol.
17124 * target.h (enum target_waitkind): New.
17125 (struct target_waitstatus): New.
17126 (struct target_ops) <wait>: Return an unsigned long. Take a
17127 target_waitstatus pointer instead of a char pointer.
17128 (mywait): Likewise.
17129 * target.c (mywait): Change prototype to return an unsigned long.
17130 Take a target_waitstatus pointer instead of a char pointer. Adjust.
17131 * server.h (thread_from_wait, old_thread_from_wait): Delete
17133 (prepare_resume_reply): Change prototype to take a
17135 * server.c (thread_from_wait, old_thread_from_wait): Delete.
17136 (last_status, last_ptid): New.
17137 (start_inferior): Remove "statusptr" argument. Adjust. Return a
17138 pid instead of a signal.
17139 (attach_inferior): Remove "status" and "signal" parameters.
17141 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
17143 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
17144 (handle_v_requests, myresume): Remove "status" and "signal"
17145 parameters. Adjust.
17146 (handle_status): New.
17147 (main): Delete local `status'. Adjust.
17148 * remote-utils.c: Include target.h.
17149 (prepare_resume_reply): Change prototype to take a
17150 target_waitstatus. Adjust.
17152 * linux-low.c (linux_wait): Adjust to new target_ops->wait
17154 * spu-low.c (spu_wait): Adjust.
17155 * win32-low.c (enum target_waitkind, struct target_waitstatus):
17157 (win32_wait): Adjust.
17159 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17161 * target.h (struct thread_resume): Delete leave_stopped member.
17162 (struct target_ops): Add a `n' argument to the `resume' callback.
17163 * server.c (start_inferior): Adjust.
17164 (handle_v_cont, myresume): Adjust.
17165 * linux-low.c (check_removed_breakpoint): Adjust to resume
17166 interface change, and to removed leave_stopped field.
17167 (resume_ptr): Delete.
17168 (struct thread_resume_array): New.
17169 (linux_set_resume_request): Add new `arg' parameter. Adjust to
17170 resume interface change.
17171 (linux_continue_one_thread, linux_queue_one_thread)
17172 (resume_status_pending_p): Check if the resume field is NULL
17173 instead of checking the leave_stopped member.
17174 (linux_resume): Adjust to the target resume interface change.
17175 * spu-low.c (spu_resume): Adjust to the target resume interface
17177 * win32-low.c (win32_detach, win32_resume): Ditto.
17179 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17181 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
17183 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
17185 (linux_continue_one_thread): Only preserve the stepping flag if
17186 there's a pending breakpoint.
17188 2009-03-31 Pedro Alves <pedro@codesourcery.com>
17190 * server.c (main): After the inferior having exited, call
17191 remote_close before exiting gdbserver.
17193 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
17195 Fix size of FPSCR in Power 7 processors.
17196 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
17197 (PPC_FEATURE_HAS_DFP): New #define.
17198 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
17201 2009-03-23 Pedro Alves <pedro@codesourcery.com>
17203 * server.c (handle_query) Whitespace and formatting.
17205 2009-03-22 Pedro Alves <pedro@codesourcery.com>
17207 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
17208 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
17209 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
17210 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
17211 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
17212 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
17213 Makefile.in, configure.ac: Fix whitespace throughout.
17214 * configure: Regenerate.
17216 2009-03-22 Pedro Alves <pedro@codesourcery.com>
17218 * inferiors.c (find_inferior): Make it safe for the callback
17219 function to delete the currently iterated inferior.
17221 2009-03-22 Pedro Alves <pedro@codesourcery.com>
17223 * Makefile.in (linuw_low_h): Move higher.
17224 (thread-db.o): Depend on $(linux_low_h).
17226 2009-03-17 Pedro Alves <pedro@codesourcery.com>
17228 Rename "process" to "lwp" throughout.
17230 * linux-low.c (all_processes): Rename to...
17231 (all_lwps): ... this.
17232 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
17233 (add_process): Rename to ...
17234 (add_lwp): ... this. Adjust.
17235 (linux_create_inferior): Adjust.
17236 (linux_attach_lwp): Adjust.
17237 (linux_attach): Adjust.
17238 (linux_kill_one_process): Rename to ...
17239 (linux_kill_one_lwp): ... this. Adjust.
17240 (linux_kill): Adjust.
17241 (linux_detach_one_process): Rename to ...
17242 (linux_detach_one_lwp): ... this. Adjust.
17243 (linux_detach): Adjust.
17244 (check_removed_breakpoint): Adjust.
17245 (status_pending_p): Adjust.
17246 (linux_wait_for_process): Rename to ...
17247 (linux_wait_for_lwp): ... this. Adjust.
17248 (linux_wait_for_event): Adjust.
17249 (send_sigstop): Adjust.
17250 (wait_for_sigstop): Adjust.
17251 (stop_all_processes): Rename to ...
17252 (stop_all_lwps): ... this.
17253 (linux_resume_one_process): Rename to ...
17254 (linux_resume_one_lwp): ... this. Adjust.
17255 (linux_set_resume_request, linux_continue_one_thread)
17256 (linux_queue_one_thread, resume_status_pending_p)
17257 (usr_store_inferior_registers, regsets_store_inferior_registers)
17258 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
17260 * linux-low.h (get_process): Rename to ...
17261 (get_lwp): ... this. Adjust.
17262 (get_thread_process): Rename to ...
17263 (get_thread_lwp): ... this. Adjust.
17264 (get_process_thread): Rename to ...
17265 (get_lwp_thread): ... this. Adjust.
17266 (struct process_info): Rename to ...
17267 (struct lwp_info): ... this.
17268 (all_processes): Rename to ...
17269 (all_lwps): ... this.
17270 * proc-service.c (ps_lgetregs): Adjust.
17271 * thread-db.c (thread_db_create_event, find_one_thread)
17272 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
17274 2009-03-14 Pedro Alves <pedro@codesourcery.com>
17276 * server.c (handle_query): Handle "qAttached".
17278 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
17280 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
17281 GPLv3, update license URL.
17283 2009-03-01 Doug Evans <dje@google.com>
17285 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
17286 (server_h): Add gdb_signals.h.
17287 (signals.o): Update.
17288 * server.h (target_signal_from_host,target_signal_to_host_p)
17289 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
17291 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
17293 * remote-utils.c (getpkt): Also generate remote-debug
17294 information if noack_mode is set.
17296 2009-02-06 Pedro Alves <pedro@codesourcery.com>
17298 * server.c (handle_query): Report qXfer:siginfo:read and
17299 qXfer:siginfo:write as supported and handle them.
17300 * target.h (struct target_ops) <qxfer_siginfo>: New field.
17301 * linux-low.c (linux_xfer_siginfo): New.
17302 (linux_target_ops): Set it.
17304 2009-01-26 Pedro Alves <pedro@codesourcery.com>
17306 * server.c (gdbserver_usage): Mention --remote-debug.
17307 (main): Accept '--remote-debug' switch.
17309 2009-01-18 Doug Evans <dje@google.com>
17311 * regcache.c (new_register_cache): No need to check result of xcalloc.
17312 * server.c (handle_search_memory): Back out calls to xmalloc,
17313 result is checked and error is returned to user upon failure.
17314 (handle_query): Ditto. Add more checks for result of malloc.
17315 (handle_v_cont): Check result of malloc, report error back to
17317 (handle_v_run): Ditto. Call freeargv.
17318 * server.h (freeargv): Declare.
17319 * utils.c (freeargv): New fn.
17321 2009-01-15 Doug Evans <dje@google.com>
17323 * gdbreplay.c (perror_with_name): Make arg const char *.
17324 * server.h (target_signal_to_name): Make return type const char *.
17325 * thread-db.c (thread_db_err_str): Make return type const char *.
17326 * utils.c (perror_with_name): Make arg const char *.
17328 2009-01-14 Pedro Alves <pedro@codesourcery.com>
17330 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
17331 when handling a EXIT_PROCESS_DEBUG_EVENT.
17333 2009-01-06 Joel Brobecker <brobecker@adacore.com>
17335 * gdbreplay.c (gdbreplay_version): Update copyright year.
17336 * server.c (gdbserver_version): Likewise.
17338 2009-01-05 Doug Evans <dje@google.com>
17340 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
17341 (handle_extended_wait): Improve comment.
17343 2008-12-13 Doug Evans <dje@google.com>
17345 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
17346 * server.h (ATTR_MALLOC): New macro.
17347 (xmalloc,xcalloc,xstrdup): Declare.
17348 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
17349 * inferiors.c: Ditto.
17350 * linux-low.c: Ditto.
17351 * mem-break.c: Ditto.
17352 * regcache.c: Ditto.
17353 * remote-utils.c: Ditto.
17356 * win32-low.c: Ditto.
17358 2008-12-12 Doug Evans <dje@google.com>
17360 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
17361 in debugging printf.
17363 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
17365 2008-12-09 Doug Evans <dje@google.com>
17367 * linux-low.h (struct process_info): Delete member tid, unused.
17368 * thread-db.c (find_one_thread): Update.
17369 (maybe_attach_thread): Update.
17371 2008-12-02 Pedro Alves <pedro@codesourcery.com>
17373 * target.h (struct target_ops): Add qxfer_osdata member.
17374 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
17376 (linux_qxfer_osdata): New functions.
17377 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
17379 * server.c (handle_query): Handle "qXfer:osdata:read:".
17380 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
17381 (buffer_xml_printf): New functions.
17382 * server.h (struct buffer): New.
17383 (buffer_grow_str, buffer_grow_str0): New macros.
17384 (buffer_grow, buffer_free, buffer_init, buffer_finish)
17385 (buffer_xml_printf): Declare.
17387 2008-11-24 Doug Evans <dje@google.com>
17389 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
17391 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
17393 * server.c (handle_v_run): Always use the supplied argument list.
17395 2008-11-19 Bob Wilson <bob.wilson@acm.org>
17397 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
17398 (xtensa_regmap_table): Add entry for scompare1.
17400 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
17402 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
17403 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
17404 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
17405 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
17406 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
17407 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
17408 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
17409 XML target descriptions.
17410 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
17411 when inferior is running on an ISA 2.05 or later processor. Add
17412 special case to return offset for full 64-bit slot of FPSCR when
17415 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
17417 * Makefile.in (SFILES, clean): Added sparc64 files.
17418 (reg-sparc64.o, reg-sparc64.c): New.
17419 * configure.srv (sparc*-*-linux*): New configuration.
17420 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
17421 syscall arguments for SPARC.
17422 (regsets_store_inferior_registers): Likewise.
17423 * linux-sparc-low.c: New file.
17425 2008-10-21 Doug Evans <dje@google.com>
17427 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
17428 (READLINE_DIR,READLINE_DEP): Delete.
17429 (INTERNAL_CFLAGS): Update.
17430 (LINTFLAGS): Update.
17432 2008-10-10 Pedro Alves <pedro@codesourcery.com>
17434 * server.c (handle_v_run): If GDB didn't specify an argv, use the
17435 whole argv from the last run, not just argv[0].
17437 2008-09-08 Pedro Alves <pedro@codesourcery.com>
17439 * regcache.c (new_register_cache): Return NULL if the register
17440 cache size isn't known yet.
17441 (free_register_cache): Avoid dereferencing a NULL regcache.
17443 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
17445 * configure.srv: Merge MIPS and MIPS64.
17447 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
17449 * Makefile.in (uninstall): Apply $(EXEEXT) too.
17451 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
17453 * Makefile.in: Add required vsx dependencies.
17455 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
17456 Declare init_registers_powerpc_vsx32l.
17457 Declare init_registers_powerpc_vsx64l.
17458 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
17459 (ppc_arch_setup): Check for VSX in hwcap.
17460 (ppc_fill_vsxregset): New function.
17461 (ppc_store_vsxregset): New function.
17462 Add new VSX entry in regset_info target_regsets.
17464 * configure.srv: Add new VSX dependencies.
17466 2008-08-12 Pedro Alves <pedro@codesourcery.com>
17468 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
17469 (remote_open): Set or clear transport_is_reliable.
17470 (putpkt_binary): Don't expect acks in noack mode.
17471 (getpkt): Don't send ack/nac in noack mode.
17472 * server.c (handle_general_set): Handle QStartNoAckMode.
17473 (handle_query): If connected by tcp pass QStartNoAckMode+ in
17475 (main): Reset noack_mode on every connection.
17476 * server.h (noack_mode): Declare.
17478 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17480 * Makefile.in (GDBREPLAY_OBS): New variable.
17481 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
17483 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
17484 Daniel Jacobowitz <dan@codesourcery.com>
17486 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
17487 (usr_store_inferior_registers): Likewise.
17488 (regsets_store_inferior_registers): Likewise.
17490 2008-07-31 Rolf Jansen <rj@surtec.com>
17491 Pedro Alves <pedro@codesourcery.com>
17493 * configure.ac: Check for memmem declaration.
17494 * server.c [HAVE_MALLOC_H]: Include malloc.h.
17495 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
17496 (disable_packet_qfThreadInfo): Unconditionally compile.
17497 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
17498 * configure, config.in: Regenerate.
17500 2008-07-28 Doug Kwan <dougkwan@google.com>
17502 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
17503 (linux_write_memory): Remove declaration of errno.
17505 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
17507 * linux-low.c (handle_extended_wait): Do not use "status"
17508 variable uninitialized.
17510 2008-07-07 Pedro Alves <pedro@codesourcery.com>
17512 * server.c (handle_v_attach): Inhibit reporting dll changes.
17514 2008-06-27 Pedro Alves <pedro@codesourcery.com>
17516 * remote-utils.c (prepare_resume_reply): If requested, don't
17517 output "thread:TID" in the T stop reply.
17519 * server.c (disable_packet_vCont, disable_packet_Tthread)
17520 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
17521 (handle_query): If requested, disable support for qC, qfThreadInfo
17523 (handle_v_requests): If requested, disable support for vCont.
17524 (gdbserver_show_disableable): New.
17525 (main): Handle --disable-packet and --disable-packet=LIST.
17527 * server.h (disable_packet_vCont, disable_packet_Tthread)
17528 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
17530 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
17532 * server.c (gdbserver_usage): Mention --version.
17534 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
17536 * Makefile.in (gdbreplay.o): New rule.
17538 2008-06-06 Joseph Myers <joseph@codesourcery.com>
17540 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
17541 message, not gdbserver.
17543 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
17544 Nathan Sidwell <nathan@codesourcery.com>
17545 Joseph Myers <joseph@codesourcery.com>
17547 * acinclude.m4: Include ../../config/acx.m4.
17548 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
17549 * configure, config.in: Regenerate.
17550 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
17551 * server.c (gdbserver_version): Print PKGVERSION.
17552 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
17553 (main): Adjust gdbserver_usage calls.
17554 * gdbreplay.c (version, host_name): Add declarations.
17555 (gdbreplay_version, gdbreplay_usage): New.
17556 (main): Accept --version and --help options.
17558 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
17560 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
17561 (arm_breakpoint_at): Handle Thumb.
17562 (the_low_target): Add comment.
17564 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
17566 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
17568 2008-05-09 Doug Evans <dje@google.com>
17570 * server.h (decode_search_memory_packet): Declare.
17571 * remote-utils.c (decode_search_memory_packet): New fn.
17572 * server.c (handle_search_memory_1): New fn.
17573 (handle_search_memory): New fn.
17574 (handle_query): Process qSearch:memory packets.
17576 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
17578 * regcache.c (registers_length): Remove.
17579 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
17580 full register packet.
17581 * regcache.h (registers_length): Remove prototype.
17582 * server.h (PBUFSIZ): Define to 16384.
17584 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
17586 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
17587 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
17588 powerpc-64l.o, and powerpc-altivec64l.o.
17589 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
17590 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
17591 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
17592 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
17593 rs6000/power-linux.xml, and rs6000/power64-linux.xml
17596 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
17597 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
17598 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
17599 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
17600 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
17601 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
17602 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
17603 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
17604 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
17605 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
17608 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
17609 (init_registers_powerpc_32l): ... this new prototype.
17610 (init_registers_powerpc_32): Remove, replace by ...
17611 (init_registers_powerpc_altivec32l): ... this new prototype.
17612 (init_registers_powerpc_e500): Remove, replace by ...
17613 (init_registers_powerpc_e500l): ... this new prototype.
17614 (init_registers_ppc64): Remove, replace by ...
17615 (init_registers_powerpc_64l): ... this new prototype.
17616 (init_registers_powerpc_64): Remove, replace by ...
17617 (init_registers_powerpc_altivec64l): ... this new prototype.
17618 (ppc_num_regs): Set to 73.
17619 (PT_ORIG_R3, PT_TRAP): Define if necessary.
17620 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
17621 (ppc_cannot_store_register): Handle orig_r3 and trap.
17622 (ppc_arch_setup): Update init_registers_... calls.
17623 (ppc_fill_gregset): Handle orig_r3 and trap.
17625 * inferiors.c (clear_inferiors): Reset current_inferior.
17627 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
17629 * acinclude.m4: Add override.m4.
17630 * configure: Regenerate.
17632 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
17634 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
17635 initial call to init_register_ppc64.
17637 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
17639 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
17640 single powerpc*-*-linux* case.
17641 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
17643 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
17645 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
17646 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
17648 * linux-ppc-low.c: Include <elf.h>.
17649 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
17650 (ppc_hwcap): New global variable.
17651 (ppc_regmap): Remove __SPE__ #ifdef sections.
17652 (ppc_regmap_e500): New global variable.
17653 (ppc_cannot_store_register): Update __SPE__ special case.
17654 (ppc_get_hwcap): New function.
17655 (ppc_arch_setup): Use it to determine whether inferior supports
17656 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
17657 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
17658 Do not access registers if target does not support AltiVec.
17659 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
17660 Do not access registers if target does not support SPE.
17661 (target_regsets): Unconditionally include AltiVec and SPE regsets.
17663 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
17665 * linux-low.c (disabled_regsets, num_regsets): New.
17666 (use_regsets_p): Delete.
17667 (linux_wait_for_process): Clear disabled_regsets.
17668 (regsets_fetch_inferior_registers): Check and set it.
17669 (regsets_store_inferior_registers): Likewise.
17670 (linux_fetch_registers, linux_store_registers): Do not use
17672 (initialize_low): Allocate disabled_regsets.
17674 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
17676 * Makefile.in (LIBOBJS): New.
17677 (OBS): Use LIBOBJS.
17678 (memmem.o): New rule.
17679 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
17680 * configure: Regenerated.
17682 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
17684 * server.c (handle_query): Never return "unsupported" for
17685 qXfer:features:read queries.
17687 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
17689 * server.c (get_features_xml): Fix inverted condition.
17690 (handle_query): Always support qXfer:feature:read.
17692 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
17694 * server.c (wrapper_argv): New.
17695 (start_inferior): Handle wrapper_argv. If set, expect an extra
17697 (gdbserver_usage): Document --wrapper.
17698 (main): Parse --wrapper.
17700 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17702 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
17703 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
17704 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
17705 (ppc_set_pc): Likewise.
17706 (ppc_arch_setup): New function.
17707 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
17708 of collect_register.
17709 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
17711 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17713 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
17714 instead of linux-ppc64-low.o.
17715 * linux-ppc64-low.c: Remove file.
17716 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
17717 (linux-ppc64-low.o): Remove rule.
17719 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
17720 (init_registers_powerpc_64): Likewise.
17721 (ppc_regmap): Conditionally define depending on __powerpc64__.
17722 (ppc_cannot_store_register): Do not special-case "fpscr" when
17723 compiled on __powerpc64__.
17724 (ppc_collect_ptrace_register): New function.
17725 (ppc_supply_ptrace_register): New function.
17726 (ppc_breakpoint): Change type to "unsigned int".
17727 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
17728 (the_low_target): Conditionally provide initializers for the
17729 arch_setup member depending on __powerpc64__. Install
17730 collect_ptrace_register and supply_ptrace_register members.
17732 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17734 * regcache.h (gdbserver_xmltarget): Add extern declaration.
17735 * server.c (gdbserver_xmltarget): Define.
17736 (get_features_xml): Use it to replace "target.xml" and arch_string.
17738 * configure.srv: Remove srv_xmltarget. Add XML files that were
17739 mentioned there to srv_xmlfiles instead. Remove conditional tests
17740 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
17741 srv_xmlfiles and srv_regobj to include all possible choices.
17742 * configure.ac (srv_xmltarget): Remove.
17743 (srv_xmlfiles): Do not add "target.xml".
17744 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
17745 checks for supplementary target information.
17746 * configure: Regenerate.
17747 * Makefile.in (XML_TARGET): Remove.
17748 (target.xml): Remove rule.
17749 (clean): Do not clean up target.xml.
17750 (.PRECIOUS): Do not mention target.xml.
17752 * target.h (struct target_ops): Remove arch_string member.
17753 * linux-low.c (linux_arch_string): Remove.
17754 (linux_target_ops): Remove arch_string initializer.
17755 * linux-low.h (struct linux_target_ops): Remove arch_string member.
17756 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
17757 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
17758 * spu-low.c (spu_arch_string): Remove.
17759 (spu_target_ops): Remove arch_string initializer.
17760 * win32-low.c (win32_arch_string): Remove.
17761 (win32_target_ops): Remove arch_string initializer.
17762 * win32-low.h (struct win32_target_ops): Remove arch_string member.
17763 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
17764 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
17766 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17768 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
17769 by collect_ptrace_register and supply_ptrace_register hooks.
17770 * linux-low.c (fetch_register): Use supply_ptrace_register callback
17771 instead of checking for the_low_target.left_pad_xfer.
17772 (usr_store_inferior_registers): Use collect_ptrace_register callback
17773 instead of checking for the_low_target.left_pad_xfer.
17775 * linux-s390-low.c (s390_collect_ptrace_register): New function.
17776 (s390_supply_ptrace_register): Likewise.
17777 (s390_fill_gregset): Call s390_collect_ptrace_register.
17778 (the_low_target): Update.
17780 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
17781 (ppc_supply_ptrace_register): Likewise.
17782 (the_low_target): Update.
17784 * linux-i386-low.c (the_low_target): Update.
17785 * linux-x86-64-low.c (the_low_target): Update.
17787 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17789 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
17790 reg-s390.o and reg-s390x.o.
17792 * linux-low.c (new_inferior): New global variable.
17793 (linux_create_inferior, linux_attach): Set it.
17794 (linux_wait_for_process): Call the_low_target.arch_setup after the
17795 target has stopped for the first time.
17796 (initialize_low): Do not call the_low_target.arch_setup.
17798 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
17799 (s390_set_pc): Likewise.
17800 (s390_arch_setup): New function.
17801 (the_low_target): Use s390_arch_setup as arch_setup routine.
17803 * regcache.c (realloc_register_cache): New function.
17804 (set_register_cache): Call it for each existing regcache.
17806 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17808 * server.h (init_registers): Remove prototype.
17810 * linux-low.h (struct linux_target_ops): Add arch_setup field.
17811 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
17812 instead of init_registers ().
17813 * linux-arm-low.c (init_registers_arm): Add prototype.
17814 (init_registers_arm_with_iwmmxt): Likewise.
17815 (the_low_target): Add initializer for arch_setup field.
17816 * linux-cris-low.c (init_registers_cris): Add prototype.
17817 (the_low_target): Add initializer for arch_setup field.
17818 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
17819 (the_low_target): Add initializer for arch_setup field.
17820 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
17821 (the_low_target): Add initializer for arch_setup field.
17822 * linux-ia64-low.c (init_registers_ia64): Add prototype.
17823 (the_low_target): Add initializer for arch_setup field.
17824 * linux-m32r-low.c (init_registers_m32r): Add prototype.
17825 (the_low_target): Add initializer for arch_setup field.
17826 * linux-m68k-low.c (init_registers_m68k): Add prototype.
17827 (the_low_target): Add initializer for arch_setup field.
17828 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
17829 (init_registers_mips64_linux): Likewise.
17830 (the_low_target): Add initializer for arch_setup field.
17831 * linux-ppc-low.c (init_registers_ppc): Add prototype.
17832 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
17833 (the_low_target): Add initializer for arch_setup field.
17834 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
17835 (init_registers_powerpc_64): Likewise.
17836 (the_low_target): Add initializer for arch_setup field.
17837 * linux-s390-low.c (init_registers_s390): Add prototype.
17838 (init_registers_s390x): Likewise.
17839 (the_low_target): Add initializer for arch_setup field.
17840 * linux-sh-low.c (init_registers_sh): Add prototype.
17841 (the_low_target): Add initializer for arch_setup field.
17842 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
17843 (the_low_target): Add initializer for arch_setup field.
17844 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
17845 (the_low_target): Add initializer for arch_setup field.
17847 * win32-low.h (struct win32_target_ops): Add arch_setup field.
17848 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
17849 instead of init_registers ().
17850 * win32-arm-low.c (init_registers_arm): Add prototype.
17851 (the_low_target): Add initializer for arch_setup field.
17852 * win32-i386-low.c (init_registers_i386): Add prototype.
17853 (the_low_target): Add initializer for arch_setup field.
17855 * spu-low.c (init_registers_spu): Add prototype.
17856 (initialize_low): Call initialie_registers_spu () instead of
17857 initialize_registers ().
17859 2008-02-19 Pedro Alves <pedro@codesourcery.com>
17861 * server.c (handle_v_requests): When handling the vRun and vAttach
17862 packets, if already debugging a process, don't kill it. Return an
17865 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
17867 * server.c (handle_query): Correct length check.
17869 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
17871 * win32-low.c (do_initial_child_stuff): Add process handle
17872 parameter. Set current_process_handle and current_process_id from the
17873 parameters. Clear globals.
17874 (win32_create_inferior): Don't set current_process_handle and
17875 current_process_id here. Instead pass them on the call to
17876 do_initial_child_stuff.
17877 (win32_attach): Likewise.
17878 (win32_clear_inferiors): New.
17879 (win32_kill): Don't close the current process handle or the
17880 current thread handle here. Instead call win32_clear_inferiors.
17881 (win32_detach): Don't open a new handle to the process. Call
17882 win32_clear_inferiors.
17883 (win32_join): Don't rely on current_process_handle; open a new
17884 handle using the process id.
17885 (win32_wait): Call win32_clear_inferiors when the inferior process
17888 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
17890 * server.c (monitor_show_help): Add "exit".
17892 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
17894 * Makefile.in (SFILES): Add linux-xtensa-low.c.
17895 (clean): Add reg-xtensa.c.
17896 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
17897 * configure.srv (xtensa*-*-linux*) New target.
17898 * linux-xtensa-low.c: New.
17899 * xtensa-xtregs.c: New.
17901 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
17903 * hostio.c: Don't include errno.h.
17904 (errno_to_fileio_errno): Move to hostio-errno.
17905 * hostio.c: (hostio_error): Remove the error parameter. Defer the
17906 error number outputting to the target->hostio_last_error callback.
17907 (hostio_packet_error): Use FILEIO_EINVAL directly.
17908 (handle_open, handle_pread, hostio_error, handle_unlink): Update
17909 calls to hostio_error.
17910 * hostio-errno.c: New.
17911 * server.h (hostio_last_error_from_errno): Declare.
17912 * target.h (target_ops): Add hostio_last_error member.
17913 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
17914 as hostio_last_error handler.
17915 * spu-low.c (spu_target_ops): Likewise.
17916 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
17917 (wince_hostio_last_error): New functions.
17918 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
17919 as hostio_last_error handler.
17920 (win32_target_ops) [!_WIN32_WCE]: Register
17921 hostio_last_error_from_errno as hostio_last_error handler.
17922 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
17923 (hostio-errno.o): New rule.
17924 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
17925 * configure.srv (srv_hostio_err_objs): New variable. Default to
17927 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
17928 * configure: Regenerate.
17930 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
17932 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
17933 (linux_kill, linux_detach): Clean up the process list.
17934 * remote-utils.c (remote_open): Improve port number parsing.
17935 (putpkt_binary, input_interrupt): Only send interrupts if the target
17937 * server.c (extended_protocol): Make static.
17938 (attached): Define earlier.
17939 (exit_requested, response_needed, program_argv): New variables.
17940 (target_running): New.
17941 (start_inferior): Clear attached here.
17942 (attach_inferior): Set attached here.
17943 (require_running): Define.
17944 (handle_query): Use require_running and target_running. Implement
17946 (handle_v_attach, handle_v_run): New.
17947 (handle_v_requests): Use require_running. Handle vAttach and vRun.
17948 (gdbserver_usage): Update.
17949 (main): Redo argument parsing. Handle --debug and --multi. Handle
17950 --attach along with other options or after the port. Save
17951 program_argv. Support no initial program. Resynchronize
17952 communication with GDB after an error. Handle "monitor exit".
17953 Use require_running and target_running. Always allow the extended
17954 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
17955 restart in extended mode.
17956 * README: Refer to the GDB manual. Update --attach usage.
17958 2007-12-20 Andreas Schwab <schwab@suse.de>
17960 * linux-low.c (STACK_SIZE): Define.
17961 (linux_tracefork_child): Use it. Use __clone2 on ia64.
17962 (linux_test_for_tracefork): Likewise.
17964 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
17966 * linux-low.c (linux_wait_for_event): Update messages. Do not
17967 reinsert auto-delete breakpoints.
17968 * mem-break.c (struct breakpoint): Change return type of handler to
17970 (set_breakpoint_at): Update handler type.
17971 (reinsert_breakpoint_handler): Return 1 instead of calling
17973 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
17975 (check_breakpoints): Delete auto-delete breakpoints and return 2.
17976 * mem-break.h (set_breakpoint_at): Update handler type.
17977 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
17978 * win32-low.c (auto_delete_breakpoint): New.
17979 (get_child_debug_event): Use it.
17981 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
17983 * configure.ac: Check for pread and pwrite.
17984 * hostio.c (handle_pread): Fall back to lseek and read.
17985 (handle_pwrite): Fall back to lseek and write.
17986 * config.in, configure: Regenerated.
17988 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
17990 * server.c (myresume): Add own_buf argument.
17991 (main): Update calls.
17993 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
17995 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
17996 * remote-utils.c (remote_open): Do not call disable_async_io.
17997 (block_async_io): Delete.
17998 (unblock_async_io): Make static.
17999 (initialize_async_io): New.
18000 * server.c (handle_v_cont): Handle async I/O here.
18001 (myresume): Likewise. Move other common resume tasks here...
18002 (main): ... from here. Call initialize_async_io. Disable async
18003 I/O before the main loop.
18004 * server.h (initialize_async_io): Declare.
18005 (block_async_io, unblock_async_io): Delete prototypes.
18006 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
18008 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
18010 * remote-utils.c (readchar): Allow binary data in received messages.
18012 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18014 * win32-low.c (attaching): New global.
18015 (win32_create_inferior): Clear the `attaching' global.
18016 (win32_attach): Set the `attaching' global.
18017 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
18018 attaching. Only set a breakpoint at the entry point if not
18021 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18023 * server.c (main): Don't report dll events on the initial
18024 connection on attaches.
18026 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18028 * server.c (main): Relax numerical bases supported for the pid of
18029 the --attach command line argument.
18031 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18033 * win32-low.c (win32_attach): Call OpenProcess before
18034 DebugActiveProcess, not after. Add last error output to error
18037 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18039 * win32-low.c (win32_get_thread_context)
18040 (win32_set_thread_context): New functions.
18041 (thread_rec): Use win32_get_thread_context.
18042 (continue_one_thread, win32_resume): Use win32_set_thread_context.
18043 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
18046 2007-12-03 Leo Zayas
18047 Pedro Alves <pedro_alves@portugalmail.pt>
18049 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
18051 (child_add_thread): Minor cleanup.
18052 (child_continue): Resume artificially suspended threads before
18053 calling ContinueDebugEvent.
18054 (suspend_one_thread): New.
18055 (fake_breakpoint_event): New.
18056 (get_child_debug_event): Change return type to int. Check here if
18057 gdb sent an interrupt request. If a soft interrupt was requested,
18058 fake a breakpoint event. Return 0 if there is no event to handle,
18060 (win32_wait): Don't check here if gdb sent an interrupt request.
18061 Ensure there is a valid event to handle.
18062 (win32_request_interrupt): Add soft interruption method as last
18065 2007-12-03 Leo Zayas
18066 Pedro Alves <pedro_alves@portugalmail.pt>
18068 * win32-low.h (win32_thread_info): Add descriptions to the
18069 structure members. Replace `suspend_count' counter by a
18071 * win32-low.c (thread_rec): Update condition of when to get the
18072 context from the inferior. Rely on ContextFlags being set if it
18073 has already been retrieved. Only suspend the inferior thread if
18074 we haven't already. Warn if that fails.
18075 (continue_one_thread): s/suspend_count/suspended/. Only call
18076 ResumeThread once. Warn if that fails.
18078 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
18080 * win32-low.c (win32_wait): Don't read from the inferior when it
18081 has already exited.
18083 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
18085 * Makefile.in (win32_low_h): New variable.
18086 (win32-low.o): Add dependency on $(win32_low_h).
18087 (win32-arm-low.o, win32-i386-low.o): New rules.
18089 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
18091 * hostio.c: Correct copyright year.
18093 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
18095 * Makefile.in (OBS): Add hostio.o.
18096 (hostio.o): New rule.
18097 * server.h (handle_vFile): Declare.
18098 * hostio.c: New file.
18099 * server.c (handle_v_requests): Take packet_len and new_packet_len
18100 for binary packets. Call handle_vFile.
18101 (main): Update call to handle_v_requests.
18103 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
18105 * linux-low.c: Include <sched.h>.
18107 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
18109 * linux-low.c (linux_tracefork_grandchild): New.
18110 (linux_tracefork_child): Use clone.
18111 (linux_test_for_tracefork): Use clone; allocate and free a stack.
18113 2007-10-31 Joel Brobecker <brobecker@adacore.com>
18115 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
18117 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
18119 * linux-low.c (handle_extended_wait): Handle unexpected signals.
18121 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
18123 * inferiors.c (change_inferior_id): Delete.
18124 (add_pid_to_list, pull_pid_from_list): New.
18125 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
18126 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
18127 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
18128 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
18129 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
18130 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
18131 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
18132 (using_threads): Always set to 1.
18133 (handle_extended_wait): New.
18134 (add_process): Do not set TID.
18135 (linux_create_inferior): Set must_set_ptrace_flags.
18136 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
18137 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
18138 (linux_thread_alive): Rename TID argument to LWPID.
18139 (linux_wait_for_process): Handle unknown processes. Do not use TID.
18140 (linux_wait_for_event): Do not use TID or check using_threads. Update
18141 call to dead_thread_notify. Call handle_extended_wait.
18142 (linux_create_inferior): Use PTRACE_SETOPTIONS.
18143 (send_sigstop): Delete sigstop_sent.
18144 (wait_for_sigstop): Avoid TID.
18145 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
18146 (linux_test_for_tracefork): New.
18147 (linux_lookup_signals): Use thread_db_active and
18148 linux_supports_tracefork_flag.
18149 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
18150 * linux-low.h (get_process_thread): Avoid TID.
18151 (struct process_ifo): Move thread_known and tid to the end. Remove
18153 (linux_attach_lwp, thread_db_init): Update prototypes.
18154 * server.h (change_inferior_id): Delete prototype.
18155 (add_pid_to_list, pull_pid_from_list): New prototypes.
18156 * thread-db.c (thread_db_use_events): New.
18157 (find_first_thread): Rename to...
18158 (find_one_thread): ...this. Update callers and messages. Do not
18159 call fatal. Check thread_db_use_events. Do not call
18160 change_inferior_id or new_thread_notify.
18161 (maybe_attach_thread): Update. Do not call new_thread_notify.
18162 (thread_db_init): Set thread_db_use_events. Check use_events.
18163 * utils.c (fatal, warning): Correct message prefix.
18165 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
18167 * Makefile.in (clean): Remove new files.
18168 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
18169 (powerpc-64.o, powerpc-64.c): New rules.
18170 * configure.srv: Use alternate register sets for powerpc64-*-linux*
18171 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
18173 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
18175 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
18176 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
18177 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
18178 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
18179 (target_regsets): Add AltiVec and SPE register sets.
18180 * configure.ac: Check for AltiVec and SPE.
18181 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
18182 (ppc_fill_vrregset, ppc_store_vrregset): New.
18183 (target_regsets): Add AltiVec register set.
18184 * configure: Regenerated.
18186 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
18188 * linux-low.c (O_LARGEFILE): Define.
18189 (linux_read_memory): Use /proc/PID/mem.
18190 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
18191 * configure, config.in: Regenerated.
18193 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
18195 * linux-low.c (linux_wait_for_event): Do not pass signals while
18198 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
18200 * win32-low.c (create_process): New.
18201 (win32_create_inferior): Use create_process instead of
18202 CreateProcess. If create_process failed retry appending an ".exe"
18203 suffix. Store the GetLastError result immediatelly after
18204 create_process calls and use it on the call to error.
18206 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
18208 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
18210 2007-08-23 Joel Brobecker <brobecker@adacore.com>
18212 * configure.ac: Switch license to GPLv3.
18214 2007-08-01 Michael Snyder <msnyder@access-company.com>
18216 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
18218 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
18220 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
18222 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
18223 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
18224 CloseToolhelp32Snapshot.
18225 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
18226 CloseToolhelp32Snapshot.
18228 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
18230 * server.c (main): Check for inferior exit before main loop.
18232 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
18234 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
18235 instead of on tmp_desc.
18237 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
18238 Daniel Jacobowitz <dan@codesourcery.com>
18240 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
18241 (add_thread): Minor cleanups.
18242 (clear_inferiors): Move lower in the file. Clear the DLL
18244 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
18245 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
18246 (xml_escape_text): New.
18247 * server.c (handle_query): Handle qXfer:libraries:read. Report it
18249 (handle_v_cont): Report errors.
18250 (gdbserver_version): Update.
18251 (main): Correct size of own_buf. Do not report initial DLL events.
18252 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
18253 (unloaded_dll, xml_escape_text): New.
18254 * win32-low.c (enum target_waitkind): Update comments.
18255 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
18256 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
18257 (win32_EnumProcessModules, win32_GetModuleInformation)
18258 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
18259 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
18260 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
18261 (win32_Module32First, win32_Module32Next, load_toolhelp)
18262 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
18263 (get_child_debug_event): Handle DLL events.
18264 (win32_wait): Likewise.
18266 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
18268 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
18269 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
18271 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
18273 * win32-low.c (handle_output_debug_string): Ignore event if not
18276 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
18278 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
18280 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
18282 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
18284 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
18286 * inferiors.c (change_inferior_id): Add comment.
18287 * linux-low.c (check_removed_breakpoint): Add an early
18288 prototype. Improve debug output.
18289 (linux_attach): Doc update.
18290 (linux_detach_one_process, linux_detach): Clean up before releasing
18292 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
18293 * linux-low.h (struct process_info): Doc improvement.
18294 * mem-break.c (delete_all_breakpoints): New.
18295 * mem-break.h (delete_all_breakpoints): New prototype.
18296 * thread-db.c (find_first_thread): New.
18297 (thread_db_create_event): Call it instead of
18298 thread_db_find_new_threads. Clean up unused variables.
18299 (maybe_attach_thread): Remove first thread handling.
18300 (thread_db_find_new_threads): Use find_first_thread.
18301 (thread_db_get_tls_address): Likewise.
18303 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
18305 * thread-db.c (thread_db_find_new_threads): Add prototype.
18306 (thread_db_create_event): Check for the main thread before adding
18308 (maybe_attach_thread): Only enable event reporting if TID == 0.
18309 (thread_db_get_tls_address): Check for new threads.
18311 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
18313 * linux-low.c (linux_create_inferior): Try execv before execvp.
18314 * spu-low.c (spu_create_inferior): Likewise.
18316 2007-06-13 Mike Frysinger <vapier@gentoo.org>
18318 * linux-low.c (linux_create_inferior): Change execv to execvp.
18319 * spu-low.c (spu_create_inferior): Likewies.
18321 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
18323 * Makefile.in (clean): Clean new files instead of deleted ones.
18324 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
18325 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
18327 * configure.srv: Specify XML files and new regformats for MIPS and
18329 * linux-mips-low.c (mips_num_regs): Set to only used registers.
18330 (mips_regmap): Do not fetch $0. Remove unused registers. Add
18331 an entry for the restart register.
18332 (mips_cannot_fetch_register, mips_cannot_store_register)
18333 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
18334 register names to match the XML descriptions.
18335 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
18336 restart register instead of $0.
18338 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
18339 Markus Deuling <deuling@de.ibm.com>
18341 * remote-utils.c (decode_xfer_write): New function.
18342 * server.h (decode_xfer_write): Add prototype.
18343 * server.c (handle_query): Add PACKET_LEN argument. Support
18344 qXfer:spu:read and qXfer:spu:write packets.
18345 (main): Pass packet_len to handle_query.
18346 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
18347 * target.h (target_ops): Add qxfer_spu.
18349 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
18351 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
18352 accessing non-seekable spufs files.
18354 2007-05-16 Markus Deuling <deuling@de.ibm.com>
18356 * server.c (handle_query): Add reply for qC packet.
18358 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18359 Leo Zayas <lerele@champenstudios@com>
18361 * server.h (check_remote_input_interrupt_request): New function.
18362 * remote_utils.c (INVALID_DESCRIPTOR): New define.
18363 (remote_desc): Initialize with INVALID_DESCRIPTOR.
18364 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
18365 (check_remote_input_interrupt_request): New function.
18366 * server.h (check_remote_input_interrupt_request): Declare.
18367 * win32-low.c (winapi_DebugBreakProcess,
18368 winapi_GenerateConsoleCtrlEvent): New typedefs.
18369 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
18371 (win32_wait): Check for remote interrupt request
18372 with check_remote_input_interrupt_request.
18373 (win32_request_interrupt): New function.
18374 (win32_target_op): Set request_interrupt to win32_request_interrupt.
18376 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18378 * win32-low.c (debug_registers_changed,
18379 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
18380 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
18381 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
18382 (thread_rec): Get context using the low target.
18383 (child_add_thread): Call thread_added on the low target,
18384 which does the same thing.
18386 (do_initial_child_stuff): Remove debug registers references.
18387 Set context using the low target. Resume threads after
18388 setting the contexts.
18389 (child_continue): Remove dead variable. Remove debug
18390 registers references.
18391 (child_fetch_inferior_registers): Go through the low target.
18392 (do_child_store_inferior_registers): Remove.
18393 (child_store_inferior_registers): Go through the low target.
18394 (win32_resume): Remove debug registers references.
18395 Set context using the low target.
18396 (handle_exception): Change return type to void. Don't record
18397 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
18398 first chance exception.
18399 (get_child_debug_event): Change return type to void. Remove
18400 goto loop. Always return after waiting for debug event.
18401 (win32_wait): Convert to switch statement. Handle spurious
18404 * win32-i386-low.c (debug_registers_changed,
18405 debug_registers_used): New.
18406 (initial_stuff): Rename to ...
18407 (i386_initial_stuff): ... this. Clear debug registers
18409 (store_debug_registers): Delete.
18410 (i386_get_thread_context): New.
18411 (load_debug_registers): Delete.
18412 (i386_set_thread_context): New.
18413 (i386_thread_added): New.
18414 (single_step): Rename to ...
18415 (i386_single_step): ... this.
18416 (do_fetch_inferior_registers): Rename to ...
18417 (i386_fetch_inferior_register): ... this.
18418 (i386_store_inferior_register): New.
18419 (the_low_target): Adapt to new interface.
18421 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
18422 (arm_get_thread_context): New.
18423 (arm_set_thread_context): New.
18425 (do_fetch_inferior_registers): Rename to ...
18426 (arm_fetch_inferior_register): ... this.
18427 (arm_store_inferior_register): New.
18428 (arm_wince_breakpoint): Reimplement as unsigned long.
18429 (arm_wince_breakpoint_len): Define.
18430 (the_low_target): Adapt to new interface.
18432 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
18433 load_debug_registers. Add get_thread_context, set_thread_context,
18434 thread_added and store_inferior_register. Rename
18435 fetch_inferior_registers to fetch_inferior_register.
18436 (regptr): Remove declaration.
18438 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18440 * linux-low.c (linux_detach): Change return type to int. Return 0.
18441 * spu-low.c (spu_detach): Likewise.
18443 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18445 * target.h (target_ops): Change return type of detach to int.
18447 (join_inferior): New.
18448 * server.c (main): Don't skip detach support on mingw32.
18449 If the inferior doesn't support detaching return error.
18450 Call join_inferior instead of using waitpid.
18451 * linux-low.c (linux_join): New.
18452 (linux_target_op): Add linux_join.
18453 * spu-low.c (spu_join): New.
18454 (spu_target_ops): Add spu_join.
18455 * win32-low.c (win32_detach): Adapt to new interface.
18456 Reopen current_process_handle before detaching. Issue a child
18457 resume before detaching.
18459 (win32_target_op): Add win32_join.
18461 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18463 * win32-low.c (win32-attach): Fix return value.
18464 * target.h (target_ops): Describe ATTACH return values.
18466 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18468 * win32-low.c (GETPROCADDRESS): Define.
18469 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
18470 (winapi_DebugSetProcessKillOnExit): Likewise.
18471 (win32_create_inferior): Force usage of ansi CreateProcessA.
18472 (win32_attach): Use GETPROCADDRESS.
18473 (win32_detach): Likewise.
18475 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18477 * win32-low.c (win32_wait): Don't use WSTOPSIG.
18479 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
18481 * win32-low.c: Commit leftover changes from 2007-03-29.
18483 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
18485 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
18486 fields short instead of int. Add explicit padding.
18487 (i387_cache_to_fsave): Remove unnecessary casts.
18488 (i387_fsave_to_cache): Doc fix.
18489 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
18491 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
18493 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
18494 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
18496 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
18498 * configure.srv (arm*-*-mingw32ce*): Move near the other
18501 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
18503 * configure.ac: Add errno checking.
18504 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
18505 sys/file.h and malloc.h.
18506 (AC_CHECK_DECLS): Add perror.
18507 (srv_mingwce): Handle.
18508 * configure.srv (i[34567]86-*-cygwin*): Add
18509 win32-i386-low.o to srv_tgtobj.
18510 (i[34567]86-*-mingw*): Likewise.
18511 (arm*-*-mingw32ce*): Add case.
18512 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
18513 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
18514 [__MINGW32CE__] (strerror): New function.
18515 [__MINGW32CE__] (errno): Define to GetLastError.
18516 [__MINGW32CE__] (COUNTOF): New macro.
18517 (remote_open): Remove extra close call.
18518 * mem-break.c (delete_breakpoint_at): New function.
18519 * mem-break.h (delete_breakpoint_at): Declare.
18520 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
18521 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
18522 [USE_WIN32API] (read, write): Add char* casts.
18523 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
18524 * server.h: Include wincecompat.h on Windows CE.
18525 [HAVE_ERRNO_H]: Check.
18526 (perror): Declare if not declared.
18527 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
18528 (perror_with_name): Remove errno declaration.
18529 * wincecompat.h: New.
18530 * wincecompat.c: New.
18531 * win32-low.h: New.
18532 * win32-arm-low.c: New.
18533 * win32-i386-low.c: New.
18534 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
18535 (OUTMSG2): Make it safe.
18537 (COUNTOF): New macro.
18538 (NUM_REGS): Get it from the low target.
18539 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
18540 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
18541 (thread_rec): Let low target handle debug registers.
18542 (child_add_thread): Likewise.
18543 (child_init_thread_list): Likewise.
18544 (continue_one_thread): Likewise.
18546 (do_child_fetch_inferior_registers): Move to ...
18547 * win32-i386-low.c: ... here, and rename to ...
18548 (do_fetch_inferior_registers): ... this.
18549 * win32-low.c (child_fetch_inferior_registers):
18550 Go through the low target.
18551 (do_child_store_inferior_registers): Use regptr.
18552 (strwinerror): New function.
18553 (win32_create_inferior): Handle Windows CE.
18554 Use strwinerror instead of strerror on Windows error
18555 codes. Add program to the error output.
18556 Don't close the main thread handle on Windows CE.
18557 (win32_attach): Use coredll.dll on Windows CE.
18558 (win32_kill): Close current process and current
18560 (win32_detach): Use coredll.dll on Windows CE.
18561 (win32_resume): Let low target handle debug registers, and
18563 (handle_exception): Add/Remove initial breakpoint. Avoid
18564 non-existant WSTOPSIG on Windows CE.
18565 (win32_read_inferior_memory): Cast to remove warning.
18566 (win32_arch_string): Go through the low target.
18567 (initialize_low): Call set_breakpoint_data with the low
18568 target's breakpoint.
18569 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
18570 FOP_REGNUM, mappings): Move to ...
18571 * win32-i386-low.c: ... here.
18572 * win32-low.c (win32_thread_info): Move to ...
18573 * win32-low.h: ... here.
18574 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
18575 win32-arm-low.c and wincecompat.c.
18576 (all:): Add $EXEEXT.
18577 (install-only:): Likewise.
18578 (gdbserver:): Likewise.
18579 (gdbreplay:): Likewise.
18580 * config.in: Regenerate.
18581 * configure: Regenerate.
18583 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
18585 * win32-low.c: Rename typedef thread_info to
18586 win32_thread_info throughout.
18588 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
18590 * win32-i386-low.c: Rename to ...
18591 * win32-low.c: ... this.
18592 * configure.srv: Replace win32-i386-low.o with win32-low.o.
18593 * Makefile.in: Likewise.
18595 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
18597 * remote-utils.c (monitor_output): Constify msg parameter.
18598 * server.h (monitor_output): Likewise.
18599 * win32-i386-low.c (handle_output_debug_string): New.
18600 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
18601 handle_output_debug_string.
18602 (get_child_debug_event): Likewise.
18604 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
18606 * server.c (main): Correct strtoul check.
18608 2007-03-27 Jon Ringle <jon@ringle.org>
18610 * linux-low.c: Check __ARCH_HAS_MMU__ also.
18612 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
18614 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
18616 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
18618 * terminal.h: Check HAVE_SGTTY_H.
18620 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
18622 * remote-utils.c (remote_open): Print out the assigned port number.
18624 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
18626 * remote-utils.c (monitor_output): New function.
18627 * server.c (debug_threads): Define here.
18628 (monitor_show_help): New function.
18629 (handle_query): Handle qRcmd.
18630 (main): Do not handle 'd' packet.
18631 * server.h (debug_threads, remote_debug, monitor_output): Declare.
18632 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
18635 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18637 * Makefile.in (EXEEXT): New.
18638 (clean): Use $(EXEEXT).
18640 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18642 * target.h (target_ops): Rename send_signal to request_interrupt,
18643 and remove enum target_signal parameter.
18644 * linux-low.c (linux_request_interrupt): Rename from
18645 linux_send_signal, and always send SIGINT.
18646 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
18647 and always send SIGINT.
18648 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
18650 (input_interrupt): Likewise.
18652 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18654 * server.c (get_features_xml): Check if target implemented
18656 * win32-i386-low.c (win32_arch_string): New.
18657 (win32_target_ops): Add win32_arch_string as arch_string member.
18659 2007-02-22 Markus Deuling <deuling@de.ibm.com>
18661 * spu-low.c (spu_arch_string): New.
18662 (spu_target_ops): Add spu_arch_string.
18664 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
18666 * remote-utils.c: Remove HAVE_TERMINAL_H check.
18667 * configure.ac: Do not check for terminal.h.
18668 * configure, config.in: Regenerated.
18670 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
18672 * Makefile.in (OBS): Add $(XML_BUILTIN).
18673 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
18675 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
18676 (arm-with-iwmmxt.c): New.
18677 * config.in, configure: Regenerate.
18678 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
18679 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
18680 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
18681 (arm*-*-linux*): Add iWMMXt and regset support.
18682 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
18683 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
18684 (arm_store_wmmxregset, target_regsets): New.
18685 * server.c (get_features_xml): Take annex argument. Check builtin
18687 (handle_query): Handle multiple annexes.
18689 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18691 * remote-utils.c [USE_WIN32API] (read, write): Define.
18692 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
18695 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
18697 * linux-i386-low.c (the_low_target): Set arch_string.
18698 * linux-x86-64-low.c (the_low_target): Likewise.
18699 * linux-low.c (linux_arch_string): New.
18700 (linux_target_ops): Add it.
18701 * linux-low.h (struct linux_target_ops): Add arch_string.
18702 * server.c (write_qxfer_response): Use const void * for DATA.
18703 (get_features_xml): New.
18704 (handle_query): Handle qXfer:features:read. Report it for qSupported.
18705 * target.h (struct target_ops): Add arch_string method.
18707 2007-01-03 Denis Pilat <denis.pilat@st.com>
18708 Daniel Jacobowitz <dan@codesourcery.com>
18710 * linux-low.c (linux_kill): Handle being called with no threads.
18711 * win32-i386-low.c (win32_kill): Likewise.
18712 (get_child_debug_event): Clear current_process_handle.
18714 2006-12-30 Denis PILAT <denis.pilat@st.com>
18715 Daniel Jacobowitz <dan@codesourcery.com>
18717 * remote-utils.c (remote_open): Check the type of specified
18718 serial port devices before opening them.
18719 * server.c (main): Kill the inferior if an error occurs during
18720 the first remote_open.
18722 2006-12-05 Markus Deuling <deuling@de.ibm.com>
18724 * README: Update supported targets.
18726 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
18728 * Makefile.in (clean): Remove reg-mips64.c.
18729 (reg-mips64.c, reg-mips64.o): New rules.
18730 * configure.srv: Handle mips64. Include regset support for mips.
18731 * linux-mips-low.c (union mips_register): New.
18732 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
18733 (mips_breakpoint, mips_breakpoint_at): Use int.
18734 (mips_collect_register, mips_supply_register)
18735 (mips_collect_register_32bit, mips_supply_register_32bit)
18736 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18737 (mips_store_fpregset, target_regsets): New.
18738 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
18740 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
18742 * configure.srv: Add target "spu*-*-*".
18743 * Makefile.in (clean): Remove reg-spu.c.
18744 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
18745 * spu-low.c: New file.
18747 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
18749 * configure.ac: Correct td_thr_tls_get_addr test.
18750 * configure: Regenerated.
18752 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
18754 * linux-low.c (linux_wait_for_event): Reformat. Use the
18755 pass_signals array.
18756 * remote-utils.c (decode_address_to_semicolon): New.
18757 * server.c (pass_signals, handle_general_set): New.
18758 (handle_query): Mention QPassSignals for qSupported.
18759 (main): Call handle_general_set.
18760 * server.h (pass_signals, decode_address_to_semicolon): New.
18762 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
18764 * server.c (handle_query): Correct error handling for read_auxv.
18766 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
18768 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
18769 and srv_linux_thread_db to yes.
18770 * linux-s390-low.c (s390_fill_gregset): New function.
18771 (target_regsets): Define data structure.
18773 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
18775 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
18776 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
18777 * config.in, configure: Regenerated.
18778 * inferiors.c (gdb_id_to_thread): New function.
18779 (gdb_id_to_thread_id): Use it.
18780 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
18781 * linux-low.h (struct process_info): Add th member.
18782 (thread_db_get_tls_address): New prototype.
18783 * remote-utils.c (decode_address): Make non-static.
18784 * server.c (handle_query): Handle qGetTLSAddr.
18785 * server.h (gdb_id_to_thread, decode_address): New prototypes.
18786 * target.h (struct target_ops): Add get_tls_address.
18787 * thread-db.c (maybe_attach_thread): Save the thread handle.
18788 (thread_db_get_tls_address): New.
18790 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
18792 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
18793 (linux_resume_one_process): Take a siginfo_t *. Update all
18794 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
18795 (struct pending_signals): Add a siginfo_t.
18796 (linux_wait_for_process): Always set last_status.
18797 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
18798 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
18799 * linux-low.h (struct process_info): Add last_status.
18801 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
18803 * remote-utils.c (try_rle): New function.
18804 (putpkt_binary): Use it.
18806 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
18808 * Makefile.in (clean): Clean reg-x86-64-linux.c.
18809 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
18810 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
18811 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
18812 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
18815 2006-08-08 Richard Sandiford <richard@codesourcery.com>
18817 * server.c (terminal_fd): New variable.
18818 (old_foreground_pgrp): Likewise.
18819 (restore_old_foreground_pgrp): New function.
18820 (start_inferior): Record the terminal file descriptor in terminal_fd
18821 and its original foreground group in old_foreground_pgrp. Register
18822 restore_old_foreground_pgrp with atexit().
18824 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
18826 * server.c (handle_query): Correct qPart to qXfer.
18828 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
18830 * configure.ac: Check for more headers which are missing on
18831 Windows. Automatically supply -lwsock32 and USE_WIN32API.
18832 * configure.srv: Add Cygwin and mingw32.
18833 * remote-utils.c: Don't include headers unconditionally which
18834 are missing on mingw32. Include <winsock.h> for mingw32.
18835 (remote_open): Adjust for mingw32 support. Flush
18836 standard error after writing to it.
18837 (remote_close, putpkt_binary, input_interrupt, block_async_io)
18838 (unblock_async_io, enable_async_io, disable_async_io)
18839 (readchar, getpkt): Update for Winsock support.
18840 (prepare_resume_reply): Expect a protocol signal number.
18841 * server.c: Disable <sys/wait.h> on mingw32.
18842 (start_inferior): Adjust for mingw32 support. Flush
18843 standard error after writing to it.
18844 (attach_inferior): Likewise. Use protocol signal
18846 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
18848 * win32-i386-low.c: New file.
18849 * Makefile.in (XM_CLIBS): Set.
18850 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
18851 (win32-i386-low.o): New dependency rule.
18852 * linux-low.c (linux_wait): Use target signal numbers.
18853 * target.h (struct target_ops): Doc fix.
18854 * server.h (target_signal_to_name): New prototype.
18855 * gdbreplay.c: Don't include headers unconditionally which
18856 are missing on mingw32. Include <winsock.h> for mingw32.
18857 (remote_close, remote_open): Adjust for Winsock support.
18858 * configure, config.in: Regenerated.
18860 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
18862 * server.c (decode_xfer_read, write_qxfer_response): New.
18863 (handle_query): Take a packet length argument. Handle
18864 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
18865 the qSupported response.
18866 (main): Update call to handle_query.
18868 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
18870 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
18871 (putpkt_binary): Renamed from putpkt and adjusted for binary
18873 (putpkt): New wrapper for putpkt_binary.
18874 (readchar): Don't mask off the high bit.
18875 (decode_X_packet): New function.
18876 * server.c (main): Call putpkt_binary if a handler sets the packet
18877 length. Save the length of the incoming packet. Handle 'X'.
18878 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
18880 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
18882 * server.c (handle_query): Handle qSupported.
18884 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
18886 * remote-utils.c (all_symbols_looked_up): New variable.
18887 (look_up_one_symbol): Check it.
18888 * server.h (look_up_one_symbol): New declaration.
18889 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
18891 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
18893 * Makefile.in (linux-arm-low.o): Update dependencies.
18894 * linux-arm-low.c: Include "gdb_proc_service.h".
18895 (PTRACE_GET_THREAD_AREA): Define.
18896 (ps_get_thread_area): New function.
18898 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
18900 * configure.srv (m68k*-*-uclinux*): New target.
18901 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
18902 (linux_resume_one_process): Remove extraneous cast.
18903 (linux_read_offsets): New.
18904 (linux_target_op): Add linux_read_offsets on mmuless systems.
18905 * server.c (handle_query): Add qOffsets logic.
18906 * target.h (struct target_ops): Add read_offsets.
18908 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
18910 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
18911 (PTRACE_GET_THREAD_AREA): Define.
18912 (ps_get_thread_area): New function.
18913 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
18914 (linux-x86-64-low.o): Update.
18916 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
18918 * configure.ac: Remove checks for prfpregset_t.
18919 * gdb_proc_service.h: New file.
18920 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
18921 new "gdb_proc_service.h".
18922 * proc-service.c: Likewise.
18923 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
18924 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
18925 * Makefile.in (gdb_proc_service_h): Updated.
18926 * configure, config.in: Regenerated.
18928 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
18930 * remote-utils.c (prepare_resume_reply): Move declaration
18931 of gdb_id_from_wait to the top of the block.
18933 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
18935 * linux-low.c (regsets_store_inferior_registers): Read the regset
18936 from the target before filling it.
18938 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
18940 * server.c (attach_inferior): Return SIGTRAP for a successful
18943 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18945 * Makefile.in (OBS): Add version.o.
18946 (STAGESTUFF): Delete.
18947 (version.o): Add dependencies.
18948 (version.c): Replace rule.
18949 (clean): Remove version.c.
18950 * server.c (gdbserver_version): New.
18951 (gdbserver_usage): Use printf.
18952 (main): Handle --version and --help.
18953 * server.h (version, host_name): Add declarations.
18955 2005-12-23 Eli Zaretskii <eliz@gnu.org>
18967 * linux-x86-64-low.c:
18969 * linux-s390-low.c:
18970 * linux-ppc64-low.c:
18972 * linux-mips-low.c:
18973 * linux-m68k-low.c:
18974 * linux-m32r-low.c:
18977 * linux-ia64-low.c:
18978 * linux-i386-low.c:
18979 * linux-crisv32-low.c:
18991 * gdbserver.1: Add (C) after Copyright. Update the FSF
18994 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
18996 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
18997 (arm_breakpoint_at): Recognize both breakpoints.
18998 (the_low_target): Use the correct breakpoint instruction.
19000 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
19002 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
19003 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
19004 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
19005 (the_low_target): Update.
19007 2005-10-25 Andreas Schwab <schwab@suse.de>
19009 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
19011 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
19012 (ia64_num_regs): Reduce to 462.
19014 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
19016 * acinclude.m4: Correct quoting.
19017 * aclocal.m4: Regenerated.
19019 Suggested by SZOKOVACS Robert <szo@ies.hu>:
19020 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
19021 (thread_db_init): Call thread_db_err_str.
19022 * configure.ac: Check for TD_VERSION.
19023 * config.in, configure: Regenerated.
19025 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19027 * server.h (error, fatal, warning): Add ATTR_FORMAT.
19029 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
19031 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
19032 is not available. Define HAVE_PTRACE_GETREGS if it is.
19033 * config.in, configure: Regenerated.
19034 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
19035 * linux-i386-low.c, linux-m68k-low.c: Update to use
19036 HAVE_PTRACE_GETREGS.
19037 * linux-low.c (regsets_fetch_inferior_registers)
19038 (regsets_store_inferior_registers): Only return 0 if we processed
19040 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
19041 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
19043 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
19045 * inferiors.c (struct thread_info): Add gdb_id.
19046 (add_thread): Add gdb_id argument.
19047 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
19048 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
19049 calls to add_thread.
19050 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
19051 * server.c (handle_query): Use thread_to_gdb_id.
19052 (handle_v_cont, main): Use gdb_id_to_thread_id.
19053 * server.h (add_thread): Update prototype.
19054 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
19057 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
19059 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
19060 left-padded registers.
19061 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
19062 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
19064 2005-07-01 Steve Ellcey <sje@cup.hp.com>
19066 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
19067 * configure: Regenerate.
19068 * config.in: Regenerate.
19069 * server.h (NEED_DECLARATION_STRERROR):
19070 Replace with !HAVE_DECL_STRERROR.
19072 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
19074 * linux-low.c (linux_wait, linux_send_signal): Don't test
19075 an unsigned long variable for > 0 if it could be MAX_ULONG.
19076 * server.c (myresume): Likewise.
19077 * target.c (set_desired_inferior): Likewise.
19079 2005-06-13 Mark Kettenis <kettenis@gnu.org>
19081 * configure.ac: Simplify and improve check for socklen_t.
19082 * configure, config.in: Regenerate.
19084 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
19086 * acconfig.h: Remove.
19087 * configure.ac: Add a test for socklen_t. Use three-argument
19088 AC_DEFINE throughout.
19089 * config.in: Regenerated using autoheader 2.59.
19090 * configure: Regenerated.
19092 * gdbreplay.c (socklen_t): Provide a default.
19093 (remote_open): Use socklen_t.
19094 * remote-utils.c (socklen_t): Provide a default.
19095 (remote_open): Use socklen_t.
19096 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
19099 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
19101 * linux-low.c (linux_read_memory, linux_write_memory)
19102 (linux_read_auxv): Likewise.
19103 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
19104 (check_mem_write): Likewise.
19105 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
19107 * regcache.c (struct inferior_rgcache_data, registers_to_string)
19108 (registers_from_string, register_data): Likewise.
19109 * server.c (handle_query, main): Likewise.
19110 * server.h (convert_ascii_to_int, convert_int_to_ascii)
19111 (decode_M_packet): Likewise.
19112 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
19113 * target.h (struct target_ops): Update read_memory, write_memory,
19115 (read_inferior_memory, write_inferior_memory): Update.
19116 * linux-low.h (struct linux_target_ops): Change type of breakpoint
19117 to unsigned char *.
19118 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
19119 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
19120 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
19121 linux-s390-low.c, linux-sh-low.c: Update for changes in
19122 read_inferior_memory and the_low_target->breakpoint.
19124 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
19126 * Makefile.in (SFILES): Add linux-ppc64-low.c.
19127 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
19128 * configure.srv: Add powerpc64-*-linux*.
19129 * linux-ppc64-low.c: New file.
19131 2005-05-23 Orjan Friberg <orjanf@axis.com>
19133 * linux-cris-low.c: New file with support for CRIS.
19134 * linux-crisv32-low.c: Ditto for CRISv32.
19135 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
19136 (clean): Add reg-cris.c and reg-crisv32.c.
19137 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
19138 reg-crisv32.o, and reg-crisv32.c to make rules.
19139 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
19140 recognized targets.
19142 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
19144 * linux-low.c (fetch_register): Ensure buffer size is a multiple
19145 of sizeof (PTRACE_XFER_TYPE).
19146 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
19148 2005-05-12 Orjan Friberg <orjanf@axis.com>
19150 * target.h (struct target_ops): Add insert_watchpoint,
19151 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
19152 pointers for hardware watchpoint support.
19153 * linux-low.h (struct linux_target_ops): Ditto.
19154 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
19155 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
19156 to linux_target_ops.
19157 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
19159 * server.c (main): Recognize 'Z' and 'z' packets.
19161 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
19163 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
19164 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
19165 (the_low_target): Add new members.
19167 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
19169 * proc-service.c (ps_lgetregs): Search all_processes instead of
19172 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
19174 * server.c (start_inferior): Change return type to int.
19175 (attach_inferior): Change sigptr to int *.
19176 (handle_v_cont, handle_v_requests): Change signal to int *.
19177 (main): Change signal to int.
19179 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
19181 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
19182 * configure.srv: Add m32r*-*-linux*.
19183 * linux-m32r-low.c: New file.
19185 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
19187 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
19189 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
19191 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
19192 Take unsigned long arguments for PIDs.
19193 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
19194 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
19195 (wait_for_sigstop, linux_resume_one_process)
19196 (regsets_fetch_inferior_registers, linux_send_signal)
19197 (linux_read_auxv): Likewise. Update the types of variables holding
19198 PIDs. Update format string specifiers.
19199 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
19200 * remote-utils.c (prepare_resume_reply): Likewise.
19201 * server.c (cont_thread, general_thread, step_thread)
19202 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
19204 (handle_query): Update format specifiers.
19205 (handle_v_cont, main): Use strtoul for thread IDs.
19206 * server.h (struct inferior_list_entry): Use unsigned long for ID.
19207 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
19208 (general_thread, step_thread, thread_from_wait)
19209 (old_thread_from_wait): Update.
19210 * target.h (struct thread_resume): Use unsigned long for THREAD.
19211 (struct target_ops): Use unsigned long for arguments to attach and
19214 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
19216 * acinclude.m4: Include bfd/bfd.m4 directly.
19217 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
19218 <agriffis@toolchain.org>.
19219 * aclocal.m4, configure: Regenerated.
19221 2005-01-07 Andrew Cagney <cagney@gnu.org>
19223 * configure.ac: Rename configure.in, require autoconf 2.59.
19224 * configure: Re-generate.
19226 2004-12-08 Daniel Jacobowitz <dan@debian.org>
19228 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
19229 LIBS when finished.
19230 * aclocal.m4: Regenerated.
19231 * configure: Regenerated.
19233 2004-11-21 Andreas Schwab <schwab@suse.de>
19235 * linux-m68k-low.c (m68k_num_gregs): Define.
19236 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
19237 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
19238 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
19239 (m68k_breakpoint_at): New. Add to the_low_target.
19241 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
19242 srv_linux_thread_db to yes.
19244 2004-10-20 Joel Brobecker <brobecker@gnat.com>
19246 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
19247 (ARCH_SET_FS): Likewise.
19248 (ARCH_GET_FS): Likewise.
19249 (ARCH_GET_GS): Likewise.
19251 2004-10-16 Daniel Jacobowitz <dan@debian.org>
19253 * linux-i386-low.c (ps_get_thread_area): New.
19254 * linux-x86-64-low.c (ps_get_thread_area): New.
19255 * linux-low.c: Include <sys/syscall.h>.
19256 (linux_kill_one_process): Don't kill the first thread here.
19257 (linux_kill): Kill the first thread here.
19258 (kill_lwp): New function.
19259 (send_sigstop, linux_send_signal): Use it.
19260 * proc-service.c: Clean up #ifdefs.
19261 (fpregset_info): Delete.
19262 (ps_lgetregs): Update and enable implementation.
19263 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
19265 * remote-utils.c (struct sym_cache, symbol_cache): New.
19266 (input_interrupt): Print a clearer message.
19267 (async_io_enabled): New variable.
19268 (enable_async_io, disable_async_io): Use it. Update comments.
19269 (look_up_one_symbol): Use the symbol cache.
19270 * thread-db.c (thread_db_look_up_symbols): New function.
19271 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
19273 2004-10-16 Daniel Jacobowitz <dan@debian.org>
19275 * configure.in: Test for -rdynamic.
19276 * configure: Regenerated.
19277 * Makefile (INTERNAL_LDFLAGS): New.
19278 (gdbserver, gdbreplay): Use it.
19280 2004-09-02 Andrew Cagney <cagney@gnu.org>
19282 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
19284 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
19286 * linux-low.c (linux_wait): Clear all_processes list also.
19288 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
19290 * linux-low.c: Include <errno.h>. Remove extern declaration of
19293 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
19295 * gdbreplay.c, server.h, utils.c: Update copyright years.
19297 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
19299 * server.c (main): Print child status or termination signal from
19300 variable 'signal', not 'sig'.
19302 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
19304 * linux-low.c (linux_read_memory): Change return type to
19305 int. Check for and return error from ptrace().
19306 * target.c (read_inferior_memory): Change return type to int. Pass
19307 back return status from the_target->read_memory().
19308 * target.h (struct target_ops): Adapt *read_memory() prototype.
19310 (read_inferior_memory): Adapt prototype.
19311 * server.c (main): Return an error packet if
19312 read_inferior_memory() returns an error.
19314 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
19316 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
19317 Unify with other clean targets.
19319 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19321 * server.c (handle_v_cont): Call set_desired_inferior.
19323 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19325 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
19327 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19329 * linux-low.c (linux_wait): Unblock async I/O.
19330 (linux_resume): Block and enable async I/O.
19331 * remote-utils.c (block_async_io, unblock_async_io): New functions.
19332 * server.h (block_async_io, unblock_async_io): Add prototypes.
19334 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19336 * remote-utils.c (remote_open): Print a status notice after
19337 opening a TCP port.
19338 * server.c (attach_inferior): Print a status notice after
19341 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19343 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
19345 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
19347 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
19349 * server.c, target.h: Update copyright years.
19351 2004-02-25 Roland McGrath <roland@redhat.com>
19353 * target.h (struct target_ops): New member `read_auxv'.
19354 * server.c (handle_query): Handle qPart:auxv:read: query using that.
19355 * linux-low.c (linux_read_auxv): New function.
19356 (linux_target_ops): Initialize `read_auxv' member to that.
19358 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19360 Committed by Jim Blandy <jimb@redhat.com>.
19362 * linux-s390-low.c (s390_num_regs): Update.
19363 (s390_regmap): Remove control registers. Use __s390x__ predefine
19364 instead of GPR_SIZE to distiguish s390 and s390x targets.
19366 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
19368 * linux-low.c: Update copyright year.
19369 (check_removed_breakpoint): Clear pending_is_breakpoint.
19370 (linux_set_resume_request, linux_queue_one_thread)
19371 (resume_status_pending_p): New functions.
19372 (linux_continue_one_thread): Use process->resume.
19373 (linux_resume): Only resume threads if there are no pending events.
19374 * linux-low.h (struct process_info): Add resume request
19377 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
19379 * regcache.c (new_register_cache): Clear the allocated register
19380 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
19382 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
19384 * linux-low.c (linux_resume): Take a struct thread_resume *
19386 (linux_wait): Update call.
19387 (resume_ptr): New static variable.
19388 (linux_continue_one_thread): Renamed from
19389 linux_continue_one_process. Use resume_ptr.
19390 (linux_resume): Use linux_continue_one_thread.
19391 * server.c (handle_v_cont, handle_v_requests): New functions.
19392 (myresume): New function.
19393 (main): Handle 'v' case.
19394 * target.h (struct thread_resume): New type.
19395 (struct target_ops): Change argument of "resume" to struct
19397 (myresume): Delete macro.
19399 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
19401 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
19402 (uninstall): Support DESTDIR.
19404 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
19406 * configure.srv: Add xscale*linux copy of arm*linux entry.
19408 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
19410 * linux-arm-low.c (arm_reinsert_addr): New function.
19411 (the_low_target): Add arm_reinsert_addr.
19413 2003-07-08 Mark Kettenis <kettenis@gnu.org>
19415 * mem-break.c: Remove whitespace at end of file.
19417 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
19419 * configure.in: Check whether we need to prototype strerror.
19420 * server.h: Optionally prototype strerror.
19421 * gdbreplay.c (perror_with_name): Use strerror.
19422 * linux-low.c (linux_attach_lwp): Use strerror.
19423 * utils.c (perror_with_name): Use strerror.
19424 * config.in, configure: Regenerated.
19426 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
19428 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
19429 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
19431 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
19433 * Makefile.in (SFILES): Update.
19434 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
19435 low-sun3.c: Remove files.
19437 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
19439 * linux-low.c: Move comment to linux_thread_alive where it belonged.
19440 (linux_detach_one_process, linux_detach): New functions.
19441 (linux_target_ops): Add linux_detach.
19442 * server.c (main): Handle 'D' packet.
19443 * target.h (struct target_ops): Add "detach" member.
19444 (detach_inferior): Define.
19446 2003-06-13 Mark Kettenis <kettenis@gnu.org>
19448 From Kelley Cook <kelleycook@wideopenwest.com>:
19449 * configure.srv: Accept i[34567]86 variants.
19451 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
19453 * linux-low.c (linux_wait_for_event): Correct comment typos.
19454 (linux_resume_one_process): Call check_removed_breakpoint.
19455 (linux_send_signal): New function.
19456 (linux_target_ops): Add linux_send_signal.
19457 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
19459 * target.h (struct target_ops): Add send_signal.
19461 2003-05-29 Jim Blandy <jimb@redhat.com>
19463 * linux-low.c (usr_store_inferior_registers): Transfer buf in
19464 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
19465 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
19466 away part of the register's value.
19468 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
19470 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
19471 (linux_wait_for_event, linux_init_signals): Likewise.
19473 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
19475 * configure.in: Check for stdlib.h.
19476 * configure: Regenerated.
19477 * config.in: Regenerated.
19479 2003-01-04 Andreas Schwab <schwab@suse.de>
19481 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
19483 2003-01-02 Andrew Cagney <ac131313@redhat.com>
19485 * Makefile.in: Remove obsolete code.
19487 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
19489 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
19490 defined(PT_FPR0_HI).
19492 2002-11-17 Stuart Hughes <seh@zee2.com>
19494 * linux-arm-low.c (arm_num_regs): Increase.
19495 (arm_regmap): Include status register.
19497 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
19499 * linux-low.c (register_addr): Remove incorrect -1 check.
19501 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
19503 * linux-low.c (linux_create_inferior): Call setpgid. Return
19505 (unstopped_p, linux_signal_pid): Remove.
19506 (linux_target_ops): Remove linux_signal_pid.
19507 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
19508 global instead of target method.
19509 * target.h (struct target_ops): Remove signal_pid. Update comment
19510 for create_inferior.
19511 * server.c (signal_pid): New variable.
19512 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
19513 gdbserver. Set the child to be the foreground process group.
19514 (attach_inferior): Set signal_pid.
19516 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
19518 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
19520 2002-08-20 Jim Blandy <jimb@redhat.com>
19522 * Makefile.in (LDFLAGS): Allow the configure script to establish a
19525 2002-08-01 Andrew Cagney <cagney@redhat.com>
19527 * Makefile.in: Make chill references obsolete.
19529 2002-07-24 Kevin Buettner <kevinb@redhat.com>
19531 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
19532 * configure: Regenerate.
19533 * config.in: Regenerate.
19535 2002-07-09 David O'Brien <obrien@FreeBSD.org>
19537 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
19538 (perror_with_name, remote_close, remote_open, expect, play): Static.
19540 2002-07-04 Michal Ludvig <mludvig@suse.cz>
19542 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
19543 byte offsets instead of an array of indexes.
19544 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
19546 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
19548 * regcache.c: Add comment.
19550 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
19552 * thread-db.c: New file.
19553 * proc-service.c: New file.
19554 * acinclude.m4: New file.
19555 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
19556 proc-service.o, and thread-db.o.
19557 (linux-low.o): Add USE_THREAD_DB.
19558 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
19559 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
19560 * aclocal.m4: Regenerated.
19561 * config.in: Regenerated.
19562 * configure: Regenerated.
19563 * configure.in: Check for proc_service.h, sys/procfs.h,
19564 thread_db.h, and linux/elf.h headrs.
19565 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
19566 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
19567 Check for -lthread_db and thread support.
19568 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
19569 PowerPC, and SuperH.
19570 * i387-fp.c: Constify arguments.
19571 * i387-fp.h: Likewise.
19572 * inferiors.c: (struct thread_info): Renamed from
19573 `struct inferior_info'. Remove PID member. Use generic inferior
19574 list header. All uses updated.
19575 (inferiors, signal_pid): Removed.
19576 (all_threads): New variable.
19577 (get_thread): Define.
19578 (add_inferior_to_list): New function.
19579 (for_each_inferior): New function.
19580 (change_inferior_id): New function.
19581 (add_inferior): Removed.
19582 (remove_inferior): New function.
19583 (add_thread): New function.
19584 (free_one_thread): New function.
19585 (remove_thread): New function.
19586 (clear_inferiors): Use for_each_inferior and free_one_thread.
19587 (find_inferior): New function.
19588 (find_inferior_id): New function.
19589 (inferior_target_data): Update argument type.
19590 (set_inferior_target_data): Likewise.
19591 (inferior_regcache_data): Likewise.
19592 (set_inferior_regcache_data): Likewise.
19593 * linux-low.c (linux_bp_reinsert): Remove.
19594 (all_processes, stopping_threads, using_thrads)
19595 (struct pending_signals, debug_threads, pid_of): New.
19596 (inferior_pid): Replace with macro.
19597 (struct inferior_linux_data): Remove.
19598 (get_stop_pc, add_process): New functions.
19599 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
19600 Use add_process and add_thread.
19601 (linux_attach_lwp): New function, based on old linux_attach. Use
19602 add_process and add_thread. Set stop_expected for new threads.
19603 (linux_attach): New function.
19604 (linux_kill_one_process): New function.
19605 (linux_kill): Kill all LWPs.
19606 (linux_thread_alive): Use find_inferior_id.
19607 (check_removed_breakpoints, status_pending_p): New functions.
19608 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
19609 Update. Use WNOHANG. Wait for cloned processes also. Update process
19610 struct for the found process.
19611 (linux_wait_for_event): New function.
19612 (linux_wait): Use it. Support LWPs.
19613 (send_sigstop, wait_for_sigstop, stop_all_processes)
19614 (linux_resume_one_process, linux_continue_one_process): New functions.
19615 (linux_resume): Support LWPs.
19616 (REGISTER_RAW_SIZE): Remove.
19617 (fetch_register): Use register_size instead. Call supply_register.
19618 (usr_store_inferior_registers): Likewise. Call collect_register.
19619 Fix recursive case.
19620 (regsets_fetch_inferior_registers): Improve error message.
19621 (regsets_store_inferior_registers): Add debugging.
19622 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
19623 (unstopped_p, linux_signal_pid): New functions.
19624 (linux_target_ops): Add linux_signal_pid.
19625 (linux_init_signals): New function.
19626 (initialize_low): Call it. Initialize using_threads.
19627 * regcache.c (inferior_regcache_data): Add valid
19629 (get_regcache): Fetch registers lazily. Add fetch argument
19630 and update all callers.
19631 (regcache_invalidate_one, regcache_invalidate): New
19633 (new_register_cache): Renamed from create_register_cache.
19634 Return the new regcache.
19635 (free_register_cache): Change argument to a void *.
19636 (registers_to_string, registers_from_string): Call get_regcache
19637 with fetch flag set.
19638 (register_data): Make static. Pass fetch flag to get_regcache.
19639 (supply_register): Call get_regcache with fetch flag clear.
19640 (collect_register): Call get_regcache with fetch flag set.
19641 (collect_register_as_string): New function.
19642 * regcache.h: Update.
19643 * remote-utils.c (putpkt): Flush after debug output and use
19645 Handle input interrupts while waiting for an ACK.
19646 (input_interrupt): Use signal_pid method.
19647 (getpkt): Flush after debug output and use stderr.
19648 (outreg): Use collect_register_as_string.
19649 (new_thread_notify, dead_thread_notify): New functions.
19650 (prepare_resume_reply): Check using_threads. Set thread_from_wait
19651 and general_thread.
19652 (look_up_one_symbol): Flush after debug output.
19653 * server.c (step_thread, server_waiting): New variables.
19654 (start_inferior): Don't use signal_pid. Update call to mywait.
19655 (attach_inferior): Update call to mywait.
19656 (handle_query): Handle qfThreadInfo and qsThreadInfo.
19657 (main): Don't fetch/store registers explicitly. Use
19658 set_desired_inferior. Support proposed ``Hs'' packet. Update
19660 * server.h: Update.
19661 (struct inferior_list, struct_inferior_list_entry): New.
19662 * target.c (set_desired_inferior): New.
19663 (write_inferior_memory): Constify.
19664 (mywait): New function.
19665 * target.h: Update.
19666 (struct target_ops): New signal_pid method.
19667 (mywait): Removed macro, added prototype.
19669 * linux-low.h (regset_func): Removed.
19670 (regset_fill_func, regset_store_func): New.
19671 (enum regset_type): New.
19672 (struct regset_info): Add type field. Use new operation types.
19673 (struct linux_target_ops): stop_pc renamed to get_pc.
19674 Add decr_pc_after_break and breakpoint_at.
19675 (get_process, get_thread_proess, get_process_thread)
19676 (strut process_info, all_processes, linux_attach_lwp)
19677 (thread_db_init): New.
19679 * linux-arm-low.c (arm_get_pc, arm_set_pc,
19680 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
19681 (the_low_target): Add new members.
19682 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
19683 (i386_store_fpxregset): Constify.
19684 (target_regsets): Add new kind identifier.
19685 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
19686 (i386_set_pc): Add debugging.
19687 (i386_breakpoint_at): New function.
19688 (the_low_target): Add new members.
19689 * linux-mips-low.c (mips_get_pc, mips_set_pc)
19690 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
19691 (mips_breakpoint_at): New.
19692 (the_low_target): Add new members.
19693 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
19694 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
19695 (the_low_target): Add new members.
19696 * linux-sh-low.c (sh_get_pc, sh_set_pc)
19697 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
19698 (the_low_target): Add new members.
19699 * linux-x86-64-low.c (target_regsets): Add new kind
19702 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
19704 From Martin Pool <mbp@samba.org>:
19705 * server.c (gdbserver_usage): New function.
19708 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
19710 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
19711 stop_at -> stop_pc.
19713 2002-05-04 Andrew Cagney <ac131313@redhat.com>
19715 * Makefile.in: Remove obsolete code.
19717 2002-04-24 Michal Ludvig <mludvig@suse.cz>
19719 * linux-low.c (regsets_fetch_inferior_registers),
19720 (regsets_store_inferior_registers): Removed cast to int from
19722 * regcache.h: Added declaration of struct inferior_info.
19724 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
19726 * inferiors.c (struct inferior_info): Add regcache_data.
19727 (add_inferior): Call create_register_cache.
19728 (clear_inferiors): Call free_register_cache.
19729 (inferior_regcache_data, set_inferior_regcache_data): New functions.
19730 * regcache.c (struct inferior_regcache_data): New.
19731 (registers): Remove.
19732 (get_regcache): New function.
19733 (create_register_cache, free_register_cache): New functions.
19734 (set_register_cache): Don't initialize the register cache here.
19735 (registers_to_string, registers_from_string, register_data): Call
19737 * regcache.h: Add prototypes.
19738 * server.h: Likewise.
19740 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
19742 * mem-break.c: New file.
19743 * mem-break.h: New file.
19744 * Makefile.in: Add mem-break.o rule; update server.h
19746 * inferiors.c (struct inferior_info): Add target_data
19748 (clear_inferiors): Free target_data member if set.
19749 (inferior_target_data, set_inferior_target_data): New functions.
19750 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
19751 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
19752 * linux-low.c (linux_bp_reinsert): New variable.
19753 (struct inferior_linux_data): New.
19754 (linux_create_inferior): Use set_inferior_target_data.
19755 (linux_attach): Likewise. Call add_inferior.
19756 (linux_wait_for_one_inferior): New function.
19757 (linux_wait): Call it.
19758 (linux_write_memory): Add const.
19759 (initialize_low): Call set_breakpoint_data.
19760 * linux-low.h (struct linux_target_ops): Add breakpoint
19762 * server.c (attach_inferior): Remove extra add_inferior
19764 * server.h: Include mem-break.h. Update inferior.c
19766 * target.c (read_inferior_memory)
19767 (write_inferior_memory): New functions.
19768 * target.h (read_inferior_memory)
19769 (write_inferior_memory): Change macros to prototypes.
19770 (struct target_ops): Update comments. Add const to write_memory
19773 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
19775 * linux-low.c (usr_store_inferior_registers): Support
19776 registers which are allowed to fail to store.
19777 * linux-low.h (linux_target_ops): Likewise.
19778 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
19779 (ppc_cannot_store_register): FPSCR may not be storable.
19781 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19783 * server.h: Include <string.h> if HAVE_STRING_H.
19784 * ChangeLog: Correct paths in last ChangeLog entry.
19786 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19788 * linux-low.h: Remove obsolete prototypes.
19789 (struct linux_target_ops): New.
19790 (extern the_low_target): New.
19791 * linux-low.c (num_regs, regmap): Remove declarations.
19792 (register_addr): Use the_low_target explicitly.
19793 (fetch_register): Likewise.
19794 (usr_fetch_inferior_registers): Likewise.
19795 (usr_store_inferior_registers): Likewise.
19796 * linux-arm-low.c (num_regs): Remove.
19797 (arm_num_regs): Define.
19798 (arm_regmap): Renamed from regmap, made static.
19799 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
19801 (arm_cannot_store_register): Renamed from cannot_store_register,
19803 (the_low_target): New.
19804 * linux-i386-low.c (num_regs): Remove.
19805 (i386_num_regs): Define.
19806 (i386_regmap): Renamed from regmap, made static.
19807 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
19809 (i386_cannot_store_register): Renamed from cannot_store_register,
19811 (the_low_target): New.
19812 * linux-ia64-low.c (num_regs): Remove.
19813 (ia64_num_regs): Define.
19814 (ia64_regmap): Renamed from regmap, made static.
19815 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
19817 (ia64_cannot_store_register): Renamed from cannot_store_register,
19819 (the_low_target): New.
19820 * linux-m68k-low.c (num_regs): Remove.
19821 (m68k_num_regs): Define.
19822 (m68k_regmap): Renamed from regmap, made static.
19823 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
19825 (m68k_cannot_store_register): Renamed from cannot_store_register,
19827 (the_low_target): New.
19828 * linux-mips-low.c (num_regs): Remove.
19829 (mips_num_regs): Define.
19830 (mips_regmap): Renamed from regmap, made static.
19831 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
19833 (mips_cannot_store_register): Renamed from cannot_store_register,
19835 (the_low_target): New.
19836 * linux-ppc-low.c (num_regs): Remove.
19837 (ppc_num_regs): Define.
19838 (ppc_regmap): Renamed from regmap, made static.
19839 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
19841 (ppc_cannot_store_register): Renamed from cannot_store_register,
19843 (the_low_target): New.
19844 * linux-s390-low.c (num_regs): Remove.
19845 (s390_num_regs): Define.
19846 (s390_regmap): Renamed from regmap, made static.
19847 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
19849 (s390_cannot_store_register): Renamed from cannot_store_register,
19851 (the_low_target): New.
19852 * linux-sh-low.c (num_regs): Remove.
19853 (sh_num_regs): Define.
19854 (sh_regmap): Renamed from regmap, made static.
19855 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
19857 (sh_cannot_store_register): Renamed from cannot_store_register,
19859 (the_low_target): New.
19860 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
19861 (the_low_target): New.
19863 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19865 * Makefile.in: Add stamp-h target.
19866 * configure.in: Create stamp-h.
19867 * configure: Regenerated.
19869 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19871 * inferiors.c: New file.
19872 * target.c: New file.
19873 * target.h: New file.
19874 * Makefile.in: Add target.o and inferiors.o. Update
19876 * linux-low.c (inferior_pid): New static variable,
19877 moved from server.c.
19878 (linux_create_inferior): Renamed from create_inferior.
19879 Call add_inferior. Return 0 on success instead of a PID.
19880 (linux_attach): Renamed from myattach.
19881 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
19882 (linux_thread_alive): Renamed from mythread_alive.
19883 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
19885 (linux_resume): Renamed from myresume. Add missing ``return 0''.
19886 (regsets_store_inferior_registers): Correct error message.
19887 Add missing ``return 0''.
19888 (linux_fetch_registers): Renamed from fetch_inferior_registers.
19889 (linux_store_registers): Renamed from store_inferior_registers.
19890 (linux_read_memory): Renamed from read_inferior_memory.
19891 (linux_write_memory): Renamed from write_inferior_memory.
19892 (linux_target_ops): New structure.
19893 (initialize_low): Call set_target_ops ().
19894 * remote-utils.c (unhexify): New function.
19895 (hexify): New function.
19896 (input_interrupt): Send signals to ``signal_pid''.
19897 * server.c (inferior_pid): Remove.
19898 (start_inferior): Update create_inferior call.
19899 (attach_inferior): Call add_inferior.
19900 (handle_query): New function.
19901 (main): Call handle_query for `q' packets.
19902 * server.h: Include "target.h". Remove obsolete prototypes.
19903 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
19905 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19907 * Makefile.in: Add WARN_CFLAGS. Update configury
19909 * configure.in: Check for <string.h>
19910 * configure: Regenerate.
19911 * config.in: Regenerate.
19912 * gdbreplay.c: Include needed system headers.
19913 (remote_open): Remove strchr prototype.
19914 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
19915 * regcache.c (supply_register): Change buf argument to const void *.
19916 (supply_register_by_name): Likewise.
19917 (collect_register): Change buf argument to void *.
19918 (collect_register_by_name): Likewise.
19919 * regcache.h: Add missing prototypes.
19920 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
19921 * server.c (handle_query): New function.
19922 (attached): New static variable, moved out of main.
19923 (main): Quiet longjmp clobber warnings.
19924 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
19925 * utils.c (error): Remove NORETURN.