1 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
3 * acinclude.m4: Update path to selftest.m4.
5 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7 * configure.ac: Don't source bfd/development.sh, move
9 * configure: Re-generate.
11 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13 * configure: Re-generate.
15 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
17 * configure: Re-generate.
19 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
21 * .dir-locals.el: New file.
23 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
25 * .gitattributes: New file.
27 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
29 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
30 reply into an S reply.
31 * server.cc (disable_packet_T): New global.
32 (captured_main): Set new global when appropriate.
33 * server.h (disable_packet_T): Declare.
35 2020-02-21 Tom Tromey <tom@tromey.com>
37 * Makefile.in (mostlyclean): New target.
39 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
41 * target.h (struct process_stratum_target): Remove.
42 (class process_target): Rename to ...
43 (class process_stratum_target): ... this.
44 * linux-low.h (class linux_process_target): Derive from
45 'process_stratum_target'.
46 * linux-low.cc (linux_target_ops): Remove.
47 (initialize_low): Set the_target to the singleton instance of
49 * lynx-low.h (class lynx_process_target): Derive from
50 'process_stratum_target'.
51 * lynx-low.cc (lynx_target_ops): Remove.
52 (initialize_low): Set the_target to the singleton instance of
54 * nto-low.h (class nto_process_target): Derive from
55 'process_stratum_target'.
56 * nto-low.cc (nto_target_ops): Remove.
57 (initialize_low): Set the_target to the singleton instance of
59 * win32-low.h (class win32_process_target): Derive from
60 'process_stratum_target'.
61 * win32-low.cc (win32_target_ops): Remove.
62 (initialize_low): Set the_target to the singleton instance of
65 Replace 'the_target->pt' with 'the_target' in the uses below.
67 * hostio.cc (hostio_error)
72 * linux-aarch32-low.cc (arm_breakpoint_at)
73 * linux-aarch64-low.cc (aarch64_breakpoint_at)
74 * linux-arm-low.cc (arm_sigreturn_next_pc)
76 (arm_get_syscall_trapinfo)
77 * linux-cris-low.cc (cris_breakpoint_at)
78 * linux-crisv32-low.cc (cris_breakpoint_at)
79 * linux-low.cc (handle_extended_wait)
82 (linux_process_target::breakpoint_kind_from_pc)
84 * linux-m32r-low.cc (m32r_breakpoint_at)
85 * linux-mips-low.cc (mips_breakpoint_at)
86 * linux-nios2-low.cc (nios2_breakpoint_at)
87 * linux-ppc-low.cc (ppc_breakpoint_at)
88 * linux-s390-low.cc (s390_get_hwcap)
89 * linux-sh-low.cc (sh_breakpoint_at)
90 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
91 (sparc_store_gregset_from_stack)
93 * linux-tic6x-low.cc (tic6x_breakpoint_at)
94 * linux-tile-low.cc (tile_breakpoint_at)
95 * linux-x86-low.cc (x86_breakpoint_at)
96 * linux-xtensa-low.cc (xtensa_breakpoint_at)
97 * mem-break.cc (bp_size)
99 (insert_memory_breakpoint)
100 (set_raw_breakpoint_at)
101 (delete_raw_breakpoint)
103 (uninsert_raw_breakpoint)
104 (reinsert_raw_breakpoint)
105 (validate_inserted_breakpoint)
106 * regcache.cc (regcache_read_pc)
108 * remote-utils.cc (putpkt_binary_1)
111 (prepare_resume_reply)
112 * server.cc (handle_general_set)
115 (handle_qxfer_exec_file)
116 (handle_qxfer_libraries_svr4)
117 (handle_qxfer_osdata)
118 (handle_qxfer_siginfo)
123 (queue_stop_reply_callback)
125 * target.cc (prepare_to_access_memory)
126 (done_accessing_memory)
127 (read_inferior_memory)
128 (target_write_memory)
129 (target_stop_and_wait)
131 (target_mourn_inferior)
132 (target_continue_no_signal)
134 (target_supports_multi_process)
137 (target_create_inferior)
138 (target_post_create_inferior)
140 (target_supports_fork_events)
141 (target_supports_vfork_events)
142 (target_supports_exec_events)
143 (target_handle_new_gdb_connection)
146 (fetch_inferior_registers)
147 (store_inferior_registers)
149 (target_supports_non_stop)
151 (target_process_qsupported)
152 (target_supports_catch_syscall)
153 (target_get_ipa_tdesc_idx)
154 (target_supports_tracepoints)
155 (target_supports_fast_tracepoints)
156 (target_get_min_fast_tracepoint_insn_len)
157 (target_thread_stopped)
160 (target_stabilize_threads)
161 (target_install_fast_tracepoint_jump_pad)
163 (target_supports_disable_randomization)
164 (target_supports_agent)
165 (target_enable_btrace)
166 (target_disable_btrace)
168 (target_read_btrace_conf)
169 (target_supports_range_stepping)
170 (target_supports_stopped_by_sw_breakpoint)
171 (target_stopped_by_sw_breakpoint)
172 (target_supports_stopped_by_hw_breakpoint)
173 (target_supports_hardware_single_step)
174 (target_stopped_by_hw_breakpoint)
175 (target_breakpoint_kind_from_pc)
176 (target_breakpoint_kind_from_current_state)
177 (target_supports_software_single_step)
178 (target_core_of_thread)
180 (target_thread_handle)
181 * win32-low.cc (do_initial_child_stuff)
183 Rename target op default definitions listed below.
185 * target.cc (process_target::post_create_inferior): Rename as ...
186 (process_stratum_target::post_create_inferior): ... this.
187 (process_target::prepare_to_access_memory): Rename as ...
188 (process_stratum_target::prepare_to_access_memory): ... this.
189 (process_target::done_accessing_memory): Rename as ...
190 (process_stratum_target::done_accessing_memory): ... this.
191 (process_target::look_up_symbols): Rename as ...
192 (process_stratum_target::look_up_symbols): ... this.
193 (process_target::supports_read_auxv): Rename as ...
194 (process_stratum_target::supports_read_auxv): ... this.
195 (process_target::read_auxv): Rename as ...
196 (process_stratum_target::read_auxv): ... this.
197 (process_target::supports_z_point_type): Rename as ...
198 (process_stratum_target::supports_z_point_type): ... this.
199 (process_target::insert_point): Rename as ...
200 (process_stratum_target::insert_point): ... this.
201 (process_target::remove_point): Rename as ...
202 (process_stratum_target::remove_point): ... this.
203 (process_target::stopped_by_sw_breakpoint): Rename as ...
204 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
205 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
206 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
207 (process_target::stopped_by_hw_breakpoint): Rename as ...
208 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
209 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
210 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
211 (process_target::supports_hardware_single_step): Rename as ...
212 (process_stratum_target::supports_hardware_single_step): ... this.
213 (process_target::stopped_by_watchpoint): Rename as ...
214 (process_stratum_target::stopped_by_watchpoint): ... this.
215 (process_target::stopped_data_address): Rename as ...
216 (process_stratum_target::stopped_data_address): ... this.
217 (process_target::supports_read_offsets): Rename as ...
218 (process_stratum_target::supports_read_offsets): ... this.
219 (process_target::read_offsets): Rename as ...
220 (process_stratum_target::read_offsets): ... this.
221 (process_target::supports_get_tls_address): Rename as ...
222 (process_stratum_target::supports_get_tls_address): ... this.
223 (process_target::get_tls_address): Rename as ...
224 (process_stratum_target::get_tls_address): ... this.
225 (process_target::hostio_last_error): Rename as ...
226 (process_stratum_target::hostio_last_error): ... this.
227 (process_target::supports_qxfer_osdata): Rename as ...
228 (process_stratum_target::supports_qxfer_osdata): ... this.
229 (process_target::qxfer_osdata): Rename as ...
230 (process_stratum_target::qxfer_osdata): ... this.
231 (process_target::supports_qxfer_siginfo): Rename as ...
232 (process_stratum_target::supports_qxfer_siginfo): ... this.
233 (process_target::qxfer_siginfo): Rename as ...
234 (process_stratum_target::qxfer_siginfo): ... this.
235 (process_target::supports_non_stop): Rename as ...
236 (process_stratum_target::supports_non_stop): ... this.
237 (process_target::async): Rename as ...
238 (process_stratum_target::async): ... this.
239 (process_target::start_non_stop): Rename as ...
240 (process_stratum_target::start_non_stop): ... this.
241 (process_target::supports_multi_process): Rename as ...
242 (process_stratum_target::supports_multi_process): ... this.
243 (process_target::supports_fork_events): Rename as ...
244 (process_stratum_target::supports_fork_events): ... this.
245 (process_target::supports_vfork_events): Rename as ...
246 (process_stratum_target::supports_vfork_events): ... this.
247 (process_target::supports_exec_events): Rename as ...
248 (process_stratum_target::supports_exec_events): ... this.
249 (process_target::handle_new_gdb_connection): Rename as ...
250 (process_stratum_target::handle_new_gdb_connection): ... this.
251 (process_target::handle_monitor_command): Rename as ...
252 (process_stratum_target::handle_monitor_command): ... this.
253 (process_target::core_of_thread): Rename as ...
254 (process_stratum_target::core_of_thread): ... this.
255 (process_target::supports_read_loadmap): Rename as ...
256 (process_stratum_target::supports_read_loadmap): ... this.
257 (process_target::read_loadmap): Rename as ...
258 (process_stratum_target::read_loadmap): ... this.
259 (process_target::process_qsupported): Rename as ...
260 (process_stratum_target::process_qsupported): ... this.
261 (process_target::supports_tracepoints): Rename as ...
262 (process_stratum_target::supports_tracepoints): ... this.
263 (process_target::read_pc): Rename as ...
264 (process_stratum_target::read_pc): ... this.
265 (process_target::write_pc): Rename as ...
266 (process_stratum_target::write_pc): ... this.
267 (process_target::supports_thread_stopped): Rename as ...
268 (process_stratum_target::supports_thread_stopped): ... this.
269 (process_target::thread_stopped): Rename as ...
270 (process_stratum_target::thread_stopped): ... this.
271 (process_target::supports_get_tib_address): Rename as ...
272 (process_stratum_target::supports_get_tib_address): ... this.
273 (process_target::get_tib_address): Rename as ...
274 (process_stratum_target::get_tib_address): ... this.
275 (process_target::pause_all): Rename as ...
276 (process_stratum_target::pause_all): ... this.
277 (process_target::unpause_all): Rename as ...
278 (process_stratum_target::unpause_all): ... this.
279 (process_target::stabilize_threads): Rename as ...
280 (process_stratum_target::stabilize_threads): ... this.
281 (process_target::supports_fast_tracepoints): Rename as ...
282 (process_stratum_target::supports_fast_tracepoints): ... this.
283 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
284 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
285 (process_target::emit_ops): Rename as ...
286 (process_stratum_target::emit_ops): ... this.
287 (process_target::supports_disable_randomization): Rename as ...
288 (process_stratum_target::supports_disable_randomization): ... this.
289 (process_target::supports_qxfer_libraries_svr4): Rename as ...
290 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
291 (process_target::qxfer_libraries_svr4): Rename as ...
292 (process_stratum_target::qxfer_libraries_svr4): ... this.
293 (process_target::supports_agent): Rename as ...
294 (process_stratum_target::supports_agent): ... this.
295 (process_target::enable_btrace): Rename as ...
296 (process_stratum_target::enable_btrace): ... this.
297 (process_target::disable_btrace): Rename as ...
298 (process_stratum_target::disable_btrace): ... this.
299 (process_target::read_btrace): Rename as ...
300 (process_stratum_target::read_btrace): ... this.
301 (process_target::read_btrace_conf): Rename as ...
302 (process_stratum_target::read_btrace_conf): ... this.
303 (process_target::supports_range_stepping): Rename as ...
304 (process_stratum_target::supports_range_stepping): ... this.
305 (process_target::supports_pid_to_exec_file): Rename as ...
306 (process_stratum_target::supports_pid_to_exec_file): ... this.
307 (process_target::pid_to_exec_file): Rename as ...
308 (process_stratum_target::pid_to_exec_file): ... this.
309 (process_target::supports_multifs): Rename as ...
310 (process_stratum_target::supports_multifs): ... this.
311 (process_target::multifs_open): Rename as ...
312 (process_stratum_target::multifs_open): ... this.
313 (process_target::multifs_unlink): Rename as ...
314 (process_stratum_target::multifs_unlink): ... this.
315 (process_target::multifs_readlink): Rename as ...
316 (process_stratum_target::multifs_readlink): ... this.
317 (process_target::breakpoint_kind_from_pc): Rename as ...
318 (process_stratum_target::breakpoint_kind_from_pc): ... this.
319 (process_target::breakpoint_kind_from_current_state): Rename as ...
320 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
321 (process_target::thread_name): Rename as ...
322 (process_stratum_target::thread_name): ... this.
323 (process_target::thread_handle): Rename as ...
324 (process_stratum_target::thread_handle): ... this.
325 (process_target::supports_software_single_step): Rename as ...
326 (process_stratum_target::supports_software_single_step): ... this.
327 (process_target::supports_catch_syscall): Rename as ...
328 (process_stratum_target::supports_catch_syscall): ... this.
329 (process_target::get_ipa_tdesc_idx): Rename as ...
330 (process_stratum_target::get_ipa_tdesc_idx): ... this.
332 2020-02-20 Pedro Alves <palves@redhat.com>
334 * target.cc (set_target_ops): Simply copy the given target pointer
335 instead of creating a copy of the pointed object.
337 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
339 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
342 * target.h (struct process_stratum_target): Remove the target op.
343 (class process_target): Add the target op.
344 (target_get_ipa_tdesc_idx): Update the macro.
345 * target.cc (process_target::get_ipa_tdesc_idx): Define.
347 Update the derived classes and callers below.
349 * linux-low.cc (linux_target_ops): Update.
350 (linux_get_ipa_tdesc_idx): Turn into ...
351 (linux_process_target::get_ipa_tdesc_idx): ... this.
352 * linux-low.h (class linux_process_target): Update.
353 * lynx-low.cc (lynx_target_ops): Update.
354 * nto-low.cc (nto_target_ops): Update.
355 * win32-low.cc (win32_target_ops): Update.
357 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
359 Turn process_stratum_target's supports_catch_syscall op into a
360 method of process_target.
362 * target.h (struct process_stratum_target): Remove the target op.
363 (class process_target): Add the target op.
364 (target_supports_catch_syscall): Update the macro.
365 * target.cc (process_target::supports_catch_syscall): Define.
367 Update the derived classes and callers below.
369 * linux-low.cc (linux_target_ops): Update.
370 (linux_supports_catch_syscall): Turn into ...
371 (linux_process_target::supports_catch_syscall): ... this.
372 * linux-low.h (class linux_process_target): Update.
373 * lynx-low.cc (lynx_target_ops): Update.
374 * nto-low.cc (nto_target_ops): Update.
375 * win32-low.cc (win32_target_ops): Update.
377 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
379 Turn process_stratum_target's supports_software_single_step op
380 into a method of process_target.
382 * target.h (struct process_stratum_target): Remove the target op.
383 (class process_target): Add the target op.
384 (target_supports_software_single_step): Update the macro.
385 * target.cc (process_target::supports_software_single_step): Define.
387 Update the derived classes and callers below.
389 * linux-low.cc (linux_target_ops): Update.
390 (linux_supports_software_single_step): Turn into ...
391 (linux_process_target::supports_software_single_step): ... this.
392 * linux-low.h (class linux_process_target): Update.
393 * lynx-low.cc (lynx_target_ops): Update.
394 * nto-low.cc (nto_target_ops): Update.
395 * win32-low.cc (win32_target_ops): Update.
397 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
399 Turn process_stratum_target's thread_name and thread_handle ops
400 into methods of process_target.
402 * target.h (struct process_stratum_target): Remove the target ops.
403 (class process_target): Add the target ops.
404 (target_thread_name): Update the macro.
405 (target_thread_handle): Update the macro.
406 * target.cc (process_target::thread_name): Define.
407 (process_target::thread_handle): Define.
409 Update the derived classes and callers below.
411 * linux-low.cc (linux_target_ops): Update.
412 (linux_process_target::thread_name): Define.
413 (linux_process_target::thread_handle): Define.
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 breakpoint_kind_from_pc,
422 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
423 ops into methods of process_target.
425 * target.h (struct process_stratum_target): Remove the target op.
426 (class process_target): Add the target op.
427 (target_breakpoint_kind_from_pc): Update the macro.
428 (target_breakpoint_kind_from_current_state): Update the macro.
429 (default_breakpoint_kind_from_pc): Remove declaration.
430 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
431 (process_target::breakpoint_kind_from_pc): ... this.
432 (process_target::breakpoint_kind_from_current_state): Define.
434 Update the derived classes and callers below.
436 * mem-break.cc (bp_size): Update.
438 * linux-low.cc (linux_target_ops): Update.
439 (linux_wait_1): Update.
440 (linux_breakpoint_kind_from_pc): Turn into ...
441 (linux_process_target::breakpoint_kind_from_pc): ... this.
442 (linux_sw_breakpoint_from_kind): Turn into ...
443 (linux_process_target::sw_breakpoint_from_kind): ... this.
444 (linux_breakpoint_kind_from_current_state): Turn into ...
445 (linux_process_target::breakpoint_kind_from_current_state): ... this.
446 * linux-low.h (class linux_process_target): Update.
447 * lynx-low.cc (lynx_target_ops): Update.
448 (lynx_process_target::sw_breakpoint_from_kind): Define.
449 * lynx-low.h (class lynx_process_target): Update.
450 * nto-low.cc (nto_target_ops): Update.
451 (nto_sw_breakpoint_from_kind): Turn into ...
452 (nto_process_target::sw_breakpoint_from_kind): ... this.
453 * nto-low.h (class nto_process_target): Update.
454 * win32-low.cc (win32_target_ops): Update.
455 (win32_sw_breakpoint_from_kind): Turn into ...
456 (win32_process_target::sw_breakpoint_from_kind): ... this.
457 * win32-low.h (class win32_process_target): Update.
459 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
461 Turn process_stratum_target's multifs_open, multifs_readlink,
462 multifs_unlink ops into methods of process_target.
464 * target.h (struct process_stratum_target): Remove the target ops.
465 (class process_target): Add the target ops. Also add
467 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
469 (process_target::supports_multifs): Define.
470 (process_target::multifs_open): Define.
471 (process_target::multifs_readlink): Define.
472 (process_target::multifs_unlink): Define.
474 Update the derived classes and callers below.
476 * hostio.cc (handle_setfs): Update.
477 (handle_open): Update.
478 (handle_unlink): Update.
479 (handle_readlink): Update.
480 * linux-low.cc (linux_target_ops): Update.
481 (linux_process_target::supports_multifs): Define.
482 (linux_process_target::multifs_open): Define.
483 (linux_process_target::multifs_readlink): Define.
484 (linux_process_target::multifs_unlink): Define.
485 * linux-low.h (class linux_process_target): Update.
486 * lynx-low.cc (lynx_target_ops): Update.
487 * nto-low.cc (nto_target_ops): Update.
488 * win32-low.cc (win32_target_ops): Update.
490 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
492 Turn process_stratum_target's pid_to_exec_file op into a method
495 * target.h (struct process_stratum_target): Remove the target op.
496 (class process_target): Add the target op. Also add
497 'supports_pid_to_exec_file'.
498 * target.cc (process_target::pid_to_exec_file): Define.
499 (process_target::supports_pid_to_exec_file): Define.
501 Update the derived classes and callers below.
503 * server.cc (handle_qxfer_exec_file): Update.
504 (handle_query): Update.
505 * linux-low.cc (linux_target_ops): Update.
506 (linux_process_target::supports_pid_to_exec_file): Define.
507 (linux_process_target::pid_to_exec_file): Define.
508 * linux-low.h (class linux_process_target): Update.
509 * lynx-low.cc (lynx_target_ops): Update.
510 * nto-low.cc (nto_target_ops): Update.
511 * win32-low.cc (win32_target_ops): Update.
513 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
515 Turn process_stratum_target's supports_range_stepping op into a
516 method of process_target.
518 * target.h (struct process_stratum_target): Remove the target op.
519 (class process_target): Add the target op.
520 (target_supports_range_stepping): Update the macro.
521 * target.cc (process_target::supports_range_stepping): Define.
523 Update the derived classes and callers below.
525 * linux-low.cc (linux_target_ops): Update.
526 (linux_supports_range_stepping): Turn into ...
527 (linux_process_target::supports_range_stepping): ... this.
528 * linux-low.h (class linux_process_target): Update.
529 * lynx-low.cc (lynx_target_ops): Update.
530 * nto-low.cc (nto_target_ops): Update.
531 * win32-low.cc (win32_target_ops): Update.
533 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
535 Turn process_stratum_target's btrace-related ops (enable_btrace,
536 disable_btrace, read_btrace, read_btrace_conf) into methods of
539 * target.h (struct process_stratum_target): Remove the target ops.
540 (class process_target): Add the target ops.
541 (target_enable_btrace): Update.
542 (target_disable_btrace): Update.
543 (target_read_btrace): Update.
544 (target_read_btrace_conf): Update.
545 * target.cc (process_target::enable_btrace): Define.
546 (process_target::disable_btrace): Define.
547 (process_target::read_btrace): Define.
548 (process_target::read_btrace_conf): Define.
550 Update the derived classes and callers below.
552 * linux-low.cc (linux_target_ops): Update.
553 (linux_process_target:enable_btrace): Define as a wrapper around
555 (linux_low_disable_btrace): Turn into ...
556 (linux_process_target::disable_btrace): ... this.
557 (linux_low_read_btrace): Turn into ...
558 (linux_process_target::read_btrace): ... this.
559 (linux_low_btrace_conf): Turn into ...
560 (linux_process_target::read_btrace_conf): ... this.
561 * linux-low.h (class linux_process_target): Update.
562 * lynx-low.cc (lynx_target_ops): Update.
563 * nto-low.cc (nto_target_ops): Update.
564 * win32-low.cc (win32_target_ops): Update.
566 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
568 Turn process_stratum_target's supports_agent op into a method of
571 * target.h (struct process_stratum_target): Remove the target op.
572 (class process_target): Add the target op.
573 (target_supports_agent): Update the macro.
574 * target.cc (process_target::supports_agent): Define.
576 Update the derived classes and callers below.
578 * linux-low.cc (linux_target_ops): Update.
579 (linux_supports_agent): Turn into ...
580 (linux_process_target::supports_agent): ... this.
581 * linux-low.h (class linux_process_target): Update.
582 * lynx-low.cc (lynx_target_ops): Update.
583 * nto-low.cc (nto_target_ops): Update.
584 * win32-low.cc (win32_target_ops): Update.
586 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
588 Turn process_stratum_target's qxfer_libraries_svr4 op into a
589 method of process_target.
591 * target.h (struct process_stratum_target): Remove the target op.
592 (class process_target): Add the target op. Also add
593 'supports_qxfer_libraries_svr4'.
594 * target.cc (process_target::qxfer_libraries_svr4): Define.
595 (process_target::supports_qxfer_libraries_svr4): Define.
597 Update the derived classes and callers below.
599 * server.cc (handle_qxfer_libraries_svr4): Update.
600 (handle_query): Update.
601 * linux-low.cc (linux_target_ops): Update.
602 (linux_process_target::supports_qxfer_libraries_svr4): Define.
603 (linux_qxfer_libraries_svr4): Turn into ...
604 (linux_process_target::qxfer_libraries_svr4): ... this.
605 * linux-low.h (class linux_process_target): Update.
606 * lynx-low.cc (lynx_target_ops): Update.
607 * nto-low.cc (nto_target_ops): Update.
608 * win32-low.cc (win32_target_ops): Update.
610 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
612 Turn process_stratum_target's supports_disable_randomization op
613 into a method of process_target.
615 * target.h (struct process_stratum_target): Remove the target op.
616 (class process_target): Add the target op.
617 (target_supports_disable_randomization): Update the macro.
618 * target.cc (process_target::supports_disable_randomization): Define.
620 Update the derived classes and callers below.
622 * linux-low.cc (linux_target_ops): Update.
623 (linux_supports_disable_randomization): Turn into ...
624 (linux_process_target::supports_disable_randomization): ... this.
625 * linux-low.h (class linux_process_target): Update.
626 * lynx-low.cc (lynx_target_ops): Update.
627 * nto-low.cc (nto_target_ops): Update.
628 * win32-low.cc (win32_target_ops): Update.
630 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
632 Turn process_stratum_target's emit_ops op into a method of
635 * target.h (struct process_stratum_target): Remove the target op.
636 (class process_target): Add the target op.
637 (target_emit_ops): Update the macro.
638 * target.cc (process_target::emit_ops): Define.
640 Update the derived classes and callers below.
642 * linux-low.cc (linux_target_ops): Update.
643 (linux_emit_ops): Turn into ...
644 (linux_process_target::emit_ops): ... this.
645 * linux-low.h (class linux_process_target): Update.
646 * lynx-low.cc (lynx_target_ops): Update.
647 * nto-low.cc (nto_target_ops): Update.
648 * win32-low.cc (win32_target_ops): Update.
650 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
652 Turn process_stratum_target's install_fast_tracepoint_jump_pad
653 and get_min_fast_tracepoint_insn_len ops into methods of
656 * target.h (struct process_stratum_target): Remove the target ops.
657 (class process_target): Add the target ops. Also add
658 'supports_fast_tracepoints'.
659 (target_supports_fast_tracepoints): Update the macro.
660 (target_get_min_fast_tracepoint_insn_len): Update the macro.
661 (install_fast_tracepoint_jump_pad): Update and rename the macro
663 (target_install_fast_tracepoint_jump_pad): ... this.
664 * target.cc (process_target::supports_fast_tracepoints): Define.
665 (process_target::install_fast_tracepoint_jump_pad): Define.
666 (process_target::get_min_fast_tracepoint_insn_len): Define.
668 Update the derived classes and callers below.
670 * tracepoint.cc (install_fast_tracepoint): Update.
671 * linux-low.cc (linux_target_ops): Update.
672 (linux_process_target::supports_fast_tracepoints): Define.
673 (linux_install_fast_tracepoint_jump_pad): Turn into ...
674 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
675 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
676 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
677 * linux-low.h (class linux_process_target): Update.
678 * lynx-low.cc (lynx_target_ops): Update.
679 * nto-low.cc (nto_target_ops): Update.
680 * win32-low.cc (win32_target_ops): Update.
682 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
684 Turn process_stratum_target's stabilize_threads op into a
685 method of process_target.
687 * target.h (struct process_stratum_target): Remove the target op.
688 (class process_target): Add the target op.
689 (target_stabilize_threads): Update the macro.
690 * target.cc (process_target::stabilize_threads): Define.
692 Update the derived classes and callers below.
694 * server.cc (handle_status): Update.
695 * tracepoint.cc (cmd_qtdp): Update.
696 (cmd_qtstart): Update.
697 * linux-low.cc (linux_target_ops): Update.
698 (linux_stabilize_threads): Turn into ...
699 (linux_process_target::stabilize_threads): ... this.
700 (linux_wait_1): Update.
701 * linux-low.h (class linux_process_target): Update.
702 * lynx-low.cc (lynx_target_ops): Update.
703 * nto-low.cc (nto_target_ops): Update.
704 * win32-low.cc (win32_target_ops): Update.
706 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
708 Turn process_stratum_target's pause_all and unpause_all ops
709 into methods of process_target.
711 * target.h (struct process_stratum_target): Remove the target ops.
712 (class process_target): Add the target ops.
713 (pause_all): Update the macro and rename to...
714 (target_pause_all): ... this.
715 (unpause_all): Update the macro and rename to...
716 (target_unpause_all): ... this.
717 * target.cc (process_target::pause_all): Define.
718 (process_target::unpause_all): Define.
720 Update the derived classes and callers below.
722 * server.cc (handle_status): Update.
723 * tracepoint.cc (clear_installed_tracepoints): Update.
725 (cmd_qtstart): Update.
726 (stop_tracing): Update.
727 (cmd_qtstatus): Update.
728 (upload_fast_traceframes): Update.
729 (run_inferior_command): Update.
730 * linux-low.cc (linux_target_ops): Update.
731 (linux_pause_all): Turn into ...
732 (linux_process_target::pause_all): ... this.
733 (linux_unpause_all): Turn into ...
734 (linux_process_target::unpause_all): ... this.
735 (linux_process_target::prepare_to_access_memory): Update.
736 (linux_process_target::done_accessing_memory): Update.
737 * linux-low.h (class linux_process_target): Update.
738 * lynx-low.cc (lynx_target_ops): Update.
739 * nto-low.cc (nto_target_ops): Update.
740 * win32-low.cc (win32_target_ops): Update.
742 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
744 Turn process_stratum_target's get_tib_address op into a method of
747 * target.h (struct process_stratum_target): Remove the target op.
748 (class process_target): Add the target op. Also add
749 'supports_get_tib_address'.
750 * target.cc (process_target::get_tib_address): Define.
751 (process_target::supports_get_tib_address): Define.
753 Update the derived classes and callers below.
755 * server.cc (handle_query): Update.
756 * linux-low.cc (win32_target_ops): Update.
757 * lynx-low.cc (lynx_target_ops): Update.
758 * nto-low.cc (nto_target_ops): Update.
759 * win32-low.cc (win32_target_ops): Update.
760 (win32_process_target::supports_get_tib_address): Define.
761 (win32_get_tib_address): Turn into ...
762 (win32_process_target::get_tib_address): ... this.
763 * win32-low.h (class win32_process_target): Update.
765 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
767 Turn process_stratum_target's thread_stopped op into a method of
770 * target.h (struct process_stratum_target): Remove the target op.
771 (class process_target): Add the target op. Also add
772 'supports_thread_stopped'.
773 (target_thread_stopped): Update the macro.
774 * target.cc (process_target::thread_stopped): Define.
775 (process_target::supports_thread_stopped): Define.
776 (prepare_to_access_memory): Update.
778 Update the derived classes and callers below.
780 * server.cc (queue_stop_reply_callback): Update.
781 * linux-low.cc (linux_target_ops): Update.
782 (linux_process_target::supports_thread_stopped): Define.
783 (linux_thread_stopped): Turn into ...
784 (linux_process_target::thread_stopped): ... this.
785 * linux-low.h (class linux_process_target): Update.
786 * lynx-low.cc (lynx_target_ops): Update.
787 * nto-low.cc (nto_target_ops): Update.
788 * win32-low.cc (win32_target_ops): Update.
790 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
792 Turn process_stratum_target's read_pc and write_pc ops into
793 methods of process_target.
795 * target.h (struct process_stratum_target): Remove the target ops.
796 (class process_target): Add the target ops.
797 * target.cc (process_target::read_pc): Define.
798 (process_target::write_pc): Define.
800 Update the derived classes and callers below.
802 * regcache.cc (regcache_read_pc): Update.
803 (regcache_write_pc): Update.
804 * linux-low.cc (linux_target_ops): Update.
805 (linux_read_pc): Turn into ...
806 (linux_process_target::read_pc): ... this.
807 (linux_write_pc): Turn into ...
808 (linux_process_target::write_pc): ... this.
809 * linux-low.h (class linux_process_target): Update.
810 * lynx-low.cc (lynx_target_ops): Update.
811 * nto-low.cc (nto_target_ops): Update.
812 * win32-low.cc (win32_target_ops): Update.
814 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
816 Turn process_stratum_target's supports_tracepoints op into a
817 method of process_target.
819 * target.h (struct process_stratum_target): Remove the target op.
820 (class process_target): Add the target op.
821 (target_supports_tracepoints): Update the macro.
822 * target.cc (process_target::supports_tracepoints): Define.
824 Update the derived classes and callers below.
826 * linux-low.cc (linux_target_ops): Update.
827 (linux_supports_tracepoints): Turn into ...
828 (linux_process_target::supports_tracepoints): ... this.
829 * linux-low.h (class linux_process_target): Update.
830 * lynx-low.cc (lynx_target_ops): Update.
831 * nto-low.cc (nto_target_ops): Update.
832 * win32-low.cc (win32_target_ops): Update.
834 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
836 Turn process_stratum_target's process_qsupported op into a method
839 * target.h (struct process_stratum_target): Remove the target op.
840 (class process_target): Add the target op.
841 (target_process_qsupported): Update the macro.
842 * target.cc (process_target::process_qsupported): Define.
844 Update the derived classes and callers below.
846 * linux-low.cc (linux_target_ops): Update.
847 (linux_process_qsupported): Turn into ...
848 (linux_process_target::process_qsupported): ... this.
849 * linux-low.h (class linux_process_target): Update.
850 * lynx-low.cc (lynx_target_ops): Update.
851 * nto-low.cc (nto_target_ops): Update.
852 * win32-low.cc (win32_target_ops): Update.
854 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
856 Turn process_stratum_target's read_loadmap op into a method of
859 * target.h (struct process_stratum_target): Remove the target op.
860 (class process_target): Add the target op. Also add
861 'supports_read_loadmap'.
862 * target.cc (process_target::read_loadmap): Define.
863 (process_target::supports_read_loadmap): Define.
865 Update the derived classes and callers below.
867 * server.cc (handle_qxfer_fdpic): Update.
868 (handle_query): Update.
869 * linux-low.cc (linux_target_ops): Update.
870 (linux_process_target::supports_read_loadmap): Define.
871 (linux_read_loadmap): Turn into ...
872 (linux_process_target::read_loadmap): ... this.
873 * linux-low.h (class linux_process_target): Update.
874 * lynx-low.cc (lynx_target_ops): Update.
875 * nto-low.cc (nto_target_ops): Update.
876 * win32-low.cc (win32_target_ops): Update.
878 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
880 Turn process_stratum_target's core_of_thread op into a method of
883 * target.h (struct process_stratum_target): Remove the target op.
884 (class process_target): Add the target op.
885 (target_core_of_thread): Update the macro.
886 * target.cc (process_target::core_of_thread): Define.
888 Update the derived classes and callers below.
890 * linux-low.cc (linux_target_ops): Update.
891 (linux_process_target::core_of_thread): Define.
892 * linux-low.h (class linux_process_target): Update.
893 * lynx-low.cc (lynx_target_ops): Update.
894 * nto-low.cc (nto_target_ops): Update.
895 * win32-low.cc (win32_target_ops): Update.
897 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
899 Turn process_stratum_target's handle_monitor_command op into a
900 method of process_target.
902 * target.h (struct process_stratum_target): Remove the target op.
903 (class process_target): Add the target op.
904 (target_handle_monitor_command): Update the macro.
905 * target.cc (process_target::handle_monitor_command): Define.
907 Update the derived classes and callers below.
909 * server.cc (handle_query): Update.
910 * linux-low.cc (linux_target_ops): Update.
911 (linux_process_target::handle_monitor_command): Define.
912 * linux-low.h (class linux_process_target): Update.
913 * lynx-low.cc (lynx_target_ops): Update.
914 * nto-low.cc (nto_target_ops): Update.
915 * win32-low.cc (win32_target_ops): Update.
917 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
919 Turn process_stratum_target's handle_new_gdb_connection op into a
920 method of process_target.
922 * target.h (struct process_stratum_target): Remove the target op.
923 (class process_target): Add the target op.
924 (target_handle_new_gdb_connection): Update the macro.
925 * target.cc (process_target::handle_new_gdb_connection): Define.
927 Update the derived classes and callers below.
929 * linux-low.cc (linux_target_ops): Update.
930 (linux_handle_new_gdb_connection): Turn into ...
931 (linux_process_target::handle_new_gdb_connection): ... this.
932 * linux-low.h (class linux_process_target): Update.
933 * lynx-low.cc (lynx_target_ops): Update.
934 * nto-low.cc (nto_target_ops): Update.
935 * win32-low.cc (win32_target_ops): Update.
937 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
939 Turn process_stratum_target's supports_fork_events,
940 supports_vfork_events, and supports_exec_events ops into methods
943 * target.h (struct process_stratum_target): Remove the target ops.
944 (class process_target): Add the target ops.
945 (target_supports_fork_events): Update the macro.
946 (target_supports_vfork_events): Update the macro.
947 (target_supports_exec_events): Update the macro.
948 * target.cc (process_target::supports_fork_events): Define.
949 (process_target::supports_vfork_events): Define.
950 (process_target::supports_exec_events): Define.
952 Update the derived classes and callers below.
954 * linux-low.cc (linux_target_ops): Update.
955 (linux_supports_fork_events): Turn into ...
956 (linux_process_target::supports_fork_events): ... this.
957 (linux_supports_vfork_events): Turn into ...
958 (linux_process_target::supports_vfork_events): ... this.
959 (linux_supports_exec_events): Turn into ...
960 (linux_process_target::supports_exec_events): ... this.
961 * linux-low.h (class linux_process_target): Update.
962 * lynx-low.cc (lynx_target_ops): Update.
963 * nto-low.cc (nto_target_ops): Update.
964 * win32-low.cc (win32_target_ops): Update.
966 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
968 Turn process_stratum_target's supports_multi_process op into a
969 method of process_target.
971 * target.h (struct process_stratum_target): Remove the target op.
972 (class process_target): Add the target op.
973 * target.cc (process_target::supports_multi_process): Define.
974 (target_supports_multi_process): Update.
976 Update the derived classes and callers below.
978 * linux-low.cc (linux_target_ops): Update.
979 (linux_supports_multi_process): Turn into ...
980 (linux_process_target::supports_multi_process): ... this.
981 * linux-low.h (class linux_process_target): Update.
982 * lynx-low.cc (lynx_target_ops): Update.
983 * nto-low.cc (nto_target_ops): Update.
984 * win32-low.cc (win32_target_ops): Update.
986 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
988 Turn process_stratum_target's supports_non_stop, async, and
989 start_non_stop ops into methods of process_target.
991 * target.h (struct process_stratum_target): Remove the target ops.
992 (class process_target): Add the target ops.
993 (target_supports_non_stop): Update the macro.
994 (target_async): Update the macro.
995 (start_non_stop): Remove declaration.
996 * target.cc (process_target::supports_non_stop): Define.
997 (process_target::async): Define.
998 (process_target::start_non_stop): Define.
999 (start_non_stop): Remove.
1001 Update the derived classes and callers below.
1003 * server.cc (handle_qxfer_siginfo): Update.
1004 (handle_query): Update.
1005 * linux-low.cc (linux_target_ops): Update.
1006 (linux_supports_non_stop): Turn into ...
1007 (linux_process_target::supports_non_stop): ... this.
1008 (linux_async): Turn into ...
1009 (linux_process_target::async): ... this.
1010 (linux_start_non_stop): Turn into ...
1011 (linux_process_target::start_non_stop): ... this.
1012 * linux-low.h (class linux_process_target): Update.
1013 * lynx-low.cc (lynx_target_ops): Update.
1014 * nto-low.cc (nto_target_ops): Update.
1015 (nto_supports_non_stop): Remove; rely on the default behavior
1017 * win32-low.cc (win32_target_ops): Update.
1019 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1021 Turn process_stratum_target's qxfer_siginfo op into a method of
1024 * target.h (struct process_stratum_target): Remove the target op.
1025 (class process_target): Add the target op. Also add
1026 'supports_qxfer_siginfo'.
1027 * target.cc (process_target::qxfer_siginfo): Define.
1028 (process_target::supports_qxfer_siginfo): Define.
1030 Update the derived classes and callers below.
1032 * server.cc (handle_qxfer_siginfo): Update.
1033 (handle_query): Update.
1034 * linux-low.cc (linux_target_ops): Update.
1035 (linux_process_target::supports_qxfer_siginfo): Define.
1036 (linux_xfer_siginfo): Turn into ...
1037 (linux_process_target::qxfer_siginfo): ... this.
1038 * linux-low.h (class linux_process_target): Update.
1039 * lynx-low.cc (lynx_target_ops): Update.
1040 * nto-low.cc (nto_target_ops): Update.
1041 * win32-low.cc (win32_target_ops): Update.
1043 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1045 Turn process_stratum_target's qxfer_osdata op into a method of
1048 * target.h (struct process_stratum_target): Remove the target op.
1049 (class process_target): Add the target op. Also add
1050 'supports_qxfer_osdata'.
1051 * target.cc (process_target::qxfer_osdata): Define.
1052 (process_target::supports_qxfer_osdata): Define.
1054 Update the derived classes and callers below.
1056 * server.cc (handle_qxfer_osdata): Update.
1057 (handle_query): Update.
1058 * linux-low.cc (linux_target_ops): Update.
1059 (linux_process_target::supports_qxfer_osdata): Define.
1060 (linux_qxfer_osdata): Turn into ...
1061 (linux_process_target::qxfer_osdata): ... this.
1062 * linux-low.h (class linux_process_target): Update.
1063 * lynx-low.cc (lynx_target_ops): Update.
1064 * nto-low.cc (nto_target_ops): Update.
1065 * win32-low.cc (win32_target_ops): Update.
1067 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1069 Turn process_stratum_target's hostio_last_error op into a
1070 method of process_target.
1072 * target.h (struct process_stratum_target): Remove the target op.
1073 (class process_target): Add the target op.
1074 * target.cc: Add "hostio.h" to includes.
1075 (process_target::hostio_last_error): Define.
1077 Update the derived classes and callers below.
1079 * hostio.cc (hostio_error): Update.
1080 * linux-low.cc: Remove "hostio.h" from includes.
1081 (linux_target_ops): Update.
1082 * lynx-low.cc (lynx_target_ops): Update.
1083 * nto-low.cc (nto_target_ops): Update.
1084 * win32-low.h (class win32_process_target): Update.
1085 * win32-low.cc (win32_target_ops): Update.
1086 (wince_hostio_last_error): Turn into ...
1087 (win32_process_target::hostio_last_error): ... this.
1089 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1091 Turn process_stratum_target's get_tls_address op into a method of
1094 * target.h (struct process_stratum_target): Remove the target op.
1095 (class process_target): Add the target op. Also add
1096 'supports_get_tls_address'.
1097 * target.cc (process_target::get_tls_address): Define.
1098 (process_target::supports_get_tls_address): Define.
1100 Update the derived classes and callers below.
1102 * server.cc (handle_query): Update.
1103 * linux-low.cc (linux_target_ops): Update.
1104 (linux_process_target::supports_get_tls_address): Define.
1105 (linux_process_target::get_tls_address): Define.
1106 * linux-low.h (class linux_process_target): Update.
1107 * lynx-low.cc (lynx_target_ops): Update.
1108 * nto-low.cc (nto_target_ops): Update.
1109 * win32-low.cc (win32_target_ops): Update.
1111 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1113 Turn process_stratum_target's read_offsets op into a method of
1116 * target.h (struct process_stratum_target): Remove the target op.
1117 (class process_target): Add the target op. Also add
1118 'supports_read_offsets'.
1119 * target.cc (process_target::read_offsets): Define.
1120 (process_target::supports_read_offsets): Define.
1122 Update the derived classes and callers below.
1124 * server.cc (handle_query): Update.
1125 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
1126 (linux_target_ops): Update.
1127 (linux_process_target::supports_read_offsets): Define.
1128 (linux_read_offsets): Turn into ...
1129 (linux_process_target::read_offsets): ... this.
1130 * linux-low.h (class linux_process_target): Update.
1131 * lynx-low.cc (lynx_target_ops): Update.
1132 * nto-low.cc (nto_target_ops): Update.
1133 * win32-low.cc (win32_target_ops): Update.
1135 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1137 Turn process_stratum_target's stopped_by_watchpoint and
1138 stopped_data_address ops into methods of process_target.
1140 * target.h (struct process_stratum_target): Remove the target ops.
1141 (class process_target): Add the target ops.
1142 * target.cc (process_target::stopped_by_watchpoint): Define.
1143 (process_target::stopped_data_address): Define.
1145 Update the derived classes and callers below.
1147 * remote-utils.cc (prepare_resume_reply): Update.
1148 * linux-low.cc (linux_target_ops): Update.
1149 (linux_stopped_by_watchpoint): Turn into ...
1150 (linux_process_target::stopped_by_watchpoint): ... this.
1151 (linux_stopped_data_address): Turn into ...
1152 (linux_process_target::stopped_data_address): ... this.
1153 * linux-low.h (class linux_process_target): Update.
1154 * lynx-low.cc (lynx_target_ops): Update.
1155 * nto-low.cc (nto_target_ops): Update.
1156 (nto_stopped_by_watchpoint): Turn into ...
1157 (nto_process_target::stopped_by_watchpoint): ... this.
1158 (nto_stopped_data_address): Turn into ...
1159 (nto_process_target::stopped_data_address): ... this.
1160 * nto-low.h (class nto_process_target): Update.
1161 * win32-low.cc (win32_target_ops): Update.
1162 (win32_stopped_by_watchpoint): Turn into ...
1163 (win32_process_target::stopped_by_watchpoint): ... this.
1164 (win32_stopped_data_address): Turn into ...
1165 (win32_process_target::stopped_data_address): ... this.
1166 * win32-low.h (class win32_process_target): Update.
1168 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1170 Turn process_stratum_target's supports_hardware_single_step op into
1171 a method of process_target.
1173 * target.h (struct process_stratum_target): Remove the target op.
1174 (class process_target): Add the target op.
1175 (target_supports_hardware_single_step): Update the macro.
1176 (target_can_do_hardware_single_step): Remove declaration.
1177 * target.cc (process_target::supports_hardware_single_step): Define.
1178 (target_can_do_hardware_single_step): Remove.
1180 Update the derived classes and callers below.
1182 * linux-low.h (class linux_process_target): Update.
1183 * linux-low.cc (linux_target_ops): Update.
1184 (linux_supports_hardware_single_step): Turn into ...
1185 (linux_process_target::supports_hardware_single_step): ... this.
1186 * lynx-low.h (class lynx_process_target): Update.
1187 * lynx-low.cc (lynx_target_ops): Update.
1188 (lynx_process_target::supports_hardware_single_step): Define.
1189 * nto-low.h (class nto_process_target): Update.
1190 * nto-low.cc (nto_target_ops): Update.
1191 (nto_process_target::supports_hardware_single_step): Define.
1192 * win32-low.h (class win32_process_target): Update.
1193 * win32-low.cc (win32_target_ops): Update.
1194 (win32_process_target::supports_hardware_single_step): Define.
1196 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1198 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
1199 ops into methods of process_target.
1201 * target.h (struct process_stratum_target): Remove the target ops.
1202 (class process_target): Add the target ops.
1203 (target_stopped_by_hw_breakpoint): Update the macro.
1204 (target_supports_stopped_by_hw_breakpoint): Update the macro.
1205 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
1206 (process_target::supports_stopped_by_hw_breakpoint): Define.
1208 Update the derived classes and callers below.
1210 * linux-low.cc (linux_target_ops): Update.
1211 (linux_stopped_by_hw_breakpoint): Turn into ...
1212 (linux_process_target::stopped_by_hw_breakpoint): ... this.
1213 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
1214 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
1215 * linux-low.h (class linux_process_target): Update.
1216 * lynx-low.cc (lynx_target_ops): Update.
1217 * nto-low.cc (nto_target_ops): Update.
1218 * win32-low.cc (win32_target_ops): Update.
1220 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1222 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
1223 ops into methods of process_target.
1225 * target.h (struct process_stratum_target): Remove the target ops.
1226 (class process_target): Add the target ops.
1227 (target_stopped_by_sw_breakpoint): Update the macro.
1228 (target_supports_stopped_by_sw_breakpoint): Update the macro.
1229 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
1230 (process_target::supports_stopped_by_sw_breakpoint): Define.
1232 Update the derived classes and callers below.
1234 * linux-low.cc (linux_target_ops): Update.
1235 (linux_stopped_by_sw_breakpoint): Turn into ...
1236 (linux_process_target::stopped_by_sw_breakpoint): ... this.
1237 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
1238 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
1239 * linux-low.h (class linux_process_target): Update.
1240 * lynx-low.cc (lynx_target_ops): Update.
1241 * nto-low.cc (nto_target_ops): Update.
1242 * win32-low.cc (win32_target_ops): Update.
1244 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1246 Turn process_stratum_target's insert_point and remove_point ops
1247 into methods of process_target.
1249 * target.h (struct process_stratum_target): Remove the target ops.
1250 (class process_target): Add the target ops.
1251 * target.cc (process_target::insert_point): Define.
1252 (process_target::remove_point): Define.
1254 Update the derived classes and callers below.
1256 * mem-break.cc (set_raw_breakpoint_at): Update.
1257 (delete_raw_breakpoint): Update.
1258 (uninsert_raw_breakpoint): Update.
1259 (reinsert_raw_breakpoint): Update.
1260 * linux-low.cc (linux_target_ops): Update.
1261 (linux_insert_point): Turn into ...
1262 (linux_process_target::insert_point): ... this.
1263 (linux_remove_point): Turn into ...
1264 (linux_process_target::remove_point): ... this.
1265 * linux-low.h (class linux_process_target): Update.
1266 * lynx-low.cc (lynx_target_ops): Update.
1267 * nto-low.cc (nto_target_ops): Update.
1268 (nto_insert_point): Turn into ...
1269 (nto_process_target::insert_point): ... this.
1270 (nto_remove_point): Turn into ...
1271 (nto_process_target::remove_point): ... this.
1272 * nto-low.h (class nto_process_target): Update.
1273 * win32-low.cc (win32_target_ops): Update.
1274 (win32_insert_point): Turn into ...
1275 (win32_process_target::insert_point): ... this.
1276 (win32_remove_point): Turn into ...
1277 (win32_process_target::remove_point): ... this.
1278 * win32-low.h (class win32_process_target): Update.
1280 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1282 Turn process_stratum_target's supports_z_point_type op into a
1283 method of process_target.
1285 * target.h (struct process_stratum_target): Remove the target op.
1286 (class process_target): Add the target op.
1287 * target.cc (process_target::supports_z_point_type): Define.
1289 Update the derived classes and callers below.
1291 * mem-break.cc (z_type_supported): Update.
1292 * linux-low.cc (linux_target_ops): Update.
1293 (linux_supports_z_point_type): Turn into ...
1294 (linux_process_target::supports_z_point_type): ... this.
1295 * linux-low.h (class linux_process_target): Update.
1296 * lynx-low.cc (lynx_target_ops): Update.
1297 * nto-low.cc (nto_target_ops): Update.
1298 (nto_supports_z_point_type): Turn into ...
1299 (nto_process_target::supports_z_point_type): ... this.
1300 * nto-low.h (class nto_process_target): Update.
1301 * win32-low.cc (win32_target_ops): Update.
1302 (win32_supports_z_point_type): Turn into ...
1303 (win32_process_target::supports_z_point_type): ... this.
1304 * win32-low.h (class win32_process_target): Update.
1306 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1308 Turn process_stratum_target's read_auxv op into a method of
1311 * target.h (class process_stratum_target): Remove the target op.
1312 (struct process_target): Add the target op. Also add
1313 'supports_read_auxv'.
1314 * target.cc (process_target::read_auxv): Define.
1315 (process_target::supports_read_auxv): Define.
1317 Update the derived classes and callers below.
1319 * server.cc (handle_qxfer_auxv): Update.
1320 (handle_query): Update.
1321 * linux-low.cc (linux_target_ops): Update.
1322 (linux_process_target::supports_read_auxv): Define.
1323 (linux_read_auxv): Turn into ...
1324 (linux_process_target::read_auxv): ... this.
1325 * linux-low.h (class linux_process_target): Update.
1326 * lynx-low.cc (lynx_target_ops): Update.
1327 * nto-low.cc (nto_target_ops): Update.
1328 (nto_process_target::supports_read_auxv): Define.
1329 (nto_read_auxv): Turn into ...
1330 (nto_process_target::read_auxv): ... this.
1331 * nto-low.h (class nto_process_target): Update.
1332 * win32-low.cc (win32_target_ops): Update.
1334 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1336 Turn process_stratum_target's request_interrupt op into a method of
1339 * target.h (struct process_stratum_target): Remove the target op.
1340 (class process_target): Add the target op.
1342 Update the derived classes and callers below.
1344 * remote-utils.cc (putpkt_binary_1): Update.
1345 (input_interrupt): Update.
1347 * server.cc (handle_v_requests): Update.
1348 * linux-low.cc (linux_target_ops): Update.
1349 (linux_request_interrupt): Turn into ...
1350 (linux_process_target::request_interrupt): ... this.
1351 * linux-low.h (class linux_process_target): Update.
1352 * lynx-low.cc (lynx_target_ops): Update.
1353 (lynx_request_interrupt): Turn into ...
1354 (lynx_process_target::request_interrupt): ... this.
1355 * lynx-low.h (class lynx_process_target): Update.
1356 * nto-low.cc (nto_target_ops): Update.
1357 (nto_request_interrupt): Turn into ...
1358 (nto_process_target::request_interrupt): ... this.
1359 * nto-low.h (class nto_process_target): Update.
1360 * win32-low.cc (win32_target_ops): Update.
1361 (win32_request_interrupt): Turn into ...
1362 (win32_process_target::request_interrupt): ... this.
1363 * win32-low.h (class win32_process_target): Update.
1365 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1367 Turn process_stratum_target's look_up_symbols op into a method of
1370 * target.h (struct process_stratum_target): Remove the target op.
1371 (class process_target): Add the target op.
1372 * target.cc (process_target::look_up_symbols): Define.
1374 Update the derived classes and callers below.
1376 * server.cc (handle_query): Update.
1377 * linux-low.cc (linux_target_ops): Update.
1378 (linux_look_up_symbols): Turn into ...
1379 (linux_process_target::look_up_symbols): ... this.
1380 * linux-low.h (class linux_process_target): Update.
1381 * lynx-low.cc (lynx_target_ops): Update.
1382 * nto-low.cc (nto_target_ops): Update.
1383 * win32-low.cc (win32_target_ops): Update.
1385 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1387 Turn process_stratum_target's read_memory and write_memory
1388 ops into methods of process_target.
1390 * target.h (struct process_stratum_target): Remove the target ops.
1391 (class process_target): Add the target ops.
1393 Update the derived classes and callers below.
1395 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
1396 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
1397 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
1398 (arm_get_syscall_trapinfo): Update.
1399 * linux-cris-low.cc (cris_breakpoint_at): Update.
1400 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
1401 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
1402 * linux-mips-low.cc (mips_breakpoint_at): Update.
1403 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
1404 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
1405 * linux-sh-low.cc (sh_breakpoint_at): Update.
1406 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
1407 (sparc_store_gregset_from_stack): Update.
1408 (sparc_breakpoint_at): Update.
1409 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
1410 * linux-tile-low.cc (tile_breakpoint_at): Update.
1411 * linux-x86-low.cc (x86_breakpoint_at): Update.
1412 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
1413 * mem-brea.cc (insert_memory_breakpoint): Update.
1414 (validate_inserted_breakpoint): Update.
1415 * target.cc (read_inferior_memory): Update.
1416 (target_write_memory): Update.
1417 * linux-low.cc (linux_target_ops): Update.
1418 (linux_read_memory): Make a wrapper around the read_memory target
1420 (linux_process_target::read_memory): Rename from linux_read_memory.
1421 (linux_write_memory): Turn into ...
1422 (linux_process_target::write_memory): ... this.
1423 * linux-low.h (class linux_process_target): Update.
1424 * lynx-low.cc (lynx_target_ops): Update.
1425 (lynx_read_memory): Turn into ...
1426 (lynx_process_target::read_memory): ... this.
1427 (lynx_write_memory): Turn into ...
1428 (lynx_process_target::write_memory): ... this.
1429 * lynx-low.h (class lynx_process_target): Update.
1430 * nto-low.cc (nto_target_ops): Update.
1431 (nto_read_memory): Turn into ...
1432 (nto_process_target::read_memory): ... this.
1433 (nto_write_memory): Turn into ...
1434 (nto_process_target::write_memory): ... this.
1435 * nto-low.h (class nto_process_target): Update.
1436 * win32-low.cc (win32_target_ops): Update.
1437 (win32_read_inferior_memory): Turn into ...
1438 (win32_process_target::read_memory): ... this.
1439 (win32_write_inferior_memory): Turn into ...
1440 (win32_process_target::write_memory): ... this.
1441 * win32-low.h (class win32_process_target): Update.
1443 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1445 Turn process_stratum_target's prepare_to_access_memory and
1446 done_accessing_memory ops into methods of process_target.
1448 * target.h (struct process_stratum_target): Remove the target ops.
1449 (class process_target): Add the target ops.
1450 * target.cc (process_target::prepare_to_access_memory): Define.
1451 (process_target::done_accessing_memory): Define.
1452 (prepare_to_access_memory): Update.
1453 (done_accessing_memory): Update.
1455 Update the derived classes and callers below.
1457 * linux-low.cc (linux_target_ops): Update.
1458 (linux_prepare_to_access_memory): Turn into ...
1459 (linux_process_target::prepare_to_access_memory): ... this.
1460 (linux_done_accessing_memory): Turn into ...
1461 (linux_process_target::done_accessing_memory): ... this.
1462 * linux-low.h (class linux_process_target): Update.
1463 * lynx-low.cc (lynx_target_ops): Update.
1464 * nto-low.cc (nto_target_ops): Update.
1465 * win32-low.cc (win32_target_ops): Update.
1467 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1469 Turn process_stratum_target's fetch_registers and store_registers
1470 ops into methods of process_target.
1472 * target.h (struct process_stratum_target): Remove the target ops.
1473 (class process_target): Add the target ops.
1474 (fetch_inferior_registers): Update the macro.
1475 (store_inferior_registers): Update the macro.
1477 Update the derived classes and callers below.
1479 * linux-low.cc (linux_target_ops): Update.
1480 (linux_fetch_registers): Turn into ...
1481 (linux_process_target::fetch_registers): ... this.
1482 (linux_store_registers): Turn into ...
1483 (linux_process_target::store_registers): ... this.
1484 * linux-low.h (class linux_process_target): Update.
1485 * lynx-low.cc (lynx_target_ops): Update.
1486 (lynx_fetch_registers): Turn into ...
1487 (lynx_process_target::fetch_registers): ... this.
1488 (lynx_store_registers): Turn into ...
1489 (lynx_process_target::store_registers): ... this.
1490 * lynx-low.h (class lynx_process_target): Update.
1491 * nto-low.cc (nto_target_ops): Update.
1492 (nto_fetch_registers): Turn into ...
1493 (nto_process_target::fetch_registers): ... this.
1494 (nto_store_registers): Turn into ...
1495 (nto_process_target::store_registers): ... this.
1496 * nto-low.h (class nto_process_target): Update.
1497 * win32-low.cc (win32_target_ops): Update.
1498 (win32_fetch_inferior_registers): Turn into ...
1499 (win32_process_target::fetch_registers): ... this.
1500 (win32_store_inferior_registers): Turn into ...
1501 (win32_process_target::store_registers): ... this.
1502 * win32-low.h (class win32_process_target): Update.
1504 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1506 Turn process_stratum_target's wait op into a method of
1509 * target.h (struct process_stratum_target): Remove the target op.
1510 (class process_target): Add the target op.
1512 Update the derived classes and callers below.
1514 * target.cc (target_wait): Update.
1515 * linux-low.cc (linux_target_ops): Update.
1516 (linux_wait): Turn into ...
1517 (linux_process_target::wait): ... this.
1518 * linux-low.h (class linux_process_target): Update.
1519 * lynx-low.cc (lynx_target_ops): Update.
1520 (lynx_wait): Turn into ...
1521 (lynx_process_target::wait): ... this.
1522 * lynx-low.h (class lynx_process_target): Update.
1523 * nto-low.cc (nto_target_ops): Update.
1524 (nto_wait): Turn into ...
1525 (nto_process_target::wait): ... this.
1526 * nto-low.h (class nto_process_target): Update.
1527 * win32-low.cc (win32_target_ops): Update.
1528 (win32_wait): Turn into ...
1529 (win32_process_target::wait): ... this.
1530 (do_initial_child_stuff): Update.
1531 * win32-low.h (class win32_process_target): Update.
1533 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1535 Turn process_stratum_target's resume op into a method of
1538 * target.h (struct process_stratum_target): Remove the target op.
1539 (class process_target): Add the target op.
1541 Update the derived classes and callers below.
1543 * server.cc (resume): Update.
1544 * target.cc (target_stop_and_wait): Update.
1545 (target_continue_no_signal): Update.
1546 (target_continue): Update.
1547 * linux-low.cc (linux_target_ops): Update.
1548 (linux_resume): Turn into ...
1549 (linux_process_target::resume): ... this.
1550 * linux-low.h (class linux_process_target): Update.
1551 * lynx-low.cc (lynx_target_ops): Update.
1552 (lynx_resume): Turn into ...
1553 (lynx_process_target::resume): ... this.
1554 * lynx-low.h (class lynx_process_target): Update.
1555 * nto-low.cc (nto_target_ops): Update.
1556 (nto_resume): Turn into ...
1557 (nto_process_target::resume): ... this.
1558 * nto-low.h (class nto_process_target): Update.
1559 * win32-low.cc (win32_target_ops): Update.
1560 (win32_resume): Turn into ...
1561 (win32_process_target::resume): ... this.
1562 (win32_process_target::detach): Update.
1563 (do_initial_child_stuff): Update.
1564 * win32-low.h (class win32_process_target): Update.
1566 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1568 Turn process_stratum_target's thread_alive op into a method of
1571 * target.h (struct process_stratum_target): Remove the target op.
1572 (class process_target): Add the target op.
1573 (mythread_alive): Update the macro.
1575 Update the derived classes and callers below.
1577 * linux-low.cc (linux_target_ops): Update.
1578 (linux_thread_alive): Turn into ...
1579 (linux_process_target::thread_alive): ... this.
1580 (wait_for_sigstop): Update.
1581 * linux-low.h (class linux_process_target): Update.
1582 * lynx-low.cc (lynx_target_ops): Update.
1583 (lynx_thread_alive): Turn into ...
1584 (lynx_process_target::thread_alive): ... this.
1585 * lynx-low.h (class lynx_process_target): Update.
1586 * nto-low.cc (nto_target_ops): Update.
1587 (nto_thread_alive): Turn into ...
1588 (nto_process_target::thread_alive): ... this.
1589 * nto-low.h (class nto_process_target): Update.
1590 * win32-low.cc (win32_target_ops): Update.
1591 (win32_thread_alive): Turn into ...
1592 (win32_process_target::thread_alive): ... this.
1593 * win32-low.h (class win32_process_target): Update.
1595 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1597 Turn process_stratum_target's join op into a method of
1600 * target.h (struct process_stratum_target): Remove the target op.
1601 (class process_target): Add the target op.
1602 (join_inferior): Update the macro.
1604 Update the derived classes and callers below.
1606 * linux-low.cc (linux_target_ops): Update.
1607 (linux_join): Turn into ...
1608 (linux_process_target::join): ... this.
1609 * linux-low.h (class linux_process_target): Update.
1610 * lynx-low.cc (lynx_target_ops): Update.
1611 (lynx_join): Turn into ...
1612 (lynx_process_target::join): ... this.
1613 * lynx-low.h (class lynx_process_target): Update.
1614 * nto-low.cc (nto_target_ops): Update.
1615 (nto_process_target::join): Define.
1616 * nto-low.h (class nto_process_target): Update.
1617 * win32-low.cc (win32_target_ops): Update.
1618 (win32_join): Turn into ...
1619 (win32_process_target::join): ... this.
1620 * win32-low.h (class win32_process_target): Update.
1622 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1624 Turn process_stratum_target's mourn op into a method of
1627 * target.h (struct process_stratum_target): Remove the target op.
1628 (class process_target): Add the target op.
1630 Update the derived classes and callers below.
1632 * target.cc (target_mourn_inferior): Update.
1633 * linux-low.cc (linux_target_ops): Update.
1634 (linux_mourn): Turn into ...
1635 (linux_process_target::mourn): ... this.
1636 (handle_extended_wait): Update.
1637 (linux_process_target::kill): Update.
1638 (linux_process_target::detach): Update.
1639 * linux-low.h (class linux_process_target): Update.
1640 * lynx-low.cc (lynx_target_ops): Update.
1641 (lynx_mourn): Turn into ...
1642 (lynx_process_target::mourn): ... this.
1643 * lynx-low.h (class lynx_process_target): Update.
1644 * nto-low.cc (nto_target_ops): Update.
1645 (nto_mourn): Turn into ...
1646 (nto_process_target::mourn): ... this.
1647 * nto-low.h (class nto_process_target): Update.
1648 * win32-low.cc (win32_target_ops): Update.
1649 (win32_mourn): Turn into ...
1650 (win32_process_target::mourn): ... this.
1651 * win32-low.h (class win32_process_target): Update.
1653 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1655 Turn process_stratum_target's detach op into a method of
1658 * target.h (struct process_stratum_target): Remove the target op.
1659 (class process_target): Add the target op.
1660 (detach_inferior): Update the macro.
1662 Update the derived classes and callers below.
1664 * linux-low.cc (linux_target_ops): Update.
1665 (linux_detach): Turn into ...
1666 (linux_process_target::detach): ... this.
1667 * linux-low.h (class linux_process_target): Update.
1668 * lynx-low.cc (lynx_target_ops): Update.
1669 (lynx_detach): Turn into ...
1670 (lynx_process_target::detach): ... this.
1671 * lynx-low.h (class lynx_process_target): Update.
1672 * nto-low.cc (nto_target_ops): Update.
1673 (nto_detach): Turn into ...
1674 (nto_process_target::detach): ... this.
1675 * nto-low.h (class nto_process_target): Update.
1676 * win32-low.cc (win32_target_ops): Update.
1677 (win32_detach): Turn into ...
1678 (win32_process_target::detach): ... this.
1679 * win32-low.h (class win32_process_target): Update.
1681 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1683 Turn process_stratum_target's kill op into a method of
1686 * target.h (struct process_stratum_target): Remove the target op.
1687 (class process_target): Add the target op.
1689 Update the derived classes and callers below.
1691 * target.cc (kill_inferior): Update.
1692 * linux-low.cc (linux_target_ops): Update.
1693 (linux_kill): Turn into ...
1694 (linux_process_target::kill): ... this.
1695 * linux-low.h (class linux_process_target): Update.
1696 * lynx-low.cc (lynx_target_ops): Update.
1697 (lynx_kill): Turn into ...
1698 (lynx_process_target::kill): ... this.
1699 * lynx-low.h (class lynx_process_target): Update.
1700 * nto-low.cc (nto_target_ops): Update.
1701 (nto_kill): Turn into ...
1702 (nto_process_target::kill): ... this.
1703 * nto-low.h (class nto_process_target): Update.
1704 * win32-low.cc (win32_target_ops): Update.
1705 (win32_kill): Turn into ...
1706 (win32_process_target::kill): ... this.
1707 * win32-low.h (class win32_process_target): Update.
1709 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1711 Turn process_stratum_target's attach op into a method of
1714 * target.h (struct process_stratum_target): Remove the target op.
1715 (class process_target): Add the target op.
1716 (myattach): Update the macro.
1718 Update the derived classes and callers below.
1720 * linux-low.cc (linux_target_ops): Update.
1721 (linux_attach): Turn into ...
1722 (linux_process_target::attach): ... this.
1723 * linux-low.h (class linux_process_target): Update.
1724 * lynx-low.cc (lynx_target_ops): Update.
1725 (lynx_attach): Turn into ...
1726 (lynx_process_target::attach): ... this.
1727 * lynx-low.h (class lynx_process_target): Update.
1728 * nto-low.cc (nto_target_ops): Update.
1729 (nto_attach): Turn into ...
1730 (nto_process_target::attach): ... this.
1731 * nto-low.h (class nto_process_target): Update.
1732 * win32-low.cc (win32_target_ops): Update.
1733 (win32_attach): Turn into ...
1734 (win32_process_target::attach): ... this.
1735 * win32-low.h (class win32_process_target): Update.
1737 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1739 Turn process_stratum_target's post_create_inferior op into a method
1742 * target.h (struct process_stratum_target): Remove the target op.
1743 (class process_target): Add the target op.
1744 (target_post_create_inferior): Update the macro.
1745 * target.cc (process_target::post_create_inferior): Define.
1747 Update the derived classes and callers below.
1749 * linux-low.cc (linux_target_ops): Update.
1750 (linux_post_create_inferior): Turn into ...
1751 (linux_process_target::post_create_inferior): ... this.
1752 * linux-low.h (class linux_process_target): Update.
1753 * lynx-low.cc (lynx_target_ops): Update.
1754 * nto-low.cc (nto_target_ops): Update.
1755 * win32-low.cc (win32_target_ops): Update.
1757 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1759 Turn process_stratum_target's create_inferior op into a method of
1762 * target.h (struct process_stratum_target): Remove the target op.
1763 (class process_target): Add the target op.
1764 (create_inferior): Rename the macro to ...
1765 (target_create_inferior): ... this.
1767 Update the derived classes and callers below.
1769 * server.cc (handle_v_run): Update.
1770 (captured_main): Update.
1771 (process_serial_event): Update.
1772 * linux-low.cc (linux_target_ops): Update.
1773 (linux_create_inferior): Turn into ...
1774 (linux_process_target::create_inferior): ... this.
1775 * linux-low.h (class linux_process_target): Update.
1776 * lynx-low.cc (lynx_target_ops): Update.
1777 (lynx_create_inferior): Turn into ...
1778 (lynx_process_target::create_inferior): ... this.
1779 * lynx-low.h (class lynx_process_target): Update.
1780 * nto-low.cc (nto_target_ops): Update.
1781 (nto_create_inferior): Turn into ...
1782 (nto_process_target::create_inferior): ... this.
1783 * nto-low.h (class nto_process_target): Update.
1784 * win32-low.cc (win32_target_ops): Update.
1785 (win32_create_inferior): Turn into ...
1786 (win32_process_target::create_inferior): ... this.
1787 * win32-low.h (class win32_process_target): Update.
1789 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1791 * target.h (class process_target): New class definition.
1792 (struct process_stratum_target) <pt>: New field with type
1794 * linux-low.h (class linux_process_target): Define as a derived
1795 class of 'process_target'.
1796 * linux-low.cc (linux_target_ops): Add a linux_process_target*
1798 * lynx-low.h (class lynx_process_target): Define as a derived
1799 class of 'process_target'.
1800 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
1802 * nto-low.h (class nto_process_target): Define as a derived
1803 class of 'process_target'.
1804 * nto-low.cc (nto_target_ops): Add an nto_process_target*
1806 * win32-low.h (class win32_process_target): Define as a derived
1807 class of 'process_target'.
1808 * win32-low.cc (win32_target_ops): Add a win32_process_target*
1811 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1813 * configure: Regenerate.
1815 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
1816 Andrew Burgess <andrew.burgess@embecosm.com>
1818 * linux-riscv-low.cc: New file.
1819 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
1820 and nat/riscv-linux-tdesc.c.
1821 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
1822 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
1825 2020-02-14 Tom Tromey <tom@tromey.com>
1827 * acinclude.m4: Don't include acx_configure_dir.m4.
1828 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
1829 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
1830 (all, install-only, uninstall, clean-info, clean)
1831 (maintainer-clean): Don't recurse.
1832 (subdir_do, all-lib): Remove.
1833 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
1835 (generated_files): Update.
1836 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
1837 * configure: Rebuild.
1838 * configure.ac: Don't configure gnulib or libiberty.
1841 2020-02-14 Eli Zaretskii <eliz@gnu.org>
1843 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
1844 preparing the command line for CreateProcess.
1845 (win32_create_inferior): Reflect the program name in debugging
1846 output that shows the process and its command line.
1848 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
1850 * Makefile.in: Rename source files from .c to .cc.
1851 * %.c: Rename to %.cc.
1852 * configure.ac: Rename server.c to server.cc.
1853 * configure: Re-generate.
1855 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
1857 * Makefile.in: Rename gdbsupport source files from .c to .cc.
1859 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
1861 * win32-low.c (win32_create_inferior): Set signal_pid.
1863 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
1864 Pedro Alves <palves@redhat.com>
1866 Skip building gdbserver in a cross-configuration.
1867 * configure.srv: Set $gdbserver_host depending on whether $target
1868 is $host. Use $gdbserver_host instead of $host.
1870 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
1872 * configure: Re-generate.
1874 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
1876 * configure: Re-generate.
1878 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
1880 * acinclude.m4: Update warning.m4 path.
1882 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
1884 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
1885 (handle_exception): Set siginfo_er.
1886 (win32_xfer_siginfo): New function.
1888 2020-02-07 Tom Tromey <tom@tromey.com>
1889 Pedro Alves <palves@redhat.com>
1891 * README: Update build documentation.
1892 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
1894 * configure.ac: Update paths.
1895 * configure: Rebuild.
1896 * acinclude.m4: Update paths.
1897 * Makefile.in: Update include paths.
1898 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
1899 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
1900 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
1901 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
1902 (%-generated.c): Update paths.
1903 * Move entire directory from ../gdb/gdbserver.
1905 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
1907 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
1909 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1911 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
1912 assignment instead of srv_linux_obj.
1914 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
1916 * server.c (handle_qxfer_libraries): Write segment-address with
1919 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
1921 * Makefile.in (install-strip): New target.
1922 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
1923 * aclocal.m4: Regenerate.
1924 * configure: Regenerate.
1925 * configure.ac: Add AM_PROG_INSTALL_STRIP.
1927 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
1929 * Makefile.in (SFILES): Adjust paths to point to real files.
1930 (OBS): Move waitstatus.o to target/waitstatus.o.
1931 (TAGS): Transform paths appropriately.
1933 (nat/%.o): ... this pattern rule.
1935 (target/%.o): ... this pattern rule.
1936 * configure.srv: Adjust paths throughout to include nat/ prefix
1937 with the revant files.
1938 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
1939 * configure: Regenerate.
1941 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
1943 * Makefile.in (TAGS): Remove config files from the recipe.
1945 2020-01-14 Tom Tromey <tom@tromey.com>
1947 * configure: Rebuild.
1948 * configure.ac: Remove any checks that were added to common.m4.
1949 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
1952 2020-01-14 Tom Tromey <tom@tromey.com>
1954 * server.h: Include config.h.
1955 * gdbreplay.c: Include config.h.
1956 * configure: Rebuild.
1957 * configure.ac: Don't source common.host.
1958 * acinclude.m4: Update path.
1959 * Makefile.in (INCSUPPORT): New variable.
1960 (INCLUDE_CFLAGS): Add INCSUPPORT.
1961 (SFILES): Update paths.
1962 (version-generated.c): Update path to create-version.sh.
1963 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
1965 2020-01-14 Tom Tromey <tom@tromey.com>
1967 * configure.ac (LIBS): Use WIN32APILIBS.
1968 (USE_WIN32API): Don't define.
1969 * configure: Rebuild.
1971 2020-01-14 Tom Tromey <tom@tromey.com>
1973 * configure: Rebuild.
1975 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1977 * Makefile.in (%-generated.c): Remove rule for files from
1980 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1982 * configure: Re-generate.
1984 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1986 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
1988 * tracepoint.c (stop_tracing, flush_trace_buffer,
1989 about_to_request_buffer_space, get_trace_state_variable_value,
1990 set_trace_state_variable_value, gdb_collect): Add declaration.
1992 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1994 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
1995 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
1996 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
1997 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
1998 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
2001 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2003 * inferiors.c: Include gdbsupport/common-inferior.h.
2005 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2007 * hostio-errno.c: Include hostio.h.
2009 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2011 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
2014 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2016 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
2017 * linux-arm-tdesc.h: Include arch/arm.h.
2019 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2021 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
2023 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2025 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
2026 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
2028 2020-01-10 Pedro Alves <palves@redhat.com>
2030 * fork-child.c (post_fork_inferior): Pass target down to
2032 * inferiors.c (switch_to_thread): Add process_stratum_target
2034 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
2035 * nto-low.c (nto_target_ops): Now a process_stratum_target.
2036 * linux-low.c (linux_target_ops): Now a process_stratum_target.
2037 * remote-utils.c (prepare_resume_reply): Pass the target to
2039 * target.c (the_target): Now a process_stratum_target.
2040 (done_accessing_memory): Pass the target to switch_to_thread.
2041 (set_target_ops): Ajust to use process_stratum_target.
2042 * target.h (struct target_ops): Rename to ...
2043 (struct process_stratum_target): ... this.
2044 (the_target, set_target_ops): Adjust.
2045 (prepare_to_access_memory): Adjust comment.
2046 * win32-low.c (child_xfer_memory): Adjust to use
2047 process_stratum_target.
2048 (win32_target_ops): Now a process_stratum_target.
2050 2020-01-06 Eli Zaretskii <eliz@gnu.org>
2051 Pedro Alves <palves@redhat.com>
2053 * win32-low.c (get_child_debug_event): Extract the fatal exception
2054 from the exit status and convert to the equivalent Posix signal
2056 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
2057 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
2059 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
2061 * Makefile.in: Use INSTALL_PROGRAM_ENV.
2063 2020-01-01 Joel Brobecker <brobecker@adacore.com>
2065 * server.c (gdbserver_version): Change copyright year to 2020.
2066 * gdbreplay.c (gdbreplay_version): Likewise.
2068 2019-12-19 Christian Biesinger <cbiesinger@google.com>
2070 * configure: Regenerate.
2071 * configure.ac: Quote variable arguments of test.
2073 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
2075 * Makefile.in: Fix build with GNU Make 3.81
2077 2019-12-16 Tom Tromey <tromey@adacore.com>
2079 * server.c (get_exec_file): Constify result.
2081 2019-12-10 Christian Biesinger <cbiesinger@google.com>
2083 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
2084 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
2085 * config.in: Regenerate.
2086 * configure: Regenerate.
2087 * configure.ac: Don't check for strerror.
2088 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
2089 Call safe_strerror instead of strerror.
2090 * server.h (strerror): Remove this now-unnecessary declaration.
2091 * tracepoint.c (init_named_socket): Call safe_strerror instead of
2093 (gdb_agent_helper_thread): Likewise.
2094 * utils.c (perror_with_name): Likewise.
2096 2019-11-26 Tom Tromey <tom@tromey.com>
2098 * configure, config.in: Rebuild.
2100 2019-11-26 Tom Tromey <tom@tromey.com>
2102 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
2103 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
2105 * configure, config.in: Rebuild.
2107 2019-11-26 Tom Tromey <tom@tromey.com>
2109 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
2110 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
2111 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
2112 * acinclude.m4: Include ax_pthread.m4.
2113 * config.in, configure: Rebuild.
2115 2019-11-26 Christian Biesinger <cbiesinger@google.com>
2117 * debug.c (debug_set_output): Call safe_strerror instead of
2119 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
2120 (linux_kill_one_lwp): Likewise.
2121 (linux_detach_one_lwp): Likewise.
2122 (linux_wait_for_event_filtered): Likewise.
2123 (store_register): Likewise.
2124 * lynx-low.c (lynx_attach): Likewise.
2125 * mem-break.c (insert_memory_breakpoint): Likewise.
2126 (remove_memory_breakpoint): Likewise.
2127 (delete_fast_tracepoint_jump): Likewise.
2128 (set_fast_tracepoint_jump): Likewise.
2129 (uninsert_fast_tracepoint_jumps_at): Likewise.
2130 (reinsert_fast_tracepoint_jumps_at): Likewise.
2131 * nto-low.c (nto_xfer_memory): Likewise.
2132 (nto_resume): Likewise.
2134 2019-11-20 Luis Machado <luis.machado@linaro.org>
2136 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
2137 instead of register count.
2138 * tdesc.c (tdesc_contains_feature): New function.
2139 * tdesc.h (tdesc_contains_feature): New prototype.
2141 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2143 * Makefile.in: Add safe-strerror.c.
2144 * configure: Regenerate.
2145 * configure.ac: Don't source common.host.
2147 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2149 * config.in: Regenerate.
2150 * configure: Regenerate.
2152 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
2154 * ax.c (ax_printf): Handle size_t_arg.
2156 2019-11-06 Christian Biesinger <cbiesinger@google.com>
2158 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
2159 * mi/mi-main.c (output_cores): Likewise.
2160 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
2161 (linux_xfer_osdata_modules): Likewise.
2162 * remote.c (register_remote_support_xml): Likewise.
2163 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
2164 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
2166 2019-11-01 Christian Biesinger <cbiesinger@google.com>
2168 * configure: Regenerate.
2169 * configure.ac: Remove check for strerror_r.
2171 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2173 * config.in: Regenerate.
2174 * configure: Regenerate.
2175 * configure.ac: Also check for strerror_r.
2177 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2179 * ax.h (debug_agent): Remove duplicate declaration.
2181 2019-10-26 Tom de Vries <tdevries@suse.de>
2183 * linux-aarch64-low.c: Fix typos in comments.
2184 * linux-arm-low.c: Same.
2185 * linux-low.c: Same.
2186 * linux-ppc-low.c: Same.
2187 * proc-service.c: Same.
2190 * tracepoint.c: Same.
2191 * win32-low.c: Same.
2193 2019-10-25 Tom Tromey <tromey@adacore.com>
2195 * utils.c (xstrdup): Remove.
2197 2019-10-23 Tom Tromey <tom@tromey.com>
2199 * configure, config.in: Rebuild.
2201 2019-10-23 Tom Tromey <tom@tromey.com>
2203 * configure: Rebuild.
2204 * acinclude.m4: Use m4_include, not sinclude.
2206 2019-10-17 Tom Tromey <tromey@adacore.com>
2208 * configure: Rebuild.
2209 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2210 in AC_CONFIG_FILES invocation.
2211 * Makefile.in (stamp-h, Makefile): Use new-style config.status
2214 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2216 * server.c: Include xml-builtin.h.
2217 (get_xml_features): Don't declare xml_builtins here.
2219 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2221 * Makefile.in: Remove references to vec-ipa.o.
2223 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2225 * Makefile.in: Remove references to vec.c.
2227 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2229 * server.c (server_waiting): Change to bool.
2230 (extended_protocol): Likewise.
2231 (response_needed): Likewise.
2232 (exit_requested): Likewise.
2233 (run_once): Likewise.
2234 (report_no_resumed): Likewise.
2235 (non_stop): Likewise.
2236 (disable_packet_vCont): Likewise.
2237 (disable_packet_Tthread): Likewise.
2238 (disable_packet_qC): Likewise.
2239 (disable_packet_qfThreadInfo): Likewise.
2240 (handle_general_set): Update.
2241 (handle_detach): Update.
2242 (handle_monitor_command): Update.
2243 (handle_query): Update.
2244 (captured_main): Update.
2245 (process_serial_event): Update.
2246 * server.h (server_waiting): Change to bool.
2247 (disable_packet_vCont): Likewise.
2248 (disable_packet_Tthread): Likewise.
2249 (disable_packet_qC): Likewise.
2250 (disable_packet_qfThreadInfo): Likewise.
2251 (run_once): Likewise.
2252 (non_stop): Likewise.
2253 * target.c (target_stop_and_wait): Update.
2255 2019-10-02 Tom Tromey <tromey@adacore.com>
2257 * Makefile.in (SFILES): Add common-inferior.c.
2258 (OBS): Add common-inferior.o.
2259 * server.c (startup_with_shell): Don't define.
2261 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2263 * linux-low.c (linux_low_read_btrace): Update for change to
2266 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2268 * debug.c (debug_threads): Remove comment in favor of the header.
2269 * debug.h (using_threads): Add declaration.
2270 (debug_threads): Add comment.
2271 * linux-aarch64-low.c: Include debug.h and remove declaration of
2273 * nto-low.c: Likewise.
2274 * remote-utils.c: Likewise.
2275 * thread-db.c: Likewise.
2277 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2279 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
2280 and powerpc-cell64l-ipa.o.
2281 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
2282 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
2283 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
2286 * spu-low.c: Remove file.
2288 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
2289 (parse_spufs_run): Remove.
2290 (ppc_get_pc): Remove Cell/B.E. support.
2291 (ppc_set_pc): Likewise.
2292 (ppc_breakpoint_at): Likewise.
2293 (ppc_arch_setup): Likewise.
2294 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
2295 tdesc_powerpc_cell32l.
2296 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
2297 or init_registers_powerpc_cell32l.
2298 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
2299 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
2300 or init_registers_powerpc_cell32l.
2301 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
2302 (init_registers_powerpc_cell32l): Remove prototype.
2303 (init_registers_powerpc_cell64l): Likewise.
2305 * target.h (struct target_ops): Remove qxfer_spu member.
2306 * server.c (handle_qxfer_spu): Remove.
2307 (qxfer_packets): Remove entry for "spu".
2308 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
2309 * linux-low.c (SPUFS_MAGIC): Remove.
2310 (spu_enumerate_spu_ids): Remove.
2311 (linux_qxfer_spu): Remove.
2312 (linux_target_ops): Remove qxfer_spu member.
2313 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
2314 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
2315 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
2317 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2319 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
2320 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
2321 * config.in: Regenerate.
2322 * configure: Regenerate.
2324 2019-08-15 Tom Tromey <tromey@adacore.com>
2326 * target.c (target_write_memory): Use gdb::byte_vector.
2328 2019-08-15 Tom Tromey <tromey@adacore.com>
2330 * tracepoint.c (write_inferior_data_pointer)
2331 (write_inferior_integer, write_inferior_int8)
2332 (write_inferior_uinteger, m_tracepoint_action_download)
2333 (r_tracepoint_action_download, x_tracepoint_action_download)
2334 (l_tracepoint_action_download, clear_inferior_trace_buffer)
2335 (download_agent_expr, download_tracepoint_1)
2336 (download_trace_state_variables, upload_fast_traceframes): Update.
2337 * server.c (gdb_write_memory): Update.
2338 * remote-utils.c (relocate_instruction): Update.
2339 * proc-service.c (ps_pdwrite): Update.
2340 * mem-break.c (remove_memory_breakpoint)
2341 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
2342 (uninsert_fast_tracepoint_jumps_at)
2343 (reinsert_fast_tracepoint_jumps_at): Update.
2344 * linux-x86-low.c (append_insns)
2345 (i386_install_fast_tracepoint_jump_pad)
2346 (amd64_write_goto_address, i386_write_goto_address): Update.
2347 * linux-s390-low.c (append_insns, s390_write_goto_address):
2349 * linux-ppc-low.c (ppc_relocate_instruction)
2350 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
2351 (ppc_write_goto_address): Update.
2352 * linux-aarch64-low.c (append_insns): Update.
2353 * target.h (struct target_ops): Update.
2354 (write_inferior_memory): Don't declare.
2355 * target.c (target_write_memory): Rename from
2356 write_inferior_memory. Remove old target_write_memory.
2358 2019-08-15 Tom Tromey <tromey@adacore.com>
2360 * target.c (write_inferior_memory): Use std::vector.
2362 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
2365 * configure.ac: Drop enable-libmcheck support.
2366 * configure, config.in: Rebuild.
2367 * acinclude.m4: Don't include it.
2369 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2371 * configure.srv: Remove Arm xml files.
2373 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2375 * configure.srv: Add new files. Remove xml generated files.
2376 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
2378 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
2379 * linux-aarch32-tdesc.c: New file.
2380 * linux-aarch32-tdesc.h: New file.
2381 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
2382 * linux-arm-low.c (init_registers_arm, tdesc_arm)
2383 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
2384 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
2385 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
2386 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
2387 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
2388 (arm_read_description): Call arm_linux_read_description.
2389 (initialize_low_arch): Don't init registers.
2390 * linux-arm-tdesc.c: New file.
2391 * linux-arm-tdesc.h: New file.
2393 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2395 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
2396 Move counter inside for.
2397 (arm_read_description): Check ptrace earlier.
2398 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
2400 2019-07-09 Tom Tromey <tom@tromey.com>
2402 * configure: Rebuild.
2403 * configure.ac: Change common to gdbsupport.
2404 * acinclude.m4: Change common to gdbsupport.
2405 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
2406 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
2407 common to gdbsupport.
2408 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
2409 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
2410 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
2411 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
2412 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
2413 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
2414 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
2415 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
2416 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
2417 common to gdbsupport.
2419 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2421 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
2423 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
2425 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2427 * configure.srv: Remove legacy xml.
2428 * linux-aarch64-low.c (initialize_low_arch): Remove
2429 initialize_low_tdesc call.
2430 * linux-aarch64-tdesc-selftest.c: Remove file.
2431 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
2432 * linux-x86-low.c (initialize_low_arch): Remove
2433 initialize_low_tdesc call.
2434 * linux-x86-tdesc-selftest.c: Remove file.
2435 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
2437 2019-06-20 Tom de Vries <tdevries@suse.de>
2439 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
2440 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
2442 2019-06-19 Tom de Vries <tdevries@suse.de>
2444 * debug.h (debug_write): Change return type to ssize_t.
2445 * debug.c (debug_write): Same.
2447 2019-06-14 Tom Tromey <tom@tromey.com>
2449 * configure.ac: Use new path to gnulib.
2450 * configure: Rebuild.
2451 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
2454 2019-06-11 Tom Tromey <tom@tromey.com>
2456 * Makefile.in (SFILES): Add alloc.c.
2458 (IPA_OBJS): Add alloc-ipa.o.
2459 (alloc-ipa.o): New target.
2460 (%.o: ../%.c): New pattern rule.
2462 2019-06-10 Tom Tromey <tromey@adacore.com>
2464 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
2465 end warning with a newline.
2466 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
2468 * thread-db.c (attach_thread): Don't end warning with a newline.
2469 (thread_db_notice_clone): Likewise.
2470 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
2472 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
2473 end warning with a newline.
2475 2019-06-04 Pedro Alves <palves@redhat.com>
2477 * server.c (captured_main): Use make_unique_xstrdup.
2479 2019-06-02 Tom Tromey <tom@tromey.com>
2481 * gdbreplay.c (fromhex): Remove.
2482 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
2484 2019-05-29 Tom Tromey <tromey@adacore.com>
2486 * configure: Rebuild.
2488 2019-05-06 Kevin Buettner <kevinb@redhat.com>
2490 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
2491 sign extension code on 32-bit builds.
2493 2019-05-03 Eli Zaretskii <eliz@gnu.org>
2496 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
2498 2019-04-19 Tom Tromey <tom@tromey.com>
2500 * server.c (struct vstop_notif): Derive from notif_event.
2502 (queue_stop_reply): Update.
2503 (remove_all_on_match_ptid): Change type. Rewrite.
2504 (discard_queued_stop_replies): Rewrite.
2505 (in_queued_stop_replies_ptid): Change type.
2506 (in_queued_stop_replies): Rewrite.
2507 (notif_stop): Update.
2508 (queue_stop_reply_callback): Update.
2509 (captured_main): Don't call initialize_notif.
2510 (push_stop_notification): Update.
2511 * notif.c (notif_write_event, handle_notif_ack)
2512 (notif_event_enque, notif_push): Update.
2513 (notif_event_xfree, initialize_notif): Remove.
2514 * notif.h (struct notif_event): Include <list>, not
2516 (struct notif_server) <queue>: Now a std::list.
2517 (notif_event_p): Remove typedef.
2518 (initialize_notif): Don't declare.
2519 (struct notif_event): Add virtual destructor.
2521 2019-04-17 Alan Hayward <alan.hayward@arm.com>
2523 * ax.c (ax_vdebug): Call debug_printf.
2524 * debug.c (debug_write): New function.
2525 * debug.h (debug_write): New declaration.
2526 * linux-low.c (sigchld_handler): Call debug_write.
2528 2019-04-17 Alan Hayward <alan.hayward@arm.com>
2530 * debug.c (debug_set_output): New function.
2531 (debug_vprintf): Send output to debug_file.
2532 (debug_flush): Likewise.
2533 * debug.h (debug_set_output): New declaration.
2534 * server.c (handle_monitor_command): Add debug-file option.
2535 (captured_main): Likewise.
2537 2019-04-17 Alan Hayward <alan.hayward@arm.com>
2539 * debug.c (remote_debug): Add definition.
2540 * debug.h (remote_debug): Add declaration.
2541 * hostio.c (remote_debug): Remove declaration.
2542 * remote-utils.c (struct ui_file): Likewise.
2543 (remote_debug): Likewise.
2544 * remote-utils.h (remote_debug): Likewise,
2545 * server.c (remote_debug): Remove definition.
2547 2019-04-10 Kevin Buettner <kevinb@redhat.com>
2549 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
2550 when using a 64-bit gdbserver.
2552 2019-04-09 Tom Tromey <tromey@adacore.com>
2554 * linux-low.c (select_event_lwp): Use find_thread_in_random.
2556 2019-04-08 Tom Tromey <tom@tromey.com>
2558 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
2560 (linux_resume_one_lwp): Likewise.
2562 2019-04-08 Tom Tromey <tom@tromey.com>
2564 * gdbreplay.c: Update.
2565 * linux-low.c: Update.
2568 2019-04-08 Tom Tromey <tom@tromey.com>
2570 * server.c: Use C++ exception handling.
2571 * linux-low.c: Use C++ exception handling.
2572 * gdbreplay.c: Use C++ exception handling.
2574 2019-04-08 Tom Tromey <tom@tromey.com>
2576 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
2577 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
2578 (captured_main, main): Update.
2579 * gdbreplay.c (main): Update.
2581 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2583 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
2584 value in argument pointer, return 1 if the entry is found and 0
2585 otherwise. Move comment.
2586 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
2587 * linux-low.h (linux_get_auxv): Declare.
2588 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
2590 2019-04-05 Tom Tromey <tromey@adacore.com>
2592 * server.c (gdbserver_usage): Use upper-case for metasyntactic
2595 2019-03-28 Alan Hayward <alan.hayward@arm.com>
2597 * linux-low.c (AT_HWCAP2): Add define if not already included.
2599 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2601 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
2602 (aarch64_arch_setup): Call linux_get_hwcap.
2603 * linux-arm-low.c (arm_get_hwcap): Remove function.
2604 (arm_read_description): Call linux_get_hwcap.
2605 * linux-low.c (linux_get_auxv): New function.
2606 (linux_get_hwcap): Likewise.
2607 (linux_get_hwcap2): Likewise.
2608 * linux-low.h (linux_get_hwcap): New declaration.
2609 (linux_get_hwcap2): Likewise.
2610 * linux-ppc-low.c (ppc_get_auxv): Remove function.
2611 (ppc_arch_setup): Call linux_get_hwcap.
2612 * linux-s390-low.c (s390_get_hwcap): Remove function.
2613 (s390_arch_setup): Call linux_get_hwcap.
2615 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2616 Jiong Wang <jiong.wang@arm.com>
2618 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
2619 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
2621 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
2623 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2624 Jiong Wang <jiong.wang@arm.com>
2626 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
2627 (aarch64_get_hwcap): New function.
2628 (aarch64_arch_setup): Read APIA hwcap.
2630 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2631 Jiong Wang <jiong.wang@arm.com>
2633 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
2634 (initialize_low_tracepoint): Likewise.
2635 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
2636 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
2637 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
2638 (aarch64_linux_read_description): Likewise.
2639 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
2641 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2643 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
2644 i386_create_target_description for 'segments' parameter.
2645 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
2646 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
2647 * win32-i386-low.c (i386_arch_setup): Likewise.
2649 2019-03-12 Tom Tromey <tromey@adacore.com>
2651 * linux-low.c (iterate_over_lwps): Update.
2653 2019-03-06 Tom Tromey <tom@tromey.com>
2655 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
2656 (captured_main): Use SCOPE_EXIT.
2658 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
2660 * configure.srv: Use '$enable_unittest' instead of '$development'
2661 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
2664 2019-02-27 Tom Tromey <tromey@adacore.com>
2666 * gdbreplay.c (logchar): Handle \r\n.
2668 2019-02-07 Alan Hayward <alan.hayward@arm.com>
2670 * linux-low.c (linux_attach): Add process before lwp.
2671 * server.c (attach_inferior): Check if already attached.
2673 2019-02-07 Tom Tromey <tom@tromey.com>
2675 * x86-tdesc.h: Rename include guard.
2676 * x86-low.h: Add include guard.
2677 * wincecompat.h: Rename include guard.
2678 * win32-low.h: Add include guard.
2679 * utils.h: Rename include guard.
2680 * tracepoint.h: Rename include guard.
2681 * tdesc.h: Rename include guard.
2682 * target.h: Rename include guard.
2683 * server.h: Rename include guard.
2684 * remote-utils.h: Rename include guard.
2685 * regcache.h: Rename include guard.
2686 * nto-low.h: Rename include guard.
2687 * notif.h: Add include guard.
2688 * mem-break.h: Rename include guard.
2689 * lynx-low.h: Add include guard.
2690 * linux-x86-tdesc.h: Add include guard.
2691 * linux-s390-tdesc.h: Add include guard.
2692 * linux-ppc-tdesc-init.h: Add include guard.
2693 * linux-low.h: Add include guard.
2694 * linux-aarch64-tdesc.h: Add include guard.
2695 * linux-aarch32-low.h: Add include guard.
2696 * inferiors.h: Rename include guard.
2697 * i387-fp.h: Rename include guard.
2698 * hostio.h: Rename include guard.
2699 * gdbthread.h: Rename include guard.
2700 * gdb_proc_service.h: Rename include guard.
2701 * event-loop.h: Rename include guard.
2702 * dll.h: Rename include guard.
2703 * debug.h: Rename include guard.
2704 * ax.h: Rename include guard.
2706 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
2709 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
2710 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
2712 2019-01-25 Tom Tromey <tom@tromey.com>
2714 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
2716 2019-01-25 Tom Tromey <tom@tromey.com>
2718 * win32-low.c: Fix common/ includes.
2719 * win32-i386-low.c: Fix common/ includes.
2720 * tracepoint.c: Fix common/ includes.
2721 * thread-db.c: Fix common/ includes.
2722 * target.h: Fix common/ includes.
2723 * symbol.c: Fix common/ includes.
2724 * spu-low.c: Fix common/ includes.
2725 * server.h: Fix common/ includes.
2726 * server.c: Fix common/ includes.
2727 * remote-utils.c: Fix common/ includes.
2728 * regcache.h: Fix common/ includes.
2729 * regcache.c: Fix common/ includes.
2730 * nto-x86-low.c: Fix common/ includes.
2731 * notif.h: Fix common/ includes.
2732 * mem-break.h: Fix common/ includes.
2733 * lynx-low.c: Fix common/ includes.
2734 * lynx-i386-low.c: Fix common/ includes.
2735 * linux-x86-tdesc-selftest.c: Fix common/ includes.
2736 * linux-x86-low.c: Fix common/ includes.
2737 * linux-low.c: Fix common/ includes.
2738 * inferiors.h: Fix common/ includes.
2739 * i387-fp.c: Fix common/ includes.
2740 * hostio.c: Fix common/ includes.
2741 * hostio-errno.c: Fix common/ includes.
2742 * gdbthread.h: Fix common/ includes.
2743 * gdbreplay.c: Fix common/ includes.
2744 * fork-child.c: Fix common/ includes.
2745 * event-loop.c: Fix common/ includes.
2747 (enum gdb_agent_op): Fix common/ includes.
2749 2019-01-21 Tom Tromey <tom@tromey.com>
2751 * tracepoint.c: Fix includes.
2752 * remote-utils.c: Fix includes.
2753 * linux-x86-low.c: Fix includes.
2755 2019-01-01 Joel Brobecker <brobecker@adacore.com>
2757 * gdbreplay.c (gdbreplay_version): Update copyright year in
2759 * server.c (gdbserver_version): Likewise.
2761 2018-12-05 Alan Hayward <alan.hayward@arm.com>
2763 * linux-low.c (add_lwp): Switch ordering.
2765 2018-11-29 Tom Tromey <tom@tromey.com>
2767 * win32-low.c (win32_join): Take pid, not process.
2768 * target.h (struct target_ops) <join>: Change argument type.
2769 (join_inferior): Change argument name.
2770 * spu-low.c (spu_join): Take pid, not process.
2771 * server.c (handle_detach): Preserve pid before destroying
2773 * lynx-low.c (lynx_join): Take pid, not process.
2774 * linux-low.c (linux_join): Take pid, not process.
2776 2018-11-23 Alan Hayward <alan.hayward@arm.com>
2778 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
2779 (aarch64_cannot_fetch_register): Likewise.
2780 (struct linux_target_ops): Update references.
2782 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2784 * linux-ppc-low.c: Include nat/linux-ptrace.h.
2786 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2788 * configure.srv (ipa_ppc_linux_regobj): Add
2789 powerpc-isa207-htm-vsx32l-ipa.o and
2790 powerpc-isa207-htm-vsx64l-ipa.o.
2791 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
2792 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
2793 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
2794 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
2795 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
2796 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
2797 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
2798 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
2799 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2800 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
2801 (init_registers_powerpc_isa207_htm_vsx32l)
2802 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
2803 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
2804 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
2805 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
2806 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
2807 (ppc_store_tm_ctarregset): New functions.
2808 (ppc_regsets): Add entries for HTM regsets.
2809 (ppc_arch_setup): Set htm in features struct when needed. Set
2810 sizes for the HTM regsets.
2811 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
2812 (initialize_low_arch): Call
2813 init_registers_powerpc_isa207_htm_vsx32l and
2814 init_registers_powerpc_isa207_htm_vsx64l.
2815 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
2816 PPC_TDESC_ISA207_HTM_VSX.
2817 (initialize_low_tracepoint): Call
2818 init_registers_powerpc_isa207_htm_vsx32l and
2819 init_registers_powerpc_isa207_htm_vsx64l.
2821 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2823 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
2824 rs6000/power-linux-pmu.xml to srv_xmlfiles.
2825 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
2826 (ppc_store_pmuregset): New functions.
2827 (ppc_regsets): Add entries for ebb and pmu regsets.
2828 (ppc_arch_setup): Set isa207 in features struct if the ebb and
2829 pmu regsets are available. Set sizes for these regsets.
2831 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2833 * configure.srv (ipa_ppc_linux_regobj): Add
2834 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
2835 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
2836 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
2837 rs6000/powerpc-isa207-vsx32l.xml, and
2838 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
2839 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2840 <PPC_TDESC_ISA207_VSX>: New enum value.
2841 (init_registers_powerpc_isa207_vsx32l): Declare.
2842 (init_registers_powerpc_isa207_vsx64l): Declare.
2843 * linux-ppc-low.c (ppc_fill_tarregset): New function.
2844 (ppc_store_tarregset): New function.
2845 (ppc_regsets): Add entry for the TAR regset.
2846 (ppc_arch_setup): Set isa207 in features struct when needed. Set
2847 size for the TAR regsets.
2848 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
2849 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
2850 and init_registers_powerpc_isa207_vsx64l.
2851 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
2852 (initialize_low_tracepoint): Call
2853 init_registers_powerpc_isa207_vsx32l and
2854 init_registers_powerpc_isa207_vsx64l.
2856 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2857 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2859 * configure.srv (ipa_ppc_linux_regobj): Add
2860 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
2861 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
2862 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
2863 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
2864 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
2865 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
2866 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
2867 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2868 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
2869 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
2870 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
2871 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
2872 (ppc_hwcap): Add comment.
2873 (ppc_hwcap2): New global.
2874 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
2875 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
2876 (ppc_regsets): Add entries for the DSCR and PPR regsets.
2877 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
2878 when needed. Set sizes for the the DSCR and PPR regsets.
2879 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
2880 (initialize_low_arch): Call
2881 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
2882 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
2883 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
2884 PPC_TDESC_ISA205_PPR_DSCR_VSX.
2885 (initialize_low_tracepoint): Call
2886 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
2887 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
2889 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2891 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
2893 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
2894 Simon Marchi <simark@simark.ca>
2896 * acinclude.m4: Include "../selftest.m4".
2897 * configure: Regenerate.
2898 * configure.ac: Use "GDB_AC_SELFTEST".
2899 * configure.srv: Use "$enable_unittests" instead of
2900 "$development" when checking whether unit tests have been
2902 * server.c (captured_main): Update message informing that
2903 selftests have been disabled.
2905 2018-10-04 Tom Tromey <tom@tromey.com>
2907 * configure: Rebuild.
2909 2018-10-04 Tom Tromey <tom@tromey.com>
2911 * server.c (handle_status): Rename inner "thread".
2912 (process_serial_event): Declare "res" in 'm' case.
2913 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
2914 (iterate_over_lwps): Rename inner "thread".
2915 (linux_qxfer_libraries_svr4): Rename inner "len".
2916 * gdbthread.h (find_thread_in_random): Rename inner "thread".
2918 2018-10-01 Gary Benson <gbenson@redhat.com>
2920 * gdb_proc_service.h: Moved common code to
2921 common/gdb_proc_service.h.
2923 2018-10-01 Gary Benson <gbenson@redhat.com>
2925 * gdb_proc_service.h: Synchronize comments and whitespace with
2926 GDB's version of this file.
2928 2018-09-25 Tom Tromey <tom@tromey.com>
2930 * configure: Rebuild.
2931 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
2933 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2935 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
2936 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
2937 ($(IPA_LIB)): Sort IPA_OBJS.
2939 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2941 * Makefile.in: Remove references to $(ADD_DEPS).
2943 2018-09-16 Tom Tromey <tom@tromey.com>
2945 * remote-utils.c (remote_open): Use GNU style for metasyntactic
2947 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
2950 2018-09-05 Tom Tromey <tom@tromey.com>
2952 * configure: Rebuild.
2954 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2957 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
2959 2018-08-27 Tom Tromey <tom@tromey.com>
2962 * configure: Rebuild.
2964 2018-08-27 Tom Tromey <tom@tromey.com>
2966 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
2967 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
2968 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
2969 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
2970 (s390x_emit_stack_adjust): Add casts to unsigned char.
2972 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
2976 * server.h (struct client_state) <disable_randomization>:
2979 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2981 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
2983 (mips_supply_ptrace_register): Likewise.
2985 2018-07-22 Tom Tromey <tom@tromey.com>
2987 * configure: Rebuild.
2989 2018-07-22 Tom Tromey <tom@tromey.com>
2991 * win32-low.c (win32_create_inferior): Remove unused variables.
2992 * gdbreplay.c (remote_open): Remove unused variable.
2993 * remote-utils.c (remote_prepare): Remove unused variable.
2994 * x86-tdesc.h (X86_TDESC_H): Define.
2995 (amd64_expedite_regs): Define conditionally.
2996 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
2997 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
2998 * remote-utils.c (readchar): Remove unused variable.
3000 2018-07-13 Pedro Alves <palves@redhat.com>
3002 * linux-low.c (linux_kill): Change parameter to process_info
3003 pointer instead of pid. Adjust.
3004 * lynx-low.c (lynx_kill): Likewise.
3005 * nto-low.c (nto_kill): Likewise.
3006 * spu-low.c (spu_kill): Likewise.
3007 * win32-low.c (win32_kill): Likewise.
3008 * server.c (handle_v_kill, kill_inferior_callback)
3009 (detach_or_kill_for_exit): Adjust.
3010 * target.c (kill_inferior): Change parameter to process_info
3011 pointer instead of pid. Adjust.
3012 * target.h (struct target_ops) <kill>: Change parameter to
3013 process_info pointer instead of pid. Adjust all implementations
3015 (kill_inferior): Likewise.
3017 2018-07-13 Pedro Alves <palves@redhat.com>
3019 * linux-low.c (linux_detach, linux_join): Change parameter to
3020 process_info pointer instead of pid. Adjust.
3021 * lynx-low.c (lynx_detach, lynx_join): Likewise.
3022 * nto-low.c (nto_detach): Likewise.
3023 * spu-low.c (spu_detach, spu_join): Likewise.
3024 * win32-low.c (win32_detach, win32_join): Likewise.
3025 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
3026 * target.h (struct target_ops) <detach, join>: Change parameter to
3027 process_info pointer instead of pid. Adjust all implementations
3029 (detach_inferior, join_inferior): Rename 'pid' parameter to
3032 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3033 Jan Kratochvil <jan.kratochvil@redhat.com>
3034 Paul Fertser <fercerpav@gmail.com>
3035 Tsutomu Seki <sekiriki@gmail.com>
3037 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
3038 (OBS): Add 'common/netstuff.o'.
3039 (GDBREPLAY_OBS): Likewise.
3040 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
3041 (remote_open): Implement support for IPv6
3043 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
3045 (handle_accept_event): Accept connections from IPv6 sources.
3046 (remote_prepare): Handle IPv6-style hostnames; implement
3047 support for IPv6 connections.
3048 (remote_open): Implement support for printing connections from
3051 2018-07-11 Pedro Alves <palves@redhat.com>
3054 * mem-break.c (any_persistent_commands): Add process_info
3055 parameter and use it instead of relying on the current process.
3056 Change return type to bool.
3057 * mem-break.h (any_persistent_commands): Add process_info
3058 parameter and change return type to bool.
3059 * server.c (handle_detach): Remove require_running_or_return call.
3060 Look up the process_info for the process we're about to detach.
3061 If not found, return back error to GDB. Adjust
3062 any_persistent_commands call to pass down a process pointer.
3064 2018-07-11 Pedro Alves <palves@redhat.com>
3066 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
3067 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
3068 instead of collect_register_by_name.
3069 * regcache.c (regcache_raw_get_unsigned_by_name): New.
3070 * regcache.h (regcache_raw_get_unsigned_by_name): New.
3072 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
3073 Pedro Alves <palves@redhat.com>
3075 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
3077 2018-07-03 Tom Tromey <tom@tromey.com>
3079 * linux-low.c: Update.
3080 * lynx-low.c: Update.
3081 * mem-break.c: Update.
3082 * nto-low.c: Update.
3083 * remote-utils.c: Update.
3085 * spu-low.c: Update.
3087 * win32-low.c: Update.
3089 2018-07-03 Tom Tromey <tom@tromey.com>
3093 2018-07-03 Tom Tromey <tom@tromey.com>
3095 * linux-low.c: Update.
3097 2018-07-03 Tom Tromey <tom@tromey.com>
3101 2018-07-03 Tom Tromey <tom@tromey.com>
3103 * linux-low.c: Update.
3104 * linux-mips-low.c: Update.
3105 * lynx-low.c: Update.
3106 * nto-low.c: Update.
3107 * remote-utils.c: Update.
3109 * spu-low.c: Update.
3111 * thread-db.c: Update.
3113 2018-07-03 Tom Tromey <tom@tromey.com>
3115 * linux-low.c: Update.
3116 * linux-mips-low.c: Update.
3117 * lynx-low.c: Update.
3118 * mem-break.c: Update.
3119 * nto-low.c: Update.
3120 * remote-utils.c: Update.
3122 * spu-low.c: Update.
3124 * tracepoint.c: Update.
3126 2018-07-03 Tom Tromey <tom@tromey.com>
3128 * linux-low.c: Update.
3129 * linux-ppc-low.c: Update.
3130 * linux-x86-low.c: Update.
3131 * proc-service.c: Update.
3133 * spu-low.c: Update.
3134 * thread-db.c: Update.
3135 * win32-low.c: Update.
3137 2018-07-03 Tom Tromey <tom@tromey.com>
3139 * linux-low.c: Update.
3140 * lynx-low.c: Update.
3141 * nto-low.c: Update.
3142 * remote-utils.c: Update.
3143 * spu-low.c: Update.
3144 * thread-db.c: Update.
3145 * win32-low.c: Update.
3147 2018-06-29 Joel Brobecker <brobecker@adacore.com>
3149 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
3150 parameter in call to 'amd64_create_target_description'.
3152 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3154 * x86-tdesc.h: Remove executable permission flag.
3156 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
3158 * configure.ac: Remove AC_PREREQ, add missing quoting.
3159 * configure: Re-generate.
3160 * config.in: Re-generate.
3161 * aclocal.m4: Re-generate.
3163 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
3165 * tracepoint.h (current_traceframe): Remove declaration.
3167 2018-06-18 Alan Hayward <alan.hayward@arm.com>
3169 * linux-aarch64-low.c (is_sve_tdesc): New function.
3170 (aarch64_sve_regs_copy_to_regcache): Likewise.
3171 (aarch64_sve_regs_copy_from_regcache): Likewise.
3172 (aarch64_regs_info): Add SVE checks.
3173 (initialize_low_arch): Initialize SVE.
3175 2018-06-18 Alan Hayward <alan.hayward@arm.com>
3177 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
3179 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3181 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
3182 (initialize_low_tracepoint): Likewise
3183 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
3184 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
3186 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
3188 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
3190 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3192 * server.h (PBUFSIZ): Increase size
3194 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3196 * regcache.c (regcache::raw_compare): New function.
3197 * regcache.h (regcache::raw_compare): New declaration.
3199 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3201 * regcache.c (new_register_cache): Use new.
3202 (free_register_cache): Use delete.
3203 (register_data): Use const.
3204 (supply_register): Move body inside regcache.
3205 (regcache::raw_supply): New override function.
3206 (collect_register): Move body inside regcache.
3207 (regcache::raw_collect): New override function.
3208 (regcache::get_register_status): New override function.
3209 * regcache.h (struct regcache): Inherit from reg_buffer_common.
3211 2018-06-09 Tom Tromey <tom@tromey.com>
3213 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
3215 (event_queue): Use std::queue.
3216 (gdb_event_xfree): Remove.
3217 (initialize_event_loop, process_event, wait_for_event): Update.
3219 2018-06-08 Stan Cox <scox@redhat.com>
3221 * win32-low.c (win32_create_inferior): last_ptid and last_status
3222 moved to client_state.
3224 2018-06-08 Pedro Alves <palves@redhat.com>
3226 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
3227 common/common-exceptions.o, common/common-utils.o,
3228 common/errors.o, common/print-utils.o and utils.o.
3229 * gdbreplay.c: Include "common-defs.h" instead of the two
3230 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
3231 string.h or alloca.h.
3232 (perror_with_name): Delete.
3233 (remote_open): Use xstrdup instead of strdup.
3234 (main): Rename to ...
3235 (captured_main): ... this.
3238 2018-06-08 Tom Tromey <tom@tromey.com>
3240 * linux-low.c (linux_low_read_btrace): Update.
3242 2018-06-04 Stan Cox <scox@redhat.com>
3244 * server.h (struct client_state): New.
3245 * server.c (cont_thread, general_thread, multi_process)
3246 (report_fork_events, report_vfork_events, report_exec_events)
3247 (report_thread_events, swbreak_feature, hwbreak_feature)
3248 (vCont_supported, disable_randomization, pass_signals)
3249 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
3250 Moved to client_state.
3251 * remote-utils.c (remote_debug, noack_mode)
3252 (transport_is_reliable): Moved to client_state.
3253 * tracepoint.c (current_traceframe): Moved to client_state.
3256 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
3257 linux-low.c, remote-utils.h, target.c: Use client_state.
3259 2018-05-31 Alan Hayward <alan.hayward@arm.com>
3261 * configure.srv: Add new c/h file.
3263 2018-05-31 Alan Hayward <alan.hayward@arm.com>
3265 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
3268 2018-05-25 Maciej W. Rozycki <macro@mips.com>
3270 * gdb.arch/mips-fpregset-core.exp: New test.
3271 * gdb.arch/mips-fpregset-core.c: New test source.
3273 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
3276 * hostio.c (require_int): Do not report overflow for integers
3277 between 0xfffffff and 0x7fffffff.
3279 2018-05-22 Maciej W. Rozycki <macro@mips.com>
3281 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
3282 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
3283 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
3285 (the_low_target): Wire them.
3287 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3289 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
3290 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
3291 mode. Call collect_register_by_name with vscr using
3292 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
3293 (ppc_store_vrregset): Add and set vscr_offset variable as in
3294 ppc_fill_vrregset. Call supply_register_by_name with vscr using
3297 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3299 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
3300 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
3301 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
3303 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3305 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
3306 (ppc_store_vsxregset): Likewise.
3307 (ppc_fill_vrregset): Likewise.
3308 (ppc_store_vrregset): Likewise.
3309 (ppc_fill_evrregset): Likewise.
3310 (ppc_store_evrregset): Likewise.
3311 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
3312 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
3315 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3317 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
3318 wordsize of the inferior. Call ppc_linux_target_wordsize.
3320 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3322 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
3323 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
3324 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
3325 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
3326 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
3327 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
3328 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
3329 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
3330 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
3331 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
3332 (tdesc_powerpc_e500l): Remove.
3333 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
3334 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
3335 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
3336 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
3338 (ppc_arch_setup): Remove target description matching code. Fill a
3339 ppc_linux_features struct and call ppc_linux_match_description
3342 2018-05-22 Maciej W. Rozycki <macro@mips.com>
3344 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
3345 width of the requested register exceeds the width of the
3347 (mips_cannot_store_register): Likewise.
3349 2018-05-21 Maciej W. Rozycki <macro@mips.com>
3351 * linux-mips-low.c (mips_fetch_register): New function. Update
3353 (mips_store_gregset): Supply 0 rather than $restart for $zero.
3354 (the_low_target): Wire `mips_fetch_register'.
3356 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3358 * lynx-i386-low.c (LYNXOS_178): New macro.
3359 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
3360 the layout on LynxOS-178.
3361 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
3362 handle floating point registers that are not supported by
3365 2018-05-10 Tom Tromey <tom@tromey.com>
3367 * configure: Rebuild.
3369 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3372 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
3373 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
3374 Use it to set the expedite_regs field in the given tdesc.
3375 * x86-tdesc.h: New file.
3376 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
3377 Adjust following the addition of the new expedite_regs parameter
3378 to init_target_desc.
3379 * linux-tic6x-low.c (tic6x_read_description): Likewise.
3380 * linux-x86-tdesc.c: #include "x86-tdesc.h".
3381 (i386_linux_read_description, amd64_linux_read_description):
3382 Adjust following the addition of the new expedite_regs parameter
3383 to init_target_desc.
3384 * lynx-i386-low.c: #include "x86-tdesc.h".
3385 (lynx_i386_arch_setup): Adjust following the addition of the new
3386 expedite_regs parameter to init_target_desc.
3387 * nto-x86-low.c: #include "x86-tdesc.h".
3388 (nto_x86_arch_setup): Adjust following the addition of the new
3389 expedite_regs parameter to init_target_desc.
3390 * win32-i386-low.c: #include "x86-tdesc.h".
3391 (i386_arch_setup): Adjust following the addition of the new
3392 expedite_regs parameter to init_target_desc.
3394 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3397 * win32-low.c (win32_create_inferior): Add call to my_wait
3398 setting last_status global.
3400 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3403 * win32-low.c (create_process): Only call gdb_tilde_expand if
3404 inferior_cwd is not NULL.
3406 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
3408 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
3409 registers to the cache if their values have changed.
3410 (i387_xsave_to_cache): Provide default values for x87 control
3411 registers when these features are available, but disabled.
3412 * regcache.c (supply_register_by_name_zeroed): New function.
3413 * regcache.h (supply_register_by_name_zeroed): Declare new
3416 2018-05-07 Tom Tromey <tom@tromey.com>
3418 * configure: Rebuild.
3420 2018-05-04 Tom Tromey <tom@tromey.com>
3422 * configure: Rebuild.
3424 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3425 Pedro Alves <palves@redhat.com>
3427 * linux-aarch64-low.c (aarch64_stopped_data_address):
3430 2018-04-27 Tom Tromey <tom@tromey.com>
3432 * configure: Rebuild.
3434 2018-04-23 Tom Tromey <tom@tromey.com>
3436 * configure: Rebuild.
3438 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
3440 * Makefile.in (depcomp): Add "..".
3441 (all_deps_files): New and use it.
3443 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3445 * configure.srv (aarch64*-*-linux*): Don't include xml.
3446 (i[34567]86-*-cygwin*): Likewise.
3447 (i[34567]86-*-linux*): Likewise.
3448 (i[34567]86-*-lynxos*): Likewise.
3449 (i[34567]86-*-mingw32ce*): Likewise.
3450 (i[34567]86-*-mingw*): Likewise.
3451 (i[34567]86-*-nto*): Likewise.
3452 (tic6x-*-uclinux): Likewise.
3453 (x86_64-*-linux*): Likewise.
3454 (x86_64-*-mingw*): Likewise.
3455 (x86_64-*-cygwin*): Likewise.
3457 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3459 * tdesc.c: Remove xml parameter.
3461 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3463 * server.c (get_features_xml): Remove cast.
3464 * tdesc.c (void target_desc::accept): Fill in function.
3465 (tdesc_get_features_xml): Remove old xml creation.
3466 (print_xml_feature::visit_pre): Add xml vistor.
3467 * tdesc.h (struct target_desc): Make xmltarget mutable.
3468 (tdesc_get_features_xml): Remove declaration.
3470 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3472 * tdesc.c (tdesc_architecture_name): Add new function.
3473 (tdesc_osabi_name): Likewise.
3474 (tdesc_get_features_xml): Use new functions.
3476 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3478 * tdesc.c (tdesc_create_flags): Remove.
3479 (tdesc_add_flag): Likewise.
3480 (tdesc_named_type): Likewise.
3481 (tdesc_create_union): Likewise.
3482 (tdesc_create_struct): Likewise.
3483 (tdesc_create_vector): Likewise.
3484 (tdesc_add_bitfield): Likewise.
3485 (tdesc_add_field): Likewise.
3486 (tdesc_set_struct_size): Likewise.
3488 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3490 * tdesc.c (~target_desc): Remove implictly deleted items.
3491 (init_target_desc): Iterate all features.
3492 (tdesc_get_features_xml): Use vector.
3493 (tdesc_create_feature): Create feature.
3494 * tdesc.h (tdesc_feature) Remove
3495 (target_desc): Add features.
3497 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3499 * Makefile.in: Add common/tdesc.c
3500 * tdesc.c (init_target_desc): init all reg_defs from register
3502 (tdesc_create_reg): Create tdesc_reg.
3503 * tdesc.h (tdesc_feature): Add register vector.
3505 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
3507 * tdesc.h (struct target_desc) <features>: Change type to
3508 std::vector<std::string>.
3509 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
3511 (tdesc_get_features_xml): Likewise.
3512 (tdesc_create_feature): Likewise.
3514 2018-03-26 Alan Hayward <alan.hayward@arm.com>
3516 * regcache.c (find_register_by_number): Return a ref.
3517 (find_regno): Use references.
3518 (register_size): Likewise.
3519 (register_data): Likewise.
3520 * tdesc.c (target_desc::~target_desc): Remove free calls.
3521 (target_desc::operator==): Use std::vector compare.
3522 (init_target_desc): Use reference.
3523 (tdesc_create_reg): Use reg constructors.
3524 * tdesc.h (struct target_desc): Replace pointer with object.
3526 2018-03-23 Alan Hayward <alan.hayward@arm.com>
3528 * regcache.c (find_register_by_number): Make static.
3529 (find_regno): Use find_register_by_number
3530 * regcache.h (struct reg): Remove declaration.
3532 2018-03-23 Alan Hayward <alan.hayward@arm.com>
3534 * tdesc.c (target_desc::~target_desc): Move to here.
3535 (target_desc::operator==): Likewise.
3536 * tdesc.h (target_desc::~target_desc): Move from here.
3537 (target_desc::operator==): Likewise.
3539 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
3541 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
3543 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3545 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
3547 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
3548 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
3549 and init_registers_s390_gs_linux64.
3551 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3553 * linux-s390-low.c (s390_fill_gs): Remove function.
3554 (s390_fill_gsbc): Remove function.
3555 (s390_regsets): Set fill functions for the guarded storage regsets
3558 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3560 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
3561 the word size. Add comment.
3562 (s390_get_wordsize): New function.
3563 (s390_arch_setup): No longer select a temporary tdesc to fetch the
3564 pswm with it. Instead, use s390_get_wordsize to determine the
3565 word size first and derive the correct tdesc from that directly.
3567 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
3569 * Makefile.in: Include silent-rules.mk.
3570 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
3571 (COMPILE): Add ECHO_CXX.
3572 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
3573 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
3574 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
3575 (version-generated.c): Add ECHO_GEN.
3576 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
3577 (IPAGENT_COMPILE): Add ECHO_CXX.
3578 (%-generated.c): Add ECHO_REGDAT.
3580 2018-03-14 Tom Tromey <tom@tromey.com>
3583 * ax.c (ax_printf): Special case for NULL.
3585 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
3587 * linux-low.c (linux_qxfer_libraries_svr4): Use
3588 xml_escape_text_append.
3590 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
3592 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
3594 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3596 * server.c (handle_general_set): Remove unnecessary xstrdup.
3598 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3600 * server.c (parse_debug_format_options): Adjust to
3601 delim_string_to_char_ptr_vec changes.
3602 * thread-db.c (thread_db_load_search): Adjust to
3603 dirnames_to_char_ptr_vec changes.
3605 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
3607 * target.h (target_enable_btrace, target_disable_btrace)
3608 (target_read_btrace, target_read_btrace_conf): Turn macro into
3609 inline function. Throw error if target method is not defined.
3610 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
3611 check for btrace target method. Be prepared to handle exceptions
3612 from btrace target methods.
3614 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3616 * server.c (captured_main): Change order of error message printed
3617 when the current working directory cannot be found.
3619 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3621 * server.c: Include "filenames.h" and "pathstuff.h".
3622 (program_name): Delete variable.
3623 (program_path): New anonymous class.
3624 (get_exec_wrapper): Use "program_path" instead of
3626 (handle_v_run): Likewise.
3627 (captured_main): Likewise.
3628 (process_serial_event): Likewise.
3630 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3632 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
3633 (OBJS): Add "pathstuff.o".
3634 * server.c (current_directory): New global variable.
3635 (captured_main): Initialize "current_directory".
3637 2018-02-26 Alan Hayward <alan.hayward@arm.com>
3639 * tdesc.c: Use common/tdesc.h.
3640 * tdesc.h: Likewise.
3642 2018-02-20 Alan Hayward <alan.hayward@arm.com>
3643 Simon Marchi <simon.marchi@ericsson.com>
3645 * Makefile.in: Switch order of make rules.
3647 2018-02-19 Alan Hayward <alan.hayward@arm.com>
3649 * Makefile.in: Add common directory in build.
3650 * configure.ac: Add common reference.
3651 * configure: Regenerate.
3653 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
3655 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
3656 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
3657 * spu-low.c (spu_target_ops): Likewise.
3658 * win32-low.c (win32_target_ops): Likewise.
3659 * server.c (supported_btrace_packets): Report packets unconditionally.
3660 * target.h (target_ops) <supports_btrace>: Remove.
3661 (target_supports_btrace): Remove.
3663 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
3665 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
3666 (handle_btrace_disable): Change return type to void. Use exceptions
3668 (handle_btrace_general_set): Catch exception and copy message to
3671 2018-02-08 Tom Tromey <tom@tromey.com>
3673 * linux-low.c (install_software_single_step_breakpoints): Use
3674 make_scoped_restore.
3675 * inferiors.c (make_cleanup_restore_current_thread): Remove.
3676 (do_restore_current_thread_cleanup): Remove.
3677 * gdbthread.h (make_cleanup_restore_current_thread): Don't
3680 2018-02-08 Tom Tromey <tom@tromey.com>
3682 * mem-break.c (set_raw_breakpoint_at): Use
3683 gdb::unique_xmalloc_ptr.
3685 2018-01-30 Pedro Alves <palves@redhat.com>
3688 * target.c (target_terminal::terminal_state): Rename to ...
3689 (target_terminal::m_terminal_state): ... this.
3691 2018-01-19 James Clarke <jrtc27@jrtc27.com>
3693 * linux-low.c (handle_extended_wait): Surround call to
3694 thread_db_notice_clone with #ifdef USE_THREAD_DB.
3696 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
3698 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
3699 linux_ptrace_attach_fail_reason_string now returning an
3701 (linux_attach): Likewise.
3702 * thread-db.c (attach_thread): Likewise.
3704 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
3707 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
3708 checking for fs_base/gs_base fields in struct user_regs_struct.
3709 * configure: Regenerate.
3711 2018-01-16 Yao Qi <yao.qi@linaro.org>
3714 * linux-low.c (fetch_register): Call supply_register instead of
3717 2018-01-08 Yao Qi <yao.qi@linaro.org>
3718 Simon Marchi <simon.marchi@ericsson.com>
3720 * Makefile.in (OBS): Remove selftest.o.
3721 * configure.ac: Set srv_selftest_objs if $development is true.
3722 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
3723 * configure: Re-generated.
3724 * server.c (captured_main): Wrap variable selftest_filter with
3727 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3729 * server.c (parse_debug_format_options): Return std::string.
3730 (handle_monitor_command, captured_main): Adjust.
3732 2018-01-05 Pedro Alves <palves@redhat.com>
3735 * server.c (captured_main): Pass quiet=false to
3736 save_original_signals_state.
3738 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3740 * gdbreplay.c (gdbreplay_version): Update copyright year in
3742 * server.c (gdbserver_version): Likewise.
3744 2017-12-08 Tom Tromey <tom@tromey.com>
3746 * ax.c (ax_printf): Update.
3748 2017-12-07 Yao Qi <yao.qi@linaro.org>
3750 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
3751 aarch64_linux_read_description.
3752 * linux-amd64-ipa.c (idx2mask): New array.
3753 (get_ipa_tdesc): Move idx2mask out.
3754 (initialize_low_tracepoint): Initialize target descriptions.
3755 * linux-i386-ipa.c (idx2mask): New array.
3756 (get_ipa_tdesc): Move idx2mask out.
3757 (initialize_low_tracepoint): Initialize target descriptions.
3759 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
3761 * tdesc.c (struct tdesc_type): Change return type.
3762 (tdesc_add_flag): Change parameter type.
3763 (tdesc_add_bitfield): Likewise.
3764 (tdesc_add_field): Likewise.
3765 (tdesc_set_struct_size): Likewise.
3767 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
3769 * regcache.c (registers_to_string): Remove unused variable.
3771 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3773 * inferiors.c (for_each_inferior_with_data): Remove.
3774 * inferiors.h (for_each_inferior_with_data): Remove.
3775 * server.c (handle_qxfer_threads_worker): Change parameter type.
3776 (handle_qxfer_threads_proper): Use for_each_thread.
3778 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3780 * inferiors.c (for_each_inferior): Remove.
3781 (clear_inferiors): Use for_each_thread.
3782 * inferiors.h (for_each_inferior): Remove.
3783 * linux-low.c (linux_wait_for_event_filtered): Use
3785 (linux_stabilize_threads): Likewise.
3786 * regcache.c (regcache_release): Likewise.
3787 * server.c (gdb_wants_all_threads_stopped): Likewise.
3788 (clear_pending_status_callback): Remove.
3789 (handle_status): Use for_each_thread.
3790 (captured_main): Likewise.
3791 * win32-low.c (child_init_thread_list): Likewise.
3792 (win32_clear_inferiors): Likewise.
3793 (fake_breakpoint_event): Likewise.
3795 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3797 * inferiors.h (find_inferior): Remove.
3798 * inferiors.c (find_inferior): Remove.
3800 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3802 * linux-low.c (resume_status_pending_p): Update comment.
3803 (need_step_over_p): Update comment.
3805 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3807 * linux-low.c (proceed_one_lwp): Return void, change parameter
3809 (unsuspend_and_proceed_one_lwp): Likewise.
3810 (proceed_all_lwps): Use for_each_thread.
3811 (unstop_all_lwps): Likewise.
3813 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3815 * linux-low.c (linux_resume_one_thread): Return void, take
3817 (linux_resume): Use for_each_thread.
3819 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3821 * linux-low.c (send_sigstop_callback): Return void, change
3822 parameter type. Rename to...
3823 (send_sigstop): ... this.
3824 (suspend_and_send_sigstop_callback): Return void, change parameter
3826 (suspend_and_send_sigstop): ... this.
3827 (stop_all_lwps): Use for_each_thread.
3829 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3831 * linux-low.c (lwp_running): Return bool, remove unused
3833 (linux_stabilize_threads): Use find_thread.
3835 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3837 * linux-low.c (select_singlestep_lwp_callback): Remove.
3838 (count_events_callback): Remove.
3839 (select_event_lwp_callback): Remove.
3840 (select_event_lwp): Use find_thread/for_each_thread.
3842 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3844 * linux-low.c (not_stopped_callback): Return bool, take filter
3846 (linux_wait_for_event_filtered): Use find_thread.
3847 (linux_wait_1): Likewise.
3849 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3851 * linux-low.c (same_lwp): Remove.
3852 (find_lwp_pid): Use find_thread.
3854 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3856 * linux-low.c (delete_lwp_callback): Remove.
3857 (linux_mourn): Use for_each_thread.
3859 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3861 * linux-low.c (linux_detach_lwp_callback): Return void, remove
3862 args parameter, don't check for pid.
3863 (linux_detach): Use for_each_thread.
3865 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3867 * linux-low.c (struct counter): Remove.
3868 (second_thread_of_pid_p): Remove.
3869 (last_thread_of_process_p): Use find_thread.
3871 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3873 * inferiors.c (find_inferior_in_random): Remove.
3874 * inferiors.h (find_inferior_in_random): Remove.
3875 * linux-low.c (status_pending_p_callback): Return bool, accept
3876 parameter ptid directly.
3877 (linux_wait_for_event_filtered): Use find_thread_in_random.
3878 (linux_wait_1): Likewise.
3880 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3882 * inferiors.c (find_inferior_id): Remove.
3883 (find_thread_ptid): Move implemention from find_inferior_id to
3885 * inferiors.h (find_inferior_id): Remove.
3886 * server.c (handle_status): Use find_thread_ptid.
3887 (process_serial_event): Likewise.
3888 * thread-db.c (find_one_thread): Likewise.
3889 (thread_db_thread_handle): Likewise.
3890 * win32-low.c (thread_rec): Likewise.
3891 (child_delete_thread): Likewise.
3892 (win32_thread_alive): Likewise.
3893 (get_child_debug_event): Likewise.
3895 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3897 * linux-mips-low.c (update_watch_registers_callback): Return
3898 void, remove pid_p parameter, don't check for pid.
3899 (mips_insert_point, mips_remove_point): Use for_each_thread.
3901 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3903 * lynx.low (lynx_delete_thread_callback): Remove.
3904 (lynx_mourn): Use for_each_thread.
3906 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3908 * regcache.c (regcache_invalidate_one): Remove.
3909 (regcache_invalidate_pid): use for_each_thread.
3911 2017-11-26 Tom Tromey <tom@tromey.com>
3913 * linux-low.c (linux_create_inferior): Update.
3915 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
3917 * spu-low.c (spu_create_inferior): Fix typo in argument name.
3919 2017-11-24 Alan Hayward <alan.hayward@arm.com>
3921 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
3922 * linux-aarch64-low.c (initialize_low_arch): Call init func.
3923 * linux-aarch64-tdesc-selftest.c: New file.
3924 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
3926 2017-11-24 Alan Hayward <alan.hayward@arm.com>
3928 * configure.srv: Add new file.
3929 * linux-aarch64-low.c (initialize_low_arch): Call init func.
3930 * linux-aarch64-tdesc-selftest.c: New file.
3931 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
3933 2017-11-24 Alan Hayward <alan.hayward@arm.com>
3935 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
3936 * linux-aarch64-low.c (initialize_low_arch): Remove init.
3937 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
3939 2017-11-24 Alan Hayward <alan.hayward@arm.com>
3941 * configure.srv: Add new files.
3942 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
3943 aarch64_linux_read_description.
3944 * linux-aarch64-low.c (aarch64_linux_read_description):
3945 Merge with aarch64_arch_setup.
3946 (aarch64_arch_setup): Call aarch64_linux_read_description.
3947 * linux-aarch64-tdesc.c: New file.
3948 * linux-aarch64-tdesc.h: New file.
3950 2017-11-24 Yao Qi <yao.qi@linaro.org>
3952 * configure.srv: Set $srv_regobj for tic6x-linux.
3953 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
3954 (tic6x_read_description): Move some code to tic6x_arch_setup.
3955 (tic6x_tdesc_test): New function.
3956 (initialize_low_arch): Call selftests::register_test.
3958 2017-11-22 Yao Qi <yao.qi@linaro.org>
3960 * remote-utils.c (prepare_resume_reply): Use memcpy.
3962 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3964 * linux-low.c (kill_one_lwp_callback): Return void, take
3965 argument directly, don't filter on pid.
3966 (linux_kill): Use for_each_thread.
3968 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3970 * linux-low.c (need_step_over_p): Return bool, remove dummy
3972 (linux_resume, proceed_all_lwps): Use find_thread.
3974 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3976 * linux-low.c (resume_status_pending_p): Return bool, remove
3978 (linux_resume): Use find_thread.
3980 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3982 * linux-low.c (struct thread_resume_array): Remove.
3983 (linux_set_resume_request): Return void, take arguments
3985 (linux_resume): Use for_each_thread.
3987 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3989 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
3990 return bool, remove data argument.
3991 (linux_stabilize_threads): Use find_thread.
3993 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3995 * linux-low.c (unsuspend_one_lwp): Remove.
3996 (unsuspend_all_lwps): Use for_each_thread, inline code from
3999 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4001 * gdbthread.h (find_thread): Add overload with ptid_t filter.
4002 * linux-low.c (struct iterate_over_lwps_args): Remove.
4003 (iterate_over_lwps_filter): Remove.
4004 (iterate_over_lwps): Use find_thread.
4006 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4008 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
4009 (linux_handle_new_gdb_connection): Use for_each_thread, inline
4010 code from reset_lwp_ptrace_options_callback.
4012 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4014 * linux-arm-low.c (struct update_registers_data): Remove.
4015 (update_registers_callback): Return void, take arguments
4016 directly, don't check thread's pid.
4017 (arm_insert_point, arm_remove_point): Use for_each_thread.
4019 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4021 * win32-low.c (continue_one_thread): Return void, take argument
4023 (child_continue): Use for_each_thread.
4025 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4027 * win32-i386-low.c (update_debug_registers_callback): Rename
4029 (update_debug_registers): ... this, return void, remove pid_p arg.
4030 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
4032 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
4034 * inferiors.h (struct process_info): Add constructor, initialize
4036 <syscalls_to_catch>: Change type to std::vector<int>.
4037 * inferiors.c (add_process): Allocate process_info with new.
4038 (remove_process): Free process_info with delete.
4039 * linux-low.c (handle_extended_wait): Adjust.
4040 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
4041 * server.c (handle_general_set): Adjust.
4043 2017-11-16 Pedro Alves <palves@redhat.com>
4045 * remote-utils.c (remote_close): Block SIGIO signals instead of
4046 uninstalling the SIGIO handler.
4048 2017-11-16 Alan Hayward <alan.hayward@arm.com>
4050 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
4052 2017-11-16 Yao Qi <yao.qi@linaro.org>
4054 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
4055 (tic6x_store_gregset): Likewise.
4056 (tic6x_usrregs_info): Move it up.
4058 2017-11-15 Alan Hayward <alan.hayward@arm.com>
4060 * Makefile.in: Update arch rules.
4061 * configure.srv: Explicitly mark arch/ files.
4063 2017-11-13 Andreas Schwab <schwab@suse.de>
4065 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
4067 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4069 2017-11-06 Pedro Alves <palves@redhat.com>
4071 * config.in, configure: Regenerate.
4073 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4075 * target.c (struct thread_search): Remove.
4076 (thread_search_callback): Remove.
4077 (prepare_to_access_memory): Use for_each_thread instead of
4078 find_inferior. Inline code from thread_search_callback.
4080 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4082 * server.c (struct visit_actioned_threads_data): Remove.
4083 (visit_actioned_threads): Change prototype to take arguments
4085 (resume): Use find_thread instead of find_inferior.
4087 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4089 * server.c (queue_stop_reply_callback): Change prototype, return
4091 (find_status_pending_thread_callback): Remove.
4092 (handle_status): Replace find_inferior with find_thread and
4095 2017-10-25 Alan Hayward <alan.hayward@arm.com>
4097 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
4099 (aarch64_store_gregset): Likewise.
4100 (aarch64_fill_fpregset): Likewise.
4101 (aarch64_store_fpregset): Likewise.
4103 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4105 * gdbthread.h (find_thread, for_each_thread): New functions.
4106 * inferiors.c (thread_of_pid): Remove.
4107 (find_any_thread_of_pid): Use find_thread.
4108 * linux-low.c (num_lwps): Use for_each_thread.
4110 2017-10-17 Yao Qi <yao.qi@linaro.org>
4112 * Makefile.in: Remove one rule.
4113 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
4115 2017-10-17 Yao Qi <yao.qi@linaro.org>
4117 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
4118 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
4120 2017-10-17 Yao Qi <yao.qi@linaro.org>
4122 * configure.srv: Rename arm.o with arch/arm.o.
4124 2017-10-17 Yao Qi <yao.qi@linaro.org>
4126 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
4127 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
4128 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
4129 (arch-i386.o, arch-amd64.o): Remove rules.
4130 (arch/%.o): New rule.
4131 Update POSTCOMPILE and COMPILE.pre.
4132 * configure.ac: Invoke AC_CONFIG_COMMANDS.
4133 * configure: Re-generated.
4134 * configure.srv: Replace arch-i386.o with arch/i386.o.
4135 Replace arch-amd64.o with arch/amd64.o.
4137 2017-10-16 Yao Qi <yao.qi@linaro.org>
4139 * configure: Regenerated.
4141 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4143 * inferiors.h: (struct inferior_list): Remove.
4144 (struct inferior_list_entry); Remove.
4145 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
4146 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
4147 get_first_inferior): Remove.
4148 (for_each_inferior, for_each_inferior_with_data, find_inferior,
4149 find_inferior_id, find_inferior_in_random): Change signature.
4150 * inferiors.c (all_threads): Change type to
4151 std::list<thread_info *>.
4152 (get_thread): Remove macro.
4153 (find_inferior, find_inferior_id): Change signature, implement
4155 (find_inferior_in_random): Change signature, implement using
4156 find_thread_in_random.
4157 (for_each_inferior, for_each_inferior_with_data): Change
4158 signature, implement using for_each_thread.
4159 (add_inferior_to_list, remove_inferior): Remove.
4160 (add_thread, get_first_thread, thread_of_pid,
4161 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
4162 (get_first_inferior, one_inferior_p, clear_inferior_list):
4164 (clear_inferiors, get_thread_process): Update.
4165 * gdbthread.h: Include <list>.
4166 (struct thread_info) <entry>: Remove field.
4168 (all_threads): Change type to std::list<thread_info *>.
4169 (get_first_inferior): Add doc.
4170 (find_thread, for_each_thread, find_thread_in_random): New
4172 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
4173 * linux-arm-low.c (update_registers_callback): Update.
4174 * linux-low.c (second_thread_of_pid_p): Update.
4175 (kill_one_lwp_callback, linux_detach_lwp_callback,
4176 delete_lwp_callback, status_pending_p_callback, same_lwp,
4177 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
4178 iterate_over_lwps, not_stopped_callback,
4179 resume_stopped_resumed_lwps, count_events_callback,
4180 select_singlestep_lwp_callback, select_event_lwp_callback,
4181 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
4182 suspend_and_send_sigstop_callback, wait_for_sigstop,
4183 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
4184 lwp_running, linux_set_resume_request, resume_status_pending_p,
4185 need_step_over_p, start_step_over, linux_resume_one_thread,
4186 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
4187 reset_lwp_ptrace_options_callback): Update.
4188 * linux-mips-low.c (update_watch_registers_callback): Update.
4189 * regcache.c (regcache_invalidate_one, regcache_invalidate):
4191 (free_register_cache_thread_one): Remove.
4192 (regcache_release): Update.
4193 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
4194 handle_qxfer_threads_worker): Update.
4195 (handle_query): Update, use list iterator.
4196 (visit_actioned_threads, handle_pending_status,
4197 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
4198 clear_pending_status_callback, set_pending_status_callback,
4199 find_status_pending_thread_callback, handle_status,
4200 process_serial_event): Update.
4201 * target.c (thread_search_callback): Update.
4202 * thread-db.c (thread_db_get_tls_address): Update.
4203 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
4205 * win32-i386-low.c (update_debug_registers_callback): Update.
4206 * win32-low.c (delete_thread_info, child_delete_thread,
4207 continue_one_thread, suspend_one_thread,
4208 get_child_debug_event): Adjust.
4210 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4212 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
4213 * inferiors.h: Include <list>.
4214 (struct process_info) <entry>: Remove field.
4216 (pid_of): Change macro to function.
4217 (ptid_of, lwpid_of): Remove macro.
4218 (all_processes): Change type to std::list<process_info *>.
4219 (ALL_PROCESSES): Remove macro.
4220 (for_each_process, find_process): New function.
4221 * inferiors.c (all_processes): Change type to
4222 std::list<process_info *>.
4223 (find_thread_process): Adjust.
4224 (add_process): Likewise.
4225 (remove_process): Likewise.
4226 (find_process_pid): Likewise.
4227 (get_first_process): Likewise.
4228 (started_inferior_callback): Remove.
4229 (have_started_inferiors_p): Adjust.
4230 (attached_inferior_callback): Remove.
4231 (have_attached_inferiors_p): Adjust.
4232 * linux-low.c (check_zombie_leaders): Likewise.
4233 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
4234 (x86_linux_update_xmltarget): Adjust.
4235 * server.c (handle_query): Likewise.
4236 (gdb_reattached_process): Remove.
4237 (handle_status): Adjust.
4238 (kill_inferior_callback): Likewise.
4239 (detach_or_kill_inferior): Remove.
4240 (print_started_pid): Likewise.
4241 (print_attached_pid): Likewise.
4242 (detach_or_kill_for_exit): Update.
4243 (process_serial_event): Likewise.
4244 * linux-arm-low.c (arm_new_fork): Likewise.
4246 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4248 * dll.h: Include <list>.
4249 (struct dll_info): Add constructor.
4250 <entry>: Remove field.
4251 (all_dlls): Change type to std::list<dll_info>.
4252 * dll.c: Include <algorithm>.
4253 (get_dll): Remove macro.
4254 (all_dlls): Change type to std::list<dll_info *>.
4255 (free_one_dll): Remove.
4256 (match_dll): Likewise.
4257 (loaded_dll): Adjust.
4258 (unloaded_dll): Adjust to all_dlls type change, use
4259 std::find_if. Inline code from match_dll.
4260 (clear_dlls): Adjust to all_dlls type change.
4261 * server.c (emit_dll_description): Remove.
4262 (handle_qxfer_libraries): Adjust to all_dlls type change,
4263 integrate emit_dll_description's functionality.
4265 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4267 * linux-low.h (struct linux_target_ops) <delete_process>: New
4269 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
4270 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
4271 (struct linux_target_ops): Add delete_process callback.
4272 * linux-arm-low.c (arm_delete_process): New.
4273 (struct linux_target_ops): Add delete_process callback.
4274 * linux-bfin-low.c (struct linux_target_ops): Likewise.
4275 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
4276 * linux-m32r-low.c (struct linux_target_ops): Likewise.
4277 * linux-mips-low.c (mips_linux_delete_process): New.
4278 (struct linux_target_ops): Add delete_process callback.
4279 * linux-ppc-low.c (struct linux_target_ops): Likewise.
4280 * linux-s390-low.c (struct linux_target_ops): Likewise.
4281 * linux-sh-low.c (struct linux_target_ops): Likewise.
4282 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
4283 * linux-tile-low.c (struct linux_target_ops): Likewise.
4284 * linux-x86-low.c (x86_linux_delete_process): New.
4285 (struct linux_target_ops): Add delete_process callback.
4286 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
4288 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4290 * linux-aarch64-low.c (the_low_target): Add thread delete
4292 * linux-arm-low.c (arm_delete_thread): New function.
4293 (the_low_target): Add thread delete callback.
4294 * linux-bfin-low.c (the_low_target): Likewise.
4295 * linux-crisv32-low.c (the_low_target): Likewise.
4296 * linux-low.c (delete_lwp): Invoke delete_thread callback if
4298 * linux-low.h (struct linux_target_ops) <delete_thread>: New
4300 * linux-m32r-low.c (the_low_target): Add thread delete callback.
4301 * linux-mips-low.c (mips_linux_delete_thread): New function.
4302 (the_low_target): Add thread delete callback.
4303 * linux-ppc-low.c (the_low_target): Likewise.
4304 * linux-s390-low.c (the_low_target): Likewise.
4305 * linux-sh-low.c (the_low_target): Likewise.
4306 * linux-tic6x-low.c (the_low_target): Likewise.
4307 * linux-tile-low.c (the_low_target): Likewise.
4308 * linux-x86-low.c (the_low_target): Likewise.
4309 * linux-xtensa-low.c (the_low_target): Likewise.
4311 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
4313 * win32-low.c: Include "common-inferior.h".
4315 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4317 * inferiors.c (set_inferior_cwd): New function.
4318 * server.c (handle_general_set): Handle QSetWorkingDir packet.
4319 (handle_query): Inform that QSetWorkingDir is supported.
4320 * win32-low.c (create_process): Pass the inferior's cwd to
4323 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4325 * inferiors.c (current_inferior_cwd): New global variable.
4326 (get_inferior_cwd): New function.
4327 * inferiors.h (struct process_info) <cwd>: New field.
4329 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4331 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
4332 (OBS): Add gdb_tilde_expand.o.
4334 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
4336 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
4337 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4339 2017-09-29 Pedro Alves <palves@redhat.com>
4341 * ax.c (gdb_parse_agent_expr): Constify.
4342 * ax.h (gdb_parse_agent_expr): Constify.
4343 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
4345 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
4346 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
4347 * remote-utils.h (read_ptid): Constify.
4348 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
4349 (process_point_options, process_serial_event): Constify.
4350 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
4351 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
4352 (cmd_qtbuffer): Constify.
4354 2017-09-29 Pedro Alves <palves@redhat.com>
4356 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
4359 2017-09-29 Pedro Alves <palves@redhat.com>
4361 * linux-low.c (handle_extended_wait): Pass parent thread instead
4362 of process to thread_db_notice_clone.
4363 * linux-low.h (thread_db_notice_clone): Replace parent process
4364 parameter with parent thread parameter.
4365 * thread-db.c (find_one_thread): Add comment.
4366 (thread_db_notice_clone): Replace parent process parameter with
4367 parent thread parameter. Temporarily switch to the parent thread.
4369 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
4371 * gdbthread.h: Include "common-gdbthread.h".
4372 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
4373 "if" when validating the ptid.
4374 * remote-utils.c: Include "gdbthread.h".
4375 (prepare_resume_reply): Use "switch_to_thread".
4376 * target.c (done_accessing_memory): Likewise.
4378 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
4380 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
4381 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
4382 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
4383 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
4384 s390x-gs-linux64-ipa.o to ipa_obj.
4385 * linux-s390-low.c (HWCAP_S390_GS): New define.
4386 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
4388 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
4389 (s390_arch_setup): Check for guarded-storage support and choose
4391 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
4392 init_registers_s390x_gs_linux64.
4393 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
4395 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
4396 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
4398 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
4400 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
4402 2017-09-21 Kevin Buettner <kevinb@redhat.com>
4404 * linux-low.h (struct lwp_info): Add new field, thread_handle.
4405 (thread_db_thread_handle): Declare.
4406 * linux-low.c (linux_target_ops): Initialize thread_handle.
4407 * server.c (handle_qxfer_threads_worker): Add support for
4409 * target.h (struct target_ops): Add new function pointer,
4411 (target_thread_handle): Define.
4412 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
4414 (thread_db_thread_handle): New function.
4416 2017-09-21 Kevin Buettner <kevinb@redhat.com>
4418 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
4419 * linux-low.h (thread_db_notice_clone): Declare.
4420 * thread-db.c (thread_db_notice_clone): New function.
4422 2017-09-21 Pedro Alves <palves@redhat.com>
4424 * server.c (gdb_read_memory, handle_status, process_serial_event)
4425 (handle_serial_event, handle_target_event): Adjust to
4426 set_desired_thread prototype change.
4427 * target.c (set_desired_thread): Remove 'use_general' parameter
4429 * target.h (set_desired_thread): Remove 'use_general' parameter.
4431 2017-09-20 Tom Tromey <tom@tromey.com>
4433 * target.c (target_terminal::terminal_state): Define.
4434 (target_terminal::init): Rename from target_terminal_init.
4435 (target_terminal::inferior): Rename from
4436 target_terminal_inferior.
4437 (target_terminal::ours): Rename from target_terminal_ours.
4438 (target_terminal::ours_for_output, target_terminal::info): New.
4440 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4442 * server.c (accumulate_file_name_length): Remove.
4443 (emit_dll_description): Adjust to std::string change.
4444 (handle_qxfer_libraries): Use std::string to hold document.
4446 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4448 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
4449 return type of xml_escape_text.
4450 * server.c (emit_dll_description): Likewise.
4452 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4454 * server.c (captured_main): Accept argument for --selftest.
4455 Update run_tests call.
4456 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
4457 when registering selftests.
4459 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
4461 * regcache.c (get_thread_regcache): Update code to use "std::vector"
4462 instead of "VEC" for "target_desc.reg_defs".
4463 (regcache_cpy): Likewise.
4464 (registers_to_string): Likewise.
4465 (registers_from_string): Likewise.
4466 (find_regno): Likewise.
4467 (supply_regblock): Likewise.
4468 (regcache_raw_read_unsigned): Likewise.
4469 * tdesc.c (init_target_desc): Likewise.
4470 (tdesc_create_reg): Likewise.
4471 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
4472 (struct target_desc) <reg_defs>: Convert to "std::vector".
4473 (target_desc): Do not initialize "reg_defs".
4474 (~target_desc): Update code to use "std::vector" instead of "VEC"
4475 for "target_desc.reg_defs".
4476 (operator==): Likewise.
4478 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4480 * inferiors.h (thread_to_gdb_id): Remove.
4481 * inferiors.c (thread_to_gdb_id): Remove.
4482 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
4483 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
4484 lynx_store_registers, lynx_read_memory, lynx_write_memory):
4486 * nto-low.c (nto_fetch_registers, nto_store_registers,
4487 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
4489 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4491 * inferiors.h (gdb_id_to_thread_id): Remove.
4492 * inferiors.c (gdb_id_to_thread_id): Remove.
4493 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
4494 removal. Move pid declaration closer to where it's used.
4496 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4498 * server.c (handle_detach): New function.
4499 (process_serial_event): Move code out, call handle_detach.
4501 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4503 * server.c (require_running): Rename to ...
4504 (require_running_or_return): ... this ...
4505 (require_running_or_break): ... and this.
4506 (handle_query, process_serial_event): Adjust.
4508 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4510 * linux-low.c (linux_set_resume_request): Remove unused
4513 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4515 * server.c (first_thread_of): Remove.
4516 (process_serial_event): Replace usage of first_thread_of with
4517 find_any_thread_of_pid.
4518 * tracepoint.c (same_process_p): Remove.
4519 (gdb_agent_about_to_close): Replace usage of same_process_p with
4520 find_any_thread_of_pid.
4521 * linux-x86-low.c (same_process_callback): Remove.
4522 (x86_arch_setup_process_callback): Replace usage of
4523 same_process_callback with find_any_thread_of_pid.
4524 * thread-db.c (any_thread_of): Remove.
4525 (switch_to_process): Replace usage of any_thread_of with
4526 find_any_thread_of_pid.
4527 * inferiors.c (thread_pid_matches_callback): Remove.
4528 (find_thread_process): Adjust to use find_any_thread_of_pid.
4530 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
4532 * regcache.c (get_thread_regcache): Guard calls to "memset"
4535 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
4537 * linux-low.c (handle_extended_wait): Use
4538 "allocate_target_description" instead of "XNEW".
4539 * linux-x86-low.c (initialize_low_arch): Likewise.
4541 2017-09-05 Yao Qi <yao.qi@linaro.org>
4543 * configure.srv (srv_i386_regobj): Remove.
4544 (srv_amd64_regobj): Remove.
4545 (srv_regobj): Set it to "" for x86 non-linux targets.
4546 * linux-x86-tdesc.c (i386_linux_read_description):
4547 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
4548 (init_registers_i386): Remove the declaration.
4549 (tdesc_i386): Remove the declaration.
4550 (lynx_i386_arch_setup): Call i386_create_target_description.
4551 * nto-x86-low.c: Likewise.
4552 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
4553 [!__x86_64__]: include arch/i386.h.
4554 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
4556 2017-09-05 Yao Qi <yao.qi@linaro.org>
4558 * configure.srv (srv_amd64_linux_xmlfiles): Remove
4559 i386/amd64-XXX-linux from it.
4561 2017-09-05 Yao Qi <yao.qi@linaro.org>
4563 * configure.srv: Empty srv_amd64_linux_regobj if $development is
4565 (ipa_amd64_linux_regobj): Remove.
4566 (ipa_x32_linux_regobj): Remove.
4568 2017-09-05 Yao Qi <yao.qi@linaro.org>
4570 * Makefile.in (arch-amd64.o): New rule.
4571 * configure.srv: Append arch-amd64.o.
4572 * linux-amd64-ipa.c: Include common/x86-xstate.h.
4573 (get_ipa_tdesc): Call amd64_linux_read_description.
4574 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
4575 and init_registers_amd64_XXX.
4576 * linux-x86-low.c (x86_linux_read_description): Call
4577 amd64_linux_read_description.
4578 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
4579 (initialize_low_arch): Don't call init_registers_x32_XXX and
4580 init_registers_amd64_XXX.
4581 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
4582 and tdesc_amd64_XXX.
4583 [__x86_64__] (amd64_tdesc_test): New function.
4584 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
4585 and init_registers_amd64_XXX.
4586 * linux-x86-tdesc.c: Include arch/amd64.h.
4587 (xcr0_to_tdesc_idx): New function.
4588 (i386_linux_read_description): New function.
4589 (amd64_get_ipa_tdesc_idx): New function.
4590 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
4591 (amd64_get_ipa_tdesc): Declare.
4593 2017-09-05 Yao Qi <yao.qi@linaro.org>
4595 * configure.srv (srv_i386_linux_xmlfiles): Remove
4596 i386/i386-XXX-linux.xml from it.
4598 2017-09-05 Yao Qi <yao.qi@linaro.org>
4600 * configure.srv: Set srv_i386_linux_regobj empty if $development
4602 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
4603 initialize_low_tdesc.
4604 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
4605 with #if initialize_low_tdesc.
4606 * linux-x86-tdesc-selftest.c: New file.
4607 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
4609 2017-09-05 Yao Qi <yao.qi@linaro.org>
4611 * Makefile.in (arch-i386.o): New rule.
4612 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
4613 (x86_64-*-linux*): Likewise.
4614 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
4615 include arch/i386.h.
4616 (i386_linux_read_description): Remove code and call
4617 i386_create_target_description.
4618 * tdesc.c (allocate_target_description): New function.
4619 * tdesc.h (set_tdesc_architecture): Remove declaration.
4620 (set_tdesc_osabi): Likewise.
4622 2017-09-05 Yao Qi <yao.qi@linaro.org>
4624 * linux-x86-tdesc.c: Don't include <inttypes.h>.
4625 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
4626 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
4628 * server.c (get_features_xml): Call tdesc_get_features_xml.
4629 * tdesc.c (set_tdesc_architecture): New function.
4630 (set_tdesc_osabi): New function.
4631 (tdesc_get_features_xml): New function.
4632 (tdesc_create_feature): Add an argument.
4633 * tdesc.h (struct target_desc) <features>: New field.
4634 <arch, osabi>: New field.
4635 (~target_desc): xfree features, arch, and osabi.
4636 (target_desc::oerator==): Don't compare .xmltarget.
4637 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
4638 (set_tdesc_osabi): Likewise.
4639 (tdesc_get_features_xml): Likewise.
4641 2017-09-05 Yao Qi <yao.qi@linaro.org>
4643 * linux-x86-tdesc.c: Include selftest.h.
4644 (i386_tdesc_test): New function.
4645 (initialize_low_tdesc): Call selftests::register_test.
4646 * tdesc.h: Include regdef.h.
4647 (target_desc): Override operator == and !=.
4649 2017-09-05 Yao Qi <yao.qi@linaro.org>
4651 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
4652 (ipa_obj): Likewise.
4653 * linux-i386-ipa.c: Include common/x86-xstate.h
4654 (get_ipa_tdesc): Call i386_linux_read_description.
4655 (initialize_low_tracepoint): Don't call init_registers_XXX
4656 functions, call initialize_low_tdesc instead.
4657 * linux-x86-low.c (x86_linux_read_description): Call
4658 i386_linux_read_description.
4659 (initialize_low_arch): Don't call init_registers_i386_XXX
4660 functions, call initialize_low_tdesc.
4661 * linux-x86-tdesc.c: New file.
4662 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
4663 (i386_get_ipa_tdesc_idx): Declare.
4664 (i386_get_ipa_tdesc): Declare.
4665 (initialize_low_tdesc): Declare.
4667 2017-09-05 Yao Qi <yao.qi@linaro.org>
4669 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
4672 2017-09-05 Yao Qi <yao.qi@linaro.org>
4674 * Makefile.in (IPA_OBJS): Add vec-ipa.o
4675 * regcache.c (get_thread_regcache): Use VEC_length.
4676 (init_register_cache): Likewise.
4677 (regcache_cpy): Likewise.
4678 (registers_to_string): Iterate reg_defs via VEC_iterate.
4679 (find_regno): Likewise.
4680 (find_register_by_number): Use VEC_index.
4681 (register_size): Call find_register_by_number.
4682 (register_data): Call find_register_by_number.
4683 (supply_regblock): Use VEC_length.
4684 (regcache_raw_read_unsigned): Likewise.
4685 * tdesc.c (init_target_desc): Iterate reg_defs via
4687 (default_description): Update initializer.
4688 (copy_target_description): Don't update field num_registers.
4689 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
4690 <num_registers>: Remove.
4692 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4694 * Makefile.in (.SECONDARY): Define target.
4696 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
4698 * linux-low.c (linux_wait_1): Adjust.
4699 * server.c (queue_stop_reply_callback): Adjust.
4701 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
4703 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
4704 QEnvironmentUnset and QEnvironmentReset packets.
4705 (handle_query): Inform remote that QEnvironmentHexEncoded,
4706 QEnvironmentUnset and QEnvironmentReset are supported.
4708 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
4710 * inferiors.h (inferior_target_data): Rename to ...
4711 (thread_target_data): ... this.
4712 (inferior_regcache_data): Rename to ...
4713 (thread_regcache_data): ... this.
4714 (set_inferior_regcache_data): Rename to ...
4715 (set_thread_regcache_data): ... this.
4716 * inferiors.c (inferior_target_data): Rename to ...
4717 (thread_target_data): ... this.
4718 (inferior_regcache_data): Rename to ...
4719 (thread_regcache_data): ... this.
4720 (set_inferior_regcache_data): Rename to ...
4721 (set_thread_regcache_data): ... this.
4722 (free_one_thread): Update.
4723 * linux-low.h (get_thread_lwp): Update.
4724 * regcache.c (get_thread_regcache): Update.
4725 (regcache_invalidate_thread): Update.
4726 (free_register_cache_thread): Update.
4727 * win32-i386-low.c (update_debug_registers_callback): Update.
4728 (win32_get_current_dr): Update.
4729 * win32-low.c (thread_rec): Update.
4730 (delete_thread_info): Update.
4731 (continue_one_thread): Update.
4732 (suspend_one_thread): Update.
4734 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
4736 * inferiors.c (set_inferior_target_data): Remove.
4737 * inferiors.h (set_inferior_target_data): Remove.
4739 2017-08-18 Yao Qi <yao.qi@linaro.org>
4741 * Makefile.in (OBS): Add selftest.o.
4742 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
4743 * configure, config.in: Re-generated.
4744 * server.c: Include common/sefltest.h.
4745 (captured_main): Handle option --selftest.
4747 2017-08-09 Yao Qi <yao.qi@linaro.org>
4749 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
4750 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
4751 i386-avx-mpx.o and i386-mmx.o.
4752 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
4753 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
4754 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
4755 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
4756 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
4757 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
4758 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
4759 i386/amd64-avx-mpx.xml.
4761 2017-08-09 Yao Qi <yao.qi@linaro.org>
4763 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
4764 and x32-avx-avx512.o.
4765 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
4766 i386/x32-avx-avx512.xml.
4768 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
4770 * tracepoint.h (enum class fast_tpoint_collect_result): New
4772 (fast_tracepoint_collecting): Change return type to
4773 fast_tpoint_collect_result.
4774 * tracepoint.c (fast_tracepoint_collecting): Likewise.
4775 * linux-low.h: Include tracepoint.h.
4776 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
4777 fast_tpoint_collect_result.
4778 * linux-low.c (handle_tracepoints): Adjust.
4779 (linux_fast_tracepoint_collecting): Change return type to
4780 fast_tpoint_collect_result.
4781 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
4782 linux_wait_1, stuck_in_jump_pad_callback,
4783 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
4784 proceed_one_lwp): Adjust to type change.
4786 2017-07-10 Yao Qi <yao.qi@linaro.org>
4788 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
4790 2017-06-29 Yao Qi <yao.qi@linaro.org>
4792 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
4794 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
4796 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
4798 * Makefile.in (IPA_OBJS): Sort and format one item per line.
4800 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
4802 * linux-low.c (linux_create_inferior): Adjust code to access the
4803 environment information via 'gdb_environ' class.
4804 * lynx-low.c (lynx_create_inferior): Likewise.
4805 * server.c (our_environ): Make it an instance of 'gdb_environ'.
4806 (get_environ): Return a pointer to 'our_environ'.
4807 (captured_main): Initialize 'our_environ'.
4808 * server.h (get_environ): Adjust prototype.
4809 * spu-low.c (spu_create_inferior): Adjust code to access the
4810 environment information via 'gdb_environ' class.
4812 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4814 * linux-low.c (linux_read_memory, linux_write_memory): Remove
4815 usage of "register" keyword.
4817 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4819 * configure: Re-generate.
4821 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4823 * configure: Re-generate.
4825 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4827 * Makefile.in (COMPILE.pre): Add "-x c++".
4829 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
4831 * fork-child.c: Conditionally include <signal.h>.
4833 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4835 * server.c (handle_general_set): Handle new packet
4836 "QStartupWithShell".
4837 (handle_query): Add "QStartupWithShell" to the list of supported
4839 (gdbserver_usage): Add help text explaining the
4840 new "--startup-with-shell" and "--no-startup-with-shell" CLI
4842 (captured_main): Recognize and act upon the presence of the new
4845 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4846 Pedro Alves <palves@redhat.com>
4848 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
4849 * configure: Regenerate.
4850 * configure.srv (srv_linux_obj): Add "fork-child.o" and
4852 (i[34567]86-*-lynxos*): Likewise.
4853 (spu*-*-*): Likewise.
4854 * fork-child.c: New file.
4855 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
4857 (linux_ptrace_fun): New function.
4858 (linux_create_inferior): Adjust function prototype to reflect
4859 change on "target.h". Adjust function code to use
4861 (linux_request_interrupt): Delete "signal_pid".
4862 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
4863 (lynx_ptrace_fun): New function.
4864 (lynx_create_inferior): Adjust function prototype to reflect
4865 change on "target.h". Adjust function code to use
4867 * nto-low.c (nto_create_inferior): Adjust function prototype and
4868 code to reflect change on "target.h". Update comments.
4869 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
4870 "common-terminal.h" and "environ.h".
4871 (terminal_fd): Moved to fork-child.c.
4872 (old_foreground_pgrp): Likewise.
4873 (restore_old_foreground_pgrp): Likewise.
4874 (last_status): Make it global.
4875 (last_ptid): Likewise.
4876 (our_environ): New variable.
4877 (startup_with_shell): Likewise.
4878 (program_name): Likewise.
4879 (program_argv): Rename to...
4880 (program_args): ...this.
4881 (wrapper_argv): New variable.
4882 (start_inferior): Delete function.
4883 (get_exec_wrapper): New function.
4884 (get_exec_file): Likewise.
4885 (get_environ): Likewise.
4886 (prefork_hook): Likewise.
4887 (post_fork_inferior): Likewise.
4888 (postfork_hook): Likewise.
4889 (postfork_child_hook): Likewise.
4890 (handle_v_run): Update code to deal with arguments coming from the
4891 remote host. Update calls from "start_inferior" to
4893 (captured_main): Likewise. Initialize environment variable. Call
4895 * server.h (post_fork_inferior): New prototype.
4896 (get_environ): Likewise.
4897 (last_status): Declare.
4898 (last_ptid): Likewise.
4899 (signal_pid): Likewise.
4900 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
4901 (spu_ptrace_fun): New function.
4902 (spu_create_inferior): Adjust function prototype to reflect change
4903 on "target.h". Adjust function code to use "fork_inferior".
4904 * target.c (target_terminal_init): New function.
4905 (target_terminal_inferior): Likewise.
4906 (target_terminal_ours): Likewise.
4907 * target.h: Include <vector>.
4908 (struct target_ops) <create_inferior>: Update prototype.
4909 (create_inferior): Update macro.
4910 * utils.c (gdb_flush_out_err): New function.
4911 * win32-low.c (win32_create_inferior): Adjust function prototype
4912 and code to reflect change on "target.h".
4914 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4916 * inferiors.c (switch_to_thread): New function.
4918 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4920 * Makefile.in (SFILE): Add "common/job-control.c".
4921 (OBS): Add "job-control.o".
4923 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
4925 * Makefile: Remove "@host_makefile_frag@".
4927 2017-05-05 Pedro Alves <palves@redhat.com>
4929 * configure: Regenerate.
4931 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
4933 * configure: Regenerate.
4935 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
4937 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
4938 software_single_step change of return type to
4939 std::vector<CORE_ADDR>.
4940 * linux-low.c (install_software_single_step_breakpoints):
4942 * linux-low.h (install_software_single_step_breakpoints):
4945 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
4947 * remote-utils.c: Include "gdb_termios.h" instead of
4949 * terminal.h: Delete file.
4951 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
4953 * server.c: Include <vector>.
4954 <program_argv, wrapper_argv>: Convert to std::vector.
4955 (start_inferior): Rewrite function to use C++.
4956 (handle_v_run): Likewise. Update code that calculates the argv
4957 based on the vRun packet; use C++.
4958 (captured_main): Likewise.
4960 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
4962 * server.c (handle_v_cont): Initialize thread_resume::thread
4965 2017-04-05 Pedro Alves <palves@redhat.com>
4967 * configure: Regenerate.
4969 2017-04-05 Pedro Alves <palves@redhat.com>
4971 * gdbreplay.c (sync_error): Constify.
4972 * linux-x86-low.c (push_opcode): Constify.
4974 2017-04-05 Pedro Alves <palves@redhat.com>
4976 * win32-low.c (get_child_debug_event)
4977 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
4978 Report TARGET_WAITKIND_SPURIOUS instead.
4980 2017-04-05 Pedro Alves <palves@redhat.com>
4982 * remote-utils.c (remote_prepare, remote_open): Constify.
4983 * remote-utils.h (remote_prepare, remote_open): Constify.
4984 * server.c (captured_main): Constify 'port' handling.
4986 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
4988 * Makefile.in (clean): Clear .deps.
4990 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
4992 * .gitignore: Remove generated files, replace with wildcard.
4993 * (clean): Replace removal of generated files with wildcard.
4994 (version.c): Replace with...
4995 (version-generated.c): ...this.
4996 (xml-builtin.c): Replace with...
4997 (xml-builtin-generated.c): ...this.
4998 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
4999 (%.c: *regformats*): Replace with...
5000 (%-generated.c: *regformats*): ...this.
5002 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
5004 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
5005 (xtensa_fill_gregset): Call collect_register_by_name for
5007 (xtensa_store_gregset): Call supply_register_by_name for
5010 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
5012 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
5013 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
5014 (xtensa_store_gregset): Call supply_register for all registers in
5015 a0_regnum..a0_regnum + C0_NREGS range.
5017 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5019 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
5020 (ax-ipa.o: ax.c): Remove.
5021 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
5022 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
5023 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
5024 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
5025 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
5027 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5029 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
5030 (print-utils-ipa.o: ../common/print-utils.c): Remove.
5031 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
5032 (errors-ipa.o: ../common/errors.c): Remove.
5033 (format-ipa.o: ../common/format.c): Remove.
5034 (common-utils-ipa.o: ../common/common-utils.c): Remove.
5036 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5038 * Makefile.in (%-ipa.o: %.c): New rule.
5039 (tracepoint-ipa.o: tracepoint.c): Remove.
5040 (utils-ipa.o: utils.c): Remove.
5041 (remote-utils-ipa.o: remote-utils.c): Remove.
5042 (regcache-ipa.o: regcache.c): Remove.
5043 (i386-linux-ipa.o: i386-linux.c): Remove.
5044 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
5045 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
5046 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
5047 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
5048 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
5049 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
5050 (amd64-linux-ipa.o: amd64-linux.c): Remove.
5051 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
5052 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
5053 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
5054 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
5055 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
5056 (aarch64-ipa.o: aarch64.c): Remove.
5057 (s390-linux32-ipa.o: s390-linux32.c): Remove.
5058 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
5059 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
5060 (s390-linux64-ipa.o: s390-linux64.c): Remove.
5061 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
5062 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
5063 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
5064 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
5065 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
5066 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
5067 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
5068 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
5069 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
5070 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
5071 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
5072 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
5073 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
5074 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
5075 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
5076 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
5077 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
5078 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
5079 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
5080 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
5081 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
5082 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
5083 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
5084 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
5085 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
5086 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
5087 (tdesc-ipa.o: tdesc.c): Remove.
5088 (x32-linux-ipa.o: x32-linux.c): Remove.
5089 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
5090 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
5092 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5094 * Makefile.in (%.o: ../arch/%.c): New rule.
5095 (arm.o: ../arch/arm.c): Remove.
5096 (arm-linux.o: ../arch/arm-linux.c): Remove.
5097 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
5098 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
5100 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5102 * Makefile.in (%.o: ../nat/%.c): New rule.
5103 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
5104 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
5105 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
5106 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
5107 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
5108 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
5109 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
5110 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
5111 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
5112 (linux-personality.o: ../nat/linux-personality.c): Remove.
5113 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
5114 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
5115 (x86-linux.o: ../nat/x86-linux.c): Remove.
5116 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
5117 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
5119 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5121 * Makefile.in (%.o: ../common/%.c): New rule.
5122 (signals.o: ../common/signals.c): Remove.
5123 (print-utils.o: ../common/print-utils.c): Remove.
5124 (rsp-low.o: ../common/rsp-low.c): Remove.
5125 (common-utils.o: ../common/common-utils.c): Remove.
5126 (posix-strerror.o: ../common/posix-strerror.c): Remove.
5127 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
5128 (vec.o: ../common/vec.c): Remove.
5129 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
5130 (xml-utils.o: ../common/xml-utils.c): Remove.
5131 (ptid.o: ../common/ptid.c): Remove.
5132 (buffer.o: ../common/buffer.c): Remove.
5133 (format.o: ../common/format.c): Remove.
5134 (filestuff.o: ../common/filestuff.c): Remove.
5135 (agent.o: ../common/agent.c): Remove.
5136 (errors.o: ../common/errors.c): Remove.
5137 (environ.o: ../common/environ.c): Remove.
5138 (common-debug.o: ../common/common-debug.c): Remove.
5139 (cleanups.o: ../common/cleanups.c): Remove.
5140 (common-exceptions.o: ../common/common-exceptions.c): Remove.
5141 (fileio.o: ../common/fileio.c): Remove.
5142 (common-regcache.o: ../common/common-regcache.c): Remove.
5143 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
5144 (new-op.o: ../common/new-op.c): Remove.
5145 (btrace-common.o: ../common/btrace-common.c): Remove.
5147 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5149 * Makefile.in (%.o: ../target/%.c): New rule.
5150 (waitstatus.o: ../target/waitstatus.c): Remove.
5152 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5155 (%.c: ../regformats/%.dat,
5156 (%.c: ../regformats/arm/%.dat,
5157 (%.c: ../regformats/i386/%.dat,
5158 (%.c: ../regformats/rs6000/%.dat): New rules.
5159 (aarch64.c): Remove.
5160 (reg-arm.c): Remove.
5161 (arm-with-iwmmxt.c): Remove.
5162 (arm-with-vfpv2.c): Remove.
5163 (arm-with-vfpv3.c): Remove.
5164 (arm-with-neon.c): Remove.
5165 (reg-bfin.c): Remove.
5166 (reg-cris.c): Remove.
5167 (reg-crisv32.c): Remove.
5169 (i386-linux.c): Remove.
5170 (i386-avx.c): Remove.
5171 (i386-avx-linux.c): Remove.
5172 (i386-avx-avx512.c): Remove.
5173 (i386-avx-avx512-linux.c): Remove.
5174 (i386-mpx.c): Remove.
5175 (i386-mpx-linux.c): Remove.
5176 (i386-avx-mpx-avx512-pku.c): Remove.
5177 (i386-avx-mpx-avx512-pku-linux.c): Remove.
5178 (i386-avx-mpx.c): Remove.
5179 (i386-avx-mpx-linux.c): Remove.
5180 (i386-mmx.c): Remove.
5181 (i386-mmx-linux.c): Remove.
5182 (reg-ia64.c): Remove.
5183 (reg-m32r.c): Remove.
5184 (reg-m68k.c): Remove.
5186 (mips-linux.c): Remove.
5187 (mips-dsp-linux.c): Remove.
5188 (mips64-linux.c): Remove.
5189 (mips64-dsp-linux.c): Remove.
5190 (nios2-linux.c): Remove.
5191 (powerpc-32.c): Remove.
5192 (powerpc-32l.c): Remove.
5193 (powerpc-altivec32l.c): Remove.
5194 (powerpc-cell32l.c): Remove.
5195 (powerpc-vsx32l.c): Remove.
5196 (powerpc-isa205-32l.c): Remove.
5197 (powerpc-isa205-altivec32l.c): Remove.
5198 (powerpc-isa205-vsx32l.c): Remove.
5199 (powerpc-e500l.c): Remove.
5200 (powerpc-64l.c): Remove.
5201 (powerpc-altivec64l.c): Remove.
5202 (powerpc-cell64l.c): Remove.
5203 (powerpc-vsx64l.c): Remove.
5204 (powerpc-isa205-64l.c): Remove.
5205 (powerpc-isa205-altivec64l.c): Remove.
5206 (powerpc-isa205-vsx64l.c): Remove.
5207 (s390-linux32.c): Remove.
5208 (s390-linux32v1.c): Remove.
5209 (s390-linux32v2.c): Remove.
5210 (s390-linux64.c): Remove.
5211 (s390-linux64v1.c): Remove.
5212 (s390-linux64v2.c): Remove.
5213 (s390-te-linux64.c): Remove.
5214 (s390-vx-linux64.c): Remove.
5215 (s390-tevx-linux64.c): Remove.
5216 (s390x-linux64.c): Remove.
5217 (s390x-linux64v1.c): Remove.
5218 (s390x-linux64v2.c): Remove.
5219 (s390x-te-linux64.c): Remove.
5220 (s390x-vx-linux64.c): Remove.
5221 (s390x-tevx-linux64.c): Remove.
5222 (tic6x-c64xp-linux.c): Remove.
5223 (tic6x-c64x-linux.c): Remove.
5224 (tic6x-c62x-linux.c): Remove.
5226 (reg-sparc64.c): Remove.
5227 (reg-spu.c): Remove.
5229 (amd64-linux.c): Remove.
5230 (amd64-avx.c): Remove.
5231 (amd64-avx-linux.c): Remove.
5232 (amd64-avx-avx512.c): Remove.
5233 (amd64-avx-avx512-linux.c): Remove.
5234 (amd64-mpx.c): Remove.
5235 (amd64-mpx-linux.c): Remove.
5236 (amd64-avx-mpx-avx512-pku.c): Remove.
5237 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
5238 (amd64-avx-mpx.c): Remove.
5239 (amd64-avx-mpx-linux.c): Remove.
5241 (x32-linux.c): Remove.
5242 (x32-avx.c): Remove.
5243 (x32-avx-linux.c): Remove.
5244 (x32-avx-avx512.c): Remove.
5245 (x32-avx-avx512-linux.c): Remove.
5246 (reg-xtensa.c): Remove.
5247 (reg-tilegx.c): Remove.
5248 (reg-tilegx32.c): Remove.
5250 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
5252 * Makefile.in (SFILES): Add "common/environ.c".
5253 (OBJS): Add "common/environ.h".
5255 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5257 * configure.ac: Check if the fs_base and gs_base members of
5258 `struct user_regs_struct' exist.
5259 * config.in: Regenerated.
5260 * configure: Likewise.
5262 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
5264 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
5266 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
5267 (get_next_pcs_syscall_next_pc): Likewise.
5269 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
5271 * win32-i386-low.c: Fix incorrect reference to a couple source files.
5272 * nto-x86-low.c: Likewise.
5274 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
5276 * Makefile.in: Include disable-implicit-rules.mk.
5278 2016-11-23 Pedro Alves <palves@redhat.com>
5280 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
5281 (debug_vprintf): Use std::chrono::steady_clock instead of
5282 gettimeofday. Use '.' instead of ':'.
5283 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
5284 (get_timestamp): Use std::chrono::steady_clock instead of
5287 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
5289 * Makefile.in: Fix whitespace formatting.
5291 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
5293 * Makefile.in (SFILES, OBS): Flatten list and order
5296 2016-11-23 Pedro Alves <palves@redhat.com>
5298 * event-loop.c (handle_file_event): Use warning.
5299 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
5300 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
5303 2016-11-23 Pedro Alves <palves@redhat.com>
5305 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
5307 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
5308 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
5309 debug_printf and debug_flush for debug output.
5310 * server.c (handle_general_set): Likewise.
5311 * thread-db.c (try_thread_db_load): Use debug_printf for debug
5314 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5316 * Makefile.in (.c.o): Replace rule with ...
5317 (%.o: %.c): ... this one.
5319 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5321 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
5322 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
5324 * configure.ac: Remove checks for the make program.
5325 * configure: Re-generate.
5327 2016-10-28 Pedro Alves <palves@redhat.com>
5329 * Makefile.in (CXX_DIALECT): Get from configure.
5330 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
5331 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
5332 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
5333 * config.in: Regenerate.
5334 * configure: Regenerate.
5336 2016-10-27 Yao Qi <yao.qi@linaro.org>
5338 * linux-low.c (linux_supports_range_stepping): Return true if
5339 can_software_single_step return true.
5341 2016-10-27 Yao Qi <yao.qi@linaro.org>
5343 * inferiors.c (find_inferior_in_random): New function.
5344 * inferiors.h (find_inferior_in_random): Declare.
5345 * linux-low.c (linux_wait_for_event_filtered): Call
5346 find_inferior_in_random instead of find_inferior.
5348 2016-10-27 Yao Qi <yao.qi@linaro.org>
5350 * linux-low.c (linux_wait_1): If single-step breakpoints are
5351 inserted, remove them.
5353 2016-10-26 Pedro Alves <palves@redhat.com>
5355 * linux-low.c (handle_extended_wait): Link parent/child fork
5357 (linux_wait_1): Unlink them.
5358 (linux_set_resume_request): Ignore resume requests for
5359 already-resumed and unhandled fork child threads.
5360 * linux-low.h (struct lwp_info) <fork_relative>: New field.
5361 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
5363 (handle_v_requests) <vCont>: Don't call require_running.
5364 * server.h (in_queued_stop_replies): New declaration.
5366 2016-10-24 Yao Qi <yao.qi@linaro.org>
5369 * linux-aarch64-low.c (append_insns): Cast the return value to
5372 2016-10-10 Yao Qi <yao.qi@linaro.org>
5374 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
5376 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
5378 * target.c (target_supports_multi_process): New function, moved
5380 * target.h (target_supports_multi_process): ... here. Remove
5383 2016-10-05 Tom Tromey <tom@tromey.com>
5386 * tracepoint.c (handle_tracepoint_bkpts): Check
5387 ipa_error_tracepoint, not ipa_stopping_tracepoint.
5389 2016-10-05 Yao Qi <yao.qi@linaro.org>
5391 * configure.srv: Update the path of arm-*.xml files.
5393 2016-10-05 Terry Guo <terry.guo@arm.com>
5394 Yao Qi <yao.qi@linaro.org>
5396 * Makefile.in: Adjust the path of rules.
5397 * configure.srv: Update the path of xml files.
5398 * regformats/arm-with-iwmmxt.dat: Regenerated.
5399 * regformats/arm-with-neon.dat: Likewise.
5400 * regformats/arm-with-vfpv2.dat: Likewise.
5401 * regformats/arm-with-vfpv3.dat Likewise.
5403 2016-09-30 Yao Qi <yao.qi@linaro.org>
5406 * target.c (target_stop_and_wait): Don't call
5407 target_continue_no_signal, use resume_stop instead.
5409 2016-09-26 Yao Qi <yao.qi@linaro.org>
5411 * linux-low.c (linux_wait_1): Call debug_exit.
5413 2016-09-23 Pedro Alves <palves@redhat.com>
5415 * Makefile.in (SFILES): Add common/new-op.c.
5416 (OBS): Add common/new-op.o.
5417 (new-op.o): New rule.
5419 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
5421 * .gitinore: Ignore more files.
5423 2016-09-21 Yao Qi <yao.qi@linaro.org>
5425 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
5428 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
5430 * server.c (start_inferior): Call target_mourn_inferior instead of
5431 mourn_inferior; pass ptid_t argument to it.
5433 (handle_target_event): Likewise.
5434 * target.c (target_mourn_inferior): New function.
5435 * target.h (mourn_inferior): Delete macro.
5437 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
5439 * linux-low.c (lwp_is_stepping): New function.
5441 2016-09-06 Carl Love <cel@us.ibm.com>
5443 * server.c (start_inferior): Fixed comment, requested comment change
5444 didn't get updated correctly. Removed reference to ptrace () call as
5445 it is only true on Linux systems.
5447 2016-09-06 Carl Love <cel@us.ibm.com>
5449 * server.c (start_inferior): Do not call
5450 function target_post_create_inferior () if the
5451 inferior process has already exited.
5453 2016-09-05 Pedro Alves <palves@redhat.com>
5455 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
5456 (COMPILE.pre, CC_LD): Use CXX directly.
5457 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
5458 * acinclude.m4: Don't include build-with-cxx.m4.
5459 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
5460 * configure: Regenerate.
5462 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
5465 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
5466 call writing data to own_buf.
5468 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
5470 * target.c (mywait): Call target_wait instead of
5472 (target_wait): New function.
5474 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
5476 * server.c (start_inferior): New variable 'ptid'. Replace calls
5477 to the_target->resume by target_continue{,_no_signal}, depending
5479 * target.c (target_stop_and_wait): Call target_continue_no_signal
5480 instead of the_target->resume.
5481 (target_continue): New function.
5483 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
5485 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
5487 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5490 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
5492 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
5493 * linux-arm-low.c (ps_get_thread_area): Likewise.
5494 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
5495 * linux-m68k-low.c (ps_get_thread_area): Likewise.
5496 * linux-mips-low.c (ps_get_thread_area): Likewise.
5497 * linux-nios2-low.c (ps_get_thread_area): Likewise.
5498 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
5499 * linux-x86-low.c (ps_get_thread_area): Likewise.
5500 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
5502 2016-08-19 Pedro Alves <palves@redhat.com>
5504 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
5506 2016-08-19 Pedro Alves <palves@redhat.com>
5508 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
5509 comment. Use memcpy instead of casting through unsigned long.
5511 2016-08-19 Pedro Alves <palves@redhat.com>
5513 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
5514 allocating around 0x80000000.
5516 2016-08-19 Pedro Alves <palves@redhat.com>
5519 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
5520 (x32-avx512-linux-ipa.o): New rules.
5521 * configure.ac (x86_64-*-linux*): New x32 check.
5522 * configure.srv (ipa_x32_linux_regobj): New.
5523 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
5524 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
5526 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
5528 * configure: Regenerate.
5530 2016-08-09 Pedro Alves <palves@redhat.com>
5533 * Makefile.in (OBS): Add signals-state-save-restore.o.
5534 (signals-state-save-restore.o): New rule.
5535 * config.in: Regenerate.
5536 * configure: Regenerate.
5537 * linux-low.c: Include "signals-state-save-restore.h".
5538 (linux_create_inferior): Call
5539 restore_original_signals_state.
5540 * server.c: Include "dispositions-save-restore.h".
5541 (captured_main): Call save_original_signals_state.
5543 2016-08-05 Pedro Alves <palves@redhat.com>
5545 * configure: Regenerate.
5547 2016-08-04 Yao Qi <yao.qi@linaro.org>
5549 * linux-low.c (regsets_fetch_inferior_registers): Check
5550 errno is ESRCH or not.
5552 2016-08-02 Yao Qi <yao.qi@linaro.org>
5554 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
5555 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
5556 (thread_db_load_search): Update.
5557 (try_thread_db_load_1): Don't look for td_ta_event_addr,
5558 td_ta_set_event and td_ta_event_getmsg.
5560 2016-07-26 Pedro Alves <palves@redhat.com>
5563 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
5564 of unsigned long for 64-bit registers and use uint32_t instead of
5565 unsigned int for 32-bit registers.
5567 2016-07-26 Pedro Alves <palves@redhat.com>
5569 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
5572 2016-07-21 Tom Tromey <tom@tromey.com>
5574 * configure: Rebuild.
5576 2016-07-21 Yao Qi <yao.qi@linaro.org>
5578 * mem-break.c (find_gdb_breakpoint): Cast bp to
5579 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
5581 2016-07-21 Yao Qi <yao.qi@linaro.org>
5583 * server.c (handle_v_requests): Support s and S actions
5584 if target_supports_software_single_step return true.
5586 2016-07-21 Yao Qi <yao.qi@linaro.org>
5588 * linux-low.c (resume_stopped_resumed_lwps): If resume request
5589 is resume_step, call maybe_hw_step.
5590 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
5592 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
5594 (proceed_one_lwp): If resume request is resume_step, install
5595 reinsert breakpoints and call maybe_hw_step.
5597 2016-07-21 Yao Qi <yao.qi@linaro.org>
5599 * linux-low.c (proceed_one_lwp): Declare.
5600 (linux_resume_one_thread): Remove local variable 'step'.
5601 Lift code enqueue signal. Call proceed_one_lwp instead of
5602 linux_resume_one_lwp.
5604 2016-07-21 Yao Qi <yao.qi@linaro.org>
5606 * linux-low.c (linux_resume_one_thread): Call
5607 enqueue_pending_signal.
5609 2016-07-21 Yao Qi <yao.qi@linaro.org>
5611 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
5612 * inferiors.c (do_restore_current_thread_cleanup): New function.
5613 (make_cleanup_restore_current_thread): Likewise.
5614 * linux-low.c (install_software_single_step_breakpoints): Call
5615 make_cleanup_restore_current_thread. Switch current_thread to
5618 2016-07-21 Yao Qi <yao.qi@linaro.org>
5620 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
5621 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
5622 (clone_one_breakpoint): Likewise.
5623 (delete_reinsert_breakpoints): Change parameter to thread.
5625 (has_reinsert_breakpoints): Likewise.
5626 (uninsert_reinsert_breakpoints): Likewise.
5627 (reinsert_reinsert_breakpoints): Likewise.
5628 * mem-break.h (set_reinsert_breakpoint): Update declaration.
5629 (delete_reinsert_breakpoints): Likewise.
5630 (reinsert_reinsert_breakpoints): Likewise.
5631 (uninsert_reinsert_breakpoints): Likewise.
5632 (has_reinsert_breakpoints): Likewise.
5634 2016-07-21 Yao Qi <yao.qi@linaro.org>
5636 * inferiors.c (get_thread_process): Make parameter const.
5637 * inferiors.h (get_thread_process): Update declaration.
5638 * mem-break.c (clone_all_breakpoints): Remove all parameters.
5639 Add new parameters child_thread and parent_thread. Callers
5641 * mem-break.h (clone_all_breakpoints): Update declaration.
5643 2016-07-21 Yao Qi <yao.qi@linaro.org>
5645 * mem-break.c (struct breakpoint) <cond_list>: Remove.
5646 <command_list, handler>: Remove.
5647 (struct gdb_breakpoint): New.
5648 (struct other_breakpoint): New.
5649 (struct reinsert_breakpoint): New.
5650 (is_gdb_breakpoint): New function.
5651 (any_persistent_commands): Update command_list if
5652 is_gdb_breakpoint returns true.
5653 (set_breakpoint): Create breakpoints according to their types.
5654 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
5655 (set_gdb_breakpoint_1): Likewise.
5656 (set_gdb_breakpoint): Likewise.
5657 (clear_breakpoint_conditions): Change parameter type to
5658 'struct gdb_breakpoint *'.
5659 (clear_breakpoint_commands): Likewise.
5660 (clear_breakpoint_conditions_and_commands): Likewise.
5661 (add_condition_to_breakpoint): Likewise.
5662 (add_breakpoint_condition): Likewise.
5663 (add_commands_to_breakpoint): Likewise.
5664 (check_breakpoints): Check other_breakpoint.
5665 (clone_one_breakpoint): Clone breakpopint according to its type.
5666 * mem-break.h (struct gdb_breakpoint): Declare.
5667 (set_gdb_breakpoint): Update declaration.
5668 (clear_breakpoint_conditions_and_commands): Likewise.
5669 (add_breakpoint_condition): Likewise.
5670 (add_breakpoint_commands): Likewise.
5671 * server.c (process_point_options): Change parameter type to
5672 'struct gdb_breakpoint *'.
5674 2016-07-21 Yao Qi <yao.qi@linaro.org>
5676 * mem-break.c (set_breakpoint_at): Rename it to ...
5677 (set_breakpoint_type_at): ... it.
5678 (set_breakpoint_at): Call set_breakpoint_type_at.
5679 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
5680 * mem-break.h (set_breakpoint_at): Update comments.
5682 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
5684 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
5686 (nios2_store_gregset): Likewise.
5688 2016-07-01 Pedro Alves <palves@redhat.com>
5689 Antoine Tremblay <antoine.tremblay@ericsson.com>
5691 * linux-low.c: Change interface to take the target lwp_info
5692 pointer directly and return void. Handle detaching from a zombie
5694 (linux_detach_lwp_callback): New function.
5695 (linux_detach): Detach from the leader thread after detaching from
5698 2016-06-28 Yao Qi <yao.qi@linaro.org>
5700 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
5701 for variable new_offset.
5702 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
5703 (aarch64_ftrace_insn_reloc_cb): Likewise.
5704 (aarch64_ftrace_insn_reloc_tb): Likewise.
5705 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
5706 PRIx64 instead of PRIx32.
5708 2016-06-28 Yao Qi <yao.qi@linaro.org>
5710 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
5711 (the_low_target): Install arm_get_syscall_trapinfo.
5713 2016-06-28 Yao Qi <yao.qi@linaro.org>
5715 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
5717 (the_low_target): Install aarch64_get_syscall_trapinfo.
5719 2016-06-28 Yao Qi <yao.qi@linaro.org>
5721 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
5723 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
5724 Remove parameter sysno.
5725 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
5728 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5730 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
5731 (s390_emit_ne_goto): Likewise.
5732 (s390_emit_lt_goto): Likewise.
5733 (s390_emit_le_goto): Likewise.
5734 (s390_emit_gt_goto): Likewise.
5735 (s390_emit_ge_goto): Likewise.
5736 (s390x_emit_eq_goto): Likewise.
5737 (s390x_emit_ne_goto): Likewise.
5738 (s390x_emit_lt_goto): Likewise.
5739 (s390x_emit_le_goto): Likewise.
5740 (s390x_emit_gt_goto): Likewise.
5741 (s390x_emit_ge_goto): Likewise.
5742 (s390_emit_ops_impl): Mark variable static.
5743 (s390x_emit_ops): Likewise.
5745 2016-06-17 Yao Qi <yao.qi@linaro.org>
5747 * linux-low.c (handle_extended_wait): Call
5748 uninsert_reinsert_breakpoints for the parent process. Remove
5749 reinsert breakpoints from the child process. Reinsert them to
5750 the parent process when vfork is done.
5751 * mem-break.c (uninsert_reinsert_breakpoints): New function.
5752 (reinsert_reinsert_breakpoints): New function.
5753 * mem-break.h (uninsert_reinsert_breakpoints): Declare
5754 (reinsert_reinsert_breakpoints): Declare.
5756 2016-06-17 Yao Qi <yao.qi@linaro.org>
5758 * linux-low.c (handle_extended_wait): If the parent is doing
5759 step-over, remove the reinsert breakpoints from the forked child.
5761 2016-06-17 Yao Qi <yao.qi@linaro.org>
5763 * linux-low.c (unsuspend_all_lwps): Declare.
5764 (linux_low_filter_event): If thread exited, call finish_step_over.
5765 If step-over is finished, unsuspend other threads.
5767 2016-06-17 Yao Qi <yao.qi@linaro.org>
5769 * linux-low.c (linux_resume_one_lwp_throw): Assert
5770 has_reinsert_breakpoints returns false.
5771 * mem-break.c (delete_disabled_breakpoints): Assert
5772 bp type isn't reinsert_breakpoint.
5774 2016-06-17 Yao Qi <yao.qi@linaro.org>
5776 * linux-low.c (maybe_hw_step): New function.
5777 (linux_resume_one_lwp_throw): Call maybe_hw_step.
5778 (finish_step_over): Switch current_thread to lwp temporarily,
5779 and assert has_reinsert_breakpoints returns true.
5780 (proceed_one_lwp): Call maybe_hw_step.
5781 * mem-break.c (has_reinsert_breakpoints): New function.
5782 * mem-break.h (has_reinsert_breakpoints): Declare.
5784 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
5786 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
5788 2016-05-17 Yao Qi <yao.qi@linaro.org>
5790 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
5791 instead of find_inferior.
5793 2016-05-05 Yao Qi <yao.qi@linaro.org>
5795 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
5796 Initialize res to zero.
5798 2016-05-05 Yao Qi <yao.qi@linaro.org>
5800 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
5803 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5805 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
5806 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
5807 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
5809 2016-04-28 Par Olsson <par.olsson@windriver.com>
5810 Simon Marchi <simon.marchi@ericsson.com>
5812 * tracepoint.c (write_inferior_int8): New function.
5813 (cmd_qtenable_disable): Write enable flag using
5814 write_inferior_int8.
5816 2016-04-25 Yao Qi <yao.qi@linaro.org>
5818 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
5819 (need_step_over_p): Return zero if the LWP has pending signals
5820 can be delivered on software single step target.
5822 2016-04-25 Yao Qi <yao.qi@linaro.org>
5824 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
5825 return instead of error.
5827 2016-04-22 Yao Qi <yao.qi@linaro.org>
5829 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
5832 2016-04-22 Yao Qi <yao.qi@linaro.org>
5834 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
5835 signal when stepping over breakpoint with software single
5838 2016-04-21 Pedro Alves <palves@redhat.com>
5840 * linux-s390-low.c (s390_collect_ptrace_register)
5841 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
5843 (s390_check_regset): Use void * instead of gdb_byte *.
5845 2016-04-20 Pedro Alves <palves@redhat.com>
5847 * configure: Renegerate.
5849 2016-04-20 Yao Qi <yao.qi@linaro.org>
5851 * linux-aarch32-low.c: Include "arch/arm-linux.h".
5852 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
5854 (arm_store_gregset): Likewise.
5856 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
5858 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
5859 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
5860 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
5861 (amd64-avx-mpx-linux.c): New rules.
5862 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
5863 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
5864 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
5865 (srv_amd64_regobj): Add amd64-avx-mpx.o.
5866 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
5867 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
5868 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
5869 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
5870 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
5871 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
5872 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
5873 * linux-x86-low.c (x86_linux_read_description): Add case for
5874 X86_XSTATE_AVX_MPX_MASK.
5875 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
5876 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
5877 init_registers_i386_avx_mpx_linux.
5878 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
5879 (initialize_low_tracepoint): Call
5880 init_registers_i386_avx_mpx_linux.
5881 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
5882 (initialize_low_tracepoint): Call
5883 init_registers_amd64_avx_mpx_linux.
5884 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
5885 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
5886 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
5889 2016-04-18 Pedro Alves <palves@redhat.com>
5891 * configure: Regenerate.
5893 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
5895 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
5896 (aarch64_emit_sub): Likewise.
5898 2016-04-12 Pedro Alves <palves@redhat.com>
5900 * utils.c (prepare_to_throw_exception): Delete.
5902 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
5904 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
5906 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
5908 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
5910 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
5912 * linux-aarch64-ipa.c: Add <elf.h> include.
5913 * linux-ppc-ipa.c: Add <elf.h> include.
5914 * linux-s390-ipa.c: Add <elf.h> include.
5916 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
5918 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
5919 (get_raw_reg_ptr): Likewise.
5920 (get_trace_state_variable_value_ptr): Likewise.
5921 (set_trace_state_variable_value_ptr): Likewise.
5922 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
5925 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
5926 Marcin Kościelnicki <koriakin@0x04.net>
5929 * linux-ppc-low.c (emit_insns): New function.
5930 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
5931 (ppc_emit_prologue): New function.
5932 (ppc_emit_epilogue): New function.
5933 (ppc_emit_add): New function.
5934 (ppc_emit_sub): New function.
5935 (ppc_emit_mul): New function.
5936 (ppc_emit_lsh): New function.
5937 (ppc_emit_rsh_signed): New function.
5938 (ppc_emit_rsh_unsigned): New function.
5939 (ppc_emit_ext): New function.
5940 (ppc_emit_zero_ext): New function.
5941 (ppc_emit_log_not): New function.
5942 (ppc_emit_bit_and): New function.
5943 (ppc_emit_bit_or): New function.
5944 (ppc_emit_bit_xor): New function.
5945 (ppc_emit_bit_not): New function.
5946 (ppc_emit_equal): New function.
5947 (ppc_emit_less_signed): New function.
5948 (ppc_emit_less_unsigned): New function.
5949 (ppc_emit_ref): New function.
5950 (ppc_emit_const): New function.
5951 (ppc_emit_reg): New function.
5952 (ppc_emit_pop): New function.
5953 (ppc_emit_stack_flush): New function.
5954 (ppc_emit_swap): New function.
5955 (ppc_emit_stack_adjust): New function.
5956 (ppc_emit_call): New function.
5957 (ppc_emit_int_call_1): New function.
5958 (ppc_emit_void_call_2): New function.
5959 (ppc_emit_if_goto): New function.
5960 (ppc_emit_goto): New function.
5961 (ppc_emit_eq_goto): New function.
5962 (ppc_emit_ne_goto): New function.
5963 (ppc_emit_lt_goto): New function.
5964 (ppc_emit_le_goto): New function.
5965 (ppc_emit_gt_goto): New function.
5966 (ppc_emit_ge_goto): New function.
5967 (ppc_write_goto_address): New function.
5968 (ppc_emit_ops_impl): New static variable.
5969 (ppc64v1_emit_prologue): New function.
5970 (ppc64v2_emit_prologue): New function.
5971 (ppc64_emit_epilogue): New function.
5972 (ppc64_emit_add): New function.
5973 (ppc64_emit_sub): New function.
5974 (ppc64_emit_mul): New function.
5975 (ppc64_emit_lsh): New function.
5976 (ppc64_emit_rsh_signed): New function.
5977 (ppc64_emit_rsh_unsigned): New function.
5978 (ppc64_emit_ext): New function.
5979 (ppc64_emit_zero_ext): New function.
5980 (ppc64_emit_log_not): New function.
5981 (ppc64_emit_bit_and): New function.
5982 (ppc64_emit_bit_or): New function.
5983 (ppc64_emit_bit_xor): New function.
5984 (ppc64_emit_bit_not): New function.
5985 (ppc64_emit_equal): New function.
5986 (ppc64_emit_less_signed): New function.
5987 (ppc64_emit_less_unsigned): New function.
5988 (ppc64_emit_ref): New function.
5989 (ppc64_emit_const): New function.
5990 (ppc64v1_emit_reg): New function.
5991 (ppc64v2_emit_reg): New function.
5992 (ppc64_emit_pop): New function.
5993 (ppc64_emit_stack_flush): New function.
5994 (ppc64_emit_swap): New function.
5995 (ppc64v1_emit_call): New function.
5996 (ppc64v2_emit_call): New function.
5997 (ppc64v1_emit_int_call_1): New function.
5998 (ppc64v2_emit_int_call_1): New function.
5999 (ppc64v1_emit_void_call_2): New function.
6000 (ppc64v2_emit_void_call_2): New function.
6001 (ppc64_emit_if_goto): New function.
6002 (ppc64_emit_eq_goto): New function.
6003 (ppc64_emit_ne_goto): New function.
6004 (ppc64_emit_lt_goto): New function.
6005 (ppc64_emit_le_goto): New function.
6006 (ppc64_emit_gt_goto): New function.
6007 (ppc64_emit_ge_goto): New function.
6008 (ppc64v1_emit_ops_impl): New static variable.
6009 (ppc64v2_emit_ops_impl): New static variable.
6010 (ppc_emit_ops): New function.
6011 (linux_low_target): Wire in ppc_emit_ops.
6013 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
6014 Marcin Kościelnicki <koriakin@0x04.net>
6017 * Makefile.in: Add powerpc-*-ipa.o
6018 * configure.srv: Add ipa_obj for powerpc*-linux.
6019 * linux-ppc-ipa.c: New file.
6020 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
6022 (PPC_FIELD): New macro.
6023 (PPC_SEXT): New macro.
6024 (PPC_OP6): New macro.
6025 (PPC_BO): New macro.
6026 (PPC_LI): New macro.
6027 (PPC_BD): New macro.
6028 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
6029 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
6030 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
6031 (ppc_get_thread_area): New function.
6032 (is_elfv2_inferior): New function.
6033 (gen_ds_form): New function.
6034 (GEN_STD): New macro.
6035 (GEN_STDU): New macro.
6036 (GEN_LD): New macro.
6037 (GEN_LDU): New macro.
6038 (gen_d_form): New function.
6039 (GEN_ADDI): New macro.
6040 (GEN_ADDIS): New macro.
6041 (GEN_LI): New macro.
6042 (GEN_LIS): New macro.
6043 (GEN_ORI): New macro.
6044 (GEN_ORIS): New macro.
6045 (GEN_LWZ): New macro.
6046 (GEN_STW): New macro.
6047 (GEN_STWU): New macro.
6048 (gen_xfx_form): New function.
6049 (GEN_MFSPR): New macro.
6050 (GEN_MTSPR): New macro.
6051 (GEN_MFCR): New macro.
6052 (GEN_MTCR): New macro.
6053 (GEN_SYNC): New macro.
6054 (GEN_LWSYNC): New macro.
6055 (gen_x_form): New function.
6056 (GEN_OR): New macro.
6057 (GEN_MR): New macro.
6058 (GEN_LWARX): New macro.
6059 (GEN_STWCX): New macro.
6060 (GEN_CMPW): New macro.
6061 (gen_md_form): New function.
6062 (GEN_RLDICL): New macro.
6063 (GEN_RLDICR): New macro.
6064 (gen_i_form): New function.
6066 (GEN_BL): New macro.
6067 (gen_b_form): New function.
6068 (GEN_BNE): New macro.
6069 (GEN_LOAD): New macro.
6070 (GEN_STORE): New macro.
6071 (gen_limm): New function.
6072 (gen_atomic_xchg): New function.
6073 (gen_call): New function.
6074 (ppc_relocate_instruction): New function.
6075 (ppc_install_fast_tracepoint_jump_pad): New function.
6076 (ppc_get_min_fast_tracepoint_insn_len): New function.
6077 (ppc_get_ipa_tdesc_idx): New function.
6078 (the_low_target): Wire in the new functions.
6079 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
6081 * linux-ppc-tdesc.h: New file.
6083 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
6085 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
6086 (alloc_jump_pad_buffer): New function.
6087 * linux-amd64-ipa.c: Add <sys/mman.h> include.
6088 (alloc_jump_pad_buffer): New function.
6089 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
6090 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
6091 (alloc_jump_pad_buffer): New function.
6092 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
6093 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
6094 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
6095 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
6097 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
6099 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
6100 * linux-amd64-ipa.c: Likewise.
6101 * linux-i386-ipa.c: Likewise.
6102 * linux-s390-ipa.c: Likewise.
6103 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
6104 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
6105 set_trace_state_variable_value_ptr.
6106 (struct ipa_sym_addresses): Likewise.
6107 (symbol_list): Likewise.
6108 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
6109 accessing gdb_collect directly.
6110 (gdb_collect_ptr_type): New typedef.
6111 (get_raw_reg_ptr_type): New typedef.
6112 (get_trace_state_variable_value_ptr_type): New typedef.
6113 (set_trace_state_variable_value_ptr_type): New typedef.
6114 (gdb_collect_ptr): New global.
6115 (get_raw_reg_ptr): New global.
6116 (get_trace_state_variable_value_ptr): New global.
6117 (set_trace_state_variable_value_ptr): New global.
6118 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
6119 accessing get_raw_reg directly.
6120 (get_get_tsv_func_addr): Likewise for
6121 get_trace_state_variable_value_ptr.
6122 (get_set_tsv_func_addr): Likewise for
6123 set_trace_state_variable_value_ptr.
6124 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
6126 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
6128 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
6130 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
6132 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
6134 (relocate_instruction): Remove own_buf.
6135 * server.c (own_buf): Make global.
6136 (handle_v_requests): Make global.
6137 * server.h (own_buf): New declaration.
6138 (handle_v_requests): New prototype.
6140 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6143 * linux-s390-low.c (add_insns): New function.
6144 (s390_emit_prologue): New function.
6145 (s390_emit_epilogue): New function.
6146 (s390_emit_add): New function.
6147 (s390_emit_sub): New function.
6148 (s390_emit_mul): New function.
6149 (s390_emit_lsh): New function.
6150 (s390_emit_rsh_signed): New function.
6151 (s390_emit_rsh_unsigned): New function.
6152 (s390_emit_ext): New function.
6153 (s390_emit_log_not): New function.
6154 (s390_emit_bit_and): New function.
6155 (s390_emit_bit_or): New function.
6156 (s390_emit_bit_xor): New function.
6157 (s390_emit_bit_not): New function.
6158 (s390_emit_equal): New function.
6159 (s390_emit_less_signed): New function.
6160 (s390_emit_less_unsigned): New function.
6161 (s390_emit_ref): New function.
6162 (s390_emit_if_goto): New function.
6163 (s390_emit_goto): New function.
6164 (s390_write_goto_address): New function.
6165 (s390_emit_litpool): New function.
6166 (s390_emit_const): New function.
6167 (s390_emit_call): New function.
6168 (s390_emit_reg): New function.
6169 (s390_emit_pop): New function.
6170 (s390_emit_stack_flush): New function.
6171 (s390_emit_zero_ext): New function.
6172 (s390_emit_swap): New function.
6173 (s390_emit_stack_adjust): New function.
6174 (s390_emit_set_r2): New function.
6175 (s390_emit_int_call_1): New function.
6176 (s390_emit_void_call_2): New function.
6177 (s390_emit_eq_goto): New function.
6178 (s390_emit_ne_goto): New function.
6179 (s390_emit_lt_goto): New function.
6180 (s390_emit_le_goto): New function.
6181 (s390_emit_gt_goto): New function.
6182 (s390_emit_ge_goto): New function.
6183 (s390x_emit_prologue): New function.
6184 (s390x_emit_epilogue): New function.
6185 (s390x_emit_add): New function.
6186 (s390x_emit_sub): New function.
6187 (s390x_emit_mul): New function.
6188 (s390x_emit_lsh): New function.
6189 (s390x_emit_rsh_signed): New function.
6190 (s390x_emit_rsh_unsigned): New function.
6191 (s390x_emit_ext): New function.
6192 (s390x_emit_log_not): New function.
6193 (s390x_emit_bit_and): New function.
6194 (s390x_emit_bit_or): New function.
6195 (s390x_emit_bit_xor): New function.
6196 (s390x_emit_bit_not): New function.
6197 (s390x_emit_equal): New function.
6198 (s390x_emit_less_signed): New function.
6199 (s390x_emit_less_unsigned): New function.
6200 (s390x_emit_ref): New function.
6201 (s390x_emit_if_goto): New function.
6202 (s390x_emit_const): New function.
6203 (s390x_emit_call): New function.
6204 (s390x_emit_reg): New function.
6205 (s390x_emit_pop): New function.
6206 (s390x_emit_stack_flush): New function.
6207 (s390x_emit_zero_ext): New function.
6208 (s390x_emit_swap): New function.
6209 (s390x_emit_stack_adjust): New function.
6210 (s390x_emit_int_call_1): New function.
6211 (s390x_emit_void_call_2): New function.
6212 (s390x_emit_eq_goto): New function.
6213 (s390x_emit_ne_goto): New function.
6214 (s390x_emit_lt_goto): New function.
6215 (s390x_emit_le_goto): New function.
6216 (s390x_emit_gt_goto): New function.
6217 (s390x_emit_ge_goto): New function.
6218 (s390_emit_ops): New function.
6219 (struct linux_target_ops): Fill in emit_ops hook.
6221 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6224 * Makefile.in: Add s390 IPA files.
6225 * configure.srv: Build IPA for s390.
6226 * linux-s390-ipa.c: New file.
6227 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
6228 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
6229 (tdesc_s390_linux32): Likewise.
6230 (init_registers_s390_linux32v1): Likewise.
6231 (tdesc_s390_linux32v1): Likewise.
6232 (init_registers_s390_linux32v2): Likewise.
6233 (tdesc_s390_linux32v2): Likewise.
6234 (init_registers_s390_linux64): Likewise.
6235 (tdesc_s390_linux64): Likewise.
6236 (init_registers_s390_linux64v1): Likewise.
6237 (tdesc_s390_linux64v1): Likewise.
6238 (init_registers_s390_linux64v2): Likewise.
6239 (tdesc_s390_linux64v2): Likewise.
6240 (init_registers_s390_te_linux64): Likewise.
6241 (tdesc_s390_te_linux64): Likewise.
6242 (init_registers_s390_vx_linux64): Likewise.
6243 (tdesc_s390_vx_linux64): Likewise.
6244 (init_registers_s390_tevx_linux64): Likewise.
6245 (tdesc_s390_tevx_linux64): Likewise.
6246 (init_registers_s390x_linux64): Likewise.
6247 (tdesc_s390x_linux64): Likewise.
6248 (init_registers_s390x_linux64v1): Likewise.
6249 (tdesc_s390x_linux64v1): Likewise.
6250 (init_registers_s390x_linux64v2): Likewise.
6251 (tdesc_s390x_linux64v2): Likewise.
6252 (init_registers_s390x_te_linux64): Likewise.
6253 (tdesc_s390x_te_linux64): Likewise.
6254 (init_registers_s390x_vx_linux64): Likewise.
6255 (tdesc_s390x_vx_linux64): Likewise.
6256 (init_registers_s390x_tevx_linux64): Likewise.
6257 (tdesc_s390x_tevx_linux64): Likewise.
6258 (have_hwcap_s390_vx): New static variable.
6259 (s390_arch_setup): Fill have_hwcap_s390_vx.
6260 (s390_get_thread_area): New function.
6261 (s390_ft_entry_gpr_esa): New const.
6262 (s390_ft_entry_gpr_zarch): New const.
6263 (s390_ft_entry_misc): New const.
6264 (s390_ft_entry_fr): New const.
6265 (s390_ft_entry_vr): New const.
6266 (s390_ft_main_31): New const.
6267 (s390_ft_main_64): New const.
6268 (s390_ft_exit_fr): New const.
6269 (s390_ft_exit_vr): New const.
6270 (s390_ft_exit_misc): New const.
6271 (s390_ft_exit_gpr_esa): New const.
6272 (s390_ft_exit_gpr_zarch): New const.
6273 (append_insns): New function.
6274 (s390_relocate_instruction): New function.
6275 (s390_install_fast_tracepoint_jump_pad): New function.
6276 (s390_get_min_fast_tracepoint_insn_len): New function.
6277 (s390_get_ipa_tdesc_idx): New function.
6278 (struct linux_target_ops): Wire in the above functions.
6279 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
6280 * linux-s390-tdesc.h: New file.
6282 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6284 * linux-s390-low.c (s390_supports_tracepoints): New function.
6285 (struct linux_target_ops): Fill supports_tracepoints hook.
6287 2016-03-18 Yao Qi <yao.qi@linaro.org>
6289 * linux-low.c (lwp_signal_can_be_delivered): New function.
6290 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
6292 2016-03-18 Yao Qi <yao.qi@linaro.org>
6294 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
6295 0 if signal is enqueued. Remove 'signal' from one debugging
6296 message. Move one debugging message to some lines below.
6297 Remove code setting 'signal' to 0.
6299 2016-03-18 Yao Qi <yao.qi@linaro.org>
6301 * linux-low.c (linux_low_filter_event): Remove redundant
6302 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
6304 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
6306 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
6307 (struct linux_target_ops): Wire in the above.
6309 2016-03-03 Yao Qi <yao.qi@linaro.org>
6311 * linux-low.c: Update comments to start_step_over.
6313 2016-03-03 Yao Qi <yao.qi@linaro.org>
6316 * linux-low.c (handle_extended_wait): Set child suspended
6317 if event_lwp->bp_reinsert isn't zero.
6319 2016-03-02 Yao Qi <yao.qi@linaro.org>
6321 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
6322 enqueue_pending_signal.
6324 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
6326 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
6329 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
6331 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
6332 (s390_regmap_3264) [!__s390x__]: New global.
6333 (s390_collect_ptrace_register): Skip map entries containing -1.
6334 (s390_supply_ptrace_register): Ditto.
6335 (s390_fill_gprs_high): New function.
6336 (s390_store_gprs_high): New function.
6337 (s390_regsets): Add NT_S390_HIGH_GPRS.
6338 (s390_get_hwcap): Enable on 31-bit.
6339 (have_hwcap_s390_high_gprs): Enable on 31-bit.
6340 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
6341 Detect NT_S390_HIGH_GPRS.
6342 (s390_usrregs_info_3264): Enable on 31-bit.
6343 (s390_regs_info): Enable regs_info_3264 on 31-bit.
6344 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
6346 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
6349 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
6350 * configure.srv: Ditto.
6351 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
6352 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
6353 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
6354 (init_registers_amd64_linux): Remove prototype.
6355 (tdesc_amd64_linux): Remove declaration.
6356 (get_ipa_tdesc): New function.
6357 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
6358 initialize remaining tdescs.
6359 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
6360 (init_registers_i386_linux): Remove prototype.
6361 (tdesc_i386_linux): Remove declaration.
6362 (get_ipa_tdesc): New function.
6363 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
6364 initialize remaining tdescs.
6365 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
6366 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
6367 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
6368 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
6369 (x86_get_ipa_tdesc_idx): New function.
6370 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
6371 * linux-x86-tdesc.h: New file.
6372 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
6373 (target_get_ipa_tdesc_idx): New macro.
6374 * tracepoint.c (ipa_tdesc_idx): New macro.
6375 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
6376 (symbol_list): Add ipa_tdesc_idx.
6377 (cmd_qtstart): Write ipa_tdesc_idx in the target.
6378 (ipa_tdesc): Remove.
6379 (ipa_tdesc_idx): New variable.
6380 (get_context_regcache): Use get_ipa_tdesc.
6381 (gdb_collect): Ditto.
6383 * tracepoint.h (get_ipa_tdesc): New prototype.
6384 (ipa_tdesc): Remove.
6386 2016-02-24 Pedro Alves <palves@redhat.com>
6388 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
6389 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
6390 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
6391 Factor out common code between the USE_SIGTRAP_SIGINFO and
6392 !USE_SIGTRAP_SIGINFO blocks.
6393 (linux_low_filter_event): Call save_stop_reason instead of
6394 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
6396 (linux_wait_1): Update comments.
6398 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
6400 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
6401 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
6402 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
6403 ppc_insert_point, ppc_remove_point.
6405 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
6407 * linux-s390-low.c (s390_supports_z_point_type): New function.
6408 (struct linux_target_ops): Wire s390_supports_z_point_type in.
6410 2016-02-16 Yao Qi <yao.qi@linaro.org>
6412 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
6413 PC. Get pc from regcache_read_pc.
6415 2016-02-12 Yao Qi <yao.qi@linaro.org>
6417 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
6418 or linux_get_pc_32bit.
6419 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
6421 2016-02-12 Yao Qi <yao.qi@linaro.org>
6423 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
6424 arm_linux_get_next_pcs_fixup.
6426 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
6428 * tracepoint.c (x_tracepoint_action_download): Change
6429 write_inferior_data_ptr to write_inferior_data_pointer.
6430 (cmd_qtstart): Likewise.
6431 (write_inferior_data_ptr): Remove.
6432 (download_agent_expr): Change write_inferior_data_ptr to
6433 write_inferior_data_pointer.
6434 (download_tracepoint_1): Likewise.
6435 (download_tracepoint): Likewise.
6436 (download_trace_state_variables): Likewise.
6438 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
6439 Marcin Kościelnicki <koriakin@0x04.net>
6441 * tracepoint.c (struct tracepoint_action_ops): Remove.
6442 (struct tracepoint_action): Remove ops.
6443 (m_tracepoint_action_download, r_tracepoint_action_download)
6444 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
6445 size and offset accordingly.
6446 (m_tracepoint_action_ops, r_tracepoint_action_ops)
6447 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
6448 (tracepoint_action_send, tracepoint_action_download): New functions.
6449 Helpers for trace action handlers.
6450 (add_tracepoint_action): Remove setup actions ops.
6451 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
6453 2016-02-10 Yao Qi <yao.qi@linaro.org>
6455 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
6457 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
6459 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
6461 * configure: Regenerate.
6463 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
6465 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
6466 void * to gdb_byte *.
6467 * linux-low.c (siginfo_fixup): Likewise.
6468 (linux_xfer_siginfo): Likewise.
6469 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
6471 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
6473 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
6475 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
6477 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
6479 * linux-x86-low.c [__x86_64__]: Include
6480 "nat/amd64-linux-siginfo.h".
6481 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
6482 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
6483 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
6484 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
6485 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
6486 (cpt_si_fd, si_timerid, si_overrun): Move from
6487 nat/amd64-linux-siginfo.c.
6488 * Makefile.in (amd64-linux-siginfo.o:): New rule.
6490 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
6492 * server.c (skip_to_semicolon): Remove.
6493 (process_point_options): Use strchrnul instead of
6496 2016-01-26 Yao Qi <yao.qi@linaro.org>
6498 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
6499 * linux-low.c (install_software_single_step_breakpoints): Don't
6500 call regcache_read_pc.
6501 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
6504 2016-01-26 Yao Qi <yao.qi@linaro.org>
6506 * linux-low.c (install_software_single_step_breakpoints): Call
6507 regcache_read_pc instead of get_pc.
6509 2016-01-26 Yao Qi <yao.qi@linaro.org>
6511 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
6512 (unblock_async_io): Rename to ...
6513 (block_unblock_async_io): ... it. New function.
6514 (enable_async_io): Don't install SIGIO handler. Unblock it
6516 (disable_async_io): Don't ignore SIGIO. Block it instead.
6517 (initialize_async_io): Install SIGIO handler. Don't call
6520 2016-01-26 Yao Qi <yao.qi@linaro.org>
6522 * remote-utils.c (getpkt): If the buffer isn't empty, and the
6523 first character is '\003', call *the_target->request_interrupt.
6525 2016-01-25 Yao Qi <yao.qi@linaro.org>
6527 * remote-utils.c (new_thread_notify): Remove.
6528 (dead_thread_notify): Likewise.
6529 * remote-utils.h (new_thread_notify): Remove declaration.
6530 (dead_thread_notify): Likewise.
6532 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
6534 * gdb.trace/pending.exp: Fix expected message on continue.
6536 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
6538 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
6539 it works properly on big-endian machines where sizeof (CORE_ADDR)
6542 2016-01-21 Pedro Alves <palves@redhat.com>
6544 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
6545 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
6546 * configure: Regenerate.
6548 2016-01-21 Yao Qi <yao.qi@linaro.org>
6550 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
6551 is_thumb and set it according to CPSR saved on the stack.
6552 (get_next_pcs_syscall_next_pc): Pass is_thumb to
6553 arm_sigreturn_next_pc.
6555 2016-01-18 Yao Qi <yao.qi@linaro.org>
6557 * linux-low.c (linux_set_pc_64bit): New function.
6558 (linux_get_pc_64bit): New function.
6559 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
6561 * linux-sparc-low.c (debug_threads): Remove declaration.
6562 (sparc_get_pc): Remove.
6563 (the_low_target): Use linux_get_pc_64bit instead of
6565 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
6566 (the_low_target): Use linux_get_pc_64bit and
6569 2016-01-18 Yao Qi <yao.qi@linaro.org>
6571 * linux-arm-low.c (debug_threads): Remove declaration.
6572 (arm_get_pc, arm_set_pc): Remove.
6573 (the_low_target): Use linux_get_pc_32bit and
6575 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
6576 (the_low_target): Use linux_get_pc_32bit and
6578 * linux-cris-low.c (debug_threads): Remove declaration.
6579 (cris_get_pc, cris_set_pc,): Remove.
6580 (the_low_target): Use linux_get_pc_32bit and
6582 * linux-crisv32-low.c (debug_threads): Remove declaration.
6583 (cris_get_pc, cris_set_pc): Remove.
6584 (the_low_target): Use linux_get_pc_32bit and
6586 * linux-low.c: Include inttypes.h.
6587 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
6588 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
6589 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
6590 (the_low_target): Use linux_get_pc_32bit and
6592 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
6593 (the_low_target): Use linux_get_pc_32bit and
6595 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
6596 (the_low_target): Use linux_get_pc_32bit and
6598 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
6599 (the_low_target): Use linux_get_pc_32bit and
6601 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
6602 (the_low_target): Use linux_get_pc_32bit and
6605 2016-01-18 Gary Benson <gbenson@redhat.com>
6607 * configure.ac (AC_FUNC_FORK): New check.
6608 * config.in: Regenerate.
6609 * configure: Likewise.
6611 2016-01-14 Yao Qi <yao.qi@linaro.org>
6613 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
6614 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
6615 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
6616 arm_get_next_pcs_ctor.
6618 2016-01-12 Josh Stone <jistone@redhat.com>
6619 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6621 * inferiors.h: Include "gdb_vecs.h".
6622 (struct process_info): Add syscalls_to_catch.
6623 * inferiors.c (remove_process): Free syscalls_to_catch.
6624 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
6625 syscall_return stops.
6626 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
6627 * server.c (handle_general_set): Handle QCatchSyscalls.
6628 (handle_query): Report support for QCatchSyscalls.
6629 * target.h (struct target_ops): Add supports_catch_syscall.
6630 (target_supports_catch_syscall): New macro.
6631 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
6632 (struct lwp_info): Add syscall_state.
6633 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
6634 Maintain syscall_state and syscalls_to_catch across exec.
6635 (get_syscall_trapinfo): New function, proxy to the_low_target.
6636 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
6637 (linux_low_filter_event): Toggle syscall_state entry/return for
6638 syscall traps, and set it ignored for all others.
6639 (gdb_catching_syscalls_p): New function.
6640 (gdb_catch_this_syscall_p): New function.
6641 (linux_wait_1): Handle SYSCALL_SIGTRAP.
6642 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
6643 (linux_supports_catch_syscall): New function.
6644 (linux_target_ops): Install it.
6645 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
6646 (the_low_target): Install it.
6648 2016-01-12 Mike Frysinger <vapier@gentoo.org>
6650 * acinclude.m4: Include new ../warning.m4 file.
6651 * configure: Regenerated.
6652 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
6654 2016-01-12 Mike Frysinger <vapier@gentoo.org>
6656 * ax.c (is_goto_target): Mark static.
6657 * linux-low.c (register_addr): Likewise.
6658 (linux_fetch_registers, linux_store_registers): Likewise.
6659 * mem-break.c (any_persistent_commands): Fix old prototype.
6660 (add_commands_to_breakpoint): Mark static.
6661 * regcache.c (find_register_by_name): Delete unused func.
6662 * remote-utils.c (hex_or_minus_one): Mark static.
6663 * server.c (monitor_show_help): Mark static.
6664 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
6665 handle_v_requests): Likewise.
6667 2016-01-12 Pedro Alves <palves@redhat.com>
6669 Remove use of the registered trademark symbol throughout.
6671 2016-01-08 Yao Qi <yao.qi@linaro.org>
6673 * remote-utils.c (getpkt): If c is '\003', call target hook
6676 2016-01-06 Yao Qi <yao.qi@linaro.org>
6678 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
6679 linux-aarch32-low.c.
6680 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6681 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
6682 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6683 (thumb2_breakpoint): Declare.
6684 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
6685 linux-aarch32-low.h.
6686 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6687 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
6688 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6690 2016-01-01 Joel Brobecker <brobecker@adacore.com>
6692 * gdbreplay.c (gdbreplay_version): Change copyright year in
6694 * server.c (gdbserver_version): Likewise.
6696 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
6698 * server.c (crc32_table): Delete.
6699 (crc32): Use libiberty's xcrc32 function.
6701 2015-12-22 Joel Brobecker <brobecker@adacore.com>
6703 * lynx-low.c (lynx_delete_thread_callback): New function.
6704 (lynx_mourn): Properly delete our process and all of its
6705 threads. Remove call to clear_inferiors.
6707 2015-12-22 Joel Brobecker <brobecker@adacore.com>
6709 * target.c (thread_search_callback): Add check that
6710 the thread_stopped target callback is not NULL before
6713 2015-12-21 Yao Qi <yao.qi@linaro.org>
6715 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
6718 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6720 * server.c (handle_query): Call target_supports_software_single_step.
6722 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6724 * linux-low.c (single_step): New function.
6725 (linux_resume_one_lwp_throw): Call single_step.
6726 (start_step_over): Likewise.
6728 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6730 * Makefile.in (SFILES): Append arch/arm-linux.c,
6731 arch/arm-get-next-pcs.c.
6732 (arm-linux.o): New rule.
6733 (arm-get-next-pcs.o): New rule.
6734 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
6736 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
6737 to linux-aarch32-low.c.
6738 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6739 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6740 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6741 (thumb2_breakpoint_len): Likewise.
6742 (arm_is_thumb_mode): Make non-static.
6743 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
6744 from linux-aarch32-low.c.
6745 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6746 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6747 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6748 (thumb2_breakpoint_len): Likewise.
6749 (arm_is_thumb_mode): New declaration.
6750 * linux-arm-low.c: Include arch/arm-linux.h
6751 aarch/arm-get-next-pcs.h, sys/syscall.h.
6752 (get_next_pcs_ops): New struct.
6753 (get_next_pcs_addr_bits_remove): New function.
6754 (get_next_pcs_is_thumb): New function.
6755 (get_next_pcs_read_memory_unsigned_integer): Likewise.
6756 (arm_sigreturn_next_pc): Likewise.
6757 (get_next_pcs_syscall_next_pc): Likewise.
6758 (arm_gdbserver_get_next_pcs): Likewise.
6759 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
6761 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
6762 * server.h: Include gdb_vecs.h.
6764 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6766 * Makefile.in (SFILES): Append common/common-regcache.c.
6767 (OBS): Append common-regcache.o.
6768 (common-regcache.o): New rule.
6769 * regcache.c (init_register_cache): Initialize cache to
6771 (regcache_raw_read_unsigned): New function.
6772 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
6773 register_status enum.
6775 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6777 * linux-aarch64-low.c (the_low_targets): Rename
6778 breakpoint_reinsert_addr to get_next_pcs.
6779 * linux-arm-low.c (the_low_targets): Likewise.
6780 * linux-bfin-low.c (the_low_targets): Likewise.
6781 * linux-cris-low.c (the_low_targets): Likewise.
6782 * linux-crisv32-low.c (the_low_targets): Likewise.
6783 * linux-low.c (can_software_single_step): Likewise.
6784 (install_software_single_step_breakpoints): New function.
6785 (start_step_over): Use install_software_single_step_breakpoints.
6786 * linux-low.h: New CORE_ADDR vector.
6787 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
6789 * linux-mips-low.c (the_low_targets): Likewise.
6790 * linux-nios2-low.c (the_low_targets): Likewise.
6791 * linux-sparc-low.c (the_low_targets): Likewise.
6793 2015-12-17 Pedro Alves <palves@redhat.com>
6795 * linux-low.c (linux_kill_one_lwp): Remove references to
6797 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
6799 (linux_init_signals): Delete.
6800 (initialize_low): Adjust.
6801 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
6803 2015-12-16 Pedro Alves <palves@redhat.com>
6805 * configure.ac (compiler warning flags): When testing a
6806 -Wno-foo option, check whether -Wfoo works instead.
6807 * configure: Regenerate.
6809 2015-12-11 Don Breazeal <donb@codesourcery.com>
6811 * server.c (process_serial_event): Don't exit from gdbserver
6812 in remote mode if there are still active inferiors.
6814 2015-12-11 Yao Qi <yao.qi@linaro.org>
6816 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
6817 arm_breakpoint_at if the process is 32-bit.
6819 2015-12-11 Yao Qi <yao.qi@linaro.org>
6821 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
6824 2015-12-07 Yao Qi <yao.qi@linaro.org>
6826 * configure.srv: Append arm.o to srv_tgtobj for
6827 aarch64*-*-linux* target.
6828 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
6829 from linux-arm-low.c.
6830 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6831 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6832 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6833 (thumb2_breakpoint_len): Likewise.
6834 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
6835 (arm_breakpoint_kinds): Likewise.
6836 (arm_breakpoint_kind_from_pc): Likewise.
6837 (arm_sw_breakpoint_from_kind): Likewise.
6838 (arm_breakpoint_kind_from_current_state): Likewise.
6839 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
6840 (arm_sw_breakpoint_from_kind): Declare.
6841 (arm_breakpoint_kind_from_current_state): Declare.
6842 (arm_breakpoint_at): Declare.
6843 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
6844 arm_sw_breakpoint_from_kind if process is 32-bit.
6845 (aarch64_breakpoint_kind_from_pc): New function.
6846 (aarch64_breakpoint_kind_from_current_state): New function.
6847 (the_low_target): Initialize fields breakpoint_kind_from_pc
6848 and breakpoint_kind_from_current_state.
6849 * linux-arm-low.c (arm_breakpoint_kinds): Move to
6850 linux-aarch32-low.c.
6851 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
6852 (arm_breakpoint, arm_breakpoint_len): Likewise.
6853 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
6854 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6855 (arm_is_thumb_mode): Likewise.
6856 (arm_breakpoint_at): Likewise.
6857 (arm_breakpoint_kind_from_pc): Likewise.
6858 (arm_sw_breakpoint_from_kind): Likewise.
6859 (arm_breakpoint_kind_from_current_state): Likewise.
6862 2015-08-04 Yao Qi <yao.qi@linaro.org>
6864 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
6865 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
6866 * server.c (extended_protocol): Remove "static".
6867 * server.h (extended_protocol): Declare it.
6869 2015-12-04 Josh Stone <jistone@redhat.com>
6871 * target.h (struct target_ops) <arch_setup>: Rename to ...
6872 (struct target_ops) <post_create_inferior>: ... this.
6873 (target_arch_setup): Rename to ...
6874 (target_post_create_inferior): ... this, calling post_create_inferior.
6875 * server.c (start_inferior): Update target_arch_setup calls to
6876 target_post_create_inferior.
6877 * linux-low.c (linux_low_ptrace_options): Forward declare.
6878 (linux_arch_setup): Update its comment for general use.
6879 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
6880 (struct linux_target_ops): Use linux_post_create_inferior.
6881 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
6882 to post_create_inferior.
6883 * nto-low.c (struct nto_target_ops): Likewise.
6884 * spu-low.c (struct spu_target_ops): Likewise.
6885 * win32-low.c (struct win32_target_ops): Likewise.
6887 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
6889 * linux-arm-low.c: Remove duplicate arch/arm.h include.
6891 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6893 * linux-arm-low.c (arm_reinsert_addr): Remove function.
6894 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
6895 * linux-cris-low.c (cris_reinsert_addr> Remove function.
6896 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6897 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
6898 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6899 * linux-mips-low.c (mips_reinsert_addr): Remove function.
6900 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6901 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
6902 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6903 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
6904 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6906 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6908 * linux-low.c (linux_look_up_symbols): Don't call
6909 linux_supports_traceclone.
6910 * linux-low.h (thread_db_init): Remove use_events argument.
6911 * thread-db.c (thread_db_use_event): Remove global variable.
6912 (struct thread_db) <td_thr_event_enable_p>: Remove field.
6913 (struct thread_db) <td_create_bp>: Remove field.
6914 (thread_db_create_event): Remove function.
6915 (thread_db_enable_reporting): Likewise.
6916 (find_one_thread): Don't check for thread_db_use_events.
6917 (attach_thread): Likewise.
6918 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
6919 (try_thread_db_load_1): Don't check for thread_db_use_events.
6920 (thread_db_init): Remove use_events argument and thread events
6922 (remove_thread_event_breakpoints): Remove function.
6923 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
6925 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6927 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
6929 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6930 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
6931 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6932 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
6933 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
6935 * linux-crisv32-low.c (cris_supports_hardware_single_step):
6937 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6938 * linux-low.c (can_hardware_single_step): Use
6939 supports_hardware_single_step.
6940 (can_software_single_step): New function.
6941 (start_step_over): Call can_software_single_step.
6942 (linux_supports_hardware_single_step): New function.
6943 (struct target_ops) <supports_software_single_step>: Initialize.
6944 * linux-low.h (struct linux_target_ops)
6945 <supports_hardware_single_step>: Initialize.
6946 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
6947 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6948 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
6949 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
6950 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
6951 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6952 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
6953 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6954 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
6955 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
6957 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
6958 (struct linux_target_ops) <tile_supports_hardware_single_step>:
6960 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
6961 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6962 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
6964 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6965 * target.h (struct target_ops): <supports_software_single_step>:
6967 (target_supports_software_single_step): New macro.
6969 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6971 * linux-low.c (linux_wait_1): Fix pc advance condition.
6972 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
6973 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
6975 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6977 * linux-arm-low.c (arm_is_thumb_mode): New function.
6978 (arm_breakpoint_at): Use arm_is_thumb_mode.
6979 (arm_breakpoint_kind_from_current_state): New function.
6980 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
6982 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
6983 (linux_breakpoint_kind_from_current_state): New function.
6984 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
6985 * linux-low.h (struct linux_target_ops)
6986 <breakpoint_kind_from_current_state>: New field.
6987 * target.h (struct target_ops): Likewise.
6988 (target_breakpoint_kind_from_current_state): New macro.
6990 2015-11-30 Pedro Alves <palves@redhat.com>
6992 * linux-low.c (linux_resume): Wake up the event loop before
6995 2015-11-30 Pedro Alves <palves@redhat.com>
6997 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
6999 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
7001 * target.c (struct thread_search): New structure.
7002 (thread_search_callback): New function.
7003 (prev_general_thread): New global.
7004 (prepare_to_access_memory, done_accessing_memory): New functions.
7005 * target.h (prepare_to_access_memory, done_accessing_memory):
7006 Replace macros with function declarations.
7008 2015-11-30 Pedro Alves <palves@redhat.com>
7011 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
7012 report TARGET_WAITKIND_NO_RESUMED.
7013 * remote-utils.c (prepare_resume_reply): Handle
7014 TARGET_WAITKIND_NO_RESUMED.
7015 * server.c (report_no_resumed): New global.
7016 (handle_query) <qSupported>: Handle "no-resumed+". Report
7017 "no-resumed+" support.
7018 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
7019 return error if the client doesn't support no-resumed events.
7020 (push_stop_notification): New function.
7021 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
7022 events if the client supports them.
7024 2015-11-30 Pedro Alves <palves@redhat.com>
7026 * linux-low.c (thread_still_has_status_pending_p): Don't check
7028 (lwp_resumed): New function.
7029 (status_pending_p_callback): Return early if the LWP is not
7030 supposed to be resumed.
7032 2015-11-30 Pedro Alves <palves@redhat.com>
7034 * linux-low.c (handle_extended_wait): Assert that the LWP's
7035 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
7036 thread create events, leave the new child's status pending.
7037 (linux_low_filter_event): If GDB wants to hear about thread exit
7038 events, leave the LWP marked dead and don't delete it.
7039 (linux_wait_for_event_filtered): Don't check for thread exit.
7040 (filter_exit_event): New function.
7041 (linux_wait_1): Use it, when returning an exit event.
7042 (linux_resume_one_lwp_throw): Assert that the LWP's
7043 waitstatus is TARGET_WAITKIND_IGNORE.
7044 * remote-utils.c (prepare_resume_reply): Handle
7045 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
7046 * server.c (report_thread_events): New global.
7047 (handle_general_set): Handle QThreadEvents.
7048 (handle_query) <qSupported>: Handle and report QThreadEvents+;
7049 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
7050 TARGET_WAITKIND_THREAD_EXITED.
7051 * server.h (report_thread_events): Declare.
7053 2015-11-30 Pedro Alves <palves@redhat.com>
7055 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
7056 the thread's last_resume_kind was resume_stop.
7058 2015-11-30 Pedro Alves <palves@redhat.com>
7060 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
7063 2015-11-30 Pedro Alves <palves@redhat.com>
7065 * server.c (handle_v_requests): Handle vCtrlC.
7067 2015-11-30 Pedro Alves <palves@redhat.com>
7069 * gdbthread.h (find_any_thread_of_pid): Declare.
7070 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
7072 * server.c (handle_query): If current_thread is NULL, look for
7073 another thread of the selected process.
7075 2015-11-26 Daniel Colascione <dancol@dancol.org>
7076 Simon Marchi <simon.marchi@ericsson.com>
7078 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
7079 * server.c (handle_qxfer_threads_worker): Refactor to include thread
7081 * target.h (struct target_ops) <thread_name>: New field.
7082 (target_thread_name): New macro.
7084 2015-11-23 Joel Brobecker <brobecker@adacore.com>
7086 * regcache.h (regcache_invalidate_pid): Add declaration.
7087 * regcache.c (regcache_invalidate_pid): New function, extracted
7088 from regcache_invalidate.
7089 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
7090 Add trivial documentation comment.
7091 * lynx-low.c: Use regcache_invalidate_pid instead of
7092 regcache_invalidate.
7094 2015-11-23 Joel Brobecker <brobecker@adacore.com>
7096 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
7097 and Elf64_auxv_t if the target is Android.
7099 2015-11-22 Doug Evans <xdje42@gmail.com>
7101 * target.h: #include <sys/types.h>.
7103 2015-11-19 Pedro Alves <palves@redhat.com>
7105 * linux-low.c (linux_process_qsupported): Change prototype.
7107 * linux-low.h (struct linux_target_ops) <process_qsupported>:
7109 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
7110 and adjust to loop over all features.
7111 * server.c (handle_query) <qSupported>: Adjust to call
7112 target_process_qsupported once, passing it a vector of unprocessed
7114 * target.h (struct target_ops) <process_qsupported>: Change
7116 (target_process_qsupported): Adjust.
7118 2015-11-19 Pedro Alves <palves@redhat.com>
7120 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
7122 * configure: Regenerate.
7124 2015-11-19 Pedro Alves <palves@redhat.com>
7126 * configure: Regenerate.
7128 2015-11-19 Yao Qi <yao.qi@linaro.org>
7130 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
7133 2015-11-19 Yao Qi <yao.qi@linaro.org>
7135 * linux-aarch64-low.c (enum aarch64_operand_type): New.
7136 (struct aarch64_operand): Move enum out.
7138 2015-11-19 Yao Qi <yao.qi@linaro.org>
7140 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
7141 struct user_fpsimd_state *.
7142 (aarch64_store_fpregset): Likewise.
7144 2015-11-19 Yao Qi <yao.qi@linaro.org>
7146 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
7147 struct user_pt_regs *.
7148 (aarch64_store_gregset): Likewise.
7150 2015-11-18 Pedro Alves <palves@redhat.com>
7152 * Makefile.in (all_object_files): Add $IPA_OBJS.
7154 2015-11-17 Pedro Alves <palves@redhat.com>
7156 * win32-low.c (win32_resume): Use gdb_signal_from_host,
7157 GDB_SIGNAL_0 and gdb_signal_to_string.
7159 2015-11-17 Pedro Alves <palves@redhat.com>
7161 * win32-low.c (handle_output_debug_string): Remove parameter.
7162 (win32_kill): Remove our_status local and adjust call to
7163 handle_output_debug_string.
7164 (get_child_debug_event): Adjust call to
7165 handle_output_debug_string.
7167 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7169 * linux-mips-low.c (mips_fill_gregset): Add cast.
7170 (mips_store_gregset): Likewise.
7171 (mips_fill_fpregset): Likewise.
7172 (mips_store_fpregset): Likewise.
7174 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7176 * linux-mips-low.c (mips_add_watchpoint): Rename private to
7179 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7181 * linux-mips-low.c (mips_linux_new_thread): Change type of
7182 watch_type to enum target_hw_bp_type.
7184 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7186 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
7187 Change return type to arm_hwbp_type.
7189 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7191 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
7192 (arm_store_gregset): Likewise.
7193 * linux-arm-low.c (arm_get_hwcap): Likewise.
7194 (arm_read_description): Likewise.
7196 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7198 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
7200 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7202 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
7203 (ppc_fill_vsxregset): Likewise.
7204 (ppc_store_vsxregset): Likewise.
7205 (ppc_fill_vrregset): Likewise.
7206 (ppc_store_vrregset): Likewise.
7207 (ppc_fill_evrregset): Likewise.
7208 (ppc_store_evrregset): Likewise.
7210 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7212 * linux-ppc-low.c (ppc_usrregs_info): Remove
7213 forward-declaration.
7214 (ppc_arch_setup): Move lower in file.
7216 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
7218 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
7219 (ps_pdwrite): Likewise.
7221 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
7223 * linux-arm-low.c (arm_new_thread): Move pointer dereference
7224 to after assert checks.
7226 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
7228 * proc-service.c (ps_pdread): Add/adjust casts.
7229 (ps_pdwrite): Add/adjust casts.
7231 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
7233 * server.c (handle_search_memory_1): Cast return value of
7236 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
7238 * server.c (write_qxfer_response): Change type of data to
7241 2015-10-29 Pedro Alves <palves@redhat.com>
7243 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
7245 2015-10-29 Pedro Alves <palves@redhat.com>
7247 * tracepoint.c (clear_installed_tracepoints): Add casts.
7249 2015-10-29 Pedro Alves <palves@redhat.com>
7251 * server.c (handle_v_cont, process_serial_event): Add enum
7252 gdb_signal casts to signal parsing code.
7254 2015-10-29 Pedro Alves <palves@redhat.com>
7256 * linux-low.h (NULL_REGSET): Define.
7257 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
7258 * linux-arm-low.c (arm_regsets): Likewise.
7259 * linux-crisv32-low.c (cris_regsets): Likewise.
7260 * linux-m68k-low.c (m68k_regsets): Likewise.
7261 * linux-mips-low.c (mips_regsets): Likewise.
7262 * linux-nios2-low.c (nios2_regsets): Likewise.
7263 * linux-ppc-low.c (ppc_regsets): Likewise.
7264 * linux-s390-low.c (s390_regsets): Likewise.
7265 * linux-sh-low.c (sh_regsets): Likewise.
7266 * linux-sparc-low.c (sparc_regsets): Likewise.
7267 * linux-tic6x-low.c (tic6x_regsets): Likewise.
7268 * linux-tile-low.c (tile_regsets): Likewise.
7269 * linux-x86-low.c (x86_regsets): Likewise.
7270 * linux-xtensa-low.c (xtensa_regsets): Likewise.
7272 2015-10-29 Pedro Alves <palves@redhat.com>
7274 * linux-low.h (NULL_REGSET): Define.
7275 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
7276 * linux-arm-low.c (arm_regsets): Likewise.
7277 * linux-crisv32-low.c (cris_regsets): Likewise.
7278 * linux-m68k-low.c (m68k_regsets): Likewise.
7279 * linux-mips-low.c (mips_regsets): Likewise.
7280 * linux-nios2-low.c (nios2_regsets): Likewise.
7281 * linux-ppc-low.c (ppc_regsets): Likewise.
7282 * linux-s390-low.c (s390_regsets): Likewise.
7283 * linux-sh-low.c (sh_regsets): Likewise.
7284 * linux-sparc-low.c (sparc_regsets): Likewise.
7285 * linux-tic6x-low.c (tic6x_regsets): Likewise.
7286 * linux-tile-low.c (tile_regsets): Likewise.
7287 * linux-x86-low.c (x86_regsets): Likewise.
7288 * linux-xtensa-low.c (xtensa_regsets): Likewise.
7290 2015-10-26 Doug Evans <dje@google.com>
7292 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
7294 2015-10-26 Doug Evans <dje@google.com>
7296 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
7298 2015-10-26 Doug Evans <dje@google.com>
7300 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
7302 (attach_thread, find_new_threads_callback): Ditto.
7304 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7306 * mem-break.h (set_breakpoint_data): Remove.
7308 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7310 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
7311 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
7312 (initialize_low): Remove set_breakpoint_data call.
7313 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
7314 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
7315 (initialize_low): Remove set_breakpoint_data call.
7316 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
7317 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
7318 (initialize_low): Remove set_breakpoint_data call.
7320 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7322 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
7323 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
7324 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
7325 * target.h (target_breakpoint_kind_from_pc): New macro.
7327 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
7329 * linux-low.c (default_breakpoint_kind_from_pc): New function.
7330 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
7331 the default breakpoint kind.
7333 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7335 * linux-arm-low.c (arm_supports_z_point_type): Add software
7338 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7340 * linux-arm-low.c: Refactor breakpoint definitions.
7341 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
7342 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
7344 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7346 * Makefile.in: Add arm.c/o.
7347 * configure.srv: Likewise.
7348 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
7349 (arm_breakpoint_kind_from_pc): New function.
7350 (arm_sw_breakpoint_from_kind): Return proper kind.
7351 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
7353 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7355 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
7357 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
7358 (struct raw_breakpoint) <size>: Remove.
7359 (struct raw_breakpoint) <kind>: Add.
7360 (bp_size): New function.
7361 (bp_opcode): Likewise.
7362 (find_raw_breakpoint_at): Adjust for kind.
7363 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
7364 (remove_memory_breakpoint): Adjust for kind call bp_size.
7365 (set_raw_breakpoint_at): Adjust for kind.
7366 (set_breakpoint): Likewise.
7367 (set_breakpoint_at): Call breakpoint_kind_from_pc.
7368 (delete_raw_breakpoint): Adjust for kind.
7369 (delete_breakpoint): Likewise.
7370 (find_gdb_breakpoint): Likewise.
7371 (set_gdb_breakpoint_1): Likewise.
7372 (set_gdb_breakpoint): Likewise.
7373 (delete_gdb_breakpoint_1): Likewise.
7374 (delete_gdb_breakpoint): Likewise.
7375 (uninsert_raw_breakpoint): Likewise.
7376 (reinsert_raw_breakpoint): Likewise.
7377 (set_breakpoint_data): Remove.
7378 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
7379 (check_mem_read): Adjust for kind call bp_size.
7380 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
7381 (clone_one_breakpoint): Adjust for kind.
7382 * mem-break.h (set_gdb_breakpoint): Likewise.
7383 (delete_gdb_breakpoint): Likewise.
7384 * server.c (process_serial_event): Likewise.
7386 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7388 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
7389 (struct linux_target_ops) <breakpoint>: Remove.
7390 (struct linux_target_ops) <breakpoint_len>: Remove.
7391 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7392 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7393 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
7394 (arm_sw_breakpoint_from_kind): New function.
7395 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
7396 (struct linux_target_ops) <breakpoint>: Remove.
7397 (struct linux_target_ops) <breakpoint_len>: Remove.
7398 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7399 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7400 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
7401 (struct linux_target_ops) <breakpoint>: Remove.
7402 (struct linux_target_ops) <breakpoint_len>: Remove.
7403 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7404 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7405 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
7406 (struct linux_target_ops) <breakpoint>: Remove.
7407 (struct linux_target_ops) <breakpoint_len>: Remove.
7408 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7409 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7410 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
7411 and sw_breakpoint_from_kind to increment the pc.
7412 (linux_breakpoint_kind_from_pc): New function.
7413 (linux_sw_breakpoint_from_kind): New function.
7414 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
7415 (initialize_low): Call breakpoint_kind_from_pc and
7416 sw_breakpoint_from_kind to replace breakpoint_data/len.
7417 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
7419 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
7420 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
7421 (struct linux_target_ops) <breakpoint>: Remove.
7422 (struct linux_target_ops) <breakpoint_len>: Remove.
7423 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7424 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7425 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
7426 (struct linux_target_ops) <breakpoint>: Remove.
7427 (struct linux_target_ops) <breakpoint_len>: Remove.
7428 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7429 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7430 * linux-mips-low.c (mips_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-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
7436 (struct linux_target_ops) <breakpoint>: Remove.
7437 (struct linux_target_ops) <breakpoint_len>: Remove.
7438 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7439 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7440 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
7441 (struct linux_target_ops) <breakpoint>: Remove.
7442 (struct linux_target_ops) <breakpoint_len>: Remove.
7443 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7444 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7445 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
7446 (struct linux_target_ops) <breakpoint>: Remove.
7447 (struct linux_target_ops) <breakpoint_len>: Remove.
7448 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7449 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7450 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
7451 (struct linux_target_ops) <breakpoint>: Remove.
7452 (struct linux_target_ops) <breakpoint_len>: Remove.
7453 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7454 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7455 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
7456 (struct linux_target_ops) <breakpoint>: Remove.
7457 (struct linux_target_ops) <breakpoint_len>: Remove.
7458 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7459 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7460 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
7461 (struct linux_target_ops) <breakpoint>: Remove.
7462 (struct linux_target_ops) <breakpoint_len>: Remove.
7463 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7464 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7465 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
7466 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
7467 (struct linux_target_ops) <breakpoint>: Remove.
7468 (struct linux_target_ops) <breakpoint_len>: Remove.
7469 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7470 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7471 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
7472 (struct linux_target_ops) <breakpoint>: Remove.
7473 (struct linux_target_ops) <breakpoint_len>: Remove.
7474 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7475 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7477 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7479 * linux-cris-low.c (cris_get_pc): Remove void arg.
7481 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
7483 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
7486 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
7488 * inferiors.c (thread_pid_matches_callback): New function.
7489 (find_thread_process): New function.
7490 (remove_thread): Reset current_thread.
7491 (remove_process): Assert threads have been removed first.
7493 2015-10-15 Yao Qi <yao.qi@linaro.org>
7495 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
7497 (aarch64_remove_point): Likewise.
7498 * regcache.c (regcache_register_size): New function.
7500 2015-10-12 Yao Qi <yao.qi@linaro.org>
7502 * linux-aarch64-low.c: Update all callers as emit_load_store
7503 is renamed to aarch64_emit_load_store.
7505 2015-10-12 Yao Qi <yao.qi@linaro.org>
7507 * linux-aarch64-low.c: Update all callers of function renaming
7508 from emit_insn to aarch64_emit_insn.
7510 2015-10-12 Yao Qi <yao.qi@linaro.org>
7512 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
7513 arch/aarch64-insn.h.
7514 (struct aarch64_memory_operand): Likewise.
7516 (emit_insn): Move to arch/aarch64-insn.c.
7517 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
7518 (emit_load_store): Move to arch/aarch64-insn.c.
7519 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
7520 (can_encode_int32): Remove.
7522 2015-10-12 Yao Qi <yao.qi@linaro.org>
7524 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
7525 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
7526 (aarch64_relocate_instruction): Likewise.
7527 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
7528 (struct aarch64_insn_visitor): Likewise.
7530 2015-10-12 Yao Qi <yao.qi@linaro.org>
7532 * linux-aarch64-low.c (struct aarch64_insn_data): New.
7533 (struct aarch64_insn_visitor): New.
7534 (struct aarch64_insn_relocation_data): New.
7535 (aarch64_ftrace_insn_reloc_b): New function.
7536 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7537 (aarch64_ftrace_insn_reloc_cb): Likewise.
7538 (aarch64_ftrace_insn_reloc_tb): Likewise.
7539 (aarch64_ftrace_insn_reloc_adr): Likewise.
7540 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
7541 (aarch64_ftrace_insn_reloc_others): Likewise.
7543 (aarch64_relocate_instruction): Use visitor.
7545 2015-10-12 Yao Qi <yao.qi@linaro.org>
7547 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
7548 int. Add argument buf.
7549 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
7550 aarch64_relocate_instruction.
7552 2015-10-12 Yao Qi <yao.qi@linaro.org>
7554 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
7555 argument insn. Remove local variable insn. Don't call
7557 (aarch64_install_fast_tracepoint_jump_pad): Call
7560 2015-09-30 Yao Qi <yao.qi@linaro.org>
7562 * linux-aarch64-low.c (emit_movk): Shorten a long line.
7563 (emit_load_store_pair): Likewise.
7565 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
7567 * dll.c (match_dll): Add cast(s).
7568 (unloaded_dll): Likewise.
7569 * linux-low.c (second_thread_of_pid_p): Likewise.
7570 (delete_lwp_callback): Likewise.
7571 (count_events_callback): Likewise.
7572 (select_event_lwp_callback): Likewise.
7573 (linux_set_resume_request): Likewise.
7574 * server.c (accumulate_file_name_length): Likewise.
7575 (emit_dll_description): Likewise.
7576 (handle_qxfer_threads_worker): Likewise.
7577 (visit_actioned_threads): Likewise.
7578 * thread-db.c (any_thread_of): Likewise.
7579 * tracepoint.c (same_process_p): Likewise.
7580 (match_blocktype): Likewise.
7581 (build_traceframe_info_xml): Likewise.
7583 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
7585 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
7587 (gdb_unparse_agent_expr): Likewise.
7588 * hostio.c (require_data): Likewise.
7589 (handle_pread): Likewise.
7590 * linux-low.c (disable_regset): Likewise.
7591 (fetch_register): Likewise.
7592 (store_register): Likewise.
7593 (get_dynamic): Likewise.
7594 (linux_qxfer_libraries_svr4): Likewise.
7595 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
7596 (set_fast_tracepoint_jump): Likewise.
7597 (uninsert_fast_tracepoint_jumps_at): Likewise.
7598 (reinsert_fast_tracepoint_jumps_at): Likewise.
7599 (validate_inserted_breakpoint): Likewise.
7600 (clone_agent_expr): Likewise.
7601 * regcache.c (init_register_cache): Likewise.
7602 * remote-utils.c (putpkt_binary_1): Likewise.
7603 (decode_M_packet): Likewise.
7604 (decode_X_packet): Likewise.
7605 (look_up_one_symbol): Likewise.
7606 (relocate_instruction): Likewise.
7607 (monitor_output): Likewise.
7608 * server.c (handle_search_memory): Likewise.
7609 (handle_qxfer_exec_file): Likewise.
7610 (handle_qxfer_libraries): Likewise.
7611 (handle_qxfer): Likewise.
7612 (handle_query): Likewise.
7613 (handle_v_cont): Likewise.
7614 (handle_v_run): Likewise.
7615 (captured_main): Likewise.
7616 * target.c (write_inferior_memory): Likewise.
7617 * thread-db.c (try_thread_db_load_from_dir): Likewise.
7618 * tracepoint.c (init_trace_buffer): Likewise.
7619 (add_tracepoint_action): Likewise.
7620 (add_traceframe): Likewise.
7621 (add_traceframe_block): Likewise.
7622 (cmd_qtdpsrc): Likewise.
7623 (cmd_qtdv): Likewise.
7624 (cmd_qtstatus): Likewise.
7625 (response_source): Likewise.
7626 (response_tsv): Likewise.
7627 (cmd_qtnotes): Likewise.
7628 (gdb_collect): Likewise.
7629 (initialize_tracepoint): Likewise.
7631 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7633 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
7634 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
7635 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
7637 (enum aarch64_condition_codes): New enum.
7638 (w0): New static global.
7641 (struct aarch64_memory_operand) <type>: New
7642 MEMORY_OPERAND_POSTINDEX type.
7643 (postindex_memory_operand): New helper function.
7644 (emit_ret): New function.
7645 (emit_load_store_pair): New function, factored out of emit_stp
7646 with support for MEMORY_OPERAND_POSTINDEX.
7647 (emit_stp): Rewrite using emit_load_store_pair.
7648 (emit_ldp): New function.
7649 (emit_load_store): Likewise.
7650 (emit_ldr): Mention post-index instruction in comment.
7651 (emit_ldrh): New function.
7652 (emit_ldrb): New function.
7653 (emit_ldrsw): Mention post-index instruction in comment.
7654 (emit_str): Likewise.
7655 (emit_subs): New function.
7656 (emit_cmp): Likewise.
7657 (emit_and): Likewise.
7658 (emit_orr): Likewise.
7659 (emit_orn): Likewise.
7660 (emit_eor): Likewise.
7661 (emit_mvn): Likewise.
7662 (emit_lslv): Likewise.
7663 (emit_lsrv): Likewise.
7664 (emit_asrv): Likewise.
7665 (emit_mul): Likewise.
7666 (emit_sbfm): Likewise.
7667 (emit_sbfx): Likewise.
7668 (emit_ubfm): Likewise.
7669 (emit_ubfx): Likewise.
7670 (emit_csinc): Likewise.
7671 (emit_cset): Likewise.
7672 (emit_nop): Likewise.
7673 (emit_ops_insns): New helper function.
7674 (emit_pop): Likewise.
7675 (emit_push): Likewise.
7676 (aarch64_emit_prologue): New function.
7677 (aarch64_emit_epilogue): Likewise.
7678 (aarch64_emit_add): Likewise.
7679 (aarch64_emit_sub): Likewise.
7680 (aarch64_emit_mul): Likewise.
7681 (aarch64_emit_lsh): Likewise.
7682 (aarch64_emit_rsh_signed): Likewise.
7683 (aarch64_emit_rsh_unsigned): Likewise.
7684 (aarch64_emit_ext): Likewise.
7685 (aarch64_emit_log_not): Likewise.
7686 (aarch64_emit_bit_and): Likewise.
7687 (aarch64_emit_bit_or): Likewise.
7688 (aarch64_emit_bit_xor): Likewise.
7689 (aarch64_emit_bit_not): Likewise.
7690 (aarch64_emit_equal): Likewise.
7691 (aarch64_emit_less_signed): Likewise.
7692 (aarch64_emit_less_unsigned): Likewise.
7693 (aarch64_emit_ref): Likewise.
7694 (aarch64_emit_if_goto): Likewise.
7695 (aarch64_emit_goto): Likewise.
7696 (aarch64_write_goto_address): Likewise.
7697 (aarch64_emit_const): Likewise.
7698 (aarch64_emit_call): Likewise.
7699 (aarch64_emit_reg): Likewise.
7700 (aarch64_emit_pop): Likewise.
7701 (aarch64_emit_stack_flush): Likewise.
7702 (aarch64_emit_zero_ext): Likewise.
7703 (aarch64_emit_swap): Likewise.
7704 (aarch64_emit_stack_adjust): Likewise.
7705 (aarch64_emit_int_call_1): Likewise.
7706 (aarch64_emit_void_call_2): Likewise.
7707 (aarch64_emit_eq_goto): Likewise.
7708 (aarch64_emit_ne_goto): Likewise.
7709 (aarch64_emit_lt_goto): Likewise.
7710 (aarch64_emit_le_goto): Likewise.
7711 (aarch64_emit_gt_goto): Likewise.
7712 (aarch64_emit_ge_got): Likewise.
7713 (aarch64_emit_ops_impl): New static global variable.
7714 (aarch64_emit_ops): New target function, return
7715 &aarch64_emit_ops_impl.
7716 (struct linux_target_ops): Install it.
7718 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7720 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
7721 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
7723 * linux-aarch64-ipa.c: New file.
7724 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
7726 (aarch64_get_thread_area): New target method.
7727 (extract_signed_bitfield): New helper function.
7728 (aarch64_decode_ldr_literal): New function.
7729 (enum aarch64_opcodes): New enum.
7730 (struct aarch64_register): New struct.
7731 (struct aarch64_operand): New struct.
7732 (x0): New static global.
7741 (aarch64_register): New helper function.
7742 (register_operand): Likewise.
7743 (immediate_operand): Likewise.
7744 (struct aarch64_memory_operand): New struct.
7745 (offset_memory_operand): New helper function.
7746 (preindex_memory_operand): Likewise.
7747 (enum aarch64_system_control_registers): New enum.
7748 (ENCODE): New macro.
7749 (emit_insn): New helper function.
7750 (emit_b): New function.
7751 (emit_bcond): Likewise.
7752 (emit_cb): Likewise.
7753 (emit_tb): Likewise.
7754 (emit_blr): Likewise.
7755 (emit_stp): Likewise.
7756 (emit_ldp_q_offset): Likewise.
7757 (emit_stp_q_offset): Likewise.
7758 (emit_load_store): Likewise.
7759 (emit_ldr): Likewise.
7760 (emit_ldrsw): Likewise.
7761 (emit_str): Likewise.
7762 (emit_ldaxr): Likewise.
7763 (emit_stxr): Likewise.
7764 (emit_stlr): Likewise.
7765 (emit_data_processing_reg): Likewise.
7766 (emit_data_processing): Likewise.
7767 (emit_add): Likewise.
7768 (emit_sub): Likewise.
7769 (emit_mov): Likewise.
7770 (emit_movk): Likewise.
7771 (emit_mov_addr): Likewise.
7772 (emit_mrs): Likewise.
7773 (emit_msr): Likewise.
7774 (emit_sevl): Likewise.
7775 (emit_wfe): Likewise.
7776 (append_insns): Likewise.
7777 (can_encode_int32_in): New helper function.
7778 (aarch64_relocate_instruction): New function.
7779 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
7780 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
7781 (struct linux_target_ops): Install aarch64_get_thread_area,
7782 aarch64_install_fast_tracepoint_jump_pad and
7783 aarch64_get_min_fast_tracepoint_insn_len.
7785 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7787 * Makefile.in (aarch64-insn.o): New rule.
7788 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
7790 2015-09-21 Yao Qi <yao.qi@linaro.org>
7792 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
7794 2015-09-21 Yao Qi <yao.qi@linaro.org>
7796 * tracepoint.c (max_jump_pad_size): Remove.
7798 2015-09-18 Yao Qi <yao.qi@linaro.org>
7800 * linux-aarch64-low.c: Don't include sys/uio.h.
7801 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
7803 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
7805 * tracepoint.c (eval_result_type): Change prototype.
7806 (condition_true_at_tracepoint): Fix argument to compiled_cond.
7808 2015-09-15 Pedro Alves <palves@redhat.com>
7810 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
7811 Check whether to report exec events instead of checking whether
7812 multiprocess is enabled.
7814 2015-09-15 Pedro Alves <palves@redhat.com>
7817 * remote-utils.c (prepare_resume_reply): Merge
7818 TARGET_WAITKIND_VFORK_DONE switch case with the
7819 TARGET_WAITKIND_FORKED case.
7821 2015-09-15 Yao Qi <yao.qi@linaro.org>
7823 * server.c (handle_query): Check string comparison using
7824 "else if" instead of "if".
7826 2015-09-15 Yao Qi <yao.qi@linaro.org>
7828 * server.c (vCont_supported): New global variable.
7829 (handle_query): Set vCont_supported to 1 if "vContSupported+"
7830 matches. Append ";vContSupported+" to own_buf.
7831 (handle_v_requests): Append ";s;S" to own_buf if target supports
7832 hardware single step or vCont_supported is false.
7833 (capture_main): Set vCont_supported to zero.
7835 2015-09-15 Yao Qi <yao.qi@linaro.org>
7837 * linux-low.c (linux_supports_conditional_breakpoints): Rename
7839 (linux_supports_hardware_single_step): ... New function.
7840 (linux_target_ops): Update.
7841 * lynx-low.c (lynx_target_ops): Set field
7842 supports_hardware_single_step to target_can_do_hardware_single_step.
7843 * nto-low.c (nto_target_ops): Likewise.
7844 * spu-low.c (spu_target_ops): Likewise.
7845 * win32-low.c (win32_target_ops): Likewise.
7846 * target.c (target_can_do_hardware_single_step): New function.
7847 * target.h (struct target_ops) <supports_conditional_breakpoints>:
7848 Remove. <supports_hardware_single_step>: New field.
7849 (target_supports_conditional_breakpoints): Remove.
7850 (target_supports_hardware_single_step): New macro.
7851 (target_can_do_hardware_single_step): Declare.
7852 * server.c (handle_query): Use target_supports_hardware_single_step
7853 instead of target_supports_conditional_breakpoints.
7855 2015-09-15 Yao Qi <yao.qi@linaro.org>
7857 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
7859 (struct linux_target_ops the_low_target): Install
7860 aarch64_linux_siginfo_fixup.
7862 2015-09-11 Don Breazeal <donb@codesourcery.com>
7863 Luis Machado <lgustavo@codesourcery.com>
7865 * linux-low.c (linux_mourn): Static declaration.
7866 (linux_arch_setup): Move in front of
7867 handle_extended_wait.
7868 (linux_arch_setup_thread): New function.
7869 (handle_extended_wait): Handle exec events. Call
7870 linux_arch_setup_thread. Make event_lwp argument a
7871 pointer-to-a-pointer.
7872 (check_zombie_leaders): Do not check stopped threads.
7873 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
7874 (linux_low_filter_event): Add lwp and thread for exec'ing
7875 non-leader thread if leader thread has been deleted.
7876 Refactor code into linux_arch_setup_thread and call it.
7877 Pass child lwp pointer by reference to handle_extended_wait.
7878 (linux_wait_for_event_filtered): Update comment.
7879 (linux_wait_1): Prevent clobbering exec event status.
7880 (linux_supports_exec_events): New function.
7881 (linux_target_ops) <supports_exec_events>: Initialize new member.
7882 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
7884 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
7885 * server.c (report_exec_events): New global variable.
7886 (handle_query): Handle qSupported query for exec-events feature.
7887 (captured_main): Initialize report_exec_events.
7888 * server.h (report_exec_events): Declare new global variable.
7889 * target.h (struct target_ops) <supports_exec_events>: New
7891 (target_supports_exec_events): New macro.
7892 * win32-low.c (win32_target_ops) <supports_exec_events>:
7893 Initialize new member.
7895 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
7897 * linux-low.c (linux_low_enable_btrace): Remove.
7898 (linux_target_ops): Replace linux_low_enable_btrace with
7899 linux_enable_btrace.
7901 2015-09-03 Yao Qi <yao.qi@linaro.org>
7903 * linux-aarch64-low.c (aarch64_insert_point): Call
7904 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
7907 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7909 * linux-low.c (check_stopped_by_breakpoint): Use
7910 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
7912 2015-08-27 Pedro Alves <palves@redhat.com>
7914 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
7916 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
7918 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
7919 the XNEW-family equivalent.
7920 (compile_bytecodes): Likewise.
7921 * dll.c (loaded_dll): Likewise.
7922 * event-loop.c (append_callback_event): Likewise.
7923 (create_file_handler): Likewise.
7924 (create_file_event): Likewise.
7925 * hostio.c (handle_open): Likewise.
7926 * inferiors.c (add_thread): Likewise.
7927 (add_process): Likewise.
7928 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
7929 * linux-arm-low.c (arm_new_process): Likewise.
7930 (arm_new_thread): Likewise.
7931 * linux-low.c (add_to_pid_list): Likewise.
7932 (linux_add_process): Likewise.
7933 (handle_extended_wait): Likewise.
7934 (add_lwp): Likewise.
7935 (enqueue_one_deferred_signal): Likewise.
7936 (enqueue_pending_signal): Likewise.
7937 (linux_resume_one_lwp_throw): Likewise.
7938 (linux_resume_one_thread): Likewise.
7939 (linux_read_memory): Likewise.
7940 (linux_write_memory): Likewise.
7941 * linux-mips-low.c (mips_linux_new_process): Likewise.
7942 (mips_linux_new_thread): Likewise.
7943 (mips_add_watchpoint): Likewise.
7944 * linux-x86-low.c (initialize_low_arch): Likewise.
7945 * lynx-low.c (lynx_add_process): Likewise.
7946 * mem-break.c (set_raw_breakpoint_at): Likewise.
7947 (set_breakpoint): Likewise.
7948 (add_condition_to_breakpoint): Likewise.
7949 (add_commands_to_breakpoint): Likewise.
7950 (clone_agent_expr): Likewise.
7951 (clone_one_breakpoint): Likewise.
7952 * regcache.c (new_register_cache): Likewise.
7953 * remote-utils.c (look_up_one_symbol): Likewise.
7954 * server.c (queue_stop_reply): Likewise.
7955 (start_inferior): Likewise.
7956 (queue_stop_reply_callback): Likewise.
7957 (handle_target_event): Likewise.
7958 * spu-low.c (fetch_ppc_memory): Likewise.
7959 (store_ppc_memory): Likewise.
7960 * target.c (set_target_ops): Likewise.
7961 * thread-db.c (thread_db_load_search): Likewise.
7962 (try_thread_db_load_1): Likewise.
7963 * tracepoint.c (add_tracepoint): Likewise.
7964 (add_tracepoint_action): Likewise.
7965 (create_trace_state_variable): Likewise.
7966 (cmd_qtdpsrc): Likewise.
7967 (cmd_qtro): Likewise.
7968 (add_while_stepping_state): Likewise.
7969 * win32-low.c (child_add_thread): Likewise.
7970 (get_image_name): Likewise.
7972 2015-08-25 Yao Qi <yao.qi@linaro.org>
7974 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
7976 2015-08-25 Yao Qi <yao.qi@linaro.org>
7978 * Makefile.in (aarch64-linux.o): New rule.
7979 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
7981 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
7982 (aarch64_init_debug_reg_state): Make it extern.
7983 (aarch64_linux_prepare_to_resume): Remove.
7985 2015-08-25 Yao Qi <yao.qi@linaro.org>
7987 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
7988 lwp_arch_private_info and ptid_of_lwp.
7990 2015-08-25 Yao Qi <yao.qi@linaro.org>
7992 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
7993 Find proc_info by find_process_pid. All callers updated.
7995 2015-08-25 Yao Qi <yao.qi@linaro.org>
7997 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
7999 (debug_reg_change_callback): Remove.
8000 (aarch64_notify_debug_reg_change): Remove.
8002 2015-08-25 Yao Qi <yao.qi@linaro.org>
8004 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
8005 Call current_lwp_ptid.
8007 2015-08-25 Yao Qi <yao.qi@linaro.org>
8009 * linux-aarch64-low.c (debug_reg_change_callback): Use
8012 2015-08-25 Yao Qi <yao.qi@linaro.org>
8014 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
8016 2015-08-25 Yao Qi <yao.qi@linaro.org>
8018 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
8020 2015-08-25 Yao Qi <yao.qi@linaro.org>
8022 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
8025 2015-08-25 Yao Qi <yao.qi@linaro.org>
8027 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
8029 (debug_reg_change_callback): Remove argument entry and add argument
8030 lwp. Remove local variable thread. Don't print thread id in the
8031 debugging output. Don't check whether pid of thread equals to pid.
8032 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
8033 iterate_over_lwps instead find_inferior.
8035 2015-08-24 Pedro Alves <palves@redhat.com>
8037 * inferiors.c (get_first_process): New function.
8038 * inferiors.h (get_first_process): New declaration.
8039 * remote-utils.c (read_ptid): Default to the first process in the
8040 list, instead of to the current thread's process.
8042 2015-08-24 Pedro Alves <palves@redhat.com>
8044 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
8045 * event-loop.c: Likewise.
8046 * remote-utils.c: Likewise.
8047 * tracepoint.c: Likewise.
8049 2015-08-24 Pedro Alves <palves@redhat.com>
8051 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
8054 2015-08-21 Pedro Alves <palves@redhat.com>
8056 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
8057 instead of literal 1.
8059 2015-08-21 Pedro Alves <palves@redhat.com>
8061 * tdesc.c (default_description): Explicitly zero-initialize.
8063 2015-08-21 Pedro Alves <palves@redhat.com>
8066 * inferiors.c (remove_thread): Discard any pending stop reply for
8068 * server.c (remove_all_on_match_pid): Rename to ...
8069 (remove_all_on_match_ptid): ... this. Work with a filter ptid
8071 (discard_queued_stop_replies): Change parameter to a ptid. Now
8073 (handle_v_kill, kill_inferior_callback, captured_main)
8074 (process_serial_event): Adjust.
8075 * server.h (discard_queued_stop_replies): Declare.
8077 2015-08-21 Pedro Alves <palves@redhat.com>
8079 * linux-low.c (wait_for_sigstop): Always switch to no thread
8080 selected if the previously current thread dies.
8081 * lynx-low.c (lynx_request_interrupt): Use the first thread's
8082 process instead of the current thread's.
8083 * remote-utils.c (input_interrupt): Don't check if there's no
8085 * server.c (gdb_read_memory, gdb_write_memory): If setting the
8086 current thread to the general thread fails, error out.
8087 (handle_qxfer_auxv, handle_qxfer_libraries)
8088 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
8089 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
8090 (handle_query): Check if there's a thread selected instead of
8091 checking whether there's any thread in the thread list.
8092 (handle_qxfer_threads, handle_qxfer_btrace)
8093 (handle_qxfer_btrace_conf): Don't error out early if there's no
8094 thread in the thread list.
8095 (handle_v_cont, myresume): Don't set the current thread to the
8097 (process_serial_event) <Hg handling>: Also set thread_id if the
8098 previous general thread is still alive.
8099 (process_serial_event) <g/G handling>: If setting the current
8100 thread to the general thread fails, error out.
8101 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
8102 thread's lwp instead of the current thread's.
8103 * target.c (set_desired_thread): If the desired thread was not
8104 found, leave the current thread pointing to NULL. Return an int
8105 (boolean) indicating success.
8106 * target.h (set_desired_thread): Change return type to int.
8108 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
8110 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
8111 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
8113 (ps_get_thread_area): New function.
8115 2015-08-19 Gary Benson <gbenson@redhat.com>
8117 * hostio.c (handle_pread): Do not attempt to read more data
8118 than hostio_reply_with_data can fit in a packet.
8120 2015-08-18 Joel Brobecker <brobecker@adacore.com>
8122 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
8124 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
8126 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
8128 2015-08-06 Pedro Alves <palves@redhat.com>
8130 * tracepoint.c (expr_eval_result): Now an int.
8132 2015-08-06 Pedro Alves <palves@redhat.com>
8134 * gdbthread.h (struct regcache): Forward declare.
8135 (struct thread_info) <regcache_data>: Now a struct regcache
8137 * inferiors.c (inferior_regcache_data)
8138 (set_inferior_regcache_data): Now work with struct regcache
8140 * inferiors.h (struct regcache): Forward declare.
8141 (inferior_regcache_data, set_inferior_regcache_data): Now work
8142 with struct regcache pointers.
8143 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
8144 (free_register_cache_thread): Remove struct regcache pointer
8147 2015-08-06 Pedro Alves <palves@redhat.com>
8149 * server.c (captured_main): On error, print the exception message
8150 to stderr, and if run_once is set, throw a quit.
8152 2015-08-06 Pedro Alves <palves@redhat.com>
8154 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
8157 2015-08-06 Pedro Alves <palves@redhat.com>
8159 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
8160 reading beyond the passed in buffer length.
8162 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
8164 * tracepoint.c (symbol_list) <required>: Remove.
8166 2015-08-06 Pedro Alves <palves@redhat.com>
8168 * linux-low.c (handle_extended_wait): Set the fork child's suspend
8169 count if stopping and suspending threads.
8170 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
8171 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
8172 (linux_detach): Complete an ongoing step-over.
8173 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
8175 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
8176 (linux_wait_1): If passing a signal to the inferior after
8177 finishing a step-over, unsuspend and re-resume all lwps. If we
8178 see a single-step event but the thread should be continuing, don't
8179 pass the trap to gdb.
8180 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
8181 internal_error instead of gdb_assert.
8182 (enqueue_pending_signal): New function.
8183 (check_ptrace_stopped_lwp_gone): Add debug output.
8184 (start_step_over): Use internal_error instead of gdb_assert.
8185 (complete_ongoing_step_over): New function.
8186 (linux_resume_one_thread): Don't resume a suspended thread.
8187 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
8190 2015-08-06 Pedro Alves <palves@redhat.com>
8192 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
8193 (linux_thread_alive): Use lwp_is_marked_dead.
8194 (extended_event_reported): Delete.
8195 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
8196 instead of extended_event_reported.
8197 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
8199 (lwp_is_marked_dead): New function.
8200 (lwp_running): Use lwp_is_marked_dead.
8201 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
8204 2015-08-06 Pedro Alves <palves@redhat.com>
8206 * linux-low.c (linux_wait_1): Move fork event output out of the
8207 !report_to_gdb check. Pass event_child->waitstatus to
8208 target_waitstatus_to_string instead of ourstatus.
8210 2015-08-04 Yao Qi <yao.qi@linaro.org>
8212 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
8213 if current_thread is 32 bit.
8215 2015-08-04 Yao Qi <yao.qi@linaro.org>
8217 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8218 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8219 * server.c (extended_protocol): Remove "static".
8220 * server.h (extended_protocol): Declare it.
8222 2015-08-04 Yao Qi <yao.qi@linaro.org>
8224 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
8225 both aarch64 and aarch32.
8226 (aarch64_set_pc): Likewise.
8228 2015-08-04 Yao Qi <yao.qi@linaro.org>
8230 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
8231 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
8232 arm-with-neon.xml to srv_xmlfiles.
8233 * linux-aarch64-low.c: Include linux-aarch32-low.h.
8234 (is_64bit_tdesc): New function.
8235 (aarch64_linux_read_description): New function.
8236 (aarch64_arch_setup): Call aarch64_linux_read_description.
8237 (regs_info): Rename to regs_info_aarch64.
8238 (aarch64_regs_info): Return right regs_info.
8239 (initialize_low_arch): Call initialize_low_arch_aarch32.
8241 2015-08-04 Yao Qi <yao.qi@linaro.org>
8243 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
8244 * linux-aarch32-low.c: New file.
8245 * linux-aarch32-low.h: New file.
8246 * linux-arm-low.c (arm_fill_gregset): Move it to
8247 linux-aarch32-low.c.
8248 (arm_store_gregset): Likewise.
8249 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
8250 (arm_store_vfpregset): Call arm_store_vfpregset_num.
8251 (arm_arch_setup): Check if PTRACE_GETREGSET works.
8252 (regs_info): Rename to regs_info_arm.
8253 (arm_regs_info): Return regs_info_aarch32 if
8254 have_ptrace_getregset is 1 and target description is
8255 arm_with_neon or arm_with_vfpv3.
8256 (initialize_low_arch): Don't call init_registers_arm_with_neon.
8257 Call initialize_low_arch_aarch32 instead.
8259 2015-08-04 Yao Qi <yao.qi@linaro.org>
8261 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
8262 * linux-low.c: ... here.
8263 * linux-low.h (have_ptrace_getregset): Declare it.
8265 2015-08-04 Pedro Alves <palves@redhat.com>
8267 * thread-db.c (struct thread_db): Use new typedefs.
8268 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
8270 (disable_thread_event_reporting): Cast result of dlsym to
8271 destination function pointer type.
8272 (thread_db_mourn): Use td_ta_delete_ftype.
8274 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
8276 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
8278 (CDX_BREAKPOINT): Define for R2.
8279 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
8280 (the_low_target): Add comments.
8282 2015-07-30 Yao Qi <yao.qi@linaro.org>
8284 * linux-arm-low.c (arm_hwcap): Remove it.
8285 (arm_read_description): New local variable arm_hwcap. Don't
8286 set arm_hwcap to zero.
8288 2015-07-30 Yao Qi <yao.qi@linaro.org>
8290 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
8291 Use regcache->tdesc instead.
8292 (arm_store_wmmxregset): Likewise.
8293 (arm_fill_vfpregset): Likewise.
8294 (arm_store_vfpregset): Likewise.
8296 2015-07-30 Yao Qi <yao.qi@linaro.org>
8298 * linux-arm-low.c: Include arch/arm.h.
8299 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
8300 (arm_store_gregset): Likewise.
8302 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
8304 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
8305 ptrace's 4th parameter.
8307 2015-07-27 Yao Qi <yao.qi@linaro.org>
8309 * configure.srv (case aarch64*-*-linux*): Don't set
8312 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
8314 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
8316 * linux-arm-low.c: Likewise.
8317 * linux-cris-low.c: Likewise.
8318 * linux-crisv32-low.c: Likewise.
8319 * linux-low.c: Likewise.
8320 * linux-m68k-low.c: Likewise.
8321 * linux-mips-low.c: Likewise.
8322 * linux-nios2-low.c: Likewise.
8323 * linux-s390-low.c: Likewise.
8324 * linux-sparc-low.c: Likewise.
8325 * linux-tic6x-low.c: Likewise.
8326 * linux-tile-low.c: Likewise.
8327 * linux-x86-low.c: Likewise.
8329 2015-07-24 Pedro Alves <palves@redhat.com>
8331 * config.in: Regenerate.
8332 * configure: Regenerate.
8334 2015-07-24 Pedro Alves <palves@redhat.com>
8336 * acinclude.m4: Include ../ptrace.m4.
8337 * configure.ac: Call GDB_AC_PTRACE.
8338 * config.in, configure: Regenerate.
8340 2015-07-24 Yao Qi <yao.qi@linaro.org>
8342 * linux-low.c (linux_create_inferior): Remove setting to
8343 proc->priv->new_inferior.
8344 (linux_attach): Likewise.
8345 (linux_low_filter_event): Likewise.
8346 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
8348 2015-07-24 Yao Qi <yao.qi@linaro.org>
8350 * linux-low.c (linux_arch_setup): New function.
8351 (linux_low_filter_event): If proc->tdesc is NULL and
8352 proc->attached is true, call the_low_target.arch_setup.
8353 Otherwise, keep status pending, and return.
8354 (linux_resume_one_lwp_throw): Don't call get_pc if
8355 thread->while_stepping isn't NULL. Don't call
8356 get_thread_regcache if proc->tdesc is NULL.
8357 (need_step_over_p): Return 0 if proc->tdesc is NULL.
8358 (linux_target_ops): Install arch_setup.
8359 * server.c (start_inferior): Call the_target->arch_setup.
8360 * target.h (struct target_ops) <arch_setup>: New field.
8361 (target_arch_setup): New marco.
8362 * lynx-low.c (lynx_target_ops): Update.
8363 * nto-low.c (nto_target_ops): Update.
8364 * spu-low.c (spu_target_ops): Update.
8365 * win32-low.c (win32_target_ops): Update.
8367 2015-07-24 Yao Qi <yao.qi@linaro.org>
8369 * linux-low.c (linux_add_process): Don't set
8370 proc->priv->new_inferior.
8371 (linux_create_inferior): Set proc->priv->new_inferior to 1.
8372 (linux_attach): Likewise.
8374 2015-07-24 Yao Qi <yao.qi@linaro.org>
8376 * server.c (start_inferior): Code refactor.
8378 2015-07-24 Yao Qi <yao.qi@linaro.org>
8380 * server.c (process_serial_event): Set general_thread.
8382 2015-07-21 Yao Qi <yao.qi@linaro.org>
8384 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
8385 aarch64_linux_get_debug_reg_capacity.
8387 2015-07-17 Yao Qi <yao.qi@linaro.org>
8389 * Makefile.in (aarch64-linux-hw-point.o): New rule.
8390 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
8391 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
8392 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
8393 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
8394 (AARCH64_HWP_ALIGNMENT): Likewise.
8395 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
8396 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
8397 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
8398 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
8399 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
8400 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
8401 (struct aarch64_debug_reg_state): Likewise.
8402 (struct arch_lwp_info): Likewise.
8403 (aarch64_align_watchpoint): Likewise.
8404 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
8405 (aarch64_watchpoint_length): Likewise.
8406 (aarch64_point_encode_ctrl_reg): Likewise
8407 (aarch64_point_is_aligned): Likewise.
8408 (aarch64_align_watchpoint): Likewise.
8409 (aarch64_linux_set_debug_regs):
8410 (aarch64_dr_state_insert_one_point): Likewise.
8411 (aarch64_dr_state_remove_one_point): Likewise.
8412 (aarch64_handle_breakpoint): Likewise.
8413 (aarch64_handle_aligned_watchpoint): Likewise.
8414 (aarch64_handle_unaligned_watchpoint): Likewise.
8415 (aarch64_handle_watchpoint): Likewise.
8417 2015-07-17 Yao Qi <yao.qi@linaro.org>
8419 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
8420 and don't aarch64_get_debug_reg_state. All callers update.
8421 (aarch64_handle_aligned_watchpoint): Likewise.
8422 (aarch64_handle_unaligned_watchpoint): Likewise.
8423 (aarch64_handle_watchpoint): Likewise.
8424 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
8425 (aarch64_remove_point): Likewise.
8427 2015-07-17 Yao Qi <yao.qi@linaro.org>
8429 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
8431 (aarch64_handle_unaligned_watchpoint): Likewise.
8433 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8435 Revert the previous 3 commits:
8436 Move gdb_regex* to common/
8437 Move linux_find_memory_regions_full & co.
8438 gdbserver build-id attribute generator
8440 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8441 Jan Kratochvil <jan.kratochvil@redhat.com>
8443 gdbserver build-id attribute generator.
8444 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
8445 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
8446 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
8448 (get_dynamic): Use find_pdhr to traverse program headers.
8449 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
8450 (compare_mapping_entry_range, struct find_memory_region_callback_data)
8451 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
8452 (get_hex_build_id): New.
8453 (linux_qxfer_libraries_svr4): Add optional build-id attribute
8454 to reply XML document.
8456 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8457 Jan Kratochvil <jan.kratochvil@redhat.com>
8459 * target.c: Include target/target-utils.h and fcntl.h.
8460 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
8461 (target_fileio_read_stralloc): New functions.
8463 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8465 * Makefile.in (OBS): Add gdb_regex.o.
8467 * config.in: Rebuilt.
8468 * configure: Rebuilt.
8470 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8471 Jan Kratochvil <jan.kratochvil@redhat.com>
8473 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
8474 * Makefile.in (OBS): Add target-utils.o.
8475 (linux-maps.o, target-utils.o): New.
8476 * configure.srv (srv_linux_obj): Add linux-maps.o.
8478 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
8480 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
8482 (the_low_target): Install it.
8484 2015-07-14 Pedro Alves <palves@redhat.com>
8486 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
8487 Instead, ignore ECHILD, and throw an error for other errnos.
8489 2015-07-10 Pedro Alves <palves@redhat.com>
8491 * event-loop.c (struct callback_event) <data>: Change type to
8492 gdb_client_data instance instead of gdb_client_data pointer.
8493 (append_callback_event): Adjust.
8495 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
8497 * linux-aarch64-low.c: Add comments for each linux_target_ops
8498 method. Remove comments already covered in target_ops and
8499 linux_target_ops definitions.
8500 (the_low_target): Add comments for each unimplemented method.
8502 2015-07-09 Yao Qi <yao.qi@linaro.org>
8504 * linux-aarch64-low.c (aarch64_regmap): Remove.
8505 (aarch64_usrregs_info): Remove.
8506 (regs_info): Set field usrregs to NULL.
8508 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8510 * linux-low.c: Include "rsp-low.h"
8511 (linux_low_encode_pt_config, linux_low_encode_raw): New.
8512 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
8513 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
8514 (handle_btrace_enable_pt): New.
8515 (handle_btrace_general_set): Support "pt".
8516 (handle_btrace_conf_general_set): Support "pt:size".
8518 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
8520 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
8523 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
8525 * linux-aarch64-low.c: Remove comment about endianness.
8526 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
8527 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
8530 2015-06-24 Gary Benson <gbenson@redhat.com>
8532 * linux-i386-ipa.c (stdint.h): Do not include.
8533 * lynx-i386-low.c (stdint.h): Likewise.
8534 * lynx-ppc-low.c (stdint.h): Likewise.
8535 * mem-break.c (stdint.h): Likewise.
8536 * thread-db.c (stdint.h): Likewise.
8537 * tracepoint.c (stdint.h): Likewise.
8538 * win32-low.c (stdint.h): Likewise.
8540 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
8542 * server.c (write_qxfer_response): Update call to
8543 remote_escape_output.
8545 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
8546 Jan Kratochvil <jan.kratochvil@redhat.com>
8548 Merge multiple hex conversions.
8549 * gdbreplay.c (tohex): Rename to 'fromhex'.
8550 (logchar): Use fromhex.
8552 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8554 * server.c (handle_qxfer_libraries): Set `version' attribute for
8557 2015-06-10 Gary Benson <gbenson@redhat.com>
8559 * target.h (struct target_ops) <multifs_open>: New field.
8560 <multifs_unlink>: Likewise.
8561 <multifs_readlink>: Likewise.
8562 * linux-low.c (nat/linux-namespaces.h): New include.
8563 (linux_target_ops): Initialize the_target->multifs_open,
8564 the_target->multifs_unlink and the_target->multifs_readlink.
8565 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
8566 * hostio.c (hostio_fs_pid): New static variable.
8567 (hostio_handle_new_gdb_connection): New function.
8568 (handle_setfs): Likewise.
8569 (handle_open): Use the_target->multifs_open as appropriate.
8570 (handle_unlink): Use the_target->multifs_unlink as appropriate.
8571 (handle_readlink): Use the_target->multifs_readlink as
8573 (handle_vFile): Handle vFile:setfs packets.
8574 * server.c (handle_query): Call hostio_handle_new_gdb_connection
8575 after target_handle_new_gdb_connection.
8577 2015-06-10 Gary Benson <gbenson@redhat.com>
8579 * configure.ac (AC_CHECK_FUNCS): Add setns.
8580 * config.in: Regenerate.
8581 * configure: Likewise.
8582 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
8583 (linux-namespaces.o): New rule.
8584 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
8586 2015-06-09 Gary Benson <gbenson@redhat.com>
8588 * hostio.c (handle_open): Process mode argument with
8589 fileio_to_host_mode.
8591 2015-06-01 Yao Qi <yao.qi@linaro.org>
8593 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8594 * linux-x86-low.c: Likewise.
8596 2015-05-28 Don Breazeal <donb@codesourcery.com>
8598 * linux-low.c (handle_extended_wait): Initialize
8599 thread_info.last_resume_kind for new fork children.
8601 2015-05-15 Pedro Alves <palves@redhat.com>
8603 * target.h (target_handle_new_gdb_connection): Rewrite using if
8604 wrapped in do/while.
8606 2015-05-14 Joel Brobecker <brobecker@adacore.com>
8608 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
8609 * configure, config.in: Regenerate.
8610 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
8613 2015-05-12 Don Breazeal <donb@codesourcery.com>
8615 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
8616 PTRACE_EVENT_VFORK_DONE.
8617 (linux_low_ptrace_options, extended_event_reported): Add vfork
8619 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
8620 and "vforkdone" for RSP 'T' Stop Reply Packet.
8621 * server.h (report_vfork_events): Declare
8624 2015-05-12 Don Breazeal <donb@codesourcery.com>
8626 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
8627 (the_low_target) <new_fork>: Initialize new member.
8628 * linux-arm-low.c (arm_new_fork): New function.
8629 (the_low_target) <new_fork>: Initialize new member.
8630 * linux-low.c (handle_extended_wait): Call new target function
8632 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
8633 * linux-mips-low.c (mips_add_watchpoint): New function
8634 extracted from mips_insert_point.
8635 (the_low_target) <new_fork>: Initialize new member.
8636 (mips_linux_new_fork): New function.
8637 (mips_insert_point): Call mips_add_watchpoint.
8638 * linux-x86-low.c (x86_linux_new_fork): New function.
8639 (the_low_target) <new_fork>: Initialize new member.
8641 2015-05-12 Don Breazeal <donb@codesourcery.com>
8643 * linux-low.c (handle_extended_wait): Implement return value,
8644 rename argument 'event_child' to 'event_lwp', handle
8645 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
8646 (linux_low_ptrace_options): New function.
8647 (linux_low_filter_event): Call linux_low_ptrace_options,
8648 use different argument fo linux_enable_event_reporting,
8649 use return value from handle_extended_wait.
8650 (extended_event_reported): New function.
8651 (linux_wait_1): Call extended_event_reported and set
8652 status to report fork events.
8653 (linux_write_memory): Add pid to debug message.
8654 (reset_lwp_ptrace_options_callback): New function.
8655 (linux_handle_new_gdb_connection): New function.
8656 (linux_target_ops): Initialize new structure member.
8657 * linux-low.h (struct lwp_info) <waitstatus>: New member.
8658 * lynx-low.c: Initialize new structure member.
8659 * remote-utils.c (prepare_resume_reply): Implement stop reason
8660 "fork" for "T" stop message.
8661 * server.c (handle_query): Call handle_new_gdb_connection.
8662 * server.h (report_fork_events): Declare global flag.
8663 * target.h (struct target_ops) <handle_new_gdb_connection>:
8665 (target_handle_new_gdb_connection): New macro.
8666 * win32-low.c: Initialize new structure member.
8668 2015-05-12 Don Breazeal <donb@codesourcery.com>
8670 * mem-break.c (APPEND_TO_LIST): Define macro.
8671 (clone_agent_expr): New function.
8672 (clone_one_breakpoint): New function.
8673 (clone_all_breakpoints): New function.
8674 * mem-break.h: Declare new functions.
8676 2015-05-12 Don Breazeal <donb@codesourcery.com>
8678 * linux-low.c (linux_supports_fork_events): New function.
8679 (linux_supports_vfork_events): New function.
8680 (linux_target_ops): Initialize new structure members.
8681 (initialize_low): Call linux_check_ptrace_features.
8682 * lynx-low.c (lynx_target_ops): Initialize new structure
8684 * server.c (report_fork_events, report_vfork_events):
8686 (handle_query): Add new features to qSupported packet and
8688 (captured_main): Initialize new global variables.
8689 * target.h (struct target_ops) <supports_fork_events>:
8691 <supports_vfork_events>: New member.
8692 (target_supports_fork_events): New macro.
8693 (target_supports_vfork_events): New macro.
8694 * win32-low.c (win32_target_ops): Initialize new structure
8697 2015-05-12 Gary Benson <gbenson@redhat.com>
8699 * server.c (handle_qxfer_exec_file): Use current process
8702 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8704 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
8705 Remove HAVE_PTRACE_GETREGS conditionals.
8706 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
8707 instead of PTRACE_GETREGS and PTRACE_SETREGS.
8709 2015-05-08 Yao Qi <yao.qi@linaro.org>
8711 * linux-low.c (linux_supports_conditional_breakpoints): New
8713 (linux_target_ops): Install new target method.
8714 * lynx-low.c (lynx_target_ops): Install NULL hook for
8715 supports_conditional_breakpoints.
8716 * nto-low.c (nto_target_ops): Likewise.
8717 * spu-low.c (spu_target_ops): Likewise.
8718 * win32-low.c (win32_target_ops): Likewise.
8719 * server.c (handle_query): Check
8720 target_supports_conditional_breakpoints.
8721 * target.h (struct target_ops) <supports_conditional_breakpoints>:
8723 (target_supports_conditional_breakpoints): New macro.
8725 2015-05-06 Pedro Alves <palves@redhat.com>
8728 * server.c (start_inferior): If the process exits, mourn it.
8730 2015-04-21 Gary Benson <gbenson@redhat.com>
8732 * hostio.c (fileio_open_flags_to_host): Factored out to
8733 fileio_to_host_openflags in common/fileio.c. Single use
8736 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
8738 * linux-xtensa-low.c (xtensa_fill_gregset)
8739 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
8742 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
8744 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
8745 (regs_info): Replace usrregs pointer with NULL.
8747 2015-04-17 Gary Benson <gbenson@redhat.com>
8749 * target.h (struct target_ops) <pid_to_exec_file>: New field.
8750 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
8751 * server.c (handle_qxfer_exec_file): New function.
8752 (qxfer_packets): Add exec-file entry.
8753 (handle_query): Report qXfer:exec-file:read as supported packet.
8755 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
8757 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
8759 2015-04-09 Gary Benson <gbenson@redhat.com>
8761 * hostio-errno.c (errno_to_fileio_error): Remove function.
8762 Update caller to use remote_fileio_to_fio_error.
8764 2015-04-09 Yao Qi <yao.qi@linaro.org>
8766 * linux-low.c (linux_insert_point): Call
8767 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
8768 (linux_remove_point): Call remove_memory_breakpoint if type is
8770 * linux-x86-low.c (x86_insert_point): Don't call
8771 insert_memory_breakpoint.
8772 (x86_remove_point): Don't call remove_memory_breakpoint.
8774 2015-04-01 Pedro Alves <palves@redhat.com>
8775 Cleber Rosa <crosa@redhat.com>
8777 * server.c (gdbserver_usage): Reorganize and extend the usage
8780 2015-03-24 Pedro Alves <palves@redhat.com>
8782 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
8783 output. Also dump TRAP_TRACE.
8784 (linux_low_filter_event): In debug output, distinguish a
8785 resume_stop SIGSTOP from a delayed SIGSTOP.
8787 2015-03-24 Gary Benson <gbenson@redhat.com>
8789 * linux-x86-low.c (x86_linux_new_thread): Moved to
8791 (x86_linux_prepare_to_resume): Likewise.
8793 2015-03-24 Gary Benson <gbenson@redhat.com>
8795 * Makefile.in (x86-linux-dregs.o): New rule.
8796 * configure.srv: Add x86-linux-dregs.o to relevant targets.
8797 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
8798 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
8799 (x86_linux_dr_get): Likewise.
8800 (x86_linux_dr_set): Likewise.
8801 (update_debug_registers_callback): Likewise.
8802 (x86_linux_dr_set_addr): Likewise.
8803 (x86_linux_dr_get_addr): Likewise.
8804 (x86_linux_dr_set_control): Likewise.
8805 (x86_linux_dr_get_control): Likewise.
8806 (x86_linux_dr_get_status): Likewise.
8807 (x86_linux_update_debug_registers): Likewise.
8809 2015-03-24 Gary Benson <gbenson@redhat.com>
8811 * linux-x86-low.c (x86_linux_update_debug_registers):
8812 New function, factored out from...
8813 (x86_linux_prepare_to_resume): ...this.
8815 2015-03-24 Gary Benson <gbenson@redhat.com>
8817 * linux-x86-low.c (x86_linux_dr_get): Update comments.
8818 (x86_linux_dr_set): Likewise.
8819 (update_debug_registers_callback): Likewise.
8820 (x86_linux_dr_set_addr): Likewise.
8821 (x86_linux_dr_get_addr): Likewise.
8822 (x86_linux_dr_set_control): Likewise.
8823 (x86_linux_dr_get_control): Likewise.
8824 (x86_linux_dr_get_status): Likewise.
8825 (x86_linux_prepare_to_resume): Likewise.
8827 2015-03-24 Gary Benson <gbenson@redhat.com>
8829 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
8830 Use perror_with_name. Pass string through gettext.
8831 (x86_linux_dr_set): Likewise.
8833 2015-03-24 Gary Benson <gbenson@redhat.com>
8835 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
8836 (x86_linux_dr_set_addr): ...this.
8837 (x86_dr_low_get_addr): Rename to...
8838 (x86_linux_dr_get_addr): ...this.
8839 (x86_dr_low_set_control): Rename to...
8840 (x86_linux_dr_set_control): ...this.
8841 (x86_dr_low_get_control): Rename to...
8842 (x86_linux_dr_get_control): ...this.
8843 (x86_dr_low_get_status): Rename to...
8844 (x86_linux_dr_get_status): ...this.
8845 (x86_dr_low): Update with new function names.
8847 2015-03-24 Gary Benson <gbenson@redhat.com>
8849 * Makefile.in (x86-linux.o): New rule.
8850 * configure.srv: Add x86-linux.o to relevant targets.
8851 * linux-low.c (lwp_set_arch_private_info): New function.
8852 (lwp_arch_private_info): Likewise.
8853 * linux-x86-low.c: Include nat/x86-linux.h.
8854 (arch_lwp_info): Removed structure.
8855 (update_debug_registers_callback):
8856 Use lwp_set_debug_registers_changed.
8857 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
8858 and lwp_set_debug_registers_changed.
8859 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
8861 2015-03-24 Gary Benson <gbenson@redhat.com>
8863 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
8864 * linux-arm-low.c (arm_new_thread): Likewise.
8865 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
8866 * linux-mips-low.c (mips_linux_new_thread): Likewise.
8867 * linux-x86-low.c (x86_linux_new_thread): Likewise.
8868 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
8870 2015-03-24 Gary Benson <gbenson@redhat.com>
8872 * linux-low.c (ptid_of_lwp): New function.
8873 (lwp_is_stopped): Likewise.
8874 (lwp_stop_reason): Likewise.
8875 * linux-x86-low.c (update_debug_registers_callback):
8877 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
8880 2015-03-24 Gary Benson <gbenson@redhat.com>
8882 * linux-low.h (linux_stop_lwp): Remove declaration.
8884 2015-03-24 Gary Benson <gbenson@redhat.com>
8886 * linux-low.h: Include nat/linux-nat.h.
8887 * linux-low.c (iterate_over_lwps_args): New structure.
8888 (iterate_over_lwps_filter): New function.
8889 (iterate_over_lwps): Likewise.
8890 * linux-x86-low.c (update_debug_registers_callback):
8891 Update signature to what iterate_over_lwps expects.
8892 Remove PID check that iterate_over_lwps now performs.
8893 (x86_dr_low_set_addr): Use iterate_over_lwps.
8894 (x86_dr_low_set_control): Likewise.
8896 2015-03-24 Gary Benson <gbenson@redhat.com>
8898 * linux-x86-low.c (x86_debug_reg_state): New function.
8899 (x86_linux_prepare_to_resume): Use the above.
8901 2015-03-24 Gary Benson <gbenson@redhat.com>
8903 * linux-low.c (current_lwp_ptid): New function.
8904 * linux-x86-low.c: Include nat/linux-nat.h.
8905 (x86_dr_low_get_addr): Use current_lwp_ptid.
8906 (x86_dr_low_get_control): Likewise.
8907 (x86_dr_low_get_status): Likewise.
8909 2015-03-20 Pedro Alves <palves@redhat.com>
8911 * tracepoint.c (cmd_qtstatus): Make "str" const.
8913 2015-03-20 Pedro Alves <palves@redhat.com>
8915 * server.c (handle_general_set): Make "req_str" const.
8917 2015-03-19 Pedro Alves <palves@redhat.com>
8919 * linux-low.c (linux_resume_one_lwp): Rename to ...
8920 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
8921 instead call perror_with_name.
8922 (check_ptrace_stopped_lwp_gone): New function.
8923 (linux_resume_one_lwp): Reimplement as wrapper around
8924 linux_resume_one_lwp_throw that swallows errors if the LWP is
8927 2015-03-19 Pedro Alves <palves@redhat.com>
8929 * linux-low.c (count_events_callback, select_event_lwp_callback):
8930 No longer check whether the thread has resume_stop as last resume
8933 2015-03-19 Pedro Alves <palves@redhat.com>
8935 * linux-low.c (count_events_callback, select_event_lwp_callback):
8936 Use the lwp's status_pending_p field, not the thread's.
8938 2015-03-19 Pedro Alves <palves@redhat.com>
8940 * linux-low.c (select_event_lwp_callback): Update comments to
8941 no longer mention SIGTRAP.
8943 2015-03-18 Gary Benson <gbenson@redhat.com>
8945 * server.c (handle_query): Do not report vFile:fstat as supported.
8947 2015-03-11 Gary Benson <gbenson@redhat.com>
8949 * hostio.c (sys/types.h): New include.
8950 (sys/stat.h): Likewise.
8951 (common-remote-fileio.h): Likewise.
8952 (handle_fstat): New function.
8953 (handle_vFile): Handle vFile:fstat packets.
8955 2015-03-11 Gary Benson <gbenson@redhat.com>
8957 * configure.ac (AC_CHECK_MEMBERS): Add checks for
8958 struct stat.st_blocks and struct stat.st_blksize.
8959 * configure: Regenerate.
8960 * config.in: Likewise.
8961 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
8962 (OBS): Add common-remote-fileio.o.
8963 (common-remote-fileio.o): New rule.
8965 2015-03-09 Pedro Alves <palves@redhat.com>
8967 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
8968 'struct sockaddr' pointer in 'accept' call.
8970 2015-03-09 Pedro Alves <palves@redhat.com>
8973 2015-03-07 Pedro Alves <palves@redhat.com>
8974 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
8975 or <winsock2.h> here. Instead include "gdb_socket.h".
8976 (remote_open): Use union gdb_sockaddr_u.
8977 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
8978 or <winsock2.h> here. Instead include "gdb_socket.h".
8979 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
8980 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
8982 (init_named_socket, gdb_agent_helper_thread): Use union
8985 2015-03-07 Pedro Alves <palves@redhat.com>
8987 * configure.ac (build_warnings): Move
8988 -Wdeclaration-after-statement to the C-specific set.
8989 * configure: Regenerate.
8991 2015-03-07 Pedro Alves <palves@redhat.com>
8993 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
8994 or <winsock2.h> here. Instead include "gdb_socket.h".
8995 (remote_open): Use union gdb_sockaddr_u.
8996 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
8997 or <winsock2.h> here. Instead include "gdb_socket.h".
8998 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
8999 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
9001 (init_named_socket, gdb_agent_helper_thread): Use union
9004 2015-03-07 Pedro Alves <palves@redhat.com>
9006 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
9009 2015-03-06 Yao Qi <yao.qi@linaro.org>
9011 * linux-aarch64-low.c (aarch64_insert_point): Use
9012 show_debug_regs as a boolean.
9013 (aarch64_remove_point): Likewise.
9015 2015-03-05 Pedro Alves <palves@redhat.com>
9017 * lynx-low.c (lynx_target_ops): Install NULL hooks for
9018 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
9019 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
9020 * nto-low.c (nto_target_ops): Likewise.
9021 * spu-low.c (spu_target_ops): Likewise.
9022 * win32-low.c (win32_target_ops): Likewise.
9024 2015-03-04 Pedro Alves <palves@redhat.com>
9026 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
9027 Decide whether a breakpoint triggered based on the SIGTRAP's
9029 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
9030 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
9031 (linux_low_filter_event): Check for breakpoints before checking
9033 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
9035 (linux_stopped_by_sw_breakpoint)
9036 (linux_supports_stopped_by_sw_breakpoint)
9037 (linux_stopped_by_hw_breakpoint)
9038 (linux_supports_stopped_by_hw_breakpoint): New functions.
9039 (linux_target_ops): Install new target methods.
9041 2015-03-04 Pedro Alves <palves@redhat.com>
9043 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
9044 * server.c (swbreak_feature, hwbreak_feature): New globals.
9045 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
9046 (captured_main): Clear swbreak_feature and hwbreak_feature.
9047 * server.h (swbreak_feature, hwbreak_feature): Declare.
9048 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
9049 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
9050 supports_stopped_by_hw_breakpoint>: New fields.
9051 (target_supports_stopped_by_sw_breakpoint)
9052 (target_stopped_by_sw_breakpoint)
9053 (target_supports_stopped_by_hw_breakpoint)
9054 (target_stopped_by_hw_breakpoint): Declare.
9056 2015-03-04 Pedro Alves <palves@redhat.com>
9058 enum lwp_stop_reason -> enum target_stop_reason
9059 * linux-low.c (check_stopped_by_breakpoint): Adjust.
9060 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
9061 (linux_wait_1, stuck_in_jump_pad_callback)
9062 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
9063 (linux_stopped_by_watchpoint):
9064 * linux-low.h (enum lwp_stop_reason): Delete.
9065 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
9066 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
9068 2015-03-04 Yao Qi <yao.qi@linaro.org>
9070 * Makefile.in (SFILES): Add linux-aarch64-low.c.
9072 2015-03-03 Gary Benson <gbenson@redhat.com>
9074 * hostio.c (handle_vFile): Fix prefix lengths.
9076 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9078 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
9081 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
9083 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
9084 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
9085 (clean): Add "rm -f" for above C files.
9086 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
9087 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
9088 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
9089 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
9090 * linux-s390-low.c (HWCAP_S390_VX): New macro.
9091 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
9092 (init_registers_s390x_vx_linux64)
9093 (init_registers_s390x_tevx_linux64)
9094 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
9095 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
9097 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
9098 (s390_store_vxrs_high): New functions.
9099 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
9101 (s390_arch_setup): Add logic for selecting one of the new target
9102 descriptions. Activate the new vector regsets if applicable.
9103 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
9104 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
9105 and init_registers_s390x_tevx_linux64.
9107 2015-03-01 Pedro Alves <palves@redhat.com>
9109 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
9112 2015-02-27 Pedro Alves <palves@redhat.com>
9114 * linux-x86-low.c (u_debugreg_offset): New function.
9115 (x86_linux_dr_get, x86_linux_dr_set): Use it.
9117 2015-02-27 Pedro Alves <palves@redhat.com>
9119 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
9120 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
9121 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9122 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9123 (ps_lsetfpregs, ps_getpid)
9124 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
9125 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
9126 (ps_lsetxregs, ps_plog): Declare.
9128 2015-02-27 Pedro Alves <palves@redhat.com>
9130 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
9131 IP_AGENT_EXPORT_FUNC.
9132 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
9133 IP_AGENT_EXPORT_FUNC.
9134 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
9135 (IP_AGENT_EXPORT): Delete.
9136 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
9137 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
9138 (gdb_trampoline_buffer_error, collecting, gdb_collect)
9139 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
9140 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
9141 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
9142 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
9143 (traceframe_read_count, traceframe_write_count)
9144 (traceframes_created, trace_state_variables, get_raw_reg)
9145 (get_trace_state_variable_value, set_trace_state_variable_value)
9146 (ust_loaded, helper_thread_id, cmd_buf): Use
9147 IPA_SYM_EXPORTED_NAME.
9148 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
9149 (tracepoints) Use IP_AGENT_EXPORT_VAR.
9150 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
9151 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9152 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
9153 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
9154 EXTERN_C_PUSH/EXTERN_C_POP.
9155 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
9156 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
9157 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9158 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
9159 (traceframe_write_count, traceframe_read_count)
9160 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
9161 (about_to_request_buffer_space, get_trace_state_variable_value)
9162 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
9163 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
9164 EXTERN_C_PUSH/EXTERN_C_POP.
9165 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
9166 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
9167 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
9168 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9169 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
9170 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
9171 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
9172 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
9174 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
9175 (IP_AGENT_EXPORT_VAR_DECL): Define.
9177 (gdb_agent_get_raw_reg): Declare.
9179 2015-02-27 Tom Tromey <tromey@redhat.com>
9180 Pedro Alves <palves@redhat.com>
9182 Rename symbols whose names are reserved C++ keywords throughout.
9184 2015-02-27 Pedro Alves <palves@redhat.com>
9186 * Makefile.in (COMPILER): New, get it from autoconf.
9187 (CXX): Get from autoconf instead.
9188 (COMPILE.pre): Use COMPILER.
9189 (CC-LD): Rename to ...
9190 (CC_LD): ... this. Use COMPILER.
9191 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
9192 (CXX_FOR_TARGET): Default to g++ instead of gcc.
9193 * acinclude.m4: Include build-with-cxx.m4.
9194 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
9195 Disable -Werror by default if building in C++ mode.
9196 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
9197 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
9198 the C++ compiler. Save/restore CXXFLAGS too.
9199 * configure: Regenerate.
9201 2015-02-27 Pedro Alves <palves@redhat.com>
9203 * acinclude.m4: Include libiberty.m4.
9204 * configure.ac: Call libiberty_INIT.
9205 * config.in, configure: Regenerate.
9207 2015-02-26 Pedro Alves <palves@redhat.com>
9209 * linux-low.c (linux_wait_1): When incrementing the PC past a
9210 program breakpoint always use the_low_target.breakpoint_len as
9211 increment, rather than the maximum between that and
9212 the_low_target.decr_pc_after_break.
9214 2015-02-23 Pedro Alves <palves@redhat.com>
9216 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
9217 thread was doing a step-over; always adjust the PC if
9218 we stepped over a permanent breakpoint.
9219 (linux_wait_1): If we stepped over breakpoint that was on top of a
9220 permanent breakpoint, manually advance the PC past it.
9222 2015-02-23 Pedro Alves <palves@redhat.com>
9224 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
9226 (x86_fill_gregset, x86_store_gregset): Use it when handling
9229 2015-02-20 Pedro Alves <palves@redhat.com>
9231 * thread-db.c: Include "nat/linux-procfs.h".
9232 (thread_db_init): Skip listing new threads if the kernel supports
9233 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
9235 2015-02-20 Pedro Alves <palves@redhat.com>
9237 * linux-low.c (status_pending_p_callback): Use ptid_match.
9239 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
9241 PR breakpoints/16812
9242 * linux-low.c (wstatus_maybe_breakpoint): Remove.
9243 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
9244 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
9246 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
9248 PR breakpoints/15956
9249 * tracepoint.c (cmd_qtinit): Add check for current_thread.
9251 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9253 * linux-low.c (linux_low_btrace_conf): Print size.
9254 * server.c (handle_btrace_conf_general_set): New.
9255 (hanle_general_set): Call handle_btrace_conf_general_set.
9256 (handle_query): Report Qbtrace-conf:bts:size as supported.
9258 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9260 * linux-low.c (linux_low_enable_btrace): Update parameters.
9261 (linux_low_btrace_conf): New.
9262 (linux_target_ops)<to_btrace_conf>: Initialize.
9263 * server.c (current_btrace_conf): New.
9264 (handle_btrace_enable): Rename to ...
9265 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
9266 to target_enable_btrace. Update comment. Update users.
9267 (handle_qxfer_btrace_conf): New.
9268 (qxfer_packets): Add btrace-conf entry.
9269 (handle_query): Report qXfer:btrace-conf:read as supported packet.
9270 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
9271 (target_ops)<read_btrace_conf>: New.
9272 (target_enable_btrace): Update parameters.
9273 (target_read_btrace_conf): New.
9275 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9277 * server.c (handle_btrace_general_set): Remove call to
9278 target_supports_btrace.
9279 (supported_btrace_packets): New.
9280 (handle_query): Call supported_btrace_packets.
9281 * target.h: include btrace-common.h.
9282 (btrace_target_info): Removed.
9283 (supports_btrace, target_supports_btrace): Update parameters.
9285 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9287 * Makefile.in (SFILES): Add common/btrace-common.c.
9288 (OBS): Add common/btrace-common.o.
9289 (btrace-common.o): Add build rules.
9290 * linux-low: Include btrace-common.h.
9291 (linux_low_read_btrace): Use struct btrace_data. Call
9292 btrace_data_init and btrace_data_fini.
9294 2015-02-06 Pedro Alves <palves@redhat.com>
9296 * thread-db.c (find_new_threads_callback): Add debug output.
9298 2015-02-04 Pedro Alves <palves@redhat.com>
9300 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
9301 (resume_stopped_resumed_lwps): New function.
9302 (linux_wait_for_event_filtered): Use it.
9304 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9306 * Makefile.in (SFILES): Add linux-personality.c.
9307 (linux-personality.o): New rule.
9308 * configure.srv (srv_linux_obj): Add linux-personality.o to the
9309 list of objects to be built.
9310 * linux-low.c: Include nat/linux-personality.h.
9311 (linux_create_inferior): Remove code to disable address space
9312 randomization (moved to ../nat/linux-personality.c). Create
9313 cleanup to disable address space randomization.
9315 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9317 * Makefile.in (posix-strerror.o): New rule.
9318 (mingw-strerror.o): Likewise.
9319 * configure: Regenerated.
9320 * configure.ac: Source file ../common/common.host. Initialize new
9321 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
9323 2015-01-14 Yao Qi <yao@codesourcery.com>
9325 * Makefile.in (SFILES): Add nat/ppc-linux.c.
9326 (ppc-linux.o): New rule.
9327 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
9328 * configure.ac: AC_CHECK_FUNCS(getauxval).
9329 * config.in: Re-generated.
9330 * configure: Re-generated.
9331 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
9332 ppc64_64bit_inferior_p
9334 2015-01-14 Yao Qi <yao@codesourcery.com>
9336 * linux-ppc-low.c: Include "nat/ppc-linux.h".
9337 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
9338 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
9339 (PT_ORIG_R3, PT_TRAP): Likewise.
9340 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
9341 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
9342 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
9344 2015-01-10 Joel Brobecker <brobecker@adacore.com>
9346 * i387-fp.c (i387_cache_to_xsave): In look over
9347 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
9348 zmmh_low_space field by use of zmmh_high_space.
9350 2015-01-09 Pedro Alves <palves@redhat.com>
9352 * linux-low.c (step_over_bkpt): Move higher up in the file.
9353 (handle_extended_wait): Don't store the stop_pc here.
9354 (get_stop_pc): Adjust comments and rename to ...
9355 (check_stopped_by_breakpoint): ... this. Record whether the LWP
9356 stopped for a software breakpoint or hardware breakpoint.
9357 (thread_still_has_status_pending_p): New function.
9358 (status_pending_p_callback): Use
9359 thread_still_has_status_pending_p. If the event is no longer
9360 interesting, resume the LWP.
9361 (handle_tracepoints): Add assert.
9362 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
9363 (wstatus_maybe_breakpoint): New function.
9364 (cancel_breakpoint): Delete function.
9365 (check_stopped_by_watchpoint): New function, factored out from
9366 linux_low_filter_event.
9367 (lp_status_maybe_breakpoint): Delete function.
9368 (linux_low_filter_event): Remove filter_ptid argument.
9369 Leave thread group exits pending here. Store the LWP's stop PC.
9370 Always leave events pending.
9371 (linux_wait_for_event_filtered): Pull all events out of the
9372 kernel, and leave them all pending.
9373 (count_events_callback, select_event_lwp_callback): Consider all
9375 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
9376 (select_event_lwp): Only give preference to the stepping LWP in
9377 all-stop mode. Adjust comments.
9378 (ignore_event): New function.
9379 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
9380 references to cancel_breakpoints. Adjust to renames. Also give
9381 equal priority to all LWPs that have had events in non-stop mode.
9382 If reporting a software breakpoint event, unadjust the LWP's PC.
9383 (linux_wait): If linux_wait_1 returned an ignored event, retry.
9384 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
9386 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
9387 (resume_status_pending_p): Use thread_still_has_status_pending_p.
9388 (linux_stopped_by_watchpoint): Adjust.
9389 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
9390 * linux-low.h (enum lwp_stop_reason): New.
9391 (struct lwp_info) <stop_pc>: Adjust comment.
9392 <stopped_by_watchpoint>: Delete field.
9393 <stop_reason>: New field.
9394 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
9395 * mem-break.c (software_breakpoint_inserted_here)
9396 (hardware_breakpoint_inserted_here): New function.
9397 * mem-break.h (software_breakpoint_inserted_here)
9398 (hardware_breakpoint_inserted_here): Declare.
9399 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
9400 (cancel_breakpoints): Delete.
9401 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
9402 (upload_fast_traceframes): Remove references to
9405 2015-01-09 Pedro Alves <palves@redhat.com>
9407 * thread-db.c (find_new_threads_callback): Ignore thread if the
9408 kernel thread ID is -1.
9410 2015-01-09 Pedro Alves <palves@redhat.com>
9412 * linux-low.c (linux_attach_fail_reason_string): Move to
9413 nat/linux-ptrace.c, and rename.
9414 (linux_attach_lwp): Update comment.
9415 (attach_proc_task_lwp_callback): New function.
9416 (linux_attach): Adjust to rename and use
9417 linux_proc_attach_tgid_threads.
9418 (linux_attach_fail_reason_string): Delete declaration.
9420 2015-01-01 Joel Brobecker <brobecker@adacore.com>
9422 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
9423 * server.c (gdbserver_version): Likewise.
9425 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
9427 * remote-utils.c: Include ctype.h.
9428 (input_interrupt): Explicitly handle the case when the char
9429 received is the NUL byte. Improve the printing of non-ASCII
9432 2014-12-16 Joel Brobecker <brobecker@adacore.com>
9434 * linux-low.c (linux_low_filter_event): Update call to
9435 linux_enable_event_reporting following the addition of
9436 a new parameter to that function.
9438 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
9441 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
9442 (AARCH64_FPCR_REGNO): Likewise.
9443 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
9444 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
9445 (aarch64_store_fpregset): Likewise.
9447 2014-12-15 Joel Brobecker <brobecker@adacore.com>
9449 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
9450 Remove FIXME comment about assumption about N.
9452 2014-12-13 Joel Brobecker <brobecker@adacore.com>
9454 * configure.ac: If large-file support is disabled in GDBserver,
9455 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
9456 * configure: Regenerate.
9458 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9460 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
9461 warning upon ENODATA from ptrace.
9462 * linux-s390-low.c (s390_store_tdb): New.
9463 (s390_regsets): Add regset for NT_S390_TDB.
9465 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9467 * linux-low.c (regsets_store_inferior_registers): Skip regsets
9468 without a fill_function.
9469 * linux-s390-low.c (s390_fill_last_break): Remove.
9470 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
9471 (s390_arch_setup): Use regset's size instead of fill_function for
9474 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9476 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
9477 the regset's store function when ptrace returned an error.
9478 * regcache.c (get_thread_regcache): Invalidate register cache
9479 before fetching inferior's registers.
9481 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9483 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
9484 while-loop as for-loop.
9485 (regsets_store_inferior_registers): Likewise.
9487 2014-11-28 Yao Qi <yao@codesourcery.com>
9489 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
9490 * config.in, configure: Re-generate.
9491 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
9494 2014-11-21 Yao Qi <yao@codesourcery.com>
9496 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
9497 (AC_CHECK_HEADERS): Remove malloc.h.
9498 * configure: Re-generated.
9499 * config.in: Re-generated.
9500 * server.h: Don't include alloca.h and malloc.h.
9501 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
9502 Don't include malloc.h.
9504 2014-11-17 Joel Brobecker <brobecker@adacore.com>
9506 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
9507 corresponding ERRNO check in same block.
9509 2014-11-12 Pedro Alves <palves@redhat.com>
9511 * server.c (cont_thread): Update comment.
9512 (start_inferior, attach_inferior): No longer clear cont_thread.
9513 (handle_v_cont): No longer set cont_thread.
9514 (captured_main): Clear cont_thread each time a GDB connects.
9516 2014-11-12 Pedro Alves <palves@redhat.com>
9518 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
9519 thread, and don't resume all threads if the Hc thread has exited.
9521 2014-11-12 Pedro Alves <palves@redhat.com>
9523 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
9524 the process group instead of to a specific LWP.
9526 2014-10-15 Pedro Alves <palves@redhat.com>
9529 * win32-arm-low.c (arm_set_thread_context): Remove current_event
9531 (arm_set_thread_context): Delete.
9532 (the_low_target): Adjust.
9533 * win32-i386-low.c (debug_registers_changed)
9534 (debug_registers_used): Delete.
9535 (update_debug_registers_callback): New function.
9536 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
9537 needing to update their debug registers.
9538 (win32_get_current_dr): New function.
9539 (x86_dr_low_get_addr, x86_dr_low_get_control)
9540 (x86_dr_low_get_status): Fetch the debug register from the thread
9542 (i386_initial_stuff): Adjust.
9543 (i386_get_thread_context): Remove current_event parameter. Don't
9544 clear debug_registers_changed nor copy DR values to
9546 (i386_set_thread_context): Delete.
9547 (i386_prepare_to_resume): New function.
9548 (i386_thread_added): Mark the thread as needing to update irs
9550 (the_low_target): Remove i386_set_thread_context and install
9551 i386_prepare_to_resume.
9552 * win32-low.c (win32_get_thread_context): Adjust.
9553 (win32_set_thread_context): Use SetThreadContext
9555 (win32_prepare_to_resume): New function.
9556 (win32_require_context): New function, factored out from ...
9557 (thread_rec): ... this.
9558 (continue_one_thread): Call win32_prepare_to_resume on each thread
9559 we're about to continue.
9560 (win32_resume): Call win32_prepare_to_resume on the event thread.
9561 * win32-low.h (struct win32_thread_info)
9562 <debug_registers_changed>: New field.
9563 (struct win32_target_ops): Change prototype of set_thread_context,
9564 delete set_thread_context and add prepare_to_resume.
9565 (win32_require_context): New declaration.
9567 2014-10-08 Gary Benson <gbenson@redhat.com>
9569 * server.h: Do not include common-exceptions.h.
9571 2014-10-08 Gary Benson <gbenson@redhat.com>
9573 * server.h: Do not include cleanups.h.
9575 2014-09-30 James Hogan <james.hogan@imgtec.com>
9577 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
9580 2014-09-23 Yao Qi <yao@codesourcery.com>
9582 * linux-low.c (lp_status_maybe_breakpoint): New function.
9583 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
9584 (count_events_callback): Likewise.
9585 (select_event_lwp_callback): Likewise.
9586 (cancel_breakpoints_callback): Likewise.
9588 2014-09-19 Don Breazeal <donb@codesourcery.com>
9590 * linux-low.c (handle_extended_wait): Call
9591 linux_ptrace_get_extended_event.
9592 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
9593 linux_is_extended_waitstatus.
9595 2014-09-16 Joel Brobecker <brobecker@adacore.com>
9597 * Makefile.in (CPPFLAGS): Define.
9598 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
9599 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
9601 2014-09-16 Gary Benson <gbenson@redhat.com>
9603 * inferiors.h (current_inferior): Renamed as...
9604 (current_thread): New variable. All uses updated.
9605 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
9606 (maybe_move_out_of_jump_pad): Likewise.
9607 (cancel_breakpoint): Likewise.
9608 (linux_low_filter_event): Likewise.
9609 (wait_for_sigstop): Likewise.
9610 (linux_resume_one_lwp): Likewise.
9611 (need_step_over_p): Likewise.
9612 (start_step_over): Likewise.
9613 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
9614 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
9615 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
9616 and save_inferior as saved_thread.
9617 * regcache.c (get_thread_regcache): Renamed saved_inferior as
9619 (regcache_invalidate_thread): Likewise.
9620 * remote-utils.c (prepare_resume_reply): Likewise.
9621 * thread-db.c (thread_db_get_tls_address): Likewise.
9622 (disable_thread_event_reporting): Likewise.
9623 (remove_thread_event_breakpoints): Likewise.
9624 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
9626 * target.h (set_desired_inferior): Renamed as...
9627 (set_desired_thread): New declaration. All uses updated.
9628 * server.c (myresume): Updated comment to reference thread instead
9630 (handle_serial_event): Likewise.
9631 (handle_target_event): Likewise.
9633 2014-09-12 Tom Tromey <tromey@redhat.com>
9634 Gary Benson <gbenson@redhat.com>
9636 * regcache.h: Include common-regcache.h.
9637 (regcache_read_pc): Don't declare.
9638 * regcache.c (get_thread_regcache_for_ptid): New function.
9640 2014-09-11 Tom Tromey <tromey@redhat.com>
9641 Gary Benson <gbenson@redhat.com>
9643 * symbol.c: New file.
9644 * Makefile.in (SFILES): Add symbol.c.
9645 (OBS): Add symbol.o.
9647 2014-09-11 Gary Benson <gbenson@redhat.com>
9649 * target.c (target_stop_ptid, target_continue_ptid): New
9652 2014-09-11 Tom Tromey <tromey@redhat.com>
9653 Gary Benson <gbenson@redhat.com>
9655 * target.h: Include target/target.h.
9656 * target.c (target_read_memory, target_read_uint32)
9657 (target_write_memory): New functions.
9659 2014-09-11 Gary Benson <gbenson@redhat.com>
9661 * server.h (debug_hw_points): Don't declare.
9662 * server.c (debug_hw_points): Don't define. Replace all uses
9663 with show_debug_regs.
9664 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
9665 all uses with show_debug_regs.
9667 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9669 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
9670 endianness into account.
9671 (ppc_supply_ptrace_register): Likewise.
9673 2014-09-03 James Hogan <james.hogan@imgtec.com>
9675 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
9676 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
9678 2014-09-03 Gary Benson <gbenson@redhat.com>
9680 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
9681 ALL_DEBUG_ADDRESS_REGISTERS.
9683 2014-09-02 Gary Benson <gbenson@redhat.com>
9685 * i386-low.h: Renamed as...
9686 * x86-low.h: New file. All type, function and variable name
9687 prefixes changed from "i386_" to "x86_". All references updated.
9688 * i386-low.c: Renamed as...
9689 * x86-low.c: New file. All type, function and variable name
9690 prefixes changed from "i386_" to "x86_". All references updated.
9692 2014-09-02 Gary Benson <gbenson@redhat.com>
9694 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
9695 (x86_linux_new_thread): Likewise.
9697 2014-08-29 Gary Benson <gbenson@redhat.com>
9699 * server.h (setjmp.h): Do not include.
9700 (toplevel): Do not declare.
9701 (common-exceptions.h): Include.
9702 (cleanups.h): Likewise.
9703 * server.c (toplevel): Do not define.
9704 (exit_code): New static global.
9705 (detach_or_kill_for_exit_cleanup): New function.
9706 (main): New function. Original main renamed to...
9707 (captured_main): New function.
9708 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
9710 2014-08-29 Gary Benson <gbenson@redhat.com>
9712 * Makefile.in (SFILES): Add common/common-exceptions.c.
9713 (OBS): Add common-exceptions.o.
9714 (common-exceptions.o): New rule.
9715 * utils.c (prepare_to_throw_exception): New function.
9717 2014-08-29 Gary Benson <gbenson@redhat.com>
9719 * config.in: Regenerate.
9720 * configure: Likewise.
9722 2014-08-29 Gary Benson <gbenson@redhat.com>
9724 * Makefile.in (SFILES): Add common/cleanups.c.
9726 (cleanups.o): New rule.
9728 2014-08-29 Gary Benson <gbenson@redhat.com>
9730 * utils.c (internal_vwarning): New function.
9732 2014-08-28 Gary Benson <gbenson@redhat.com>
9734 * utils.h (fatal): Remove declaration.
9735 * utils.c (fatal): Remove function.
9737 2014-08-28 Gary Benson <gbenson@redhat.com>
9739 * tracepoint.c (gdb_agent_init): Replace fatal with
9741 (initialize_tracepoint): Likewise.
9743 2014-08-28 Gary Benson <gbenson@redhat.com>
9745 * remote-utils.c (remote_prepare): Replace fatal with error.
9747 2014-08-28 Gary Benson <gbenson@redhat.com>
9749 * linux-low.c (linux_async): Replace fatal with warning.
9751 (linux_start_non_stop): Return -1 if linux_async failed.
9753 2014-08-28 Gary Benson <gbenson@redhat.com>
9755 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
9757 (i386_dr_low_get_addr): Remove vague comment.
9758 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
9761 2014-08-28 Gary Benson <gbenson@redhat.com>
9763 * inferiors.c (get_thread_process): Replace check with gdb_assert.
9764 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
9766 (linux_resume_one_lwp): Likewise.
9767 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
9769 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
9770 with internal_error.
9771 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
9772 (init_register_cache): Replace fatal with gdb_assert_not_reached.
9773 (find_register_by_name): Replace fatal with internal_error.
9774 (find_regno): Likewise.
9775 * tdesc.c (init_target_desc): Replace check with gdb_assert.
9776 * thread-db.c (thread_db_create_event): Likewise.
9777 (thread_db_load_search): Likewise.
9778 (try_thread_db_load_1): Likewise.
9779 * tracepoint.c (get_jump_space_head): Replace fatal with
9781 (claim_trampoline_space): Likewise.
9782 (have_fast_tracepoint_trampoline_buffer): Likewise.
9783 (cmd_qtstart): Likewise.
9784 (stop_tracing): Likewise.
9785 (fast_tracepoint_collecting): Likewise.
9786 (target_malloc): Likewise.
9787 (download_tracepoint): Likewise.
9788 (download_trace_state_variables): Replace check with gdb_assert.
9789 (upload_fast_traceframes): Replace fatal with internal_error.
9791 2014-08-19 Tom Tromey <tromey@redhat.com>
9792 Gary Benson <gbenson@redhat.com>
9794 * Makefile.in (SFILES): Add common/common-debug.c.
9795 (OBS): Add common-debug.o.
9796 (common-debug.o): New rule.
9797 * debug.h (debug_printf): Don't declare.
9798 * debug.c (debug_printf): Renamed and rewritten as...
9799 (debug_vprintf): New function.
9801 2014-08-19 Gary Benson <gbenson@redhat.com>
9803 * utils.h: Do not include print-utils.h.
9805 2014-08-19 Tom Tromey <tromey@redhat.com>
9806 Gary Benson <gbenson@redhat.com>
9808 * server.h: Add static assertion.
9809 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
9811 2014-08-19 Tom Tromey <tromey@redhat.com>
9812 Gary Benson <gbenson@redhat.com>
9814 * Makefile.in (SFILES): Add common/errors.c.
9815 (OBS): Add errors.o.
9816 (IPA_OBS): Add errors-ipa.o.
9817 (errors.o): New rule.
9818 (errors-ipa.o): Likewise.
9819 * utils.h (perror_with_name, error, warning): Don't declare.
9820 * utils.c (warning): Renamed and rewritten as...
9821 (vwarning): New function.
9822 (error): Renamed and rewritten as...
9823 (verror): New function.
9824 (internal_error): Renamed and rewritten as...
9825 (internal_verror): New function.
9827 2014-08-07 Gary Benson <gbenson@redhat.com>
9829 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
9830 * configure: Regenerate.
9831 * config.in: Likewise.
9832 * server.h: Do not include errno.h.
9833 * event-loop.c: Likewise.
9834 * hostio-errno.c: Likewise.
9835 * linux-low.c: Likewise.
9836 * remote-utils.c: Likewise.
9837 * spu-low.c: Likewise.
9838 * utils.c: Likewise.
9839 * gdbreplay.c: Unconditionally include errno.h.
9841 2014-08-07 Gary Benson <gbenson@redhat.com>
9843 * server.h: Do not include string.h.
9844 * event-loop.c: Likewise.
9845 * linux-low.c: Likewise.
9846 * regcache.c: Likewise.
9847 * remote-utils.c: Likewise.
9848 * spu-low.c: Likewise.
9849 * utils.c: Likewise.
9851 2014-08-07 Gary Benson <gbenson@redhat.com>
9853 * server.h: Do not include gdb_assert.h.
9855 2014-08-07 Gary Benson <gbenson@redhat.com>
9857 * server.h: Do not include common-utils.h.
9859 2014-08-07 Gary Benson <gbenson@redhat.com>
9861 * server.h: Do not include ptid.h.
9862 * notif.h: Likewise.
9864 2014-08-07 Gary Benson <gbenson@redhat.com>
9866 * server.h: Do not include gdb_locale.h.
9868 2014-08-07 Gary Benson <gbenson@redhat.com>
9870 * server.h: Do not include gdb/signals.h.
9871 * win32-low.c: Likewise.
9873 2014-08-07 Gary Benson <gbenson@redhat.com>
9875 * server.h: Do not include pathmax.h.
9877 2014-08-07 Gary Benson <gbenson@redhat.com>
9879 * server.h: Do not include libiberty.h.
9880 * linux-bfin-low.c: Likewise.
9882 2014-08-07 Gary Benson <gbenson@redhat.com>
9884 * server.h: Do not include ansidecl.h.
9886 2014-08-07 Gary Benson <gbenson@redhat.com>
9888 * linux-x86-low.c: Do not include stddef.h.
9889 * lynx-ppc-low.c: Likewise.
9890 * tracepoint.c: Likewise.
9892 2014-08-07 Gary Benson <gbenson@redhat.com>
9894 * server.h: Do not include stdarg.h.
9895 * nto-low.c: Likewise.
9897 2014-08-07 Gary Benson <gbenson@redhat.com>
9899 * server.h: Do not include stdlib.h.
9900 * inferiors.c: Likewise.
9901 * linux-low.c: Likewise.
9902 * regcache.c: Likewise.
9903 * spu-low.c: Likewise.
9904 * tracepoint.c: Likewise.
9905 * utils.c: Likewise.
9907 2014-08-07 Gary Benson <gbenson@redhat.com>
9909 * server.h: Do not include stdio.h.
9910 * linux-low.c: Likewise.
9911 * remote-utils.c: Likewise.
9912 * spu-low.c: Likewise.
9913 * utils.c: Likewise.
9914 * wincecompat.c: Likewise.
9916 2014-08-06 Gary Benson <gbenson@redhat.com>
9918 * regcache.c (init_register_cache): Move conditionals inside if.
9920 2014-08-06 Gary Benson <gbenson@redhat.com>
9922 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
9924 2014-07-31 Gary Benson <gbenson@redhat.com>
9926 * ax.h: Do not include server.h.
9927 * gdbthread.h: Likewise.
9928 * lynx-low.h: Likewise.
9929 * notif.h: Likewise.
9931 2014-07-30 Gary Benson <gbenson@redhat.com>
9933 * server.h: Include common-defs.h.
9934 Do not include config.h or build-gnulib-gdbserver/config.h.
9936 2014-07-30 Gary Benson <gbenson@redhat.com>
9938 * hostio-errno.c: Move server.h to top of includes list.
9939 * inferiors.c: Likewise.
9940 * linux-x86-low.c: Likewise.
9941 * notif.c: Include server.h.
9943 2014-07-24 Tom Tromey <tromey@redhat.com>
9944 Gary Benson <gbenson@redhat.com>
9946 * server.h (CORE_ADDR): Now unsigned.
9948 2014-07-16 Pedro Alves <palves@redhat.com>
9950 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
9952 2014-07-15 Pedro Alves <palves@redhat.com>
9954 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
9957 2014-07-11 Pedro Alves <palves@redhat.com>
9959 * linux-low.c (kill_wait_lwp): New function, based on
9960 kill_one_lwp_callback, but use my_waitpid directly.
9961 (kill_one_lwp_callback, linux_kill): Use it.
9963 2014-06-23 Pedro Alves <palves@redhat.com>
9965 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
9966 before setting DR0..DR3.
9968 2014-06-20 Gary Benson <gbenson@redhat.com>
9970 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
9971 * configure: Regenerated.
9972 * config.in: Likewise.
9974 2014-06-20 Gary Benson <gbenson@redhat.com>
9976 * Makefile.in (SFILES): Update locations for files moved
9978 (object file files): Reordered.
9980 2014-06-20 Gary Benson <gbenson@redhat.com>
9982 * i386-low.h (i386_dr_low_can_set_addr): Removed.
9983 (i386_dr_low_set_addr): Likewise.
9984 (i386_dr_low_get_addr): Likewise.
9985 (i386_dr_low_can_set_control): Likewise.
9986 (i386_dr_low_set_control): Likewise.
9987 (i386_dr_low_get_control): Likewise.
9988 (i386_dr_low_get_status): Likewise.
9989 (i386_get_debug_register_length): Likewise.
9990 * linux-x86-low.c (i386_dr_low_set_addr):
9991 Changed signature. Made static.
9992 (i386_dr_low_get_addr): Likewise.
9993 (i386_dr_low_set_control): Likewise.
9994 (i386_dr_low_get_control): Likewise.
9995 (i386_dr_low_get_status): Likewise.
9996 (i386_dr_low): New global variable.
9997 * win32-i386-low.c (i386_dr_low_set_addr):
9998 Changed signature. Made static.
9999 (i386_dr_low_get_addr): Likewise.
10000 (i386_dr_low_set_control): Likewise.
10001 (i386_dr_low_get_control): Likewise.
10002 (i386_dr_low_get_status): Likewise.
10003 (i386_dr_low): New global variable.
10005 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
10007 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
10008 * Makefile.in (AR, AR_FLAGS): Define.
10009 * configure: Regenerate.
10011 2014-06-19 Gary Benson <gbenson@redhat.com>
10013 * Makefile.in (i386-dregs.o): New rule.
10014 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
10015 * i386-low.c (target.h): Remove include.
10016 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
10017 (DR_CONTROL_SHIFT): Likewise.
10018 (DR_CONTROL_SIZE): Likewise.
10019 (DR_RW_EXECUTE): Likewise.
10020 (DR_RW_WRITE): Likewise.
10021 (DR_RW_READ): Likewise.
10022 (DR_RW_IORW): Likewise.
10023 (DR_LEN_1): Likewise.
10024 (DR_LEN_2): Likewise.
10025 (DR_LEN_4): Likewise.
10026 (DR_LEN_8): Likewise.
10027 (DR_LOCAL_ENABLE_SHIFT): Likewise.
10028 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
10029 (DR_ENABLE_SIZE): Likewise.
10030 (DR_LOCAL_SLOWDOWN): Likewise.
10031 (DR_GLOBAL_SLOWDOWN): Likewise.
10032 (DR_CONTROL_RESERVED): Likewise.
10033 (I386_DR_CONTROL_MASK): Likewise.
10034 (I386_DR_VACANT): Likewise.
10035 (I386_DR_LOCAL_ENABLE): Likewise.
10036 (I386_DR_GLOBAL_ENABLE): Likewise.
10037 (I386_DR_DISABLE): Likewise.
10038 (I386_DR_SET_RW_LEN): Likewise.
10039 (I386_DR_GET_RW_LEN): Likewise.
10040 (I386_DR_WATCH_HIT): Likewise.
10041 (i386_wp_op_t): Likewise.
10042 (i386_show_dr): Likewise.
10043 (i386_length_and_rw_bits): Likewise.
10044 (i386_insert_aligned_watchpoint): Likewise.
10045 (i386_remove_aligned_watchpoint): Likewise.
10046 (i386_handle_nonaligned_watchpoint): Likewise.
10047 i386_update_inferior_debug_regs(): Likewise.
10048 (i386_dr_insert_watchpoint): Likewise.
10049 (i386_dr_remove_watchpoint): Likewise.
10050 (i386_dr_region_ok_for_watchpoint): Likewise.
10051 (i386_dr_stopped_data_address): Likewise.
10052 (i386_dr_stopped_by_watchpoint): Likewise.
10054 2014-06-19 Gary Benson <gbenson@redhat.com>
10056 * i386-low.c (i386_dr_show): Renamed to
10057 i386_show_dr and made static. All uses updated.
10058 (i386_dr_length_and_rw_bits): Renamed to
10059 i386_length_and_rw_bits and made static.
10061 (i386_dr_insert_aligned_watchpoint): Renamed to
10062 i386_insert_aligned_watchpoint and made static.
10064 (i386_dr_remove_aligned_watchpoint): Renamed to
10065 i386_remove_aligned_watchpoint and made static.
10067 (i386_dr_update_inferior_debug_regs): Renamed to
10068 i386_update_inferior_debug_regs and made static.
10071 2014-06-18 Gary Benson <gbenson@redhat.com>
10073 * i386-low.h (i386_dr_low_can_set_addr): New macro.
10074 (i386_dr_low_can_set_control): Likewise.
10075 (i386_get_debug_register_length): Likewise.
10076 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
10077 (i386_dr_low_can_set_control): Likewise.
10078 (i386_get_debug_register_length): Likewise.
10080 2014-06-17 Gary Benson <gbenson@redhat.com>
10082 * i386-low.h (i386-dregs.h): New include.
10083 (DR_FIRSTADDR): Now in i386-dregs.h.
10084 (DR_LASTADDR): Likewise.
10085 (DR_NADDR): Likewise.
10086 (DR_STATUS): Likewise.
10087 (DR_CONTROL): Likewise.
10088 (i386_debug_reg_state): Likewise.
10089 (i386_dr_insert_watchpoint): Likewise.
10090 (i386_dr_remove_watchpoint): Likewise.
10091 (i386_dr_region_ok_for_watchpoint): Likewise.
10092 (i386_dr_stopped_data_address): Likewise.
10093 (i386_dr_stopped_by_watchpoint): Likewise.
10094 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
10096 2014-06-18 Gary Benson <gbenson@redhat.com>
10098 * i386-low.h (i386_low_insert_watchpoint): Renamed to
10099 i386_dr_insert_watchpoint.
10100 (i386_low_remove_watchpoint): Renamed to
10101 i386_dr_remove_watchpoint.
10102 (i386_low_region_ok_for_watchpoint): Renamed to
10103 i386_dr_region_ok_for_watchpoint.
10104 (i386_low_stopped_data_address): Renamed to
10105 i386_dr_stopped_data_address.
10106 (i386_low_stopped_by_watchpoint): Renamed to
10107 i386_dr_stopped_by_watchpoint.
10108 * i386-low.c (i386_show_dr): Renamed to
10109 i386_dr_show and made nonstatic. All uses updated.
10110 (i386_length_and_rw_bits): Renamed to
10111 i386_dr_length_and_rw_bits and made nonstatic.
10113 (i386_insert_aligned_watchpoint): Renamed to
10114 i386_dr_insert_aligned_watchpoint and made nonstatic.
10116 (i386_remove_aligned_watchpoint): Renamed to
10117 i386_dr_remove_aligned_watchpoint and made nonstatic.
10119 (i386_update_inferior_debug_regs): Renamed to
10120 i386_dr_update_inferior_debug_regs and made nonstatic.
10122 (i386_low_insert_watchpoint): Renamed to
10123 i386_dr_insert_watchpoint. All uses updated.
10124 (i386_low_remove_watchpoint): Renamed to
10125 i386_dr_remove_watchpoint. All uses updated.
10126 (i386_low_region_ok_for_watchpoint): Renamed to
10127 i386_dr_region_ok_for_watchpoint. All uses updated.
10128 (i386_low_stopped_data_address): Renamed to
10129 i386_dr_stopped_data_address. All uses updated.
10130 (i386_low_stopped_by_watchpoint): Renamed to
10131 i386_dr_stopped_by_watchpoint. All uses updated.
10133 2014-06-18 Gary Benson <gbenson@redhat.com>
10135 * i386-low.c (i386_dr_low_can_set_addr): New macro.
10136 (i386_dr_low_can_set_control): Likewise.
10137 (i386_insert_aligned_watchpoint): New check.
10139 2014-06-18 Gary Benson <gbenson@redhat.com>
10141 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
10144 2014-06-18 Gary Benson <gbenson@redhat.com>
10146 * i386-low.c (i386_length_and_rw_bits): Use internal_error
10147 instead of fatal and error.
10148 (i386_handle_nonaligned_watchpoint): Likewise.
10150 2014-06-18 Gary Benson <gbenson@redhat.com>
10152 * i386-low.c (i386_get_debug_register_length): New macro.
10153 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
10154 (i386_show_dr): Use debug_printf instead of fprintf. Use
10155 phex to format values.
10157 2014-06-18 Gary Benson <gbenson@redhat.com>
10159 * i386-low.h: Comment changes.
10160 * i386-low.c: Likewise.
10162 2014-06-18 Gary Benson <gbenson@redhat.com>
10164 * i386-low.c: Whitespace changes.
10166 2014-06-12 Tom Tromey <tromey@redhat.com>
10168 * utils.c (freeargv): Remove.
10170 2014-06-12 Tom Tromey <tromey@redhat.com>
10172 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
10173 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
10174 (parse_debug_format_options): Likewise.
10175 (gdbserver_usage): Likewise.
10176 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
10177 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
10178 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
10180 ($(LIBGNU)): Depend on libiberty.
10181 (all-lib): Recurse into all subdirs.
10182 (install-only): Invoke "install" target in subdirs.
10183 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
10185 * configure: Rebuild.
10186 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
10187 for vasprintf, vsnprintf, or gettimeofday.
10188 * configure.srv: Don't add safe-ctype.o or lbasename.o to
10191 2014-06-05 Joel Brobecker <brobecker@adacore.com>
10193 * development.sh: Delete.
10194 * Makefile.in (config.status): Adjust dependency on development.sh.
10195 * configure.ac: Adjust development.sh source call.
10196 * configure: Regenerate.
10198 2014-06-02 Pedro Alves <palves@redhat.com>
10200 * ax.c (gdb_free_agent_expr): New function.
10201 * ax.h (gdb_free_agent_expr): New declaration.
10202 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
10204 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
10206 (clear_breakpoint_conditions_and_commands): New function.
10207 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
10208 (clear_breakpoint_conditions_and_commands): New declaration.
10210 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10212 * linux-aarch64-low.c (asm/ptrace.h): Include.
10214 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10216 Fix TLS access for -static -pthread.
10217 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
10218 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
10219 (thread_db_load_search, try_thread_db_load_1): Initialize it.
10221 2014-05-20 Pedro Alves <palves@redhat.com>
10223 * linux-aarch64-low.c (aarch64_insert_point)
10224 (aarch64_remove_point): No longer check whether the type is
10225 supported here. Adjust to new interface.
10226 (the_low_target): Install aarch64_supports_z_point_type as
10227 supports_z_point_type method.
10228 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
10229 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
10230 instead of a Z packet char. Adjust.
10231 (arm_supports_z_point_type): New function.
10232 (arm_insert_point, arm_remove_point): Adjust to new interface.
10233 (the_low_target): Install arm_supports_z_point_type.
10234 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
10235 (cris_insert_point, cris_remove_point): Adjust to new interface.
10236 Don't check whether the type is supported here.
10237 (the_low_target): Install cris_supports_z_point_type.
10238 * linux-low.c (linux_supports_z_point_type): New function.
10239 (linux_insert_point, linux_remove_point): Adjust to new interface.
10240 * linux-low.h (struct linux_target_ops) <insert_point,
10241 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
10242 raw_breakpoint pointer parameter.
10243 <supports_z_point_type>: New method.
10244 * linux-mips-low.c (mips_supports_z_point_type): New function.
10245 (mips_insert_point, mips_remove_point): Adjust to new interface.
10246 Use mips_supports_z_point_type.
10247 (the_low_target): Install mips_supports_z_point_type.
10248 * linux-ppc-low.c (the_low_target): Install NULL as
10249 supports_z_point_type method.
10250 * linux-s390-low.c (the_low_target): Install NULL as
10251 supports_z_point_type method.
10252 * linux-sparc-low.c (the_low_target): Install NULL as
10253 supports_z_point_type method.
10254 * linux-x86-low.c (x86_supports_z_point_type): New function.
10255 (x86_insert_point): Adjust to new insert_point interface. Use
10256 insert_memory_breakpoint. Adjust to new
10257 i386_low_insert_watchpoint interface.
10258 (x86_remove_point): Adjust to remove_point interface. Use
10259 remove_memory_breakpoint. Adjust to new
10260 i386_low_remove_watchpoint interface.
10261 (the_low_target): Install x86_supports_z_point_type.
10262 * lynx-low.c (lynx_target_ops): Install NULL as
10263 supports_z_point_type callback.
10264 * nto-low.c (nto_supports_z_point_type): New.
10265 (nto_insert_point, nto_remove_point): Adjust to new interface.
10266 (nto_target_ops): Install nto_supports_z_point_type.
10267 * mem-break.c: Adjust intro comment.
10268 (struct raw_breakpoint) <raw_type, size>: New fields.
10269 <inserted>: Update comment.
10270 <shlib_disabled>: Delete field.
10271 (enum bkpt_type) <gdb_breakpoint>: Delete value.
10272 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
10273 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
10274 (raw_bkpt_type_to_target_hw_bp_type): New function.
10275 (find_enabled_raw_code_breakpoint_at): New function.
10276 (find_raw_breakpoint_at): New type and size parameters. Use them.
10277 (insert_memory_breakpoint): New function, based off
10278 set_raw_breakpoint_at.
10279 (remove_memory_breakpoint): New function.
10280 (set_raw_breakpoint_at): Reimplement.
10281 (set_breakpoint): New, based on set_breakpoint_at.
10282 (set_breakpoint_at): Reimplement.
10283 (delete_raw_breakpoint): Go through the_target->remove_point
10284 instead of assuming memory breakpoints.
10285 (find_gdb_breakpoint_at): Delete.
10286 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
10287 (find_gdb_breakpoint): New function.
10288 (set_gdb_breakpoint_at): Delete.
10289 (z_type_supported): New function.
10290 (set_gdb_breakpoint_1): New function, loosely based off
10291 set_gdb_breakpoint_at.
10292 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
10293 (delete_gdb_breakpoint_at): Delete.
10294 (delete_gdb_breakpoint_1): New function, loosely based off
10295 delete_gdb_breakpoint_at.
10296 (delete_gdb_breakpoint): New function.
10297 (clear_gdb_breakpoint_conditions): Rename to ...
10298 (clear_breakpoint_conditions): ... this. Don't handle a NULL
10300 (add_condition_to_breakpoint): Make static.
10301 (add_breakpoint_condition): Take a struct breakpoint pointer
10302 instead of an address. Adjust.
10303 (gdb_condition_true_at_breakpoint): Rename to ...
10304 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
10306 (gdb_condition_true_at_breakpoint): Reimplement.
10307 (add_breakpoint_commands): Take a struct breakpoint pointer
10308 instead of an address. Adjust.
10309 (gdb_no_commands_at_breakpoint): Rename to ...
10310 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
10311 parameter. Return true if no breakpoint was found. Change debug
10313 (gdb_no_commands_at_breakpoint): Reimplement.
10314 (run_breakpoint_commands): Rename to ...
10315 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
10316 and change return type to boolean.
10317 (run_breakpoint_commands): New function.
10318 (gdb_breakpoint_here): Also check for Z1 breakpoints.
10319 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
10320 breakpoint. Go through the_target->remove_point instead of
10321 assuming memory breakpoint.
10322 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
10323 software and hardware breakpoints.
10324 (reinsert_raw_breakpoint): Go through the_target->insert_point
10325 instead of assuming memory breakpoint.
10326 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
10327 software and hardware breakpoints.
10328 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
10329 Check both software and hardware breakpoints.
10330 (validate_inserted_breakpoint): Assert the breakpoint is a
10331 software breakpoint. Set the inserted flag to -1 instead of
10332 setting shlib_disabled.
10333 (delete_disabled_breakpoints): Adjust.
10334 (validate_breakpoints): Only validate software breakpoints.
10335 Adjust to inserted flag change.
10336 (check_mem_read, check_mem_write): Skip breakpoint types other
10337 than software breakpoints. Adjust to inserted flag change.
10338 * mem-break.h (enum raw_bkpt_type): New enum.
10339 (raw_breakpoint, struct process_info): Forward declare.
10340 (Z_packet_to_target_hw_bp_type): Delete declaration.
10341 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
10342 (set_gdb_breakpoint, delete_gdb_breakpoint)
10343 (clear_breakpoint_conditions): New declarations.
10344 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
10345 (breakpoint_inserted_here): Update comment.
10346 (add_breakpoint_condition, add_breakpoint_commands): Replace
10347 address parameter with a breakpoint pointer parameter.
10348 (gdb_breakpoint_here): Update comment.
10349 (delete_gdb_breakpoint_at): Delete.
10350 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
10351 * server.c (process_point_options): Take a struct breakpoint
10352 pointer instead of an address. Adjust.
10353 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
10354 delete_gdb_breakpoint.
10355 * spu-low.c (spu_target_ops): Install NULL as
10356 supports_z_point_type method.
10357 * target.h: Include mem-break.h.
10358 (struct target_ops) <prepare_to_access_memory>: Update comment.
10359 <supports_z_point_type>: New field.
10360 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
10361 instead of a char. Also take a raw breakpoint pointer.
10362 * win32-arm-low.c (the_low_target): Install NULL as
10363 supports_z_point_type.
10364 * win32-i386-low.c (i386_supports_z_point_type): New function.
10365 (i386_insert_point, i386_remove_point): Adjust to new interface.
10366 (the_low_target): Install i386_supports_z_point_type.
10367 * win32-low.c (win32_supports_z_point_type): New function.
10368 (win32_insert_point, win32_remove_point): Adjust to new interface.
10369 (win32_target_ops): Install win32_supports_z_point_type.
10370 * win32-low.h (struct win32_target_ops):
10371 <supports_z_point_type>: New method.
10372 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
10373 instead of a char. Also take a raw breakpoint pointer.
10375 2014-05-20 Pedro Alves <palves@redhat.com>
10377 * mem-break.h: Include break-common.h.
10378 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
10379 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
10380 (Z_packet_to_target_hw_bp_type): New declaration.
10381 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
10382 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
10383 (Z_PACKET_ACCESS_WP): Delete macros.
10384 (Z_packet_to_hw_type): Delete function.
10385 * i386-low.h: Don't include break-common.h here.
10386 (Z_packet_to_hw_type): Delete declaration.
10387 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
10388 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
10389 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
10390 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
10391 * linux-aarch64-low.c: Don't include break-common.h here.
10392 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
10393 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
10394 (Z_packet_to_target_hw_bp_type): Delete function.
10395 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
10397 (mips_insert_point, mips_remove_point): Use
10398 Z_packet_to_target_hw_bp_type.
10400 2014-05-20 Pedro Alves <palves@redhat.com>
10402 * linux-aarch64-low.c: Include break-common.h.
10403 (enum target_point_type): Delete.
10404 (Z_packet_to_point_type): Rename to ...
10405 (Z_packet_to_target_hw_bp_type): ... this, and return a
10406 target_hw_bp_type instead.
10407 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
10408 instead of an enum target_point_type.
10409 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
10411 (aarch64_dr_state_insert_one_point)
10412 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
10413 (aarch64_handle_aligned_watchpoint)
10414 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
10415 Take an enum target_hw_bp_type instead of an enum
10417 (aarch64_supports_z_point_type): New function.
10418 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
10419 use Z_packet_to_target_hw_bp_type.
10421 2014-05-20 Joel Brobecker <brobecker@adacore.com>
10423 * configure.ac: Only use -Werror by default when DEVELOPMENT
10425 * configure: Regenerate.
10427 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10429 Fix gdbserver qGetTLSAddr for x86_64 -m32.
10430 * linux-x86-low.c (X86_64_USER_REGS): New.
10431 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
10433 2014-04-28 Yao Qi <yao@codesourcery.com>
10435 * Makefile.in (i386-avx512.c): Fix the typo of generated file
10438 2014-04-25 Pedro Alves <palves@redhat.com>
10441 * linux-low.c (linux_attach_fail_reason_string): New function.
10442 (linux_attach_lwp): Delete.
10443 (linux_attach_lwp_1): Rename to ...
10444 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
10445 argument. Remove "initial" parameter. Return int instead of
10446 void. Don't error or warn here.
10447 (linux_attach): Adjust to call linux_attach_lwp. Call error on
10448 failure to attach to the tgid. Call warning when failing to
10450 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
10451 argument. Remove "initial" parameter. Return int instead of
10452 void. Don't error or warn here.
10453 (linux_attach_fail_reason_string): New declaration.
10454 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
10455 interface change. Use linux_attach_fail_reason_string.
10457 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
10458 Walfred Tedeschi <walfred.tedeschi@intel.com>
10460 * Makefile.in: Added rules to handle new files
10461 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
10462 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
10463 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
10464 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
10465 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
10466 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
10467 x32-avx512-linux.o.
10468 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
10469 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
10470 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
10471 i386/x32-avx512.xml.
10472 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
10473 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
10474 i386/x32-avx512-linux.xml.
10475 * i387-fp.c (num_avx512_k_registers): New constant for number
10477 (num_avx512_zmmh_low_registers): New constant for number of
10478 lower ZMM registers (0-15).
10479 (num_avx512_zmmh_high_registers): New constant for number of
10480 higher ZMM registers (16-31).
10481 (num_avx512_ymmh_registers): New contant for number of higher
10482 YMM registers (ymm16-31 added by avx521 on x86_64).
10483 (num_avx512_xmm_registers): New constant for number of higher
10484 XMM registers (xmm16-31 added by AVX512 on x86_64).
10485 (struct i387_xsave): Add space for AVX512 registers.
10486 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
10487 Add code to handle AVX512 registers.
10488 (i387_xsave_to_cache): Add code to handle AVX512 registers.
10489 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
10490 prototypei from generated file.
10491 (tdesc_amd64_avx512_linux): Likewise.
10492 (init_registers_x32_avx512_linux): Likewise.
10493 (tdesc_x32_avx512_linux): Likewise.
10494 (init_registers_i386_avx512_linux): Likewise.
10495 (tdesc_i386_avx512_linux): Likewise.
10496 (x86_64_regmap): Add AVX512 registers.
10497 (x86_linux_read_description): Add code to handle AVX512 XSTATE
10499 (initialize_low_arch): Add code to initialize AVX512 registers.
10501 2014-04-23 Pedro Alves <palves@redhat.com>
10503 * mem-break.c (find_gdb_breakpoint_at): Make static.
10504 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
10506 2014-04-23 Pedro Alves <palves@redhat.com>
10508 * i386-low.c: Don't include break-common.h here.
10509 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
10510 prototype to take target_hw_bp_type as argument instead of a Z
10512 * i386-low.h: Include break-common.h here.
10513 (Z_packet_to_hw_type): Declare.
10514 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
10516 * linux-x86-low.c (x86_insert_point): Convert the packet number to
10517 a target_hw_bp_type before calling i386_low_insert_watchpoint.
10518 (x86_remove_point): Convert the packet number to a
10519 target_hw_bp_type before calling i386_low_remove_watchpoint.
10520 * win32-i386-low.c (i386_insert_point): Convert the packet number
10521 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
10522 (i386_remove_point): Convert the packet number to a
10523 target_hw_bp_type before calling i386_low_remove_watchpoint.
10525 2014-04-23 Pedro Alves <palves@redhat.com>
10527 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
10529 2014-04-10 Pedro Alves <palves@redhat.com>
10531 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
10532 Check if the condition or command is NULL before checking if the
10533 breakpoint is known. On success, return true.
10534 * mem-break.h (add_breakpoint_condition): Document return.
10535 (add_breakpoint_commands): Add describing comment.
10536 * server.c (skip_to_semicolon): New function.
10537 (process_point_options): Use it.
10539 2014-04-09 Pedro Alves <palves@redhat.com>
10541 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
10544 2014-02-27 Pedro Alves <palves@redhat.com>
10547 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
10549 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
10551 (last_thread_of_process_p): Take a PID argument instead of a
10553 (linux_wait_for_lwp): Delete.
10554 (num_lwps, check_zombie_leaders, not_stopped_callback): New
10556 (linux_low_filter_event): New function, party factored out from
10557 linux_wait_for_event.
10558 (linux_wait_for_event): Rename to ...
10559 (linux_wait_for_event_filtered): ... this. Add new filter ptid
10560 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
10561 sigsuspend. Check for zombie leaders.
10562 (linux_wait_for_event): Reimplement as wrapper around
10563 linux_wait_for_event_filtered.
10564 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
10565 a normal or signal exit is seen, it's the whole process exiting.
10566 (wait_for_sigstop): No longer a for_each_inferior callback.
10567 Rewrite on top of linux_wait_for_event_filtered.
10568 (stop_all_lwps): Call wait_for_sigstop directly.
10569 * server.c (resume, handle_target_event): Handle
10570 TARGET_WAITKIND_NO_RESUMED.
10572 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10574 * win32-low.c (psapi_get_dll_name,
10575 * win32_CreateToolhelp32Snapshot): Delete.
10576 (win32_CreateToolhelp32Snapshot, win32_Module32First)
10577 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
10579 (handle_load_dll): Add function description.
10580 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
10582 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10584 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
10586 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
10587 base address when calling win32_add_one_solib.
10588 (handle_load_dll): Delete local variable load_addr.
10589 Remove 0x1000 offset applied to DLL base address when calling
10590 win32_add_one_solib.
10591 (handle_unload_dll): Add comment.
10593 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10595 * win32-low.c (win32_add_all_dlls): Renames
10596 win32_ensure_ntdll_loaded. Rewrite function documentation.
10597 Adjust implementation to always load all DLLs.
10598 Add 0x1000 offset to DLL base address when calling
10599 win32_add_one_solib.
10600 (child_initialization_done): New static global.
10601 (do_initial_child_stuff): Set child_initialization_done to
10602 zero during child initialization, and 1 after. Replace call
10603 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
10605 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
10606 (handle_unload_dll): Add function documentation.
10607 (get_child_debug_event): Ignore load and unload DLL events
10608 during child initialization.
10610 2014-02-20 Doug Evans <dje@google.com>
10612 Remove global all_lwps.
10613 * inferiors.h (ptid_of): Move here from linux-low.h.
10614 (pid_of, lwpid_of): Ditto.
10615 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
10616 parameter is a struct thread_info * now.
10617 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
10618 directly. Pass &all_threads to find_inferior instead of &all_lwps.
10619 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
10621 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
10622 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
10623 * linux-arm-low.c (update_registers_callback): Update, "entry"
10624 parameter is a struct thread_info * now.
10625 Fetch lwpid from current_inferior directly.
10626 (arm_insert_point): Pass &all_threads to find_inferior instead of
10628 (arm_remove_point): Ditto.
10629 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
10630 (arm_prepare_to_resume): Fetch pid from thread.
10631 (arm_read_description): Fetch lwpid from current_inferior directly.
10632 * linux-low.c (all_lwps): Delete.
10633 (delete_lwp): Delete call to remove_inferior.
10634 (handle_extended_wait): Fetch lwpid from thread.
10635 (add_lwp): Don't set lwp->entry.id. Remove call to
10636 add_inferior_to_list.
10637 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
10638 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
10639 (kill_one_lwp_callback): Ditto.
10640 (linux_kill): Don't dereference NULL pointer.
10641 Fetch ptid,lwpid from thread.
10642 (get_detach_signal): Fetch ptid from thread.
10643 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
10644 Simplify call to regcache_invalidate_thread.
10645 (delete_lwp_callback): Update, "entry" parameter is a
10646 struct thread_info * now. Fetch pid from thread.
10647 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
10648 (status_pending_p_callback): Update, "entry" parameter is a
10649 struct thread_info * now. Fetch ptid from thread.
10650 (find_lwp_pid): Update, "entry" parameter is a
10651 struct thread_info * now.
10652 (linux_wait_for_lwp): Fetch pid from thread.
10653 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
10654 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
10655 (enqueue_one_deferred_signal): Fetch lwpid from thread.
10656 (dequeue_one_deferred_signal): Ditto.
10657 (cancel_breakpoint): Fetch ptid from current_inferior.
10658 (linux_wait_for_event): Pass &all_threads to find_inferior,
10659 not &all_lwps. Fetch ptid, lwpid from thread.
10660 (count_events_callback): Update, "entry" parameter is a
10661 struct thread_info * now.
10662 (select_singlestep_lwp_callback): Ditto.
10663 (select_event_lwp_callback): Ditto.
10664 (cancel_breakpoints_callback): Ditto.
10665 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
10667 (select_event_lwp): Ditto. Fetch ptid from event_thread.
10668 (unsuspend_one_lwp): Update, "entry" parameter is a
10669 struct thread_info * now.
10670 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
10672 (linux_stabilize_threads): Ditto. And for for_each_inferior.
10673 Fetch lwpid from thread, not lwp.
10674 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
10675 Pass &all_threads to find_inferior, not &all_lwps.
10676 (send_sigstop): Fetch lwpid from thread, not lwp.
10677 (send_sigstop_callback): Update, "entry" parameter is a
10678 struct thread_info * now.
10679 (suspend_and_send_sigstop_callback): Ditto.
10680 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
10681 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
10682 struct thread_info * now.
10683 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
10685 (lwp_running): Update, "entry" parameter is a
10686 struct thread_info * now.
10687 (stop_all_lwps): Fetch ptid from thread.
10688 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
10689 (linux_resume_one_lwp): Fetch lwpid from thread.
10690 (linux_set_resume_request): Update, "entry" parameter is a
10691 struct thread_info * now. Fetch pid, lwpid from thread.
10692 (resume_status_pending_p): Update, "entry" parameter is a
10693 struct thread_info * now.
10694 (need_step_over_p): Ditto. Fetch lwpid from thread.
10695 (start_step_over): Fetch lwpid from thread.
10696 (linux_resume_one_thread): Update, "entry" parameter is a
10697 struct thread_info * now. Fetch lwpid from thread.
10698 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
10699 (proceed_one_lwp): Update, "entry" parameter is a
10700 struct thread_info * now. Fetch lwpid from thread.
10701 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
10702 struct thread_info * now.
10703 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
10704 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
10705 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
10707 (regsets_store_inferior_registers): Ditto.
10708 (fetch_register, store_register): Ditto.
10709 (linux_read_memory, linux_write_memory): Ditto.
10710 (linux_request_interrupt): Ditto.
10711 (linux_read_auxv): Ditto.
10712 (linux_xfer_siginfo): Ditto.
10713 (linux_qxfer_spu): Ditto.
10714 (linux_qxfer_libraries_svr4): Ditto.
10715 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
10716 moved to inferiors.h.
10718 (get_thread_lwp): Update.
10719 (struct lwp_info): Delete member "entry". Simplify comment for
10721 (all_lwps): Delete.
10722 * linux-mips-low.c (mips_read_description): Fetch lwpid from
10723 current_inferior directly.
10724 (update_watch_registers_callback): Update, "entry" parameter is a
10725 struct thread_info * now. Fetch pid from thread.
10726 (mips_linux_prepare_to_resume): Fetch ptid from thread.
10727 (mips_insert_point): Fetch lwpid from current_inferior.
10728 Pass &all_threads to find_inferior, not &all_lwps.
10729 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
10730 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
10732 (mips_stopped_data_address): Ditto.
10733 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
10735 * linux-tile-low.c (tile_arch_setup): Ditto.
10736 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
10737 (update_debug_registers_callback): Update, "entry" parameter is a
10738 struct thread_info * now. Fetch pid from thread.
10739 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
10740 Pass &all_threads to find_inferior, not &all_lwps.
10741 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
10742 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
10743 Pass &all_threads to find_inferior, not &all_lwps.
10744 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
10745 (i386_dr_low_get_status): Ditto.
10746 (x86_linux_prepare_to_resume): Fetch ptid from thread.
10747 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
10748 (x86_linux_read_description): Ditto.
10749 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
10751 2014-02-20 Doug Evans <dje@google.com>
10753 * inferiors.c (get_first_inferior): Fix buglet.
10755 2014-02-19 Doug Evans <dje@google.com>
10757 * gdbthread.h (add_thread): Change result type to struct thread_info *.
10758 * inferiors.c (add_thread): Change result type to struct thread_info *.
10759 All callers updated.
10760 (add_lwp): Call add_thread here instead of in callers.
10761 All callers updated.
10762 * linux-low.h (get_lwp_thread): Rewrite.
10763 (struct lwp_info): New member "thread".
10765 2014-02-19 Doug Evans <dje@google.com>
10767 * linux-low.c (add_lwp): Change result to struct lwp_info *.
10768 All callers updated.
10770 2014-02-19 Doug Evans <dje@google.com>
10772 * inferiors.c (add_thread): Fix whitespace.
10774 2014-02-19 Doug Evans <dje@google.com>
10776 * dll.c (clear_dlls): Replace accessing list implemention details
10778 * gdbthread.h (get_first_thread): Declare.
10779 * inferiors.c (for_each_inferior_with_data): New function.
10780 (get_first_thread): New function.
10781 (find_thread_ptid): Simplify.
10782 (get_first_inferior): New function.
10783 (clear_list): Delete.
10784 (one_inferior_p): New function.
10785 (clear_inferior_list): New function.
10786 (clear_inferiors): Update.
10787 * inferiors.h (for_each_inferior_with_data): Declare.
10788 (clear_inferior_list): Declare.
10789 (one_inferior_p): Declare.
10790 (get_first_inferior): Declare.
10791 * linux-low.c (linux_wait_for_event): Replace accessing list
10792 implemention details with API function.
10793 * server.c (target_running): Ditto.
10794 (accumulate_file_name_length): New function.
10795 (emit_dll_description): New function.
10796 (handle_qxfer_libraries): Replace accessing list implemention
10797 details with API function.
10798 (handle_qxfer_threads_worker): New function.
10799 (handle_qxfer_threads_proper): Replace accessing list implemention
10800 details with API function.
10801 (handle_query): Ditto.
10802 (visit_actioned_threads_callback_ftype): New typedef.
10803 (visit_actioned_threads_data): New struct.
10804 (visit_actioned_threads): Rewrite to be find_inferior callback.
10805 (resume): Call find_inferior.
10806 (handle_status): Replace accessing list implemention
10807 details with API function.
10808 (process_serial_event): Replace accessing list implemention details
10810 * target.c (set_desired_inferior): Replace accessing list implemention
10811 details with API function.
10812 * tracepoint.c (same_process_p): New function.
10813 (gdb_agent_about_to_close): Replace accessing list implemention
10814 details with API function.
10815 * win32-low.c (child_delete_thread): Replace accessing list
10816 implemention details with API function.
10817 (match_dll_by_basename): New function.
10818 (dll_is_loaded_by_basename): New function.
10819 (win32_ensure_ntdll_loaded): Replace accessing list implemention
10820 details call to dll_is_loaded_by_basename.
10822 2014-02-19 Doug Evans <dje@google.com>
10824 * dll.h (struct dll_info): Add comment.
10825 * gdbthread.h (struct thread_info): Add comment.
10826 (current_ptid): Simplify.
10827 * inferiors.c (add_process): Update.
10828 (remove_process): Update.
10829 * inferiors.h (struct process_info): Rename member "head" to "entry".
10830 * linux-low.c (delete_lwp): Update.
10832 (last_thread_of_process_p): Update.
10833 (kill_one_lwp_callback, linux_kill): Update.
10834 (status_pending_p_callback): Update.
10835 (wait_for_sigstop): Update. Simplify read of ptid.
10836 (start_step_over): Update.
10837 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
10838 (get_lwp_thread): Update.
10839 (struct lwp_info): Rename member "head" to "entry".
10840 * regcache.h (inferior_list_entry): Delete.
10841 * server.c (kill_inferior_callback): Update.
10842 (detach_or_kill_inferior_callback): Update.
10843 (print_started_pid): Update.
10844 (print_attached_pid): Update.
10845 (process_serial_event): Simplify read of ptid.
10846 * thread-db.c (thread_db_create_event): Update.
10847 (thread_db_get_tls_address): Update.
10848 * win32-low.c (current_inferior_ptid): Simplify.
10850 2014-02-19 Tom Tromey <tromey@redhat.com>
10852 * target.h (struct target_ops) <supports_btrace>: Add target_ops
10854 (target_supports_btrace): Update.
10856 2014-02-14 Yao Qi <yao@codesourcery.com>
10858 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
10859 (rsp-low-ipa.o): New target.
10861 2014-02-12 Tom Tromey <tromey@redhat.com>
10863 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
10864 convert_ascii_to_int.
10865 * regcache.c (registers_to_string): Likewise.
10866 * remote-utils.c (decode_M_packet): Likewise.
10867 * server.c (process_serial_event): Likewise.
10869 2014-02-12 Tom Tromey <tromey@redhat.com>
10871 * server.c (handle_query, handle_v_run): Use hex2bin, not
10873 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
10875 2014-02-12 Tom Tromey <tromey@redhat.com>
10877 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
10878 convert_int_to_ascii.
10879 * regcache.c (registers_to_string, collect_register_as_string):
10881 * remote-utils.c (look_up_one_symbol, relocate_instruction):
10883 * server.c (process_serial_event): Likewise.
10884 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
10885 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
10887 2014-02-12 Tom Tromey <tromey@redhat.com>
10889 * remote-utils.c (look_up_one_symbol, monitor_output): Use
10890 bin2hex, not hexify.
10891 * tracepoint.c (cmd_qtstatus): Likewise.
10893 2014-02-12 Tom Tromey <tromey@redhat.com>
10895 * remote-utils.c (monitor_output): Pass explicit length to
10898 2014-02-12 Tom Tromey <tromey@redhat.com>
10900 * tracepoint.c: Include rsp-low.h.
10901 * server.c: Include rsp-low.h.
10902 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
10903 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
10905 * remote-utils.c: Include rsp-low.h.
10906 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
10907 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
10908 (convert_int_to_ascii, convert_ascii_to_int): Move to
10910 * regcache.c: Include rsp-low.h.
10911 * ax.c: Include rsp-low.h.
10912 * Makefile.in (SFILES): Add common/rsp-low.c.
10913 (OBS): Add rsp-low.o.
10914 (rsp-low.o): New target.
10916 2014-02-12 Tom Tromey <tromey@redhat.com>
10918 * utils.h (pulongest, plongest, phex_nz): Don't declare.
10919 Include print-utils.h.
10920 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10921 (plongest, thirty_two, phex_nz): Remove.
10922 * Makefile.in (SFILES): Add common/print-utils.c.
10923 (OBS): Add print-utils.o.
10924 (print-utils-ipa.o): New target.
10925 (print-utils.o): New target.
10926 (IPA_OBJS): Add print-utils-ipa.o.
10928 2014-02-06 Tom Tromey <tromey@redhat.com>
10930 * Makefile.in (SFILES): Fix indentation.
10932 2014-02-05 Doug Evans <dje@google.com>
10934 * linux-low.c (linux_wait_for_event): Improve comment.
10935 (linux_wait_1): Keep current_inferior in sync with event_child.
10937 2014-01-22 Doug Evans <dje@google.com>
10939 * gdbthread.h (gdb_id_to_thread): Delete, unused.
10941 2014-01-22 Doug Evans <dje@google.com>
10943 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
10944 * configure: Regenerate.
10945 * config.in: Regenerate.
10946 * Makefile.in (SFILES): Add debug.c.
10947 (OBS): Add debug.o.
10948 * debug.c: New file.
10949 * debug.h: New file.
10950 * linux-aarch64-low.c (*): Update all debugging printfs to use
10951 debug_printf instead of fprintf.
10952 * linux-arm-low.c (*): Ditto.
10953 * linux-cris-low.c (*): Ditto.
10954 * linux-crisv32-low.c (*): Ditto.
10955 * linux-m32r-low.c (*): Ditto.
10956 * linux-sparc-low.c (*): Ditto.
10957 * linux-x86.c (*): Ditto.
10958 * linux-low.c (*): Ditto.
10959 (linux_wait_1): Add calls to debug_enter, debug_exit.
10960 (linux_wait): Remove redundant debugging printf.
10961 (stop_all_lwps): Add calls to debug_enter, debug_exit.
10962 (linux_resume, unstop_all_lwps): Ditto.
10963 * mem-break.c (*): Update all debugging printfs to use
10964 debug_printf instead of fprintf.
10965 * remote-utils.c (*): Ditto.
10966 * thread-db.c (*): Ditto.
10967 * server.c #include <ctype.h>, "gdb_vecs.h".
10968 (debug_threads): Moved to debug.c.
10969 (*): Update all debugging printfs to use debug_printf instead of
10971 (start_inferior): Replace call to fflush with call to debug_flush.
10972 (monitor_show_help): Mention set debug-format.
10973 (parse_debug_format_options): New function.
10974 (handle_monitor_command): Handle "monitor set debug-format".
10975 (gdbserver_usage): Mention --debug-format.
10976 (main): Parse --debug-format.
10977 * server.h (debug_threads): Declaration moved to debug.h.
10978 #include "debug.h".
10979 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
10980 trace_debug_1 that uses debug_printf.
10981 (tracepoint_look_up_symbols): Update all debugging printfs to use
10982 debug_printf instead of fprintf.
10984 2014-01-20 Baruch Siach <baruch@tkos.co.il>
10986 * linux-xtensa-low.c: Include asm/ptrace.h instead of
10989 2014-01-17 Pedro Alves <palves@redhat.com>
10992 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
10993 defined after including gdb_proc_service.h.
10995 2014-01-16 Doug Evans <dje@google.com>
10997 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
10998 (match_dll): Use it.
11000 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11002 * target.h (target_ops) <read_btrace>: Change parameters and
11003 return type to allow error reporting.
11004 * server.c (handle_qxfer_btrace): Support delta reads. Pass
11005 trace reading errors on.
11006 * linux-low.c (linux_low_read_btrace): Pass trace reading
11008 (linux_low_disable_btrace): New.
11010 2014-01-15 Doug Evans <dje@google.com>
11012 * inferiors.c (thread_id_to_gdb_id): Delete.
11013 * inferiors.h (thread_id_to_gdb_id): Delete.
11015 2014-01-13 Eli Zaretskii <eliz@gnu.org>
11017 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
11018 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
11021 2014-01-08 Pedro Alves <palves@redhat.com>
11023 * server.c (handle_status): Don't discard previous queued stop
11024 replies or thread's pending status here.
11025 (main) <disconnection>: Do it here instead.
11027 2014-01-08 Pedro Alves <palves@redhat.com>
11029 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
11030 * server.c (visit_actioned_threads, handle_pending_status): New
11032 (handle_v_cont): Factor out parts to ...
11033 (resume): ... this new function. If in all-stop, and a thread
11034 being resumed has a pending status, report it without actually
11036 (myresume): Adjust to use the new 'resume' function.
11037 (clear_pending_status_callback, set_pending_status_callback)
11038 (find_status_pending_thread_callback): New functions.
11039 (handle_status): Handle the case of multiple threads having
11040 interesting statuses to report. Report threads' real last signal
11041 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
11042 with an interesting thread to report the status for, instead of
11043 always reporting the status of the first thread.
11045 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11047 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
11048 * gdbreplay.c (gdbreplay_version): Likewise.
11050 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
11052 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
11053 iov.iov_len with the real length in use.
11055 2013-12-13 Joel Brobecker <brobecker@adacore.com>
11057 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
11058 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
11059 for all targets that use win32-low.c.
11060 * win32-low.c (win32_ensure_ntdll_loaded): New function.
11061 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
11063 2013-12-13 Pedro Alves <palves@redhat.com>
11065 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
11066 if equal to TARGET_WAITKIND_LOADED.
11067 * win32-low.c (cached_status): New static global.
11068 (win32_wait): Add declaration.
11069 (do_initial_child_stuff): Flush all initial pending debug events
11070 up to the initial breakpoint.
11071 (win32_wait): If CACHED_STATUS was set, return that instead
11072 of doing a real wait. Remove the code resuming the execution
11073 of the inferior after receiving a TARGET_WAITKIND_LOADED event
11074 during the initial phase. Also remove the code changing
11075 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
11076 TARGET_WAITKIND_STOPPED.
11078 2013-12-11 Yao Qi <yao@codesourcery.com>
11080 * notif.c (handle_notif_ack): Return 0 if no notification
11083 2013-11-20 Doug Evans <dje@google.com>
11085 * linux-low.c (linux_set_resume_request): Fix comment.
11087 2013-11-20 Doug Evans <dje@google.com>
11089 * linux-low.c (resume_status_pending_p): Tweak comment.
11091 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
11093 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
11094 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
11095 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
11096 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
11097 (srv_amd64_regobj): Add amd64-mpx.o.
11098 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
11099 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
11100 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
11101 * i387-fp.c (num_pl_bnd_register) Added constant.
11102 (num_pl_bnd_cfg_registers) Added constant.
11103 (struct i387_xsave) Added reserved area and MPX fields.
11104 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
11105 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
11107 (tdesc_i386_mpx_linux): Add MPX amd64 target.
11108 (init_registers_amd64_mpx_linux): Declare new function.
11109 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
11110 (x86_64_regmap): Add MPX registers.
11111 (x86_linux_read_description): Add MPX case.
11112 (initialize_low_arch): Initialize MPX targets.
11114 2013-11-18 Tom Tromey <tromey@redhat.com>
11116 * configure: Rebuild.
11117 * configure.ac: Don't check for stdlib.h.
11118 * gdbreplay.c: Unconditionally include stdlib.h.
11120 2013-11-18 Tom Tromey <tromey@redhat.com>
11122 * config.in: Rebuild.
11123 * configure: Rebuild.
11124 * configure.ac: Don't use AC_HEADER_DIRENT.
11126 2013-11-18 Tom Tromey <tromey@redhat.com>
11128 * server.h: Don't check HAVE_STRING_H.
11129 * gdbreplay.c: Don't check HAVE_STRING_H.
11130 * configure: Rebuild.
11132 2013-11-18 Tom Tromey <tromey@redhat.com>
11134 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
11137 2013-11-08 Tom Tromey <tromey@redhat.com>
11139 * configure, config.in: Rebuild.
11140 * configure.ac: Remove unused configury.
11142 2013-11-08 Tom Tromey <tromey@redhat.com>
11144 * acinclude.m4: Include common.m4, codeset.m4.
11145 * configure, config.in: Rebuild.
11146 * configure.ac: Use GDB_AC_COMMON.
11148 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
11150 * linux-s390-low.c (HWCAP_S390_TE): New define.
11151 (s390_arch_setup): Consider the TE field in the HWCAP for
11152 determining 'have_regset_tdb'.
11154 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
11157 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
11160 2013-10-02 Pedro Alves <palves@redhat.com>
11162 * server.c (process_serial_event): Don't output "GDBserver
11163 exiting" if GDB is connected through stdio.
11164 * target.c (mywait): Likewise, be silent if GDB is connected
11167 2013-10-01 Joel Brobecker <brobecker@adacore.com>
11169 * lynx-low.c (lynx_add_threads_after_attach): New function.
11170 (lynx_attach): Remove call to add_thread. Add call to
11171 lynx_add_threads_after_attach instead.
11173 2013-09-28 Mike Frysinger <vapier@gentoo.org>
11175 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
11176 * config.in, configure: Regenerated.
11178 2013-09-18 Yao Qi <yao@codesourcery.com>
11181 * server.c (start_inferior): Clear 'resume_info'.
11183 2013-09-16 Jiong Wang <jiwang@tilera.com>
11185 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
11188 2013-09-16 Jiong Wang <jiwang@tilera.com>
11190 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
11191 linux-tile-low.o to srv_tgtobj.
11193 2013-09-16 Will Newton <will.newton@linaro.org>
11195 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
11198 2013-09-06 Pedro Alves <palves@redhat.com>
11200 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
11201 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
11202 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
11203 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
11204 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
11205 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
11207 2013-09-06 Pedro Alves <palves@redhat.com>
11209 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
11210 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
11212 2013-09-06 Pedro Alves <palves@redhat.com>
11214 * linux-amd64-ipa.c: Include tracepoint.h.
11215 * linux-i386-ipa.c: Include tracepoint.h.
11217 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
11219 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
11220 (ps_get_thread_area): New function.
11222 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
11224 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
11225 (initialize_low_arch): Call init_registers_crisv32 rather than
11226 init_register_crisv32.
11228 2013-09-05 Pedro Alves <palves@redhat.com>
11230 * server.h (handle_vFile, hostio_last_error_from_errno): Move
11232 * hostio.h: ... this new file.
11233 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
11234 win32-low.c: Include hostio.h.
11236 2013-09-05 Pedro Alves <palves@redhat.com>
11238 * server.h (gdb_client_data, handler_func, callback_handler_func)
11239 (delete_file_handler, add_file_handler, append_callback_event)
11240 (delete_callback_event, start_event_loop, initialize_event_loop):
11241 Move to event-loop.h and include it.
11242 * event-loop.h: New file.
11244 2013-09-05 Pedro Alves <palves@redhat.com>
11246 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
11247 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
11248 (loaded_dll, unloaded_dll): Move to ...
11249 * dll.h: ... this new file.
11250 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
11252 2013-09-05 Pedro Alves <palves@redhat.com>
11254 * server.h (current_process, get_thread_process, all_processes)
11255 (add_inferior_to_list, for_each_inferior, current_inferior)
11256 (remove_inferior, add_process, remove_process, find_process_pid)
11257 (have_started_inferiors_p, have_attached_inferiors_p)
11258 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
11259 (clear_inferiors, find_inferior, find_inferior_id)
11260 (inferior_target_data, set_inferior_target_data)
11261 (inferior_regcache_data, set_inferior_regcache_data): Move to
11262 inferiors.h, and include it.
11263 * inferiors.h: New file.
11265 2013-09-05 Pedro Alves <palves@redhat.com>
11267 * server.h (struct emit_ops, current_insn_ptr, emit_error):
11271 2013-09-05 Pedro Alves <palves@redhat.com>
11273 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
11275 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
11276 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
11277 (handle_tracepoint_general_set, handle_tracepoint_query)
11278 (tracepoint_finished_step, tracepoint_was_hit)
11279 (release_while_stepping_state_list, current_traceframe)
11280 (in_readonly_region, traceframe_read_mem)
11281 (fetch_traceframe_registers, traceframe_read_sdata)
11282 (traceframe_read_info, struct fast_tpoint_collect_status)
11283 (fast_tracepoint_collecting, force_unlock_trace_buffer)
11284 (handle_tracepoit_bkpts, initialize_low_tracepoint)
11285 (supply_fast_tracepoint_registers)
11286 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
11287 (ipa_tdesc, claim_trampoline_space)
11288 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
11289 (agent_mem_read, agent_get_trace_state_variable_value)
11290 (agent_set_trace_state_variable_value, agent_tsv_read)
11291 (agent_mem_read_string, get_raw_reg_func_addr)
11292 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
11293 * tracepoint.h: ... this new file.
11295 2013-09-05 Pedro Alves <palves@redhat.com>
11297 * server.h (perror_with_name, error, fatal, warning, paddress)
11298 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
11300 * utils.h: New file.
11302 2013-09-05 Pedro Alves <palves@redhat.com>
11304 * server.h (remote_debug, noack_mode, transport_is_reliable)
11305 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
11306 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
11307 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
11308 (write_enn, initialize_async_io, enable_async_io)
11309 (disable_async_io, check_remote_input_interrupt_request)
11310 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
11311 (dead_thread_notify, prepare_resume_reply)
11312 (decode_address_to_semicolon, decode_address, decode_m_packet)
11313 (decode_M_packet, decode_X_packet, decode_xfer_write)
11314 (decode_search_memory_packet, unhexify, hexify)
11315 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
11316 (look_up_one_symbol, relocate_instruction)
11317 (monitor_output): Move to remote-utils.h, and include it.
11318 * remote-utils.h: New file.
11320 2013-09-05 Pedro Alves <palves@redhat.com>
11322 * server.h (_): Delete.
11324 2013-09-02 Pedro Alves <palves@redhat.com>
11326 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
11327 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
11329 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
11331 2013-09-02 Pierre Muller <muller@sourceware.org>
11333 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
11334 or WriteProcessMemory complete successfully and handle
11335 ERROR_PARTIAL_COPY error.
11337 2013-09-02 Pedro Alves <palves@redhat.com>
11339 * server.c (gdb_read_memory): Return -1 on traceframe memory read
11340 error instead of EIO.
11342 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11345 * linux-low.c: Include filestuff.h.
11346 (linux_create_inferior) <pid == 0>: Call close_most_fds.
11347 * lynx-low.c: Include filestuff.h.
11348 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
11349 * server.c: Include filestuff.h.
11350 (main): Call notice_open_fds.
11351 * spu-low.c: Include filestuff.h.
11352 (spu_create_inferior) <pid == 0>: Call close_most_fds.
11354 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
11356 * Makefile.in: Explain why ../target and ../nat are not
11357 listed as include file search paths.
11358 (linux-waitpid.o): New object file rule.
11359 * configure.srv (srv_native_linux_obj): New variable.
11360 Replace all occurrences of linux native object files with
11361 $srv_native_linux_obj.
11362 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
11363 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
11364 (linux_enable_event_reporting): Remove declaration.
11365 (my_waitpid): Moved to common/linux-waitpid.c.
11366 (linux_wait_for_event): Pass ptid when calling
11367 linux_enable_event_reporting.
11368 (linux_supports_tracefork_flag): Remove.
11369 (linux_enable_event_reporting): Likewise.
11370 (linux_tracefork_grandchild): Remove.
11371 (STACK_SIZE): Moved to common/linux-ptrace.c.
11372 (linux_tracefork_child): Remove.
11373 (linux_test_for_tracefork): Remove.
11374 (linux_look_up_symbols): Call linux_supports_traceclone.
11375 (initialize_low): Remove call to linux_test_for_tracefork.
11376 * linux-low.h (PTRACE_TYPE_ARG3): Move to
11377 common/linux-ptrace.h.
11378 (PTRACE_TYPE_ARG4): Likewise.
11379 Include linux-ptrace.h.
11381 2013-08-21 Pedro Alves <palves@redhat.com>
11383 * config.in: Renegerate.
11385 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
11387 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
11388 (SFILES): Remove $(srcdir)/common/target-common.c and
11389 add $(srcdir)/target/waitstatus.c.
11390 (OBS): Remove target-common.o and add waitstatus.o.
11391 (server_h): Remove $(srcdir)/../common/target-common.h and
11392 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
11393 and $(srcdir)/../target/waitstatus.h.
11394 (target-common.o): Remove.
11395 (waitstatus.o): New target object file.
11396 * target.h: Do not include target-common.h and
11397 include target/resume.h, target/wait.h and
11398 target/waitstatus.h.
11400 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
11402 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
11403 to PTRACE_TYPE_ARG3.
11404 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
11405 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
11407 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
11408 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
11410 2013-07-27 Jie Zhang <jie@codesourcery.com>
11411 Daniel Jacobowitz <dan@codesourcery.com>
11412 Yao Qi <yao@codesourcery.com>
11414 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
11415 (mips-linux-watch.o): New rule.
11416 (mips_linux_watch_h): New variable.
11417 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
11419 * linux-mips-low.c: Include mips-linux-watch.h.
11420 (struct arch_process_info, struct arch_lwp_info): New.
11421 (update_watch_registers_callback): New function.
11422 (mips_linux_new_process, mips_linux_new_thread) New functions.
11423 (mips_linux_prepare_to_resume, mips_insert_point): New
11425 (mips_remove_point, mips_stopped_by_watchpoint): New
11427 (rsp_bp_type_to_target_hw_bp_type): New function.
11428 (mips_stopped_data_address): New function.
11429 (the_low_target): Add watchpoint support functions.
11431 2013-07-27 Yao Qi <yao@codesourcery.com>
11433 * i386-low.c: Include break-common.h.
11434 (enum target_hw_bp_type): Remove.
11436 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
11438 * Makefile.in (SFILES): /common/target-common.c.
11439 (OBS): Add target-common.o.
11440 (server_h): Add $(srcdir)/../common/target-common.h.
11441 (target-common.o): New target.
11442 * server.c (queue_stop_reply_callback): Free
11443 status string after use.
11444 * target.c (target_waitstatus_to_string): Remove.
11445 * target.h: Include target-common.h.
11446 (resume_kind): Likewise.
11447 (target_waitkind): Likewise.
11448 (target_waitstatus): Likewise.
11449 (TARGET_WNOHANG): Likewise.
11451 2013-07-04 Yao Qi <yao@codesourcery.com>
11453 * Makefile.in (host_alias): Use @host_noncanonical@.
11454 (target_alias): Use @target_noncanonical@.
11455 * configure.ac: Use ACX_NONCANONICAL_TARGET and
11456 ACX_NONCANONICAL_HOST.
11457 * configure: Regenerated.
11460 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
11462 * configure.ac (version_host, version_target): Set and AC_SUBST them.
11463 * configure: Rebuild.
11464 * Makefile.in (version_host, version_target): Get from configure.
11465 (version.c): Use $(version_host) and $(version_target).
11467 2013-07-03 Pedro Alves <palves@redhat.com>
11469 * Makefile.in (config.status): Depend on development.sh.
11470 * acinclude.m4: Include libmcheck.m4.
11471 * configure: Regenerate.
11473 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
11475 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
11476 attribute inside the parentheses.
11477 (winapi_DebugSetProcessKillOnExit): Ditto.
11478 (winapi_DebugBreakProcess): Ditto.
11479 (winapi_GenerateConsoleCtrlEvent): Ditto.
11481 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
11483 * notif.h (notif_event): Add a dummy member to avoid compiler
11486 2013-07-01 Pedro Alves <palves@redhat.com>
11488 * hostio.c (HOSTIO_PATH_MAX): Define.
11489 (require_filename, handle_open, handle_unlink, handle_readlink):
11492 2013-07-01 Pedro Alves <palves@redhat.com>
11494 * server.h: Include "pathmax.h".
11495 * linux-low.c: Don't include sys/param.h.
11496 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
11498 * win32-low.c: Don't include sys/param.h.
11499 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
11501 2013-07-01 Pedro Alves <palves@redhat.com>
11503 * event-loop.c: Don't check HAVE_UNISTD_H before including
11505 * gdbreplay.c: Likewise.
11506 * remote-utils.c: Likewise.
11507 * server.c: Likewise.
11508 * configure.ac: Don't check for unistd.h.
11509 * configure: Regenerate.
11511 2013-06-28 Tom Tromey <tromey@redhat.com>
11513 * Makefile.in (version.c): Use version.in, not
11516 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
11518 * configure.ac (version_host, version_target): Set and AC_SUBST them.
11519 * configure: Rebuild.
11520 * Makefile.in (version_host, version_target): Get from configure.
11521 (version.c): Use $(version_host) and $(version_target).
11523 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
11525 Fix trace-status to output user name without trailing colon.
11526 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
11528 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
11530 Fix trace-status to output proper start-time and stop-time.
11531 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
11532 output start time and stop time in hex as gdb expects.
11534 2013-06-26 Pedro Alves <pedro@codesourcery.com>
11536 * tracepoint.c (build_traceframe_info_xml): Output trace state
11537 variables present in the trace buffer.
11539 2013-06-24 Tom Tromey <tromey@redhat.com>
11541 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
11543 (version.o): Remove.
11544 * gdbreplay.c: Include version.h.
11545 (version, host_name): Don't declare.
11546 * server.h: Include version.h.
11547 (version, host_name): Don't declare.
11549 2013-06-12 Pedro Alves <palves@redhat.com>
11551 * linux-x86-low.c (linux_is_elf64): Delete global.
11552 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
11553 with local linux_pid_exe_is_elf_64_file use.
11555 2013-06-11 Pedro Alves <palves@redhat.com>
11557 * linux-low.c (regset_disabled, disable_regset): New functions.
11558 (regsets_fetch_inferior_registers)
11559 (regsets_store_inferior_registers): Use them.
11560 (initialize_regsets_info); Don't allocate the disabled_regsets
11562 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
11565 2013-06-11 Pedro Alves <palves@redhat.com>
11567 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
11570 2013-06-11 Pedro Alves <palves@redhat.com>
11572 * linux-x86-low.c (initialize_low_arch): Call
11573 init_registers_x32_avx_linux.
11575 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11577 Fix compatibility with Android Bionic.
11578 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
11581 2013-06-07 Pedro Alves <palves@redhat.com>
11584 * Makefile.in (OBS): Add tdesc.o.
11585 (IPA_OBJS): Add tdesc-ipa.o.
11586 (tdesc-ipa.o): New rule.
11587 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
11589 * linux-low.c (new_inferior): Delete.
11590 (disabled_regsets, num_regsets): Delete.
11591 (linux_add_process): Adjust to set the new per-process
11593 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
11594 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
11595 was a stop. When calling arch_setup, switch the current inferior
11596 to the thread that got an event.
11597 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
11598 (regsets_fetch_inferior_registers)
11599 (regsets_store_inferior_registers): New regsets_info parameter.
11601 (linux_register_in_regsets): New regs_info parameter. Adjust to
11603 (register_addr, fetch_register, store_register): New usrregs_info
11604 parameter. Adjust to use it.
11605 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
11606 parameter regs_info. Adjust to use it.
11607 (linux_fetch_registers): Get the current inferior's regs_info, and
11609 (linux_store_registers): Ditto.
11610 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
11611 (initialize_low): Don't initialize the target_regsets here. Call
11612 initialize_low_arch.
11613 * linux-low.h (target_regsets): Delete declaration.
11614 (struct regsets_info): New.
11615 (struct usrregs_info): New.
11616 (struct regs_info): New.
11617 (struct process_info_private) <new_inferior>: New field.
11618 (struct linux_target_ops): Delete the num_regs, regmap, and
11619 regset_bitmap fields. New field regs_info.
11620 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
11621 * i387-fp.c (num_xmm_registers): Delete.
11622 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
11623 calls to new interface.
11624 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
11625 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
11626 Infer the number of xmm registers from the regcache's target
11628 * i387-fp.h (num_xmm_registers): Delete.
11629 * inferiors.c (add_thread): Don't install the thread's regcache
11631 * proc-service.c (gregset_info): Fetch the current inferior's
11632 regs_info. Adjust to use it.
11633 * regcache.c: Include tdesc.h.
11634 (register_bytes, reg_defs, num_registers)
11635 (gdbserver_expedite_regs): Delete.
11636 (get_thread_regcache): If the thread doesn't have a regcache yet,
11637 create one, instead of aborting gdbserver.
11638 (regcache_invalidate_one): Rename to ...
11639 (regcache_invalidate_thread): ... this.
11640 (regcache_invalidate_one): New.
11641 (regcache_invalidate): Only invalidate registers of the current
11643 (init_register_cache): Add target_desc parameter, and use it.
11644 (new_register_cache): Ditto. Assert the target description has a
11645 non zero registers_size.
11646 (regcache_cpy): Add assertions. Adjust.
11647 (realloc_register_cache, set_register_cache): Delete.
11648 (registers_to_string, registers_from_string): Adjust.
11649 (find_register_by_name, find_regno, find_register_by_number)
11650 (register_cache_size): Add target_desc parameter, and use it.
11651 (free_register_cache_thread, free_register_cache_thread_one)
11652 (regcache_release, register_cache_size): New.
11653 (register_size): Add target_desc parameter, and use it.
11654 (register_data, supply_register, supply_register_zeroed)
11655 (supply_regblock, supply_register_by_name, collect_register)
11656 (collect_register_as_string, collect_register_by_name): Adjust.
11657 * regcache.h (struct target_desc): Forward declare.
11658 (struct regcache) <tdesc>: New field.
11659 (init_register_cache, new_register_cache): Add target_desc
11661 (regcache_invalidate_thread): Declare.
11662 (regcache_invalidate_one): Delete declaration.
11663 (regcache_release): Declare.
11664 (find_register_by_number, register_cache_size, register_size)
11665 (find_regno): Add target_desc parameter.
11666 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
11668 * remote-utils.c: Include tdesc.h.
11669 (outreg, prepare_resume_reply): Adjust.
11670 * server.c: Include tdesc.h.
11671 (gdbserver_xmltarget): Delete declaration.
11672 (get_features_xml, process_serial_event): Adjust.
11673 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
11675 (struct process_info) <tdesc>: New field.
11676 (ipa_tdesc): Declare.
11677 * tdesc.c: New file.
11678 * tdesc.h: New file.
11679 * tracepoint.c: Include tdesc.h.
11680 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
11681 (get_context_regcache): Adjust to pass ipa_tdesc down.
11682 (do_action_at_tracepoint): Adjust to get the register cache size
11683 from the context regcache's description.
11684 (traceframe_walk_blocks): Adjust to get the register cache size
11685 from the current trace frame's description.
11686 (traceframe_get_pc): Adjust to get current trace frame's
11687 description and pass it down.
11688 (gdb_collect): Adjust to get the register cache size from the
11690 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
11691 (gdbserver_xmltarget): Delete.
11692 (initialize_low_tracepoint): Set the ipa's target description.
11693 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
11694 (initialize_low_tracepoint): Set the ipa's target description.
11695 * linux-x86-low.c: Include tdesc.h.
11696 [__x86_64__] (is_64bit_tdesc): New.
11697 (ps_get_thread_area, x86_get_thread_area): Use it.
11698 (i386_cannot_store_register): Rename to ...
11699 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
11700 (i386_cannot_fetch_register): Rename to ...
11701 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
11702 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
11704 (target_regsets): Rename to ...
11705 (x86_regsets): ... this.
11706 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
11708 (x86_siginfo_fixup): Use is_64bit_tdesc.
11709 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
11710 (tdesc_x32_avx_linux, tdesc_x32_linux)
11711 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
11713 (x86_linux_update_xmltarget): Delete.
11714 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
11715 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
11716 (AMD64_LINUX_USER64_CS): New.
11717 (x86_linux_read_description): New, based on
11718 x86_linux_update_xmltarget.
11719 (same_process_callback): New.
11720 (x86_arch_setup_process_callback): New.
11721 (x86_linux_update_xmltarget): New.
11722 (x86_regsets_info): New.
11723 (amd64_linux_regs_info): New.
11724 (i386_linux_usrregs_info): New.
11725 (i386_linux_regs_info): New.
11726 (x86_linux_regs_info): New.
11727 (x86_arch_setup): Reimplement.
11728 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
11729 (x86_emit_ops): Ditto.
11730 (the_low_target): Adjust. Install x86_linux_regs_info,
11731 x86_cannot_fetch_register, and x86_cannot_store_register.
11732 (initialize_low_arch): New.
11733 * linux-ia64-low.c (tdesc_ia64): Declare.
11734 (ia64_fetch_register): Adjust.
11735 (ia64_usrregs_info, regs_info): New globals.
11736 (ia64_regs_info): New function.
11737 (the_low_target): Adjust.
11738 (initialize_low_arch): New function.
11739 * linux-sparc-low.c (tdesc_sparc64): Declare.
11740 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
11742 (sparc_arch_setup): New function.
11743 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
11744 (the_low_target): Adjust.
11745 (initialize_low_arch): New function.
11746 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
11747 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
11748 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
11749 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
11750 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
11751 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
11752 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
11753 (tdesc_powerpc_isa205_vsx64l): Declare.
11754 (ppc_cannot_store_register, ppc_collect_ptrace_register)
11755 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
11756 (ppc_set_pc, ppc_get_hwcap): Adjust.
11757 (ppc_usrregs_info): Forward declare.
11758 (!__powerpc64__) ppc_regmap_adjusted: New global.
11759 (ppc_arch_setup): Adjust to the current process'es target
11761 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
11762 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
11763 (ppc_store_evrregset): Adjust.
11764 (target_regsets): Rename to ...
11765 (ppc_regsets): ... this, and make static.
11766 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
11767 (ppc_regs_info): New function.
11768 (the_low_target): Adjust.
11769 (initialize_low_arch): New function.
11770 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
11771 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
11772 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
11773 (tdesc_s390x_linux64v2): Declare.
11774 (s390_collect_ptrace_register, s390_supply_ptrace_register)
11775 (s390_fill_gregset, s390_store_last_break): Adjust.
11776 (target_regsets): Rename to ...
11777 (s390_regsets): ... this, and make static.
11778 (s390_get_pc, s390_set_pc): Adjust.
11779 (s390_get_hwcap): New target_desc parameter, and use it.
11780 [__s390x__] (have_hwcap_s390_high_gprs): New global.
11781 (s390_arch_setup): Adjust to set the current process'es target
11782 description. Don't adjust the regmap.
11783 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
11784 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
11785 (regs_info_3264): New globals.
11786 (s390_regs_info): New function.
11787 (the_low_target): Adjust.
11788 (initialize_low_arch): New function.
11789 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
11790 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
11791 [__mips64] (init_registers_mips_linux)
11792 (init_registers_mips_dsp_linux): Delete defines.
11793 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
11794 (have_dsp): New global.
11795 (mips_read_description): New, based on mips_arch_setup.
11796 (mips_arch_setup): Reimplement.
11797 (get_usrregs_info): New function.
11798 (mips_cannot_fetch_register, mips_cannot_store_register)
11799 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
11800 (mips_fill_fpregset, mips_store_fpregset): Adjust.
11801 (target_regsets): Rename to ...
11802 (mips_regsets): ... this, and make static.
11803 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
11804 (dsp_regs_info, regs_info): New globals.
11805 (mips_regs_info): New function.
11806 (the_low_target): Adjust.
11807 (initialize_low_arch): New function.
11808 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
11809 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
11811 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
11812 (arm_read_description): New, with bits factored from
11814 (arm_arch_setup): Reimplement.
11815 (target_regsets): Rename to ...
11816 (arm_regsets): ... this, and make static.
11817 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
11818 (arm_regs_info): New function.
11819 (the_low_target): Adjust.
11820 (initialize_low_arch): New function.
11821 * linux-m68k-low.c (tdesc_m68k): Declare.
11822 (target_regsets): Rename to ...
11823 (m68k_regsets): ... this, and make static.
11824 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
11825 (m68k_regs_info): New function.
11826 (m68k_arch_setup): New function.
11827 (the_low_target): Adjust.
11828 (initialize_low_arch): New function.
11829 * linux-sh-low.c (tdesc_sharch): Declare.
11830 (target_regsets): Rename to ...
11831 (sh_regsets): ... this, and make static.
11832 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
11833 (sh_regs_info, sh_arch_setup): New functions.
11834 (the_low_target): Adjust.
11835 (initialize_low_arch): New function.
11836 * linux-bfin-low.c (tdesc_bfin): Declare.
11837 (bfin_arch_setup): New function.
11838 (bfin_usrregs_info, regs_info): New globals.
11839 (bfin_regs_info): New function.
11840 (the_low_target): Adjust.
11841 (initialize_low_arch): New function.
11842 * linux-cris-low.c (tdesc_cris): Declare.
11843 (cris_arch_setup): New function.
11844 (cris_usrregs_info, regs_info): New globals.
11845 (cris_regs_info): New function.
11846 (the_low_target): Adjust.
11847 (initialize_low_arch): New function.
11848 * linux-cris-low.c (tdesc_crisv32): Declare.
11849 (cris_arch_setup): New function.
11850 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
11851 (cris_regs_info): New function.
11852 (the_low_target): Adjust.
11853 (initialize_low_arch): New function.
11854 * linux-m32r-low.c (tdesc_m32r): Declare.
11855 (m32r_arch_setup): New function.
11856 (m32r_usrregs_info, regs_info): New globals.
11857 (m32r_regs_info): Adjust.
11858 (initialize_low_arch): New function.
11859 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
11860 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
11861 (tic6x_usrregs_info): Forward declare.
11862 (tic6x_read_description): New function, based on ...
11863 (tic6x_arch_setup): ... this. Reimplement.
11864 (target_regsets): Rename to ...
11865 (tic6x_regsets): ... this, and make static.
11866 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
11867 (tic6x_regs_info): New function.
11868 (the_low_target): Adjust.
11869 (initialize_low_arch): New function.
11870 * linux-xtensa-low.c (tdesc_xtensa): Declare.
11871 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
11872 (target_regsets): Rename to ...
11873 (xtensa_regsets): ... this, and make static.
11874 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
11876 (xtensa_arch_setup, xtensa_regs_info): New functions.
11877 (the_low_target): Adjust.
11878 (initialize_low_arch): New function.
11879 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
11880 (nios2_arch_setup): Set the current process'es tdesc.
11881 (target_regsets): Rename to ...
11882 (nios2_regsets): ... this.
11883 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
11884 (nios2_regs_info): New function.
11885 (the_low_target): Adjust.
11886 (initialize_low_arch): New function.
11887 * linux-aarch64-low.c (tdesc_aarch64): Declare.
11888 (aarch64_arch_setup): Set the current process'es tdesc.
11889 (target_regsets): Rename to ...
11890 (aarch64_regsets): ... this.
11891 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
11892 (aarch64_regs_info): New function.
11893 (the_low_target): Adjust.
11894 (initialize_low_arch): New function.
11895 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
11897 (target_regsets): Rename to ...
11898 (tile_regsets): ... this.
11899 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
11900 (tile_regs_info): New function.
11901 (tile_arch_setup): Set the current process'es tdesc.
11902 (the_low_target): Adjust.
11903 (initialize_low_arch): New function.
11904 * spu-low.c (tdesc_spu): Declare.
11905 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
11906 * win32-arm-low.c (tdesc_arm): Declare.
11907 (arm_arch_setup): New function.
11908 (the_low_target): Install arm_arch_setup instead of
11909 init_registers_arm.
11910 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
11911 (init_windows_x86): Rename to ...
11912 (i386_arch_setup): ... this. Set `win32_tdesc'.
11913 (the_low_target): Adjust.
11914 * win32-low.c (win32_tdesc): New global.
11915 (child_add_thread): Don't create the thread cache here.
11916 (do_initial_child_stuff): Set the new process'es tdesc.
11917 * win32-low.h (struct target_desc): Forward declare.
11918 (win32_tdesc): Declare.
11919 * lynx-i386-low.c (tdesc_i386): Declare global.
11920 (lynx_i386_arch_setup): Set `lynx_tdesc'.
11921 * lynx-low.c (lynx_tdesc): New global.
11922 (lynx_add_process): Set the new process'es tdesc.
11923 * lynx-low.h (struct target_desc): Forward declare.
11924 (lynx_tdesc): Declare global.
11925 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
11926 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
11927 * nto-low.c (nto_tdesc): New global.
11928 (do_attach): Set the new process'es tdesc.
11929 * nto-low.h (struct target_desc): Forward declare.
11930 (nto_tdesc): Declare.
11931 * nto-x86-low.c (tdesc_i386): Declare.
11932 (nto_x86_arch_setup): Set `nto_tdesc'.
11934 2013-06-04 Gary Benson <gbenson@redhat.com>
11936 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
11937 to qSupported response when appropriate.
11938 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
11939 with nonzero-length annex.
11940 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
11941 arguments supplied in annex.
11943 2013-05-31 Doug Evans <dje@google.com>
11946 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
11947 64 bits in 64-cross-32 environment.
11949 2013-05-28 Pedro Alves <palves@redhat.com>
11951 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
11952 (aarch64-without-fpu.c): Delete rule.
11953 * configure.srv (aarch64*-*-linux*): Remove references to
11954 aarch64-without-fpu.o and aarch64-without-fpu.xml.
11955 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
11958 2013-05-24 Pedro Alves <palves@redhat.com>
11960 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
11961 instead of strchr/decode_address. Error if the range isn't split
11962 with a ','. Don't assume there's be a ':' in the action.
11964 2013-05-23 Yao Qi <yao@codesourcery.com>
11965 Pedro Alves <palves@redhat.com>
11967 * linux-low.c (lwp_in_step_range): New function.
11968 (linux_wait_1): If the thread was range stepping and stopped
11969 outside the stepping range, report the stop to GDB. Otherwise,
11970 continue stepping. Add range stepping debug output.
11971 (linux_set_resume_request): Copy the step range from the resume
11972 request to the lwp.
11973 (linux_supports_range_stepping): New.
11974 (linux_target_ops) <supports_range_stepping>: Set to
11975 linux_supports_range_stepping.
11976 * linux-low.h (struct linux_target_ops)
11977 <supports_range_stepping>: New field.
11978 (struct lwp_info) <step_range_start, step_range_end>: New fields.
11979 * linux-x86-low.c (x86_supports_range_stepping): New.
11980 (the_low_target) <supports_range_stepping>: Set to
11981 x86_supports_range_stepping.
11982 * server.c (handle_v_cont): Handle 'r' action.
11983 (handle_v_requests): Append ";r" if the target supports range
11985 * target.h (struct thread_resume) <step_range_start,
11986 step_range_end>: New fields.
11987 (struct target_ops) <supports_range_stepping>:
11989 (target_supports_range_stepping): New macro.
11991 2013-05-17 Joel Brobecker <brobecker@adacore.com>
11993 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
11994 confusion in comment.
11996 2013-05-17 Joel Brobecker <brobecker@adacore.com>
11998 * lynx-low.c (struct process_info_private): New type.
11999 (lynx_add_process): New function.
12000 (lynx_create_inferior, lynx_attach): Replace calls to
12001 add_process by calls to lynx_add_process.
12002 (lynx_resume): If PTID is null, then try using
12003 current_process()->private->last_wait_event_ptid.
12005 (lynx_clear_inferiors): Delete. The contents of that function
12006 has been inlined in lynx_mourn;
12007 (lynx_wait_1): Save the ptid in the process's private data.
12008 (lynx_mourn): Free the process' private data. Replace call
12009 to lynx_clear_inferiors by call to clear_inferiors.
12011 2013-05-17 Yao Qi <yao@codesourcery.com>
12013 * i386-low.c (i386_length_and_rw_bits): Move the comment to
12016 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
12018 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
12019 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
12020 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
12021 PT_TEXT_END_ADDR guards. Update comments.
12022 (linux_target_op) <read_offsets>: Conditionally define to
12023 linux_read_offsets if the target is UCLIBC and if it defines
12024 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
12026 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
12027 Andrew Jenner <andrew@codesourcery.com>
12029 * Makefile.in (SFILES): Add linux-nios2-low.c.
12030 (clean): Add action to delete nios2-linux.c.
12031 (nios2-linux.c): New rule.
12032 * configure.srv: Add nios2*-*-linux*.
12033 * linux-nios2-low.c: New.
12035 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
12037 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
12039 2013-04-25 Hui Zhu <hui@codesourcery.com>
12042 * ax.c (ax_printf): Add fflush.
12044 2013-04-22 Tom Tromey <tromey@redhat.com>
12046 * Makefile.in (SFILES): Add filestuff.c.
12047 (OBS): Add filestuff.o.
12048 (filestuff.o): New target.
12049 * config.in, configure: Rebuild.
12050 * configure.ac: Check for fdwalk, pipe2.
12052 2013-04-17 Pedro Alves <palves@redhat.com>
12054 * configure.ac (USE_THREAD_DB): Delete variable.
12055 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
12056 Don't AC_SUBST USE_THREAD_DB.
12057 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
12058 * config.in, configure: Regenerate.
12060 2013-04-16 Pedro Alves <palves@redhat.com>
12062 * linux-low.h (struct lwp_info) <thread_known>: Move under
12063 the USE_THREAD_DB #ifdef.
12065 2013-04-16 Pedro Alves <palves@redhat.com>
12067 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
12068 (linux-low.o): Delete rule.
12069 * linux-low.h: Always include "gdb_thread_db.h" instead of
12070 conditionally including thread_db.h.
12071 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
12074 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
12076 * Makefile.in (install-only): Fix make install regression.
12078 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
12080 Convert man pages to texinfo, new gdbinit.5 texinfo page.
12081 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
12083 * gdbserver.1: Remove.
12085 2013-03-22 Pedro Alves <palves@redhat.com>
12087 * linux-low.c (handle_extended_wait): Don't call
12088 linux_enable_event_reporting.
12090 2013-03-15 Tony Theodore <tonyt@logyst.com>
12093 * Makefile.in (SHELL): Use @SHELL@.
12095 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
12097 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
12100 2013-03-13 Joel Brobecker <brobecker@adacore.com>
12102 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
12103 Remove extraneous NULL element.
12105 2013-03-13 Yao Qi <yao@codesourcery.com>
12107 * tracepoint.c (traceframe_read_tsv): Look for the last matched
12108 'V' block in trace frame.
12110 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12112 * target.h (struct target_ops): Add btrace ops.
12113 (target_supports_btrace): New macro.
12114 (target_enable_btrace): New macro.
12115 (target_disable_btrace): New macro.
12116 (target_read_btrace): New macro.
12117 * gdbthread.h (struct thread_info): Add btrace field.
12118 * server.c: Include btrace-common.h.
12119 (handle_btrace_general_set): New function.
12120 (handle_btrace_enable): New function.
12121 (handle_btrace_disable): New function.
12122 (handle_general_set): Call handle_btrace_general_set.
12123 (handle_qxfer_btrace): New function.
12124 (struct qxfer qxfer_packets[]): Add btrace entry.
12125 * inferiors.c (remove_thread): Disable btrace.
12126 * linux-low: Include linux-btrace.h.
12127 (linux_low_enable_btrace): New function.
12128 (linux_low_read_btrace): New function.
12129 (linux_target_ops): Add btrace ops.
12130 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
12131 Add srv_linux_btrace=yes.
12132 (x86_64-*-linux*): Add linux-btrace.o.
12133 Add srv_linux_btrace=yes.
12134 * configure.ac: Define HAVE_LINUX_BTRACE.
12135 * config.in: Regenerated.
12136 * configure: Regenerated.
12138 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12140 * server.c (handle_qxfer): Preserve error message if -3 is
12142 (qxfer): Document the -3 return value.
12144 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12146 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
12147 (linux_btrace_h): New variable.
12148 (linux-btrace.o): New rule.
12150 2013-03-08 Stan Shebs <stan@codesourcery.com>
12151 Hafiz Abid Qadeer <abidh@codesourcery.com>
12153 * tracepoint.c (trace_buffer_size): New global.
12154 (DEFAULT_TRACE_BUFFER_SIZE): New define.
12155 (init_trace_buffer): Change to one-argument function. Allocate
12156 trace buffer memory.
12157 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
12158 handle QTBuffer:size packet.
12159 (cmd_bigqtbuffer_size): New function.
12160 (initialize_tracepoint): Call init_trace_buffer with
12161 DEFAULT_TRACE_BUFFER_SIZE.
12162 * server.c (handle_query): Add QTBuffer:size in the
12165 2013-03-07 Yao Qi <yao@codesourcery.com>
12167 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
12168 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
12170 (cmd_qtsp): Adjust condition. Do post increment.
12171 Set cur_action and cur_step_action back to 0.
12173 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
12176 * linux-low.c (linux_write_memory): Return early success if LEN is
12179 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
12181 * configure.srv: Add x86_64-*-cygwin* as target.
12183 2013-02-28 Tom Tromey <tromey@redhat.com>
12185 * configure.ac: Invoke AC_SYS_LARGEFILE.
12186 * configure, config.in: Rebuild.
12188 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
12190 * win32-low.c: Throughout, fix format strings and casts of
12191 printf-like functions to avoid type related warnings on all
12193 (get_child_debug_event): Print dwDebugEventCode as hex since
12194 that's how it's usually documented.
12196 2013-02-28 Yao Qi <yao@codesourcery.com>
12198 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
12201 2013-02-27 Jiong Wang <jiwang@tilera.com>
12203 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
12204 (reg-tilegx32.c): New rule.
12205 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
12206 * linux-tile-low.c (tile_arch_setup): New function. Invoke
12207 different register info initializer according to elf class.
12208 (init_registers_tilgx32): New function. The tilegx32 register info
12210 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
12211 (tile_store_gregset): Likewise.
12213 2013-02-27 Yao Qi <yao@codesourcery.com>
12215 * server.c (process_point_options): Print debug message when
12216 debug_threads is true.
12218 2013-02-26 Yao Qi <yao@codesourcery.com>
12220 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
12222 2013-02-19 Pedro Alves <palves@redhat.com>
12223 Kai Tietz <ktietz@redhat.com>
12227 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
12228 instead of strtoul to extract address from packet.
12229 (process_serial_event) <'z'>: Likewise.
12231 2013-02-18 Yao Qi <yao@codesourcery.com>
12233 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
12235 2013-02-14 Pedro Alves <palves@redhat.com>
12239 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
12240 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
12242 2013-02-14 Pedro Alves <palves@redhat.com>
12244 * tracepoint.c (cmd_qtdpsrc): Use savestring.
12246 2013-02-14 Pedro Alves <palves@redhat.com>
12248 * tracepoint.c (save_string): Delete.
12249 (add_tracepoint_action): Use savestring instead of save_string.
12251 2013-02-12 Pedro Alves <palves@redhat.com>
12253 * linux-xtensa-low.c: Ditto.
12254 * xtensa-xtregs.c: Ditto.
12256 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12258 * thread-db.c (thread_db_get_tls_address): NULL pointer check
12261 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12263 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
12264 aarch64_num_wp_regs and aarch64_num_bp_regs to
12265 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
12267 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12269 * linux-aarch64-low.c (ps_get_thread_area): Replace
12270 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
12272 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12273 Marcus Shawcroft <marcus.shawcroft@arm.com>
12274 Nigel Stephens <nigel.stephens@arm.com>
12275 Yufeng Zhang <yufeng.zhang@arm.com>
12277 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
12278 (aarch64.c, aarch64-without-fpu.c): New targets.
12279 * configure.srv (aarch64*-*-linux*): New.
12280 * linux-aarch64-low.c: New file.
12282 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
12284 * linux-low.c (handle_extended_wait, linux_create_inferior)
12285 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
12286 (dequeue_one_deferred_signal, linux_resume_one_thread)
12287 (fetch_register, linux_write_memory, linux_enable_event_reporting)
12288 (linux_tracefork_grandchild, linux_test_for_tracefork)
12289 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
12290 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
12291 where the argument is 0.
12293 2013-01-25 Yao Qi <yao@codesourcery.com>
12295 * event-loop.c: Include "queue.h".
12296 (gdb_event_p): New typedef.
12297 (struct gdb_event) <next_event>: Remove.
12298 (event_queue): Change to QUEUE(gdb_event_p).
12299 (async_queue_event): Remove.
12300 (gdb_event_xfree): New.
12301 (initialize_event_loop): New.
12302 (process_event): Use API from QUEUE.
12303 (wait_for_event): Likewise.
12304 * server.c (main): Call initialize_event_loop.
12305 * server.h (initialize_event_loop): Declare.
12307 2013-01-18 Yao Qi <yao@codesourcery.com>
12309 * ax.h (struct eval_agent_expr_context): New.
12310 (gdb_eval_agent_expr): Update declaration.
12311 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
12312 TFRAME. Add new argument CTX.
12313 * server.h (struct eval_agent_expr_context): Declare.
12314 (agent_mem_read, agent_tsv_read): Update declaration.
12315 (agent_mem_read_string): Likewise.
12316 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
12317 (add_traceframe_block): Add new argument TPOINT.
12318 Increase TPOINT->traceframe_usage.
12319 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
12320 eval_tracepoint_agent_expr.
12321 (condition_true_at_tracepoint): Likewise.
12322 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
12323 (agent_mem_read_string, agent_tsv_read): Likewise.
12325 2013-01-16 Yao Qi <yao@codesourcery.com>
12327 * linux-low.c (linux_resume_one_lwp): Don't check
12328 'lwp->bp_reinsert != 0'.
12330 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12331 Pedro Alves <palves@redhat.com>
12333 * lynx-low.c (ptrace_request_to_str): Define a temporary
12334 macro and use it to simplify this function's implementation.
12336 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12338 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
12341 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12343 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
12345 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12347 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
12349 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12351 * lynx-low.c (lynx_resume): Use the resume_info parameter
12352 to determine the ptid for the lynx_ptrace call, unless
12353 it is equal to minus_one_ptid, in which case we use the
12354 ptid of the current_inferior.
12355 (lynx_wait_1): After having received a thread create/exit
12356 event, resume the inferior's execution using the signaling
12357 thread's ptid, rather than the old ptid.
12359 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12361 * lynx-low.c (lynx_resume): Delete variable ret.
12363 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12365 * gdbreplay.c (gdbreplay_version): Update copyright year.
12366 * server.c (gdbserver_version): Likewise.
12368 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12370 * lynx-low.c (lynx_wait_1): Add debug trace before adding
12373 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12375 * lynx-low.c (ptrace_request_to_str): Add handling for
12376 PTRACE_GETTRACESIG.
12378 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12380 * lynx-low.c (lynx_attach): Delete variable new_process.
12382 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12384 * lynx-low.c (lynx_create_inferior): Delete variable
12387 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12389 * lynx-low.c (ptrace_request_to_str): Do not handle
12390 PTRACE_GETTHREADLIST if this macro does not exist.
12392 2012-12-15 Yao Qi <yao@codesourcery.com>
12394 * Makefile.in (OBS): Add notif.o.
12395 * notif.c, notif.h: New.
12396 * server.c: Include "notif.h".
12397 (struct vstop_notif) <next>: Remove.
12399 (queue_stop_reply): Update.
12400 (push_event, send_next_stop_reply): Remove.
12401 (discard_queued_stop_replies): Update.
12402 (notif_stop): New variable.
12403 (handle_v_stopped): Remove.
12404 (handle_v_requests): Don't call handle_v_stopped. Call
12405 handle_ack_notif instead.
12406 (queue_stop_reply_callback): Call notif_event_enque instead
12407 of queue_stop_reply.
12408 (handle_status): Don't call send_next_stop_reply, call
12409 notif_write_event instead.
12410 (kill_inferior_callback): Likewise.
12411 (detach_or_kill_inferior_callback): Likewise.
12412 (main): Call initialize_notif.
12413 (process_serial_event): Call QUEUE_is_empty.
12414 (handle_target_event): Call notif_push instead of push event.
12415 * server.h (push_event): Remove declaration.
12417 2012-12-10 Tom Tromey <tromey@redhat.com>
12419 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
12420 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
12423 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
12424 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
12425 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
12426 (amd64-linux-ipa.o, ax.o): Rewrite.
12427 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
12428 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
12429 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
12430 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
12431 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
12432 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
12433 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
12434 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
12435 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
12436 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
12437 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
12438 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
12439 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
12440 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
12441 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
12442 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
12443 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
12444 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
12445 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
12446 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
12447 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
12448 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
12449 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
12450 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
12451 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
12452 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
12453 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
12454 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
12455 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
12456 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
12457 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
12458 (reg-tilegx.o): Remove.
12459 (all_object_files): New macro.
12460 Include .deps files.
12461 * aclocal.m4, configure: Rebuild.
12462 * acinclude.m4: Include depstand.m4, lead-dot.m4.
12463 * configure.ac: Invoke ZW_CREATE_DEPDIR,
12464 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
12466 2012-12-05 Tom Tromey <tromey@redhat.com>
12469 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
12471 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
12473 * configure.ac: Check for linux/perf_event.h.
12474 * config.in: Regenerated.
12475 * configure: Regenerated.
12477 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
12479 * hostio.c (handle_readlink): Decrease buffer size
12480 parameter passed to readlink by one byte.
12482 2012-11-26 Yao Qi <yao@codesourcery.com>
12484 * configure.ac (build_warnings): Append '-Wempty-body'.
12485 * configure: Regenerated.
12486 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
12489 2012-11-15 Pierre Muller <muller@sourceware.org>
12491 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
12492 * config.in: Regenerate.
12493 * configure: Regenerate.
12494 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
12495 Use "gdb_wait.h" header instead of <sys/wait.h> header.
12496 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
12497 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
12499 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
12500 instead of <sys/wait.h> header.
12501 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
12503 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
12505 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
12506 (various make rules): Remove -DGDBSERVER
12508 2012-11-09 Yao Qi <yao@codesourcery.com>
12510 * spu-low.c (current_ptid): Move it to ..
12511 * gdbthread.h: ... here. New.
12512 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
12513 * server.c (myresume, process_serial_event): Likewise.
12514 * thread-db.c (thread_db_find_new_threads): Likewise.
12515 * tracepoint.c (run_inferior_command): Likewise.
12517 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
12519 * server.c (handle_search_memory_1): Include access length in
12522 2012-09-05 Michael Brandt <michael.brandt@axis.com>
12524 * linux-crisv32-low.c: Fix compile errors.
12526 2012-09-04 Yao Qi <yao@codesourcery.com>
12528 * tracepoint.c (cmd_qtsv): Adjust debug message.
12529 Don't check CUR_TPOINT.
12531 2012-08-28 Yao Qi <yao@codesourcery.com>
12533 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
12534 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
12535 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
12536 Remove declarations of xmalloc, xreallloc, xstrdup and
12538 * Makefile.in (libiberty_h): New.
12539 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
12540 (linux-bfin-low.o): Append dependency 'libiberty.h'.
12542 2012-08-23 Yao Qi <yao@codesourcery.com>
12544 * server.h: Remove declaration of 'xsnprintf'.
12546 2012-08-22 Keith Seitz <keiths@redhat.com>
12548 * server.h: Include build-gnulib-gbserver/config.h.
12549 * gdbreplay.c: Likewise.
12551 2012-08-08 Doug Evans <dje@google.com>
12553 * Makefile.in (SFILES): Add gdb_vecs.c.
12554 (OBS): Add gdb_vecs.o.
12555 (gdb_vecs_h, host_defs_h): New variables.
12556 (thread-db.o): Add $(gdb_vecs_h) dependency.
12557 (gdb_vecs.o): New rule.
12558 * thread-db.c: #include "gdb_vecs.h".
12559 (thread_db_load_search): Use a vector to iterate over path elements.
12560 Handle text appearing after "$pdir".
12562 * configure.ac: Add check for strstr.
12563 * config.in: Regenerate.
12564 * configure: Regenerate.
12566 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
12568 * hostio.c (handle_pread): If pread fails, fall back to attempting
12570 (handle_pwrite): Likewise for pwrite.
12572 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
12574 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
12575 between unsupported TYPE and unimplementable ADDR/LEN combination.
12576 (arm_insert_point): Act on new return value.
12578 2012-07-31 Pedro Alves <palves@redhat.com>
12580 * server.c (process_point_options): Only skip tokens if we find
12581 one that is unrecognized. Don't treat 'X' specially while
12582 skipping unrecognized tokens.
12584 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
12586 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
12587 to 4-byte-align HW breakpoint addresses for Thumb.
12589 2012-07-27 Yao Qi <yao@codesourcery.com>
12593 * server.h: Declare gdb_agent_about_to_close.
12594 * target.c (kill_inferior): Include "agent.h".
12595 New. Send command 'kill'.
12596 * target.h (kill_inferior): Removed macro.
12597 * tracepoint.c (gdb_agent_about_to_close): New.
12598 (gdb_agent_helper_thread): Handle command 'close'.
12599 Wait endlessly until the inferior stops.
12600 Install gdb_agent_remove_socket to atexit hook.
12601 (agent_socket_name): New static variable.
12602 (gdb_agent_socket_init): Replace local variable 'name' with
12603 'agent_socket_name'.
12604 (gdb_agent_remove_socket): New.
12606 2012-07-27 Yao Qi <yao@codesourcery.com>
12608 * server.c (process_point_options): Stop at 'X' when parsing.
12610 2012-07-19 Michael Eager <eager@eagercon.com>
12612 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
12614 * linux-x86-low.c (x86_insert_point, x86_remove_point):
12615 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
12616 hardware breakpoint.
12618 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
12620 * gdbserver/linux-low.c (initialize_low): Call
12621 linux_ptrace_init_warnings.
12623 2012-07-02 Doug Evans <dje@google.com>
12625 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
12628 2012-07-02 Stan Shebs <stan@codesourcery.com>
12630 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
12631 (ax.o): Add it to build rule.
12633 (OBS): Add format.o.
12634 (IPA_OBS): Add format.o.
12635 * server.c (handle_query): Claim support for breakpoint commands.
12636 (process_point_options): Add command case.
12637 (process_serial_event): Leave running if there are printfs in
12639 * mem-break.h (any_persistent_commands): Declare.
12640 (add_breakpoint_commands): Declare.
12641 (gdb_no_commands_at_breakpoint): Declare.
12642 (run_breakpoint_commands): Declare.
12643 * mem-break.c (struct point_command_list): New struct.
12644 (struct breakpoint): New field command_list.
12645 (any_persistent_commands): New function.
12646 (add_commands_to_breakpoint): New function.
12647 (add_breakpoint_commands): New function.
12648 (gdb_no_commands_at_breakpoint): New function.
12649 (run_breakpoint_commands): New function.
12650 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
12652 * ax.c: Include format.h.
12653 (ax_printf): New function.
12654 (gdb_eval_agent_expr): Add printf opcode.
12656 2012-06-13 Yao Qi <yao@codesourcery.com>
12658 * server.c (start_inferior): Remove duplicated writes to fields
12659 'last_resume_kind' and 'last_status' of 'current_inferior'.
12661 2012-06-12 Yao Qi <yao@codesourcery.com>
12662 Pedro Alves <palves@redhat.com>
12664 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
12666 * server.c (handle_v_cont): Extend comment.
12668 2012-06-11 Yao Qi <yao@codesourcery.com>
12670 * linux-low.c (linux_attach): Add 'static'.
12672 2012-06-06 Yao Qi <yao@codesourcery.com>
12674 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
12676 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12678 Fix gcc -flto compilation warning.
12679 * server.c (main): Make variable multi_mode and attach volatile.
12681 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12683 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
12684 if the platform doesn't know about it.
12686 2012-05-30 Jeff Kenton <jkenton@tilera.com>
12688 * Makefile.in (SFILES): Add linux-tile-low.c.
12689 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
12690 * configure.srv: Handle tilegx-*-linux*.
12691 * linux-tile-low.c: New file.
12693 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12695 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
12697 2012-05-24 Pedro Alves <palves@redhat.com>
12701 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
12703 2012-05-24 Pedro Alves <palves@redhat.com>
12707 Replace target_signal with gdb_signal throughout.
12709 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
12711 * linux-low.c (linux_store_registers): Avoid the copying sequence
12712 when no data has been retrieved by ptrace.
12714 2012-05-22 Will Deacon <will.deacon@arm.com>
12716 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
12717 Include asm/ptrace.h.
12718 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
12721 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
12723 * linux-low.c (linux_store_registers): Don't re-retrieve data
12724 with ptrace that has already been obtained from /proc. Always
12725 copy any data retrieved with ptrace to the buffer supplied.
12727 2012-05-11 Yao Qi <yao@codesourcery.com>
12728 Pedro Alves <palves@redhat.com>
12730 * linux-low.c (enum stopping_threads_kind): New.
12731 (stopping_threads): Change type to `enum stopping_threads_kind'.
12732 (handle_extended_wait): If stopping and suspending threads, leave
12733 the new_lwp suspended too.
12734 (linux_wait_for_event): Adjust.
12735 (stop_all_lwps): Set `stopping_threads' to
12736 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
12737 whether we're suspending threads or just stopping them. Assert no
12740 2012-04-29 Yao Qi <yao@codesourcery.com>
12742 * server.h: Move some code to ...
12743 * gdbthread.h: ... here. New.
12744 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
12745 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
12746 (nto-low.o, win32-low.o): Likewise.
12747 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
12748 * regcache.c, remote-utils.c, server.c: Likewise.
12749 * target.c, tracepoint.c, win32-low.c: Likewise.
12751 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12753 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
12754 (PTRACE_ARG4_TYPE): Likewise.
12755 (PTRACE_XFER_TYPE): Likewise.
12756 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
12757 ptrace to PTRACE_ARG3_TYPE.
12758 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
12759 (PTRACE_ARG4_TYPE): Likewise.
12760 (PTRACE_XFER_TYPE): Likewise.
12761 (linux_detach_one_lwp): Cast fourth argument of
12762 ptrace to long then PTRACE_ARG4_TYPE.
12763 (regsets_fetch_inferior_registers): Cast third argument of
12764 ptrace to long then PTRACE_ARG3_TYPE.
12765 (regsets_store_inferior_registers): Likewise.
12767 2012-04-20 Pedro Alves <palves@redhat.com>
12769 * configure: Regenerate.
12771 2012-04-19 Pedro Alves <palves@redhat.com>
12773 * Makefile.in (GNULIB_BUILDDIR): New.
12774 (LIBGNU, INCGNU, GNULIB_H): Adjust.
12775 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
12776 (all, install-only, uninstall, clean-info, all-lib, clean): No
12777 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
12778 (maintainer-clean realclean distclean): Use subdir_do.
12780 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
12781 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
12782 * acinclude.m4: Include acx_configure_dir.m4.
12783 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
12784 calls. Call AC_PROG_RANLIB. Configure gnulib using
12787 (GNULIB_STDINT_H): Adjust.
12788 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
12789 * gdbreplay.c: Include build-gnulib/config.h.
12790 * server.h: Likewise.
12791 * aclocal.m4: Regenerate.
12792 * config.in: Regenerate.
12793 * configure: Regenerate.
12795 2012-04-19 Pedro Alves <palves@redhat.com>
12797 * Makefile.in (LIBGNU, INCGNU): Adjust.
12798 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
12799 (all, install-only, uninstall, clean-info, all-lib, clean)
12800 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
12801 * configure.ac: Adjust AC_OUTPUT output.
12802 * aclocal.m4: Regenerate.
12803 * configure: Regenerate.
12805 2012-04-19 Pedro Alves <palves@redhat.com>
12807 * Makefile.in (generated_files): New.
12808 (server_h): Remove the explicit dependency on config.h, and depend
12809 on $generated_files.
12811 2012-04-19 Pedro Alves <palves@redhat.com>
12813 * Makefile.in (INCGNU): Add -Ignulib.
12815 2012-04-19 Pedro Alves <palves@redhat.com>
12817 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
12818 (INCGNU): ... this, and spell out -I here.
12819 (GNULIB_LIB): Rename to ...
12820 (LIBGNU): ... this.
12821 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
12823 2012-04-19 Pedro Alves <palves@redhat.com>
12825 * config.in: Regenerate.
12827 2012-04-19 Pedro Alves <palves@redhat.com>
12829 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
12830 * server.h (memmem): Remove declaration.
12831 * config.in: Regenerate.
12832 * configure: Regenerate.
12834 2012-04-19 Yao Qi <yao@codesourcery.com>
12836 * Makefile.in (SFILES): Add common/vec.c.
12840 2012-04-19 Yao Qi <yao@codesourcery.com>
12842 * remote-utils.c (prepare_resume_reply): Replace with macro
12843 target_core_of_thread.
12844 * server.c (handle_qxfer_threads_proper): Likewise.
12845 * target.h (traget_core_of_thread): New macro.
12847 2012-04-18 Pedro Alves <palves@redhat.com>
12849 * aclocal.m4: Regenerate.
12850 * configure: Regenerate.
12852 2012-04-16 Yao Qi <yao@codesourcery.com>
12854 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
12855 duplicated on address.
12857 2012-04-16 Yao Qi <yao@codesourcery.com>
12859 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
12860 (struct tracepoint_action_ops) <send>: New field.
12861 (m_tracepoint_action_send, r_tracepoint_action_send): New.
12862 (agent_expr_send, x_tracepoint_action_send): New.
12863 (l_tracepoint_action_send): New.
12864 (cmd_qtdp): Download and install tracepoint
12865 according to `use_agent'.
12866 (run_inferior_command): Add one more parameter `len'.
12868 (tracepoint_send_agent): New.
12869 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
12871 2012-04-16 Yao Qi <yao@codesourcery.com>
12873 * tracepoint.c (download_tracepoints): Moved to ...
12874 (cmd_qtstart): ... here.
12876 2012-04-14 Yao Qi <yao@codesourcery.com>
12878 * tracepoint.c: Include inttypes.h.
12879 (struct collect_memory_action): Use sized types.
12880 (struct tracepoint): Likewise.
12881 (cmd_qtdp, stop_tracing): Update print specifiers.
12882 (cmd_qtp, response_tracepoint): Likewise.
12883 (collect_data_at_tracepoint): Likewise.
12884 (collect_data_at_step): Likewise.
12886 2012-04-14 Yao Qi <yao@codesourcery.com>
12888 Import gnulib module inttypes.
12889 * aclocal.m4, config.in, configure: Regenerated.
12891 2012-04-14 Yao Qi <yao@codesourcery.com>
12893 * Makefile.in (maintainer-clean, realclean, distclean): Remove
12894 Makefile and config.status at last.
12896 2012-04-13 Yao Qi <yao@codesourcery.com>
12898 * tracepoint.c: Include stdint.h unconditionally.
12900 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12902 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
12903 on BFD_HAVE_SYS_PROCFS_TYPE.
12904 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
12905 * configure: Regenerate.
12906 * config.in: Likewise.
12908 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
12910 * Makefile.in (clean): Also remove x32.c x32-linux.c
12911 x32-avx.c x32-avx-linux.c.
12912 (x32.o): New target.
12914 (x32-linux.o): Likewise.
12915 (x32-linux.c): Likewise.
12916 (x32-avx.o): Likewise.
12917 (x32-avx.c): Likewise.
12918 (x32-avx-linux.o): Likewise.
12919 (x32-avx-linux.c): Likewise.
12921 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
12922 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
12923 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
12924 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
12925 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
12926 i386/x32-avx-linux.xml.
12928 * linux-x86-low.c (init_registers_x32_linux): New prototype.
12929 (init_registers_x32_avx_linux): Likwise.
12930 (x86_linux_update_xmltarget): Call init_registers_x32_linux
12931 or init_registers_x32_avx_linux if linux_is_elf64 is false.
12933 2012-04-13 Pedro Alves <palves@redhat.com>
12935 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
12936 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
12937 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
12938 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
12941 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
12943 * linux-x86-low.c (compat_x32_clock_t): New.
12944 (compat_x32_siginfo_t): Likewise.
12945 (compat_x32_siginfo_from_siginfo): Likewise.
12946 (siginfo_from_compat_x32_siginfo): Likewise.
12947 (linux_is_elf64): Likewise.
12948 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
12949 and siginfo_from_compat_x32_siginfo for x32.
12950 (x86_arch_setup): Set linux_is_elf64.
12952 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
12955 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
12957 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
12958 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
12959 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
12960 compatible with process.
12962 2012-04-12 Yao Qi <yao@codesourcery.com>
12964 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
12965 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
12966 (install-only, install-info, clean): Handle sub dir gnulib.
12967 (all-lib, am--refresh): New targets.
12968 (memmem.o): Remove target.
12969 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
12970 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
12971 (AC_REPLACE_FUNCS): Remove memmem.
12972 Invoke gl_INIT and AM_INIT_AUTOMAKE.
12973 (AC_OUTPUT): Generate Makefile in gnulib/.
12974 * aclocal.m4, config.in, configure: Regenerated.
12976 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
12978 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
12980 2012-04-05 Pedro Alves <palves@redhat.com>
12982 -Werror=strict-aliasing
12984 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
12987 2012-04-04 Pedro Alves <palves@redhat.com>
12989 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
12990 (sparc_store_gregset_from_stack, sparc_store_gregset)
12991 (sparc_breakpoint_at): Fix formatting.
12993 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12995 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
12997 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
12998 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
12999 * config.in: Regenerate.
13000 * configure: Likewise.
13002 2012-03-29 Pedro Alves <palves@redhat.com>
13004 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
13005 Correct ptrace arguments.
13007 2012-03-28 Pedro Alves <palves@redhat.com>
13009 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
13010 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
13011 (IA64_FR1_REGNUM): New defines.
13012 (ia64_fetch_register): New.
13013 (the_low_target): Install it.
13014 * linux-low.h (struct linux_target_ops) <fetch_register>: New
13016 * linux-low.c (linux_fetch_registers): Try the
13017 the_low_target.fetch_register hook first.
13019 * linux-arm-low.c (the_low_target): Adjust.
13020 * linux-bfin-low.c (the_low_target): Adjust.
13021 * linux-cris-low.c (the_low_target): Adjust.
13022 * linux-crisv32-low.c (the_low_target): Adjust.
13023 * linux-m32r-low.c (the_low_target): Adjust.
13024 * linux-m68k-low.c (the_low_target): Adjust.
13025 * linux-mips-low.c (the_low_target): Adjust.
13026 * linux-ppc-low.c (the_low_target): Adjust.
13027 * linux-s390-low.c (the_low_target): Adjust.
13028 * linux-sh-low.c (the_low_target): Adjust.
13029 * linux-sparc-low.c (the_low_target): Adjust.
13030 * linux-tic6x-low.c (the_low_target): Adjust.
13031 * linux-x86-low.c (the_low_target): Adjust.
13032 * linux-xtensa-low.c (the_low_target): Adjust.
13034 2012-03-26 Pedro Alves <palves@redhat.com>
13036 * server.c (handle_qxfer_libraries): Don't bail early if
13037 the_target->qxfer_libraries_svr4 is not NULL.
13039 2012-03-26 Pedro Alves <palves@redhat.com>
13041 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
13043 2012-03-23 Pedro Alves <palves@redhat.com>
13045 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
13046 "library-list-svr4" element's start tag when the the DSO list is
13049 2012-03-23 Pedro Alves <palves@redhat.com>
13051 * linux-low.c (read_one_ptr): Read the inferior's pointer through
13052 a variable whose type size is the same as the inferior's pointer
13055 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
13057 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
13059 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
13060 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
13061 * linux-low.h: Include <signal.h>.
13062 (struct siginfo): Remove forward declaration.
13063 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
13066 2012-03-21 Mike Frysinger <vapier@gentoo.org>
13068 * .gitignore: Ignore more files.
13070 2012-03-19 Pedro Alves <palves@redhat.com>
13071 Jan Kratochvil <jan.kratochvil@redhat.com>
13073 * server.c (cont_thread, general_thread): Add describing comments.
13074 (start_inferior): Clear `cont_thread'.
13075 (handle_v_cont): Don't set `cont_thread' if resuming all threads
13078 2012-03-15 Yao Qi <yao@codesourcery.com>
13080 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
13082 (cmd_qtdp): ... here.
13084 2012-03-15 Yao Qi <yao@codesourcery.com>
13086 * tracepoint.c (struct tracepoint_action_ops): New.
13087 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
13088 (m_tracepoint_action_download): New.
13089 (r_tracepoint_action_download): New.
13090 (x_tracepoint_action_download): New.
13091 (l_tracepoint_action_download): New.
13092 (add_tracepoint_action): Install `action->ops' according type.
13093 (download_tracepoint_1): Move code `download' function pointer
13094 of various tracepoint_action_ops.
13096 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13098 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
13099 linux_ptrace_attach_warnings.
13101 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13103 * Makefile.in (linux-ptrace.o): New.
13104 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
13105 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
13106 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
13107 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
13108 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
13110 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
13112 2012-03-08 Yao Qi <yao@codesourcery.com>
13113 Pedro Alves <palves@redhat.com>
13115 Fix PR server/13392.
13116 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
13117 offset of JMP insn.
13118 * tracepoint.c (remove_tracepoint): New.
13119 (cmd_qtdp): Call remove_tracepoint when failed to install.
13121 2012-03-07 Pedro Alves <palves@redhat.com>
13123 * linux-low.c (get_detach_signal): New.
13124 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
13125 Pass on pending signals to PTRACE_DETACH. Check the result of the
13127 * server.c (program_signals, program_signals_p): New.
13128 (handle_general_set): Handle QProgramSignals.
13129 * server.h (program_signals, program_signals_p): Declare.
13131 2012-03-05 Pedro Alves <palves@redhat.com>
13132 Jan Kratochvil <jan.kratochvil@redhat.com>
13134 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
13137 2012-03-03 Yao Qi <yao@codesourcery.com>
13139 * tracepoint.c (tracepoint_look_up_symbols): Update call to
13140 agent_look_up_symbols.
13142 2012-03-03 Yao Qi <yao@codesourcery.com>
13144 * Makefile.in (linux-low.o): Keep dependence on agent.h.
13145 (linux-x86-low.o): Likewise.
13146 * server.h: Remove in_process_agent_loaded.
13147 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
13151 2012-03-03 Yao Qi <yao@codesourcery.com>
13153 * tracepoint.c (gdb_agent_capability): New global.
13154 (in_process_agent_loaded_ust): Renamed to
13155 `in_process_agent_supports_ust'.
13157 (in_process_agent_supports_ust): Call agent_capability_check.
13158 (clear_installed_tracepoints): Assert that agent supports
13161 2012-03-03 Yao Qi <yao@codesourcery.com>
13163 * linux-low.c (linux_supports_agent): New.
13164 (linux_target_ops): Initialize field `supports_agent' with
13165 linux_supports_agent.
13166 * target.h (struct target_ops) <supports_agent>: New.
13167 (target_supports_agent): New macro.
13168 * server.c (handle_general_set): Handle packet 'QAgent'.
13169 (handle_query): Send `QAgent+'.
13170 * Makefile.in (server.o): Depends on agent.h.
13172 2012-03-03 Yao Qi <yao@codesourcery.com>
13174 * Makefile.in (OBS): Add agent.o.
13175 Add new rule for agent.o.
13176 Track dependence of tracepoint.c on agent.h.
13177 * tracepoint.c (run_inferior_command_1):
13178 (run_inferior_command): Call agent_run_command.
13179 (gdb_ust_connect_sync_socket): Deleted. Move it to
13181 (resume_thread, stop_thread): Likewise.
13182 (gdb_ust_socket_init): Renamed to ...
13183 (gdb_agent_socket_init): ... New.
13184 (gdb_ust_thread): Renamed to ...
13185 (gdb_agent_helper_thread): ... New.
13186 (gdb_ust_init): Move some code to ...
13187 (gdb_agent_init): ... here. New.
13188 [HAVE_UST]: Call gdb_ust_init.
13189 (initialize_tracepoint_ftlib): Call gdb_agent_init.
13190 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
13191 * config.in, configure: Regenerated.
13193 2012-03-02 Pedro Alves <palves@redhat.com>
13195 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
13196 * linux-low.c (struct simple_pid_list): New.
13197 (stopped_pids): New a struct simple_pid_list pointer.
13198 (add_to_pid_list, pull_pid_from_list): New.
13199 (handle_extended_wait): Don't assume the first signal new children
13200 report is SIGSTOP. Adjust call to pull_pid_from_list.
13201 (linux_wait_for_lwp): Adjust.
13203 2012-03-02 Yao Qi <yao@codesourcery.com>
13205 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
13208 2012-03-02 Yao Qi <yao@codesourcery.com>
13210 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
13211 `stop_pc' and `tpoint'. Update caller.
13213 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
13215 * linux-low.h (linux_target_ops): Add regset_bitmap member.
13216 * linux-low.c (use_linux_regsets): New macro.
13217 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
13218 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
13219 (linux_register_in_regsets): New function.
13220 (usr_fetch_inferior_registers): Skip registers covered by
13222 (usr_store_inferior_registers): Likewise.
13223 (usr_fetch_inferior_registers): New macro.
13224 (usr_store_inferior_registers): Likewise.
13225 (linux_fetch_registers): Handle mixed regset/non-regset targets.
13226 (linux_store_registers): Likewise.
13227 * linux-mips-low.c (init_registers_mips_dsp_linux): New
13229 (init_registers_mips64_dsp_linux): Likewise.
13230 (init_registers_mips_linux): New macro.
13231 (init_registers_mips_dsp_linux): Likewise.
13232 (mips_dsp_num_regs): Likewise.
13233 (DSP_BASE, DSP_CONTROL): New fallback macros.
13234 (mips_base_regs): New macro.
13235 (mips_regmap): Use it. Fix the size.
13236 (mips_dsp_regmap): New variable.
13237 (mips_dsp_regset_bitmap): Likewise.
13238 (mips_arch_setup): New function.
13239 (mips_cannot_fetch_register): Use the_low_target.regmap rather
13241 (mips_cannot_store_register): Likewise.
13242 (the_low_target): Update .arch_setup, .num_regs and .regmap
13243 initializers. Add .regset_bitmap initializer.
13244 * linux-arm-low.c (the_low_target): Add .regset_bitmap
13246 * linux-bfin-low.c (the_low_target): Likewise.
13247 * linux-cris-low.c (the_low_target): Likewise.
13248 * linux-crisv32-low.c (the_low_target): Likewise.
13249 * linux-ia64-low.c (the_low_target): Likewise.
13250 * linux-m32r-low.c (the_low_target): Likewise.
13251 * linux-m68k-low.c (the_low_target): Likewise.
13252 * linux-ppc-low.c (the_low_target): Likewise.
13253 * linux-s390-low.c (the_low_target): Likewise.
13254 * linux-sh-low.c (the_low_target): Likewise.
13255 * linux-sparc-low.c (the_low_target): Likewise.
13256 * linux-tic6x-low.c (the_low_target): Likewise.
13257 * linux-x86-low.c (the_low_target): Likewise.
13258 * linux-xtensa-low.c (the_low_target): Likewise.
13259 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
13260 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
13261 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
13263 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
13264 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
13266 2012-02-29 Yao Qi <yao@codesourcery.com>
13267 Pedro Alves <palves@redhat.com>
13269 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
13270 `step_over_finished' is true.
13272 2012-02-27 Pedro Alves <palves@redhat.com>
13274 * linux-low.c (pid_is_stopped): Delete, moved to common/.
13275 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
13277 2012-02-27 Pedro Alves <palves@redhat.com>
13280 * linux-low.c (pid_is_stopped): New.
13281 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
13283 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
13285 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
13288 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
13290 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
13292 2012-02-24 Luis Machado <lgustavo@codesourcery>
13294 * server.c (handle_query): Advertise support for target-side
13295 breakpoint condition evaluation.
13296 (process_point_options): New function.
13297 (process_serial_event): When inserting a breakpoint, check for
13298 a target-side condition that should be evaluated.
13300 * mem-break.c: Include regcache.h and ax.h.
13301 (point_cond_list_t): New data structure.
13302 (breakpoint) <cond_list>: New field.
13303 (find_gdb_breakpoint_at): Make non-static.
13304 (delete_gdb_breakpoint_at): Clear any target-side
13306 (clear_gdb_breakpoint_conditions): New function.
13307 (add_condition_to_breakpoint): Likewise.
13308 (add_breakpoint_condition): Likewise.
13309 (gdb_condition_true_at_breakpoint): Likewise.
13310 (gdb_breakpoint_here): Return result directly instead
13311 of going through a local variable.
13313 * mem-break.h (find_gdb_breakpoint_at): New prototype.
13314 (clear_gdb_breakpoint_conditions): Likewise.
13315 (add_breakpoint_condition): Likewise.
13316 (gdb_condition_true_at_breakpoint): Likewise.
13318 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
13319 (need_step_over_p): Take target-side breakpoint condition into
13322 2012-02-24 Luis Machado <lgustavo@codesourcery>
13324 * server.h: Include tracepoint.h.
13325 (agent_mem_read, agent_get_trace_state_variable_value,
13326 agent_set_trace_state_variable_value,
13327 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
13328 get_set_tsv_func_addr): New prototypes.
13330 * ax.h: New include file.
13331 * ax.c: New source file.
13333 * tracepoint.c: Include ax.h.
13334 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
13335 agent_expr, eval_result_type): Move to ax.h.
13336 (parse_agent_expr): Rename to ...
13337 (gdb_parse_agent_expr): ... this, make it non-static and move
13339 (unparse_agent_expr) Rename to ...
13340 (gdb_unparse_agent_expr): ... this, make it non-static and move
13342 (eval_agent_expr): Rename to ...
13343 (eval_tracepoint_agent_expr): ... this.
13344 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
13345 forward declarations.
13346 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
13347 (agent_get_trace_state_variable_value): New function.
13348 (agent_set_trace_state_variable_value): New function.
13349 (cmd_qtdp): Call gdb_parse_agent_expr (...).
13350 (response_tracepoint): Call gdb_unparse_agent_expr (...).
13351 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
13352 (condition_true_at_tracepoint): Likewise.
13353 (parse_agent_expr): Rename to ...
13354 (gdb_parse_agent_expr): ... this and move to ax.c.
13355 (unparse_agent_expr): Rename to ...
13356 (gdb_unparse_agent_expr): ... this and move to ax.c.
13357 (gdb_agent_op_name): Move to ax.c.
13358 (eval_agent_expr): Rename to ...
13359 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
13361 (eval_tracepoint_agent_expr): New function.
13362 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
13364 (current_insn_ptr, emit_error, struct bytecode_address): Move to
13366 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
13367 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
13368 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
13369 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
13370 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
13371 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
13372 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
13373 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
13374 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
13375 (compile_bytecodes): Remove forward declaration.
13376 (is_goto_target): Move to ax.c.
13377 (compile_bytecodes): Move to ax.c and call
13378 agent_get_trace_state_variable_value (...) and
13379 agent_set_trace_state_variable_value (...).
13381 * Makefile.in: Update ax.c and IPA dependencies.
13383 2012-02-24 Pedro Alves <palves@redhat.com>
13385 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
13386 (cmd_bigqtbuffer_circular): ... this. Only handle
13387 'QTBuffer:circular:'.
13388 (handle_tracepoint_general_set): Adjust.
13390 2012-02-16 Yao Qi <yao@codesourcery.com>
13392 * inferiors.c: Move code to ...
13393 * dll.c: .... here. New.
13394 * server.h: Declare clear_dlls.
13395 * Makefile.in (SFILES): Add dll.c.
13399 2012-02-11 Yao Qi <yao@codesourcery.com>
13401 * server.c: (handle_monitor_command): Add a new parameter
13403 (handle_query): Update caller.
13405 2012-02-09 Joel Brobecker <brobecker@adacore.com>
13407 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
13408 * configure, config.in: Regenerate.
13409 * hostio.c: Provide an alternate implementation if HAVE_READLINK
13412 2012-02-02 Pedro Alves <palves@redhat.com>
13414 Try SIGKILL first, then PTRACE_KILL.
13415 * linux-low.c (linux_kill_one_lwp): New.
13416 (linux_kill_one_lwp): Rename to ...
13417 (kill_one_lwp_callback): ... this. Use the new
13418 linux_kill_one_lwp.
13420 2012-02-02 Pedro Alves <palves@redhat.com>
13422 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
13425 2012-01-27 Pedro Alves <palves@redhat.com>
13427 * linux-low.c (linux_child_pid_to_exec_file): Delete.
13428 (elf_64_file_p): Make static.
13429 (linux_pid_exe_is_elf_64_file): New.
13430 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
13431 Delete declarations.
13432 (linux_pid_exe_is_elf_64_file): Declare.
13433 * linux-x86-low.c (x86_arch_setup): Use
13434 linux_pid_exe_is_elf_64_file.
13436 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
13438 * linux-low.c (linux_wait_for_event_1): Rename to ...
13439 (linux_wait_for_event): ... here and merge it with former
13440 linux_wait_for_event - new variable wait_ptid, use it.
13441 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
13443 2012-01-23 Pedro Alves <palves@redhat.com>
13445 * server.c (main): Avoid yet another case of infinite loop while
13446 detaching/killing after a longjmp.
13448 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13451 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
13453 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
13455 * hostio.c (handle_readlink): New function.
13456 (handle_vFile): Call it to handle "vFile:readlink" packets.
13458 2012-01-20 Pedro Alves <palves@redhat.com>
13459 Ulrich Weigand <ulrich.weigand@linaro.org>
13461 * server.c (handle_v_requests): Only support vAttach and vRun to
13462 start multiple processes when in extended protocol mode.
13464 2012-01-17 Pedro Alves <palves@redhat.com>
13466 * tracepoint.c (initialize_tracepoint): Use mmap instead of
13467 memalign plus mprotect to allocate the scratch buffer.
13469 2012-01-13 Pedro Alves <palves@redhat.com>
13471 * server.c (attach_inferior): Clear `cont_thread'.
13473 2012-01-13 Pedro Alves <palves@redhat.com>
13475 * server.c (main): Avoid infinite loop while detaching/killing
13478 2012-01-09 Doug Evans <dje@google.com>
13480 * server.c (start_inferior): Set last_ptid in --wrapper case.
13482 2012-01-06 Yao Qi <yao@codesourcery.com>
13484 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
13486 [IN_PROCESS_AGENT] (debug_agent): New global variable.
13488 2012-01-04 Yao Qi <yao@codesourcery.com>
13490 * tracepoint.c (cmd_qtdp): Print debug message
13491 for static tracepoint.
13493 2012-01-04 Yao Qi <yao@codesourcery.com>
13495 * tracepoint.c (trace_vdebug): Differentiate debug message
13496 between gdbserver and IPA.
13498 2012-01-03 Yao Qi <yao@codesourcery.com>
13500 * tracepoint.c (tracepoint_was_hit): Don't collect for
13503 2012-01-02 Joel Brobecker <brobecker@adacore.com>
13505 * terminal.h: Reformat copyright header.
13507 2012-01-02 Joel Brobecker <brobecker@adacore.com>
13509 * server.c (gdbserver_version): Update copyright year.
13510 * gdbreplay.c (gdbreplay_version): Likewise.
13512 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
13514 * linux-low.c (linux_create_inferior): Put empty if clause for write.
13517 2011-12-18 Hui Zhu <teawater@gmail.com>
13518 * linux-low.c (linux_create_inferior): Save return value to ret.
13520 2011-12-18 Hui Zhu <teawater@gmail.com>
13522 * linux-low.c (linux_create_inferior): Save return value to ret.
13524 2011-12-16 Doug Evans <dje@google.com>
13526 * linux-low.c (linux_create_inferior): If stdio connection,
13527 redirect stdin from /dev/null, stdout to stderr.
13528 * remote-utils.c (remote_is_stdio): New static global.
13529 (remote_connection_is_stdio): New function.
13530 (remote_prepare): Handle stdio connection.
13531 (remote_open): Ditto.
13532 (remote_close): Don't close stdin for stdio connections.
13533 (read_prim,write_prim): New functions. Replace all calls to
13534 read/write to these.
13535 * server.c (main): Watch for "-" argument. Move call to
13536 remote_prepare before start_inferior.
13537 * server.h (STDIO_CONNECTION_NAME): New macro.
13538 (remote_connection_is_stdio): Declare.
13540 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
13541 in debugging output.
13543 2011-12-15 Yao Qi <yao@codesourcery.com>
13545 * tracepoint.c: Include sys/syscall.h.
13546 (gdb_ust_thread): Remove preprocessor conditional.
13548 2011-12-14 Pedro Alves <pedro@codesourcery.com>
13550 * linux-low.c (linux_detach_one_lwp): Call
13551 the_low_target.prepare_to_resume before detaching.
13553 2011-12-14 Yao Qi <yao@codesourcery.com>
13555 * tracepoint.c (gdb_ust_thread): Don't ignore return value
13558 2011-12-14 Yao Qi <yao@codesourcery.com>
13560 * i386-low.c (i386_low_stopped_data_address): Initialize local
13561 variable `control'.
13563 2011-12-13 Pedro Alves <pedro@codesourcery.com>
13567 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
13568 DR_CONTROL unless necessary. Extend comments.
13569 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
13570 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
13572 2011-12-13 Yao Qi <yao@codesourcery.com>
13574 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
13576 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
13578 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
13580 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
13581 Print new debug message for such case.
13583 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
13585 Fix overlapping memcpy.
13586 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
13587 the read_inferior_memory transfer.
13588 (delete_fast_tracepoint_jump): New variable buf. Use it for the
13589 write_inferior_memory transfer.
13590 (set_fast_tracepoint_jump): New variable buf. Use it for the
13591 read_inferior_memory and write_inferior_memory transfers.
13592 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
13593 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
13594 Use it for the write_inferior_memory transfer.
13595 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
13598 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
13600 * linux-low.c (fetch_register, store_register): Make code
13601 consistent, fix formatting.
13603 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
13605 * linux-low.c (usr_store_inferior_registers): Factor out code
13606 to handle individual registers into...
13607 (store_register): ... this new function.
13609 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
13611 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
13612 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
13613 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
13614 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
13615 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
13616 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
13617 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
13618 (srv_xmlfiles): Add new XML files.
13620 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
13622 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
13623 (init_registers_s390_linux32v1): Add prototype.
13624 (init_registers_s390_linux32v2): Likewise.
13625 (init_registers_s390_linux64v1): Likewise.
13626 (init_registers_s390_linux64v2): Likewise.
13627 (init_registers_s390x_linux64v1): Likewise.
13628 (init_registers_s390x_linux64v2): Likewise.
13629 (s390_num_regs): Increment to 52.
13630 (s390_regmap): Add orig_r2 register.
13631 (s390_num_regs_3264): Increment to 68.
13632 (s390_regmap_3264): Add orig_r2 register.
13633 (s390_collect_ptrace_register): Handle orig_r2 register.
13634 (s390_supply_ptrace_register): Likewise.
13635 (s390_fill_last_break): New function.
13636 (s390_store_last_break): Likewise.
13637 (s390_fill_system_call): New function.
13638 (s390_store_system_call): Likewise.
13639 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
13641 (s390_check_regset): New function.
13642 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
13643 NT_S390_SYSTEM_CALL regsets and use appropriate description.
13644 Update target_regsets for available register sets.
13646 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
13647 Jan Kratochvil <jan.kratochvil@redhat.com>
13649 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
13650 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
13652 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
13653 * linux-low.h (struct process_info_private): New member r_debug.
13654 * server.c (handle_qxfer_libraries): Call
13655 the_target->qxfer_libraries_svr4.
13656 (handle_qxfer_libraries_svr4): New function.
13657 (qxfer_packets): New entry "libraries-svr4".
13658 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
13659 * target.h (struct target_ops): New member qxfer_libraries_svr4.
13660 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
13661 PACKET_qXfer_libraries_svr4.
13663 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
13665 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
13666 PSW address/mask between 8-byte and 16-byte formats.
13667 (s390_supply_ptrace_register): Likewise.
13668 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
13669 basic addressing mode bit.
13671 2011-11-24 Stan Shebs <stan@codesourcery.com>
13673 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
13675 2011-11-17 Stan Shebs <stan@codesourcery.com>
13677 * tracepoint.c (struct tracepoint): New field traceframe_usage.
13678 (tracing_start_time): New global.
13679 (tracing_stop_time): New global.
13680 (tracing_user_name): New global.
13681 (tracing_notes): New global.
13682 (tracing_stop_note): New global.
13683 (cmd_qtstart): Set traceframe_usage, start_time.
13684 (stop_tracing): Set stop_time.
13685 (cmd_qtstatus): Report additional status.
13686 (cmd_qtp): New function.
13687 (handle_tracepoint_query): Call it.
13688 (cmd_qtnotes): New function.
13689 (handle_tracepoint_general_set): Call it.
13690 (get_timestamp): Rename from tsv_get_timestamp.
13692 2011-11-14 Stan Shebs <stan@codesourcery.com>
13693 Kwok Cheung Yeung <kcy@codesourcery.com>
13695 * linux-x86-low.c (small_jump_insn): New.
13696 (i386_install_fast_tracepoint_jump_pad): Add arguments for
13697 trampoline and error message, build a trampoline and issue a small
13698 jump instruction to it.
13699 (x86_install_fast_tracepoint_jump_pad): Add arguments for
13700 trampoline and error message.
13701 (x86_get_min_fast_tracepoint_insn_len): New.
13702 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
13703 * linux-low.h (struct linux_target_ops): Add arguments to
13704 install_fast_tracepoint_jump_pad operation, add new operation.
13705 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
13707 (linux_get_min_fast_tracepoint_insn_len): New function.
13708 (linux_target_op): Add new operation.
13709 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
13710 (gdb_trampoline_buffer_end): Ditto.
13711 (gdb_trampoline_buffer_error): Ditto.
13712 (struct ipa_sym_addresses): Add fields for new IPA variables.
13713 (symbol_list): Add entries for new IPA variables.
13714 (struct tracepoint): Add fields to hold the address range of the
13715 trampoline used by the tracepoint.
13716 (trampoline_buffer_head): New static variable.
13717 (trampoline_buffer_tail): Ditto.
13718 (claim_trampoline_space): New function.
13719 (have_fast_tracepoint_trampoline_buffer): New function.
13720 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
13722 (install_fast_tracepoint): Ditto, also add error buffer argument.
13723 (cmd_qtminftpilen): New function.
13724 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
13725 (fast_tracepoint_from_trampoline_address): New function.
13726 (fast_tracepoint_collecting): Handle trampoline as part of jump
13728 (set_trampoline_buffer_space): New function.
13729 (initialize_tracepoint): Initialize new IPA variables.
13730 * target.h (struct target_ops): Add arguments to
13731 install_fast_tracepoint_jump_pad operation, add new
13732 get_min_fast_tracepoint_insn_len operation.
13733 (target_get_min_fast_tracepoint_insn_len): New.
13734 (install_fast_tracepoint_jump_pad): Add arguments.
13735 * server.h (IPA_BUFSIZ): Define.
13736 * linux-i386-ipa.c: Include extra header files.
13737 (initialize_fast_tracepoint_trampoline_buffer): New function.
13738 (initialize_low_tracepoint): Call it.
13739 * server.h (set_trampoline_buffer_space): Declare.
13740 (claim_trampoline_space): Ditto.
13741 (have_fast_tracepoint_trampoline_buffer): Ditto.
13743 2011-11-14 Yao Qi <yao@codesourcery.com>
13745 * server.c (handle_query): Handle InstallInTrace for qSupported.
13746 * tracepoint.c (add_tracepoint): Sort list.
13747 (install_tracepoint, download_tracepoint): New.
13748 (cmd_qtdp): Call them to install and download tracepoints.
13749 (sort_tracepoints): Removed.
13750 (cmd_qtstart): Update.
13752 2011-11-14 Yao Qi <yao@codesourcery.com>
13754 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
13755 * mem-break.h: Declare.
13756 * tracepoint.c (cmd_qtstart): Move some code to ...
13757 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
13759 (download_tracepoints): Move some code to ...
13760 (download_tracepoint_1): ... here. New.
13762 2011-11-08 Yao Qi <yao@codesourcery.com>
13764 * remote-utils.c (relocate_instruction): A comment fix.
13766 2011-11-07 Joel Brobecker <brobecker@adacore.com>
13768 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
13769 (i386_dr_low_get_control, i386_dr_low_get_status): Use
13770 dr_status_mirror and dr_control_mirror from debug_reg_state.
13771 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
13772 (i386_initial_stuff): Remove use of deleted globals.
13773 (i386_get_thread_context, i386_set_thread_context,
13774 i386_thread_added): Use dr_status_mirror and dr_control_mirror
13775 from debug_reg_state.
13777 2011-11-05 Yao Qi <yao@codesourcery.com>
13779 * tracepoint.c (gdb_collect): Loop over tracepoints of same
13780 address as TPOINT's.
13782 2011-11-02 Stan Shebs <stan@codesourcery.com>
13784 * tracepoint.c (agent_mem_read_string): New function.
13785 (eval_agent_expr): Call it for tracenz.
13786 * server.c (handle_query): Report support for tracenz.
13788 2011-11-02 Yao Qi <yao@codesourcery.com>
13790 * tracepoint.c (cmd_qtstart): Remove unused local variables.
13792 2011-11-02 Yao Qi <yao@codesourcery.com>
13794 * target.h: Fix a typo in comment.
13796 2011-10-31 Pedro Alves <pedro@codesourcery.com>
13798 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
13799 clobber the breakpoints' shadows with fast tracepoint jumps.
13800 * mem-break.h (check_mem_write): Add `myaddr' parameter.
13801 * target.c (write_inferior_memory): Also pass MYADDR down to
13804 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
13806 * configure.ac: Check support for personality routine.
13807 * configure: Regenerate.
13808 * config.in: Likewise.
13809 * linux-low.c: Include <sys/personality.h>.
13810 Define ADDR_NO_RANDOMIZE if necessary.
13811 (linux_create_inferior): Disable address space randomization when
13812 forking inferior, if requested.
13813 (linux_supports_disable_randomization): New function.
13814 (linux_target_ops): Install it.
13815 * server.h (disable_randomization): Declare.
13816 * server.c (disable_randomization): New global variable.
13817 (handle_general_set): Handle QDisableRandomization.
13818 (handle_query): Likewise for qSupported.
13819 (main): Support --disable-randomization and --no-disable-randomization
13820 command line arguments.
13821 * target.h (struct target_ops): Add supports_disable_randomization.
13822 (target_supports_disable_randomization): New macro.
13824 2011-09-29 Mike Frysinger <vapier@gentoo.org>
13826 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
13828 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
13829 [!PT_GETDSBT] (target_loadmap): New definition.
13830 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
13831 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
13832 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
13833 and PT_GETDSBT to LINUX_LOADMAP.
13834 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
13835 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
13837 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
13839 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
13840 (arm_linux_hwbp_cap): New static variable.
13841 (arm_linux_get_hwbp_cap): Replace by ...
13842 (arm_linux_init_hwbp_cap): ... this new function.
13843 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
13844 (arm_linux_get_hw_watchpoint_count): Likewise.
13845 (arm_linux_get_hw_watchpoint_max_length): Likewise.
13846 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
13847 (arm_prepare_to_resume): Use perror_with_name instead of error.
13849 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
13851 * linux-arm-low.c: Include <signal.h>.
13852 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
13853 (struct arm_linux_hwbp_cap): New data type.
13854 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
13855 (struct arm_linux_hw_breakpoint): New data type.
13856 (MAX_BPTS, MAX_WPTS): Define.
13857 (struct arch_process_info, struct arch_lwp_info): New data types.
13858 (arm_linux_get_hwbp_cap): New function.
13859 (arm_linux_get_hw_breakpoint_count): Likewise.
13860 (arm_linux_get_hw_watchpoint_count): Likewise.
13861 (arm_linux_get_hw_watchpoint_max_length): Likewise.
13862 (arm_hwbp_control_initialize): Likewise.
13863 (arm_hwbp_control_is_enabled): Likewise.
13864 (arm_hwbp_control_is_initialized): Likewise.
13865 (arm_hwbp_control_disable): Likewise.
13866 (arm_linux_hw_breakpoint_equal): Likewise.
13867 (arm_linux_hw_point_initialize): Likewise.
13868 (struct update_registers_data): New data structure.
13869 (update_registers_callback: New function.
13870 (arm_insert_point): Likewise.
13871 (arm_remove_point): Likewise.
13872 (arm_stopped_by_watchpoint): Likewise.
13873 (arm_stopped_data_address): Likewise.
13874 (arm_new_process): Likewise.
13875 (arm_new_thread): Likewise.
13876 (arm_prepare_to_resume): Likewise.
13877 (the_low_target): Register arm_insert_point, arm_remove_point,
13878 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
13879 arm_new_thread, and arm_prepare_to_resume.
13881 2011-09-15 Stan Shebs <stan@codesourcery.com>
13883 * server.h (struct emit_ops): Add compare-goto fields.
13884 * tracepoint.c (gdb_agent_op_sizes): New table.
13885 (emit_eq_goto): New function.
13886 (emit_ne_goto): New function.
13887 (emit_lt_goto): New function.
13888 (emit_le_goto): New function.
13889 (emit_gt_goto): New function.
13890 (emit_ge_goto): New function.
13891 (is_goto_target): New function.
13892 (compile_bytecodes): Recognize special cases of compare-goto
13893 combinations and call specialized emitters for them.
13894 * linux-x86-low.c (amd64_emit_eq_goto): New function.
13895 (amd64_emit_ne_goto): New function.
13896 (amd64_emit_lt_goto): New function.
13897 (amd64_emit_le_goto): New function.
13898 (amd64_emit_gt_goto): New function.
13899 (amd64_emit_ge_goto): New function.
13900 (amd64_emit_ops): Add the new functions.
13901 (i386_emit_eq_goto): New function.
13902 (i386_emit_ne_goto): New function.
13903 (i386_emit_lt_goto): New function.
13904 (i386_emit_le_goto): New function.
13905 (i386_emit_gt_goto): New function.
13906 (i386_emit_ge_goto): New function.
13907 (i386_emit_ops): Add the new functions.
13909 2011-09-08 Stan Shebs <stan@codesourcery.com>
13911 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
13912 (i386_emit_epilogue): Restore %ebx.
13914 2011-08-31 Jie Zhang <jzhang918@gmail.com>
13916 * server.c (step_thread): Remove definition.
13917 (process_serial_event): Don't handle Hs.
13918 * server.h (step_thread): Remove declaration.
13919 * target.c (set_desired_inferior): Remove use of step_thread.
13921 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
13923 * linux-low.c: Include linux-procfs.h.
13924 (linux_attach_lwp_1): Update comments.
13925 (linux_attach): Scan for existing threads when attaching to a
13926 process that is the tgid.
13927 * Makefile.in: Update dependencies.
13929 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
13931 * configure.srv: Add linux-procfs.o dependencies.
13933 2011-08-14 Yao Qi <yao@codesourcery.com>
13935 * target.h (struct target_ops): Fix indent.
13936 * win32-low.c (win32_target_ops): Fix comment.
13938 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
13939 Yao Qi <yao@codesourcery.com>
13941 * Makefile.in (clean): Remove tic6x-*.c files.
13942 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
13943 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
13944 (tic6x-c64xp-linux.c): Likewise.
13945 * configure.srv: Add support for tic6x-*-uclinux.
13946 * linux-tic6x-low.c: New.
13947 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
13949 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
13950 Yao Qi <yao@codesourcery.com>
13952 * target.h (struct target_ops): Add read_loadmap.
13953 * linux-low.c (struct target_loadseg): New type.
13954 (struct target_loadmap): New type.
13955 (linux_read_loadmap): New function.
13956 (linux_target_ops): Add linux_read_loadmap.
13957 * server.c (handle_query): Support qXfer:fdpic:read packet.
13958 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
13961 2011-08-05 Eli Zaretskii <eliz@gnu.org>
13963 * win32-low.c: Include <stdint.h>.
13965 2011-07-22 Pedro Alves <pedro@codesourcery.com>
13967 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
13968 to the inferior here.
13969 (i386_remove_aligned_watchpoint): Ditto.
13970 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
13971 fit part of the watchpoint in the debug registers.
13972 (i386_update_inferior_debug_regs): New.
13973 (i386_low_insert_watchpoint): Work on a local mirror of the debug
13974 registers, and only update the inferior on success.
13975 (i386_low_remove_watchpoint): Ditto.
13977 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
13979 * linux-low.c (compare_ints, unique, list_threads, show_process,
13980 linux_core_of_thread): Delete.
13981 (linux_target_ops): Change linux_core_of_thread to
13982 linux_common_core_of_thread.
13983 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
13984 * utils.c (malloc_failure): Change type of argument.
13985 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
13986 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
13987 common/linux-osdata.c, common/ptid.c and common/buffer.c.
13988 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
13989 (IPA_OBJS): Add common-utils-ipa.o.
13990 (ptid_h, linux_osdata_h): New macros.
13991 (server_h): Add common/common-utils.h, common/xml-utils.h,
13992 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
13994 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
13995 ptid.o, buffer.o): New rules.
13996 (linux-low.o): Add common/linux-osdata.h as a dependency.
13997 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
13998 * configure.ac: Add AC_HEADER_DIRENT check.
13999 * config.in: Regenerate.
14000 * configure: Regenerate.
14001 * remote-utils.c (xml_escape_text): Delete.
14002 (buffer_grow, buffer_free, buffer_init, buffer_finish,
14003 buffer_xml_printf): Move to common/buffer.c.
14004 * server.c (main): Remove call to initialize_inferiors.
14005 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
14006 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
14007 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
14008 internal_error, gdb_assert, gdb_assert_fail): Delete.
14009 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
14010 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
14012 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
14013 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
14014 initialize_inferiors): Delete.
14016 2011-07-20 Pedro Alves <pedro@codesourcery.com>
14018 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
14021 2011-05-31 Pedro Alves <pedro@codesourcery.com>
14023 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
14025 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
14027 2011-05-26 Yao Qi <yao@codesourcery.com>
14029 * Makefile.in (thread-db.o): Track dependence to
14030 common/gdb_thread_db.h.
14031 * thread-db.c: include gdb_thread_db.h from right place.
14033 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
14035 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
14036 __FILE__ and __LINE__ to internal_error.
14038 2011-05-13 Doug Evans <dje@google.com>
14040 * thread-db.c (try_thread_db_load_from_sdir): New function.
14041 (try_thread_db_load_from_dir): New function.
14042 (thread_db_load_search): Handle $sdir, ignore $pdir.
14043 Remove trying of system directories if search of
14044 libthread-db-search-path fails, that is now done via $sdir.
14046 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
14048 * server.c (handle_query): Add EnableDisableTracepoints to the list
14049 of supported features.
14050 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
14052 (cmd_qtenable_disable): New.
14053 (cmd_qtstart): Install tracepoints even if disabled.
14054 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
14055 receiving a QTEnable or QTDisable packet.
14056 (gdb_collect): Skip data collection if fast tracepoint is disabled.
14057 (ust_marker_to_static_tracepoint): Do not ignore disabled static
14059 (gdb_probe): Skip data collection if static tracepoint is disabled.
14061 2011-05-10 Doug Evans <dje@google.com>
14063 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
14065 2011-05-04 Doug Evans <dje@google.com>
14067 * linux-low.c (linux_join): Skip process lookup.
14068 * spu-low.c (spu_join): Ditto.
14069 * server.c (join_inferiors_callback): Delete.
14070 (process_serial_event): For 'D' packet (detach) call join_inferior
14073 2011-05-04 Joseph Myers <joseph@codesourcery.com>
14075 * README: Don't mention xscale*-*-linux*.
14076 * configure.srv (xscale*-*-linux*): Don't handle target.
14078 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
14080 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
14082 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
14083 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
14084 (i386_emit_void_call_2): Likewise.
14086 2011-04-26 Yao Qi <yao@codesourcery.com>
14088 * linux-low.c: Move common macros to linux-ptrace.h.
14089 Include linux-ptrace.h.
14090 * Makefile.in (linux_ptrace_h): New.
14091 (linux-low.o): Depends on linux-ptrace.h.
14093 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
14095 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
14096 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
14097 (remote_prepare): New function with most of the TCP code from ...
14098 (remote_open): ... here. Detect PORT here unconditionally. Move also
14099 setting transport_is_reliable.
14100 * server.c (run_once): New variable.
14101 (gdbserver_usage): Document it.
14102 (main): Set run_once for `--once'. Call remote_prepare. Exit after
14103 the first run if RUN_ONCE.
14104 * server.h (run_once, remote_prepare): New declarations.
14106 2011-04-19 Tom Tromey <tromey@redhat.com>
14108 * win32-low.c (handle_load_dll): Remove duplicate "the".
14110 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
14112 Remove support for old Cygwin 1.5 versions.
14113 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
14114 function to avoid warning.
14115 (win32_add_one_solib): Use cygwin_conv_path function to avoid
14118 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
14120 * gdbserver/server.h (Macro _): Define it if not available.
14122 2011-03-14 Michael Snyder <msnyder@vmware.com>
14124 * hostio.c (handle_close): Remove unnecessary null test.
14126 2011-03-10 Joel Brobecker <brobecker@adacore.com>
14128 * Makefile.in (maintainer-clean realclean distclean): Remove
14129 "make ... subdir_do" command.
14131 2011-03-10 Michael Snyder <msnyder@vmware.com>
14133 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
14135 * server.c (handle_v_run): Free alloced buffer on early return.
14137 2011-03-09 Yao Qi <yao@codesourcery.com>
14140 2011-03-04 Yao Qi <yao@codesourcery.com>
14142 * Makefile.in: Remove GNU make feature --directory.
14144 2011-03-05 Yao Qi <yao@codesourcery.com>
14146 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
14147 (subdir_do): New make target. Copied from gdb/Makefile.
14148 (maintainer-clean, realclean, distclean, clean): Call corresponding
14149 make targets in common/Makefile.
14151 2011-02-11 Yao Qi <yao@codesourcery.com>
14153 * configure.ac: Call AC_PROG_RANLIB.
14154 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
14155 * configure: Regenerate.
14157 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14159 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
14161 2011-03-06 Yao Qi <yao@codesourcery.com>
14163 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
14165 2011-03-05 Yao Qi <yao@codesourcery.com>
14167 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
14168 (subdir_do): New make target. Copied from gdb/Makefile.
14169 (maintainer-clean, realclean, distclean, clean): Call corresponding
14170 make targets in common/Makefile.
14172 2011-03-04 Yao Qi <yao@codesourcery.com>
14174 * Makefile.in: Remove GNU make feature --directory.
14176 2011-03-04 Michael Snyder <msnyder@vmware.com>
14178 * server.c (queue_stop_reply): Call xmalloc not malloc.
14180 2011-03-02 Michael Snyder <msnyder@vmware.com>
14182 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
14184 2011-02-28 Michael Snyder <msnyder@vmware.com>
14186 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
14187 (cmd_qtframe): Ditto.
14188 (cmd_qtbuffer): Ditto.
14189 (cmd_bigqtbuffer): Ditto.
14191 * utils.c (decimal2str): Initialize 'width' to nine, then
14192 don't mess with it.
14194 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
14196 * hostio.c (require_data): Free *data, not data.
14198 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14200 * hostio.c (require_data): Use free, not xfree.
14202 2011-02-27 Michael Snyder <msnyder@vmware.com>
14204 * server.c (handle_query): Discard unused value.
14206 * hostio.c (require_data): Free malloc memory before returning
14209 2011-02-26 Michael Snyder <msnyder@vmware.com>
14211 * linux-low.c (list_threads): Call closedir for dirent.
14213 2011-02-27 Michael Snyder <msnyder@vmware.com>
14215 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
14216 a case statement falls through.
14218 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
14220 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
14223 2011-02-26 Michael Snyder <msnyder@vmware.com>
14225 * utils.c (decimal2str): Eliminate dead code and dead param.
14226 (pulongest): Drop dead param from call to decimal2str.
14229 2011-02-24 Joel Brobecker <brobecker@adacore.com>
14231 Revert the following patch (not approved yet):
14232 2011-02-21 Hui Zhu <teawater@gmail.com>
14233 * tracepoint.c (tp_printf): New function.
14234 (eval_agent_expr): Handle gdb_agent_op_printf.
14236 2011-02-21 Hui Zhu <teawater@gmail.com>
14238 * tracepoint.c (tp_printf): New function.
14239 (eval_agent_expr): Handle gdb_agent_op_printf.
14241 2011-02-18 Tom Tromey <tromey@redhat.com>
14243 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
14244 (tracepoint.o): Likewise.
14245 * tracepoint.c (enum gdb_agent_op): Use ax.def.
14246 (gdb_agent_op_names): Likewise.
14248 2011-02-18 Tom Tromey <tromey@redhat.com>
14250 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
14251 gdb_agent_op_rot>: New constants.
14252 (gdb_agent_op_names): Add pick and roll.
14253 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
14256 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
14258 * aclocal.m4: Regenerated with aclocal-1.11.1.
14260 2011-02-14 Pedro Alves <pedro@codesourcery.com>
14262 * server.c (handle_qxfer_traceframe_info): New.
14263 (qxfer_packets): Register "traceframe-info".
14264 (handle_query): Report support for qXfer:traceframe-info:read+.
14265 * tracepoint.c (match_blocktype): New.
14266 (traceframe_find_block_type): Rename to ...
14267 (traceframe_walk_blocks): ... this. Add callback filter argument,
14269 (traceframe_find_block_type): New, reimplemented on top of
14270 traceframe_walk_blocks.
14271 (build_traceframe_info_xml): New.
14272 (traceframe_read_info): New.
14273 * server.h (traceframe_read_info): Declare.
14275 2011-02-11 Yao Qi <yao@codesourcery.com>
14277 * configure.ac: Call AC_PROG_RANLIB.
14278 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
14279 * configure: Regenerate.
14281 2011-02-07 Pedro Alves <pedro@codesourcery.com>
14283 * server.c (gdb_read_memory): Change return semantics to allow
14285 (handle_search_memory_1): Adjust.
14286 (process_serial_event) <'m' packet>: Handle partial transfers.
14287 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
14289 2011-01-28 Pedro Alves <pedro@codesourcery.com>
14291 * regcache.c (init_register_cache): Initialize
14292 regcache->register_status.
14293 (free_register_cache): Release regcache->register_status.
14294 (regcache_cpy): Copy register_status.
14295 (registers_to_string): Print 'x's for unavailable registers.
14296 (supply_register): Mark the register's status valid or
14297 unavailable, depending on whether a buffer was passed in or not.
14298 (supply_register_zeroed): New.
14299 (supply_regblock): Mark the registers' status valid or
14300 unavailable, depending on whether a buffer was passed in or not.
14301 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
14302 (struct regcache): New `register_status' field.
14303 (supply_register_zeroed): Declare.
14304 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
14305 supply_register_zeroed, rather than passing a NULL buffer to
14307 * tracepoint.c (fetch_traceframe_registers): Update comment.
14309 2011-01-28 Pedro Alves <pedro@codesourcery.com>
14311 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
14314 2011-01-25 Pedro Alves <pedro@codesourcery.com>
14316 * server.h (decode_xfer_write): Change prototype.
14317 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
14318 and don't extract the annex here.
14319 * server.c (decode_xfer_read): Remove `annex' parameter,
14320 and don't extract the annex here.
14321 (decode_xfer): New.
14322 (struct qxfer): New.
14323 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
14324 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
14325 (handle_qxfer_statictrace): New functions, abstracted out from
14326 handle_query, and made to use the struct qxfer interface.
14327 (handle_threads_qxfer_proper): Rename to ...
14328 (handle_qxfer_threads_proper): ... this.
14329 (handle_threads_qxfer): Rename to ...
14330 (handle_qxfer_threads): ... this. Adjust.
14331 (qxfer_packets): New array.
14332 (handle_qxfer): New function.
14333 (handle_query): Use handle_qxfer.
14335 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
14337 * gdbreplay.c: Shorten lines of >= 80 columns.
14338 * linux-low.c: Ditto.
14339 * linux-ppc-low.c: Ditto.
14340 * linux-s390-low.c: Ditto.
14341 * linux-sparc-low.c: Ditto.
14342 * linux-x86-low.c: Ditto.
14343 * linux-xtensa-low.c: Ditto.
14344 * mem-break.c: Ditto.
14345 * nto-low.c: Ditto.
14346 * regcache.h: Ditto.
14347 * remote-utils.c: Ditto.
14350 * thread-db.c: Ditto.
14351 * tracepoint.c: Ditto.
14353 * win32-low.h: Ditto.
14355 2011-01-05 Joel Brobecker <brobecker@adacore.com>
14357 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
14360 2011-01-01 Joel Brobecker <brobecker@adacore.com>
14362 * server.c (gdbserver_version): Update copyright year in version
14364 * gdbreplay.c (gdbreplay_version): Ditto.
14366 2010-12-29 Jie Zhang <jie.zhang@analog.com>
14368 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
14369 * linux-bfin-low.c: New file.
14370 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
14371 PT_DATA_ADDR for BFIN targets.
14372 * Makefile.in (SFILES): Add linux-bfin-low.c.
14373 (clean): Remove reg-bfin.c.
14374 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
14375 * README: Mention supported Blackfin targets.
14377 2010-12-23 Mike Frysinger <vapier@gentoo.org>
14379 * .gitignore: New file.
14381 2010-11-16 Mike Frysinger <vapier@gentoo.org>
14383 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
14385 2010-10-22 Jie Zhang <jie@codesourcery.com>
14387 * Makefile.in: Add FLAGS_TO_PASS variable.
14388 (install): Remove dependency of install-only and recursively
14389 invoke make for install-only.
14391 2010-10-04 Doug Evans <dje@google.com>
14393 * Makefile.in (uninstall): Use $(DESTDIR).
14395 2010-09-24 Pedro Alves <pedro@codesourcery.com>
14399 * linux-x86-low.c (compat_siginfo_from_siginfo)
14400 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
14401 si_code is < 0. Check for si_code == SI_TIMER before checking for
14404 2010-09-13 Joel Brobecker <brobecker@adacore.com>
14406 * lynx-i386-low.c: New file.
14407 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
14409 2010-09-13 Joel Brobecker <brobecker@adacore.com>
14411 * lynx-low.c (ptrace_request_to_str): Remove handling for
14412 request values that have been removed in LynxOS 5.x.
14414 2010-09-13 Joel Brobecker <brobecker@adacore.com>
14416 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
14419 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
14421 * configure.ac: Add --enable-inprocess-agent option.
14422 * configure: Rebuilt.
14424 2010-09-06 Yao Qi <yao@codesourcery.com>
14426 * linux-low.c (linux_kill): Remove unused variable.
14427 (linux_stabilize_threads): Likewise.
14428 * server.c (start_inferior): Likewise.
14429 (queue_stop_reply_callback): Likewise.
14430 * tracepoint.c (do_action_at_tracepoint): Likewise.
14432 2010-09-06 Yao Qi <yao@codesourcery.com>
14434 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
14437 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
14439 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
14441 2010-09-06 Pedro Alves <pedro@codesourcery.com>
14443 * Makefile.in (install-only): Replace $IPA_DEPFILES with
14446 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14448 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
14449 gdbserver/lynx-ppc-low.c: New files.
14450 * Makefile.in (lynx_low_h): New variable.
14451 (lynx-low.o, lynx-ppc-low.o): New rules.
14452 * configure.ac: On LynxOS, link with -lnetinet.
14453 * configure.srv: Add handling of powerpc-*-lynxos* targets.
14454 * configure: regenerate.
14456 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14458 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
14459 * configure.ac: Add check for vasprintf and vsnprintf.
14460 * configure, config.in: Regenerate.
14461 * server.h (vasprintf, vsnprintf): Add conditional declarations.
14463 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14465 * gdbreplay.c: Move include of alloca.h up, next to include of
14467 * server.h: Add include of malloc.h.
14468 * mem-break.c: Remove include of malloc.h.
14469 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
14471 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14473 * Makefile.in (memmem.o): Build with -Wno-error.
14475 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14477 * utils.c (xsnprintf): Make non-static.
14478 * server.h: Add xsnprintf declaration.
14479 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
14480 replace calls to snprintf by calls to xsnprintf throughout.
14482 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14484 * configure.ac: Add configure check for alloca.
14485 * configure, config.in: Regenerate.
14486 * server.h: Include alloca.h if it exists.
14487 * gdbreplay.c: Include alloca.h if it exists.
14489 2010-08-28 Pedro Alves <pedro@codesourcery.com>
14491 * linux-low.c (__SIGRTMIN): Define if not already defined.
14492 (linux_create_inferior): Check for __ANDROID__ rather than
14494 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
14495 are already deferred.
14496 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
14497 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
14498 stopped and already has a pending signal to report.
14499 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
14500 a pending signal to report or is moving out of a jump pad.
14501 (linux_init_signals): Check for __ANDROID__ rather than
14504 2010-08-28 Pedro Alves <pedro@codesourcery.com>
14506 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
14507 debug_threads check. Avoid a linear search when not doing debug
14510 2010-08-27 Pedro Alves <pedro@codesourcery.com>
14512 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
14513 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
14514 (struct file_handler) <fd>: Change type to gdb_fildes_t.
14515 (process_event): Change local fd's type to gdb_fildes_t.
14516 (create_file_handler): Adjust prototype.
14517 (delete_file_handler): Adjust prototype.
14518 (handle_file_event): Adjust prototype. Use pfildes.
14519 (create_file_event): Adjsut prototype.
14520 * remote-utils.c (remote_desc, listen_desc): Change type to
14522 * server.h: New gdb_fildes_t typedef.
14523 [USE_WIN32API]: Include winsock2.h.
14524 (delete_file_handler, add_file_handler): Adjust prototypes.
14525 (pfildes): Declare.
14526 * utils.c (pfildes): New.
14528 2010-08-27 Pedro Alves <pedro@codesourcery.com>
14530 * configure.ac (build_warnings): Add -Wno-char-subscripts.
14531 * configure: Regenerate.
14533 2010-08-27 Pedro Alves <pedro@codesourcery.com>
14535 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
14536 (linux_done_accessing_memory): ... this.
14537 (linux_target_ops): Adjust.
14538 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
14539 * nto-low.c (nto_target_ops): Adjust comment.
14540 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
14541 * spu-low.c (spu_target_ops): Adjust comment.
14542 * target.h (target_ops): Rename unprepare_to_access_memory field
14543 to done_accessing_memory.
14544 (unprepare_to_access_memory): Rename to ...
14545 (done_accessing_memory): ... this.
14547 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14549 * linux-low.c (linux_prepare_to_access_memory): New.
14550 (linux_unprepare_to_access_memory): New.
14551 (linux_target_ops): Install them.
14552 * server.c (read_memory): Rename to ...
14553 (gdb_read_memory): ... this. Use
14554 prepare_to_access_memory/prepare_to_access_memory.
14555 (write_memory): Rename to ...
14556 (gdb_write_memory): ... this. Use
14557 prepare_to_access_memory/prepare_to_access_memory.
14558 (handle_search_memory_1): Adjust.
14559 (process_serial_event): Adjust.
14560 * target.h (struct target_ops): New fields
14561 prepare_to_access_memory and unprepare_to_access_memory.
14562 (prepare_to_access_memory, unprepare_to_access_memory): New.
14563 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
14564 prepare_to_access_memory/prepare_to_access_memory.
14565 * nto-low.c (nto_target_ops): Adjust.
14566 * spu-low.c (spu_target_ops): Adjust.
14567 * win32-low.c (win32_target_ops): Adjust.
14569 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14571 * Makefile.in (WARN_CFLAGS): Get it from configure.
14572 (WERROR_CFLAGS): New.
14573 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
14574 * configure.ac: Introduce --enable-werror, which adds -Werror to
14575 the compiler command line. Enabled by default. Disable with
14576 --disable-werror. Add -Wdeclaration-after-statement
14577 Wpointer-arith and -Wformat-nonliteral to warning flags.
14578 * configure: Regenerate.
14580 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14582 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
14584 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14586 * gdbreplay.c (remote_error): New.
14588 (expect): Use gdbchar. Check for error reading from GDB.
14589 Clarify sync error output.
14590 (play): Check for errors writing to GDB.
14591 * linux-low.c (sigchld_handler): Really ignore `write' errors.
14592 * remote-utils.c (getpkt): Check for errors writing to the remote
14595 2010-08-25 Pedro Alves <pedro@codesourcery.com>
14597 * linux-low.c (linux_wait_1): Move non-debugging code out of
14598 `debug_threads' control.
14600 2010-08-25 Pedro Alves <pedro@codesourcery.com>
14602 * linux-low.c (linux_wait_1): Don't set last_status here.
14603 * server.c (push_event, queue_stop_reply_callback): Assert we're
14604 not pushing a TARGET_WAITKIND_IGNORE event.
14605 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
14606 (myresume, handle_target_event): Set the thread's last_resume_kind
14607 and last_status from the target returned status.
14609 2010-08-25 Pedro Alves <pedro@codesourcery.com>
14613 * linux-x86-low.c (update_debug_registers_callback): New.
14614 (i386_dr_low_set_addr): Use it.
14615 (i386_dr_low_get_addr): New.
14616 (i386_dr_low_set_control): Use update_debug_registers_callback.
14617 (i386_dr_low_get_control): New.
14618 (i386_dr_low_get_status): Adjust.
14619 * linux-low.c (linux_stop_lwp): New.
14620 * linux-low.h (linux_stop_lwp): Declare.
14622 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
14623 argument instead of a i386_debug_reg_state.
14624 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
14625 a i386_debug_reg_state.
14626 (i386_insert_aligned_watchpoint): Adjust.
14627 (i386_remove_aligned_watchpoint): Adjust.
14628 (i386_low_stopped_data_address): Read the debug registers from the
14629 inferior instead of from the mirrors.
14630 * i386-low.h (struct i386_debug_reg_state): Extend comment.
14631 (i386_dr_low_get_addr): Declare.
14632 (i386_dr_low_get_control): Declare.
14633 (i386_dr_low_get_status): Change prototype.
14635 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
14636 (i386_dr_low_get_addr): New.
14637 (i386_dr_low_get_control): New.
14638 (i386_dr_low_get_status): Adjust prototype. Return
14640 (i386_initial_stuff): Clear dr_status_mirror and
14642 (i386_get_thread_context): Adjust.
14643 (i386_set_thread_context): Adjust.
14644 (i386_thread_added): Adjust.
14646 2010-08-24 Pedro Alves <pedro@codesourcery.com>
14648 * linux-low.h (linux_thread_area): Delete declaration.
14650 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
14652 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
14653 after its termination.
14655 2010-08-09 Pedro Alves <pedro@codesourcery.com>
14657 * linux-low.c (gdb_wants_lwp_stopped): Delete.
14658 (gdb_wants_all_stopped): Delete.
14659 (linux_wait_1): Don't call them.
14660 * server.c (handle_v_cont): Tag all threads as want-stopped.
14661 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
14662 stopped as "client-wants-stopped".
14664 2010-07-31 Pedro Alves <pedro@codesourcery.com>
14666 * Makefile.in (signals_h): New.
14667 (server_h): Depend on it.
14668 (server.o): Don't depend on $(signals_def).
14669 (signals.o): Depend on $(signals_def).
14671 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
14673 * Makefile.in (signals_def): New.
14674 (server_h): Append include/gdb/signals.h and signals_def.
14675 (server.o): Append signals_def.
14677 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
14679 * server.c (handle_target_event): Use target_signal_to_host for
14680 resume_info.sig initialization.
14681 * target.h (struct thread_resume) <sig>: New comment.
14683 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
14685 * server.c (handle_query): strcpy() the returned string from paddress()
14686 instead of sprintf().
14687 * utils.c (paddress): Return phex_nz().
14689 2010-07-07 Joel Brobecker <brobecker@adacore.com>
14691 * server.c (handle_v_cont): Call mourn_inferior if process
14693 (myresume): Likewise.
14695 2010-07-01 Pedro Alves <pedro@codesourcery.com>
14697 Static tracepoints, and integration with UST.
14699 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
14700 * mem-break.c (uninsert_all_breakpoints)
14701 (reinsert_all_breakpoints): New.
14702 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
14703 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
14704 (gdb_agent_ust_loaded, helper_thread_id)
14705 (gdb_agent_helper_thread_id): New macros.
14706 (struct ipa_sym_addresses): Add addr_ust_loaded,
14707 addr_helper_thread_id, addr_cmd_buf.
14708 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
14709 (in_process_agent_loaded_ust): New.
14710 (write_e_ust_not_loaded): New.
14711 (maybe_write_ipa_ust_not_loaded): New.
14712 (struct collect_static_trace_data_action): New.
14713 (enum tracepoint_type) <static_tracepoint>: New.
14714 (struct tracepoint) <handle>: Mention static tracepoints.
14715 (struct static_tracepoint_ctx): New.
14716 (CMD_BUF_SIZE): New.
14717 (add_tracepoint_action): Handle static tracepoint actions.
14718 (unprobe_marker_at): New.
14719 (clear_installed_tracepoints): Handle static tracepoints.
14720 (cmd_qtdp): Handle static tracepoints.
14721 (probe_marker_at): New.
14722 (cmd_qtstart): Handle static tracepoints.
14723 (response_tracepoint): Handle static tracepoints.
14724 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
14725 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
14726 (get_context_regcache): Handle static tracepoints.
14727 (do_action_at_tracepoint): Handle static tracepoint actions.
14728 (traceframe_find_block_type): Handle static trace data blocks.
14729 (traceframe_read_sdata): New.
14730 (download_tracepoints): Download static tracepoint actions.
14731 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
14732 (GDB_PROBE_NAME): New.
14734 (GET_UST_SYM): New.
14737 (ust_marker_to_static_tracepoint): New.
14739 (collect_ust_data_at_tracepoint): New.
14740 (gdb_ust_probe): New.
14741 (UNIX_PATH_MAX, SOCK_DIR): New.
14742 (gdb_ust_connect_sync_socket): New.
14743 (resume_thread, stop_thread): New.
14744 (run_inferior_command): New.
14745 (init_named_socket): New.
14746 (gdb_ust_socket_init): New.
14747 (cstr_to_hexstr): New.
14749 (first_marker, next_marker): New.
14750 (response_ust_marker): New.
14751 (cmd_qtfstm, cmd_qtsstm): New.
14752 (unprobe_marker_at, probe_marker_at): New.
14753 (cmd_qtstmat, gdb_ust_thread): New.
14754 (gdb_ust_init): New.
14755 (initialize_tracepoint_ftlib): Call gdb_ust_init.
14756 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
14757 (ST_REGENTRY): New.
14758 (x86_64_st_collect_regmap): New.
14759 (X86_64_NUM_ST_COLLECT_GREGS): New.
14760 (AMD64_RIP_REGNUM): New.
14761 (supply_static_tracepoint_registers): New.
14762 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
14763 (ST_REGENTRY): New.
14764 (i386_st_collect_regmap): New.
14765 (i386_NUM_ST_COLLECT_GREGS): New.
14766 (supply_static_tracepoint_registers): New.
14767 * server.c (handle_query): Handle qXfer:statictrace:read.
14768 <qSupported>: Report support for StaticTracepoints, and
14769 qXfer:statictrace:read features.
14770 * server.h (traceframe_read_sdata)
14771 (supply_static_tracepoint_registers): Declare.
14772 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
14773 (unpack_varlen_hex): Include in IPA build.
14774 * Makefile.in (ustlibs, ustinc): New.
14775 (IPA_OBJS): Add remote-utils-ipa.o.
14776 ($(IPA_LIB)): Link -ldl and -lpthread.
14778 (IPAGENT_CFLAGS): Add UST_CFLAGS.
14779 * config.in, configure: Regenerate.
14781 2010-06-20 Ian Lance Taylor <iant@google.com>
14782 Pedro Alves <pedro@codesourcery.com>
14784 * linux-x86-low.c (always_true): Delete.
14785 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
14786 trying to fool the compiler with always_true.
14788 2010-06-20 Pedro Alves <pedro@codesourcery.com>
14790 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
14791 conditions in gdbserver.
14793 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
14795 * spu-low.c (spu_read_memory): Wrap around local store limit.
14796 (spu_write_memory): Likewise.
14798 2010-06-15 Pedro Alves <pedro@codesourcery.com>
14800 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
14801 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
14803 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
14805 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
14806 uses with LONGEST uses.
14808 2010-06-14 Stan Shebs <stan@codesourcery.com>
14809 Pedro Alves <pedro@codesourcery.com>
14813 * linux-x86-low.c: Include limits.h.
14815 (always_true): New.
14818 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
14819 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
14820 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
14821 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
14822 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
14823 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
14824 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
14825 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
14826 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
14827 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
14828 (amd64_emit_void_call_2): New.
14829 (amd64_emit_ops): New.
14830 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
14831 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
14832 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
14833 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
14834 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
14835 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
14836 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
14837 (i386_emit_call, i386_emit_reg, i386_emit_pop)
14838 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
14839 (i386_emit_stack_adjust, i386_emit_int_call_1)
14840 (i386_emit_void_call_2): New.
14841 (i386_emit_ops): New.
14842 (x86_emit_ops): New.
14843 (the_low_target): Install x86_emit_ops.
14844 * server.h (struct emit_ops): New.
14845 (get_raw_reg_func_addr): Declare.
14846 (current_insn_ptr, emit_error): Declare.
14847 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
14848 (set_trace_state_variable_value): New defines.
14849 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
14850 addr_get_trace_state_variable_value and
14851 addr_set_trace_state_variable_value.
14852 (symbol_list): New fields for get_raw_reg,
14853 get_trace_state_variable_value and set_trace_state_variable_value.
14854 (condfn): New typedef.
14855 (struct tracepoint): New field `compiled_cond'.
14856 (do_action_at_tracepoint): Clear compiled_cond.
14857 (get_trace_state_variable_value, set_trace_state_variable_value):
14859 (condition_true_at_tracepoint): If there's a compiled condition,
14861 (current_insn_ptr, emit_error): New globals.
14862 (struct bytecode_address): New.
14863 (get_raw_reg_func_addr): New.
14864 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
14865 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
14866 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
14867 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
14868 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
14869 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
14870 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
14871 (compile_tracepoint_condition, compile_bytecodes): New.
14872 * target.h (emit_ops): Forward declare.
14873 (struct target_ops): New field emit_ops.
14874 (target_emit_ops): New.
14875 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
14876 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
14877 * linux-low.c (linux_emit_ops): New.
14878 (linux_target_ops): Install it.
14879 * linux-low.h (struct linux_target_ops): New field emit_ops.
14881 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
14883 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
14884 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
14886 2010-06-01 Pedro Alves <pedro@codesourcery.com>
14887 Stan Shebs <stan@codesourcery.com>
14889 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
14890 (all): Depend on $(extra_libraries).
14891 (install-only): Install the IPA.
14892 (IPA_OBJS, IPA_LIB): New.
14893 (clean): Remove the IPA lib.
14894 (IPAGENT_CFLAGS): New.
14895 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
14896 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
14897 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
14898 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
14899 * configure.ac: Check for atomic builtins support in the compiler.
14900 (IPA_DEPFILES, extra_libraries): Define.
14901 * configure.srv (ipa_obj): Add description.
14902 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
14903 (i[34567]86-*-linux*): Set ipa_obj.
14904 (x86_64-*-linux*): Set ipa_obj.
14905 * linux-low.c (stabilizing_threads): New.
14906 (supports_fast_tracepoints): New.
14907 (linux_detach): Stabilize threads before detaching.
14908 (handle_tracepoints): Handle internal tracing breakpoints. Assert
14909 the lwp is either not stabilizing, or is moving out of a jump pad.
14910 (linux_fast_tracepoint_collecting): New.
14911 (maybe_move_out_of_jump_pad): New.
14912 (enqueue_one_deferred_signal): New.
14913 (dequeue_one_deferred_signal): New.
14914 (linux_wait_for_event_1): If moving out of a jump pad, defer
14915 pending signals to later.
14916 (linux_stabilize_threads): New.
14917 (linux_wait_1): Check if threads need moving out of jump pads, and
14919 (stuck_in_jump_pad_callback): New.
14920 (move_out_of_jump_pad_callback): New.
14921 (lwp_running): New.
14922 (linux_resume_one_lwp): Handle moving out of jump pads.
14923 (linux_set_resume_request): Dequeue deferred signals.
14924 (need_step_over_p): Also step over fast tracepoint jumps.
14925 (start_step_over): Also uninsert fast tracepoint jumps.
14926 (finish_step_over): Also reinsert fast tracepoint jumps.
14927 (linux_install_fast_tracepoint_jump): New.
14928 (linux_target_ops): Install linux_stabilize_threads and
14929 linux_install_fast_tracepoint_jump_pad.
14930 * linux-low.h (linux_target_ops) <get_thread_area,
14931 install_fast_tracepoint_jump_pad>: New fields.
14932 (struct lwp_info) <collecting_fast_tracepoint,
14933 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
14934 (linux_get_thread_area): Declare.
14935 * linux-x86-low.c (jump_insn): New.
14936 (x86_get_thread_area): New.
14937 (append_insns): New.
14938 (push_opcode): New.
14939 (amd64_install_fast_tracepoint_jump_pad): New.
14940 (i386_install_fast_tracepoint_jump_pad): New.
14941 (x86_install_fast_tracepoint_jump_pad): New.
14942 (the_low_target): Install x86_get_thread_area and
14943 x86_install_fast_tracepoint_jump_pad.
14944 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
14945 (struct fast_tracepoint_jump): New.
14946 (fast_tracepoint_jump_insn): New.
14947 (fast_tracepoint_jump_shadow): New.
14948 (find_fast_tracepoint_jump_at): New.
14949 (fast_tracepoint_jump_here): New.
14950 (delete_fast_tracepoint_jump): New.
14951 (set_fast_tracepoint_jump): New.
14952 (uninsert_fast_tracepoint_jumps_at): New.
14953 (reinsert_fast_tracepoint_jumps_at): New.
14954 (set_breakpoint_at): Use write_inferior_memory.
14955 (uninsert_raw_breakpoint): Use write_inferior_memory.
14956 (check_mem_read): Mask out fast tracepoint jumps.
14957 (check_mem_write): Mask out fast tracepoint jumps.
14958 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
14959 (set_fast_tracepoint_jump): Declare.
14960 (delete_fast_tracepoint_jump)
14961 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
14962 (reinsert_fast_tracepoint_jumps_at): Declare.
14963 * regcache.c: Don't compile many functions when building the
14964 in-process agent library.
14965 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
14966 the register buffer in the heap.
14967 (free_register_cache): If the register buffer isn't owned by the
14968 regcache, don't free it.
14969 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
14970 pre-existing register caches.
14971 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
14973 (convert_ascii_to_int): : Constify `from' parameter type.
14974 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
14975 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
14976 the needed buffer in-place.
14977 (relocate_instruction): New.
14978 * server.c (handle_query) <qSymbols>: If the target supports
14979 tracepoints, give it a chance of looking up symbols. Report
14980 support for fast tracepoints.
14981 (handle_status): Stabilize threads.
14982 (process_serial_event): Adjust.
14983 * server.h (struct fast_tracepoint_jump): Forward declare.
14984 (struct process_info) <fast_tracepoint_jumps>: New field.
14985 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
14986 (decode_X_packet, decode_M_packet): Adjust.
14987 (relocate_instruction): Declare.
14988 (in_process_agent_loaded): Declare.
14989 (tracepoint_look_up_symbols): Declare.
14990 (struct fast_tpoint_collect_status): Declare.
14991 (fast_tracepoint_collecting): Declare.
14992 (force_unlock_trace_buffer): Declare.
14993 (handle_tracepoint_bkpts): Declare.
14994 (initialize_low_tracepoint)
14995 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
14996 * target.h (struct target_ops) <stabilize_threads,
14997 install_fast_tracepoint_jump_pad>: New fields.
14998 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
14999 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
15000 [HAVE_STDINT_H]: Include stdint.h.
15001 (trace_debug_1): Rename to ...
15002 (trace_vdebug): ... this.
15003 (trace_debug): Rename to ...
15004 (trace_debug_1): ... this. Add `level' parameter.
15005 (trace_debug): New.
15006 (ATTR_USED, ATTR_NOINLINE): New.
15007 (IP_AGENT_EXPORT): New.
15008 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
15009 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
15010 (about_to_request_buffer_space, trace_buffer_is_full)
15011 (stopping_tracepoint, expr_eval_result, error_tracepoint)
15012 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
15013 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
15014 (traceframe_write_count, traceframes_created)
15015 (trace_state_variables)
15016 New renaming defines.
15017 (struct ipa_sym_addresses): New.
15018 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
15019 (symbol_list): New.
15020 (ipa_sym_addrs): New.
15021 (all_tracepoint_symbols_looked_up): New.
15022 (in_process_agent_loaded): New.
15023 (write_e_ipa_not_loaded): New.
15024 (maybe_write_ipa_not_loaded): New.
15025 (tracepoint_look_up_symbols): New.
15026 (debug_threads) [IN_PROCESS_AGENT]: New.
15027 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
15028 (UNKNOWN_SIDE_EFFECTS): New.
15029 (stop_tracing): New.
15030 (flush_trace_buffer): New.
15031 (stop_tracing_bkpt): New.
15032 (flush_trace_buffer_bkpt): New.
15033 (read_inferior_integer): New.
15034 (read_inferior_uinteger): New.
15035 (read_inferior_data_pointer): New.
15036 (write_inferior_data_pointer): New.
15037 (write_inferior_integer): New.
15038 (write_inferior_uinteger): New.
15039 (struct collect_static_trace_data_action): Delete.
15040 (enum tracepoint_type): New.
15041 (struct tracepoint) <type>: New field `type'.
15042 <actions_str, step_actions, step_actions_str>: Only include in
15044 <orig_size, obj_addr_on_target, adjusted_insn_addr>
15045 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
15046 (tracepoints): Use IP_AGENT_EXPORT.
15047 (last_tracepoint): Don't include in the IPA.
15048 (stopping_tracepoint): Use IP_AGENT_EXPORT.
15049 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
15050 (alloced_trace_state_variables): New.
15051 (trace_state_variables): Use IP_AGENT_EXPORT.
15052 (traceframe_t): Delete unused variable.
15053 (circular_trace_buffer): Don't include in the IPA.
15054 (trace_buffer_start): Delete.
15055 (struct trace_buffer_control): New.
15056 (trace_buffer_free): Delete.
15057 (struct ipa_trace_buffer_control): New.
15058 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
15059 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
15061 (trace_buffer_ctrl): New.
15062 (TRACE_BUFFER_CTRL_CURR): New.
15063 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
15064 Reimplement as macros.
15065 (trace_buffer_wrap): Delete.
15066 (traceframe_write_count, traceframe_read_count)
15067 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
15068 (struct tracepoint_hit_ctx) <type>: New field.
15069 (struct fast_tracepoint_ctx): New.
15070 (memory_barrier): New.
15072 (record_tracepoint_error): Update atomically in the IPA.
15073 (clear_inferior_trace_buffer): New.
15074 (about_to_request_buffer_space): New.
15075 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
15076 updating the same buffer.
15077 (add_tracepoint): Default the tracepoint's type to trap
15078 tracepoint, and orig_size to -1.
15079 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
15080 internal variables.
15081 (create_trace_state_variable): New parameter `gdb'. Handle it.
15082 (clear_installed_tracepoints): Clear fast tracepoint jumps.
15083 (cmd_qtdp): Handle fast tracepoints.
15084 (cmd_qtdv): Adjust.
15085 (max_jump_pad_size): New.
15086 (gdb_jump_pad_head): New.
15087 (get_jump_space_head): New.
15088 (claim_jump_space): New.
15089 (sort_tracepoints): New.
15090 (MAX_JUMP_SIZE): New.
15091 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
15093 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
15094 support. Upload fast traceframes, and delete internal IPA
15096 (stop_tracing_handler): New.
15097 (flush_trace_buffer_handler): New.
15098 (cmd_qtstop): Upload fast tracepoints.
15099 (response_tracepoint): Handle fast tracepoints.
15100 (tracepoint_finished_step): Upload fast traceframes. Set the
15101 tracepoint hit context's tracepoint type.
15102 (handle_tracepoint_bkpts): New.
15103 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
15104 type. Add comment about fast tracepoints.
15105 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
15106 non-existing action_str field.
15107 (get_context_regcache): Handle fast tracepoints.
15108 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
15110 (fast_tracepoint_from_jump_pad_address): New.
15111 (fast_tracepoint_from_ipa_tpoint_address): New.
15112 (collecting_t): New.
15113 (force_unlock_trace_buffer): New.
15114 (fast_tracepoint_collecting): New.
15116 (gdb_collect): New.
15117 (write_inferior_data_ptr): New.
15118 (target_tp_heap): New.
15119 (target_malloc): New.
15120 (download_agent_expr): New.
15122 (download_tracepoints): New.
15123 (download_trace_state_variables): New.
15124 (upload_fast_traceframes): New.
15125 (IPA_FIRST_TRACEFRAME): New.
15126 (IPA_NEXT_TRACEFRAME_1): New.
15127 (IPA_NEXT_TRACEFRAME): New.
15128 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
15129 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
15130 (gdb_jump_pad_buffer_end): New.
15131 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
15132 (initialize_tracepoint): Adjust.
15133 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
15134 buffer. Initialize the low module.
15135 * utils.c (PREFIX, TOOLNAME): New.
15136 (malloc_failure): Use PREFIX.
15137 (error): In the IPA, an error causes an exit.
15138 (fatal, warning): Use PREFIX.
15139 (internal_error): Use TOOLNAME.
15140 (NUMCELLS): Increase to 10.
15141 * configure, config.in: Regenerate.
15143 2010-06-01 Pedro Alves <pedro@codesourcery.com>
15145 * server.c (handle_query) <qSupported>: Do two passes over the
15146 qSupported string to avoid nesting strtok.
15148 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15150 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
15152 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
15153 -Wl,--dynamic-list.
15154 * configure: Regenerate.
15155 * proc-service.list: New.
15157 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15159 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
15162 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
15164 * gdbreplay.c (remote_open): Check error return from socket() call by
15165 its equality to -1 not by it being negative.
15166 * remote-utils.c (remote_open): Likewise.
15168 2010-05-23 Pedro Alves <pedro@codesourcery.com>
15170 * config.h: Regenerate.
15172 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
15174 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
15175 doesn't provide PTRACE_GET_THREAD_AREA.
15177 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
15179 * linux-m68k-low.c: Include <asm/ptrace.h>
15180 (ps_get_thread_area): Implement.
15182 2010-05-03 Doug Evans <dje@google.com>
15184 * event-loop.c (struct callback_event): New struct.
15185 (callback_list): New global.
15186 (append_callback_event, delete_callback_event): New functions.
15187 (process_callback): New function.
15188 (start_event_loop): Call it.
15189 * remote-utils.c (NOT_SCHEDULED): Define.
15190 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
15191 moved out of readchar.
15192 (readchar): Rewrite. Call reschedule before returning.
15193 (reset_readchar): New function.
15194 (remote_close): Call it.
15195 (process_remaining, reschedule): New functions.
15196 * server.h (callback_handler_func): New typedef.
15197 (append_callback_event, delete_callback_event): Declare.
15199 2010-05-03 Pedro Alves <pedro@codesourcery.com>
15201 * proc-service.c (ps_pglobal_lookup): Use
15202 thread_db_look_up_one_symbol.
15203 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
15204 parameter. Use it instead of all_symbols_looked_up.
15205 * server.h (struct process_info) <all_symbols_looked_up>: Delete
15207 (all_symbols_looked_up): Don't declare.
15208 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
15209 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
15211 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
15212 Set all_symbols_looked_up here.
15213 (thread_db_look_up_one_symbol): New.
15214 (thread_db_get_tls_address): Adjust.
15215 (thread_db_load_search, try_thread_db_load_1): Always allocate the
15216 thread_db object on the heap, and tentatively set it in the
15218 (thread_db_init): Don't set all_symbols_looked_up here.
15219 * linux-low.h (thread_db_look_up_one_symbol): Declare.
15221 2010-05-03 Pedro Alves <pedro@codesourcery.com>
15223 * linux-low.c (linux_kill, linux_detach): Adjust.
15224 (status_pending_p_callback): Remove redundant statement. Check
15225 for !TARGET_WAITIKIND_IGNORE, instead of
15226 TARGET_WAITKIND_STOPPED.
15227 (handle_tracepoints): Make sure LWP is locked. Adjust.
15228 (linux_wait_for_event_1): Adjust.
15229 (linux_cancel_breakpoints): New.
15230 (unsuspend_one_lwp): New.
15231 (unsuspend_all_lwps): New.
15232 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
15233 (send_sigstop_callback): Change return type to int, add new
15234 `except' parameter and handle it.
15235 (suspend_and_send_sigstop_callback): New.
15236 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
15237 pass them down. If SUSPEND, also increment the lwp's suspend
15239 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
15240 (need_step_over_p): Don't consider suspended LWPs.
15241 (start_step_over): Adjust.
15242 (proceed_one_lwp): Change return type to int, add new `except'
15243 parameter and handle it.
15244 (unsuspend_and_proceed_one_lwp): New.
15245 (proceed_all_lwps): Use find_inferior instead of
15247 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
15248 also decrement the suspend count of LWPs. Pass `except' down,
15249 instead of hacking its suspend count.
15250 (linux_pause_all): Add `freeze' parameter. Adjust.
15251 (linux_unpause_all): New.
15252 (linux_target_ops): Install linux_unpause_all.
15253 * server.c (handle_status): Adjust.
15254 * target.h (struct target_ops): New fields `unpause_all' and
15255 `cancel_breakpoints'. Add new parameter to `pause_all'.
15256 (pause_all): Add new `freeze' parameter.
15257 (unpause_all): New.
15258 (cancel_breakpoints): New.
15259 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
15260 cancel breakpoints.
15261 (cmd_qtstart): Pause threads.
15262 (stop_tracing): Pause threads, and cancel breakpoints.
15263 * win32-low.c (win32_target_ops): Adjust.
15265 2010-05-03 Pedro Alves <pedro@codesourcery.com>
15267 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
15268 the inferior right away from here...
15269 (linux_wait_1): ... to here, and adjust to check the thread's
15270 last_resume_kind instead of the lwp's step or stop_expected flags.
15272 2010-05-02 Pedro Alves <pedro@codesourcery.com>
15274 * README: Use consistent `GDB' and `GDBserver' spellings.
15276 2010-05-02 Pedro Alves <pedro@codesourcery.com>
15278 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
15279 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
15280 (linux_detach_one_lwp): Assume the lwp is stopped.
15281 (any_thread_of): Delete.
15282 (linux_detach): Stop all lwps here. Don't blindly delete all
15284 (delete_lwp_callback): New.
15285 (linux_mourn): Delete all lwps of the process that is gone.
15286 (linux_wait_1): Don't delete the last lwp of the process here.
15287 * mem-break.h (mark_breakpoints_out): Declare.
15288 * mem-break.c (mark_breakpoints_out): New.
15289 (free_all_breakpoints): Use it.
15290 * server.c (handle_target_event): If the process is gone, mark
15292 * thread-db.c (struct thread_db) <create_bp>: New field.
15293 (thread_db_enable_reporting): Fix prototype. Store a thread event
15294 breakpoint reference in the thread_db struct.
15295 (thread_db_load_search): Clear the thread_db object.
15296 (try_thread_db_load_1): Ditto.
15297 (switch_to_process): New.
15298 (disable_thread_event_reporting): Use it.
15299 (remove_thread_event_breakpoints): New.
15300 (thread_db_detach, thread_db_mourn): Use it.
15302 2010-05-01 Pedro Alves <pedro@codesourcery.com>
15304 * linux-low.c (linux_enable_event_reporting): New.
15305 (linux_wait_for_event_1, handle_extended_wait): Use it.
15307 2010-04-30 Pedro Alves <pedro@codesourcery.com>
15309 * linux-low.c (linux_kill_one_lwp, linux_kill)
15310 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
15311 (send_sigstop): Take an lwp_info as parameter instead. Queue a
15312 SIGSTOP even if the LWP is stopped.
15313 (send_sigstop_callback): New.
15314 (stop_all_lwps): Use send_sigstop_callback instead.
15315 (linux_resume_one_thread): Adjust.
15316 (proceed_one_lwp): Still proceed an LWP that the client has
15317 requested to stop, if we haven't reported it as stopped yet. Make
15318 sure that LWPs the client want stopped, have a pending SIGSTOP.
15320 2010-04-26 Doug Evans <dje@google.com>
15322 * server.c (handle_general_set): Make static.
15324 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
15325 Print received char after testing for error/eof instead of before.
15326 (input_interrupt): Tweak comment.
15328 2010-04-23 Doug Evans <dje@google.com>
15330 * server.c (start_inferior): Print inferior argv if --debug.
15332 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
15334 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
15335 * nto-x86-low.c: Include server.h
15337 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
15339 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
15340 be consistent with other sources of this directory.
15341 (init_registers_amd64): Correct name of source file of this function
15344 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15346 * configure.srv (x86_64-*-mingw*): New configuration for Windows
15347 64-bit executables.
15349 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15351 * win32-i386-low.c: Add 64-bit support.
15352 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
15353 (init_registers_amd64): Declare.
15354 (mappings): Add 64-bit version of array.
15355 (init_windows_x86): New function.
15356 (the_low_target): Change init_arch field to init_windows_x86.
15358 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15360 * win32-low.c: Adapt to support also 64-bit architecture.
15361 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
15362 (get_image_name): Use SIZE_T type for local variable `done'.
15363 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
15364 (toolhelp_get_dll_name): Idem.
15365 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
15366 Use uintptr_t typecast to avoid warning.
15367 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
15368 (handle_exception): Use phex_nz to avoid warning.
15369 (win32_wait): Remove unused local variable `process'.
15371 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15373 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
15376 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
15378 * configure.ac: Use `ws2_32' library for srv_mingw.
15379 * configure: Regenerate.
15380 * gdbreplay.c: Include winsock2.h instead of winsock.h.
15381 * remote-utils.c: Likewise.
15383 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
15385 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
15386 if __x86_64__ is defined.
15388 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
15390 * configure: Regenerate.
15392 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
15394 * server.c (handle_query): Handle 'qGetTIBAddr' query.
15395 * target.h (target_ops): New get_tib_address field.
15396 * win32-low.h (win32_thread_info): Add thread_local_base field.
15397 * win32-low.c (child_add_thread): Add tlb argument.
15398 Set thread_local_base field to TLB.
15399 (get_child_debug_event): Adapt to child_add_thread change.
15400 (win32_get_tib_address): New function.
15401 (win32_target_ops): Set get_tib_address field to
15402 win32_get_tib_address.
15403 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
15405 2010-04-12 Pedro Alves <pedro@codesourcery.com>
15407 * linux-low.c (linux_mourn): Also remove the process.
15408 * server.c (handle_target_event): Don't remove the process here.
15409 * nto-low.c (nto_mourn): New.
15410 (nto_target_ops): Install it.
15411 * spu-low.c (spu_mourn): New.
15412 (spu_target_ops): Install it.
15413 * win32-low.c (win32_mourn): New.
15414 (win32_target_ops): Install it.
15416 2010-04-12 Pedro Alves <pedro@codesourcery.com>
15418 * server.h (buffer_xml_printf): Remove redundant `;'.
15420 2010-04-12 Pedro Alves <pedro@codesourcery.com>
15422 * regcache.c (set_register_cache): Invalidate regcaches before
15423 changing the register cache layout.
15424 (regcache_invalidate_one): Allow a NULL regcache.
15425 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
15426 regcaches before changing the register cache layout or the target
15429 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
15431 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
15432 variable warning on Linux/x86-64.
15434 2010-04-11 Pedro Alves <pedro@codesourcery.com>
15436 GDBserver disconnected tracing support.
15438 * linux-low.c (linux_remove_process): Delete.
15439 (add_lwp): Don't set last_resume_kind here.
15440 (linux_kill): Use `mourn'.
15441 (linux_detach): Use `thread_db_detach', and `mourn'.
15442 (linux_mourn): New.
15443 (linux_attach_lwp_1): Adjust comment.
15444 (linux_attach): last_resume_kind moved the thread_info; adjust.
15445 (status_pending_p_callback): Adjust.
15446 (linux_wait_for_event_1): Adjust.
15447 (count_events_callback, select_singlestep_lwp_callback)
15448 (select_event_lwp_callback, cancel_breakpoints_callback)
15449 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
15450 (proceed_one_lwp): Adjust.
15451 (linux_async): Add debug output.
15452 (linux_thread_stopped): New.
15453 (linux_pause_all): New.
15454 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
15456 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
15457 (thread_db_free): Delete declaration.
15458 (thread_db_detach, thread_db_mourn): Declare.
15459 * thread-db.c (thread_db_init): Use thread_db_mourn.
15460 (thread_db_free): Delete, split in two.
15461 (disable_thread_event_reporting): New.
15462 (thread_db_detach): New.
15463 (thread_db_mourn): New.
15465 * server.h (struct thread_info) <last_resume_kind>: New field.
15466 <attached>: Add comment.
15467 <gdb_detached>: New field.
15468 (handler_func): Change return type to int.
15469 (handle_serial_event, handle_target_event): Ditto.
15470 (gdb_connected): Declare.
15472 (disconnected_tracing): Declare.
15473 (stop_tracing): Declare.
15475 * server.c (handle_query) <qSupported>: Report support for
15476 disconnected tracing.
15477 (queue_stop_reply_callback): Account for running threads.
15478 (gdb_wants_thread_stopped): New.
15479 (gdb_wants_all_threads_stopped): New.
15480 (gdb_reattached_process): New.
15481 (handle_status): Clear the `gdb_detached' flag of all processes.
15482 In all-stop, stop all threads.
15483 (main): Be sure to leave tfind mode. Handle disconnected tracing.
15484 (process_serial_event): If the remote connection breaks, or if an
15485 exit was forced with "monitor exit", force an event loop exit.
15486 Handle disconnected tracing on detach.
15487 (handle_serial_event): Adjust.
15488 (handle_target_event): If GDB isn't connected, forward events back
15489 to the inferior, unless the last process exited, in which case,
15490 exit gdbserver. Adjust interface.
15492 * remote-utils.c (remote_open): Don't block in accept. Instead
15493 register an event loop source on the listen socket file
15494 descriptor. Refactor bits into ...
15495 (listen_desc): ... this new global.
15496 (gdb_connected): ... this new function.
15497 (enable_async_notification): ... this new function.
15498 (handle_accept_event): ... this new function.
15499 (remote_close): Clear remote_desc.
15501 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
15503 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
15505 (mourn_inferior): Define.
15506 (target_process_qsupported): Avoid the dangling else problem.
15507 (thread_stopped): Define.
15508 (pause_all): Define.
15509 (target_waitstatus_to_string): Declare.
15510 * target.c (target_waitstatus_to_string): New.
15512 * tracepoint.c (tracing): Make extern.
15513 (disconnected_tracing): New.
15514 (stop_tracing): Make extern. Handle tracing stops due to GDB
15516 (cmd_qtdisconnected): New.
15517 (cmd_qtstatus): Report disconnected tracing status in trace reply.
15518 (handle_tracepoint_general_set): Handle QTDisconnected.
15520 * event-loop.c (event_handler_func): Change return type to int.
15521 (process_event): Bail out if the event handler wants the event
15523 (handle_file_event): Ditto.
15524 (start_event_loop): Bail out if the event handler wants the event
15527 * nto-low.c (nto_target_ops): Adjust.
15528 * spu-low.c (spu_wait): Don't remove the process here.
15529 (spu_target_ops): Adjust.
15530 * win32-low.c (win32_wait): Don't remove the process here.
15531 (win32_target_ops): Adjust.
15533 2010-04-11 Pedro Alves <pedro@codesourcery.com>
15535 * regcache.c (realloc_register_cache): Invalidate inferior's
15536 regcache before recreating it.
15538 2010-04-09 Pedro Alves <pedro@codesourcery.com>
15540 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
15542 2010-04-09 Stan Shebs <stan@codesourcery.com>
15543 Pedro Alves <pedro@codesourcery.com>
15545 * server.h (LONGEST): New.
15546 (struct thread_info) <while_stepping>: New field.
15547 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
15549 (initialize_tracepoint, handle_tracepoint_general_set)
15550 (handle_tracepoint_query, tracepoint_finished_step)
15551 (tracepoint_was_hit, release_while_stepping_state_list):
15552 (current_traceframe): Declare.
15553 * server.c (handle_general_set): Handle tracepoint packets.
15554 (read_memory): New.
15555 (write_memory): New.
15556 (handle_search_memory_1): Use read_memory.
15557 (handle_query): Report support for conditional tracepoints, trace
15558 state variables, and tracepoint sources. Handle tracepoint
15560 (main): Initialize the tracepoints module.
15561 (process_serial_event): Handle traceframe reads/writes.
15563 * linux-low.c (handle_tracepoints): New.
15564 (linux_wait_1): Call it.
15565 (linux_resume_one_lwp): Handle while-stepping.
15566 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
15567 (linux_target_ops): Install them.
15568 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
15570 * linux-x86-low.c (x86_supports_tracepoints): New.
15571 (the_low_target). Install it.
15573 * mem-break.h (delete_breakpoint): Declare.
15574 * mem-break.c (delete_breakpoint): Make external.
15576 * target.h (struct target_ops): Add `supports_tracepoints',
15577 `read_pc', and `write_pc' fields.
15578 (target_supports_tracepoints): Define.
15579 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
15582 * regcache.h (struct regcache) <registers_owned>: New field.
15583 (init_register_cache, regcache_cpy): Declare.
15584 (regcache_read_pc, regcache_write_pc): Declare.
15585 (register_cache_size): Declare.
15586 (supply_regblock): Declare.
15587 * regcache.c (init_register_cache): New.
15588 (new_register_cache): Use it.
15589 (regcache_cpy): New.
15590 (register_cache_size): New.
15591 (supply_regblock): New.
15592 (regcache_read_pc, regcache_write_pc): New.
15594 * tracepoint.c: New.
15596 * Makefile.in (OBS): Add tracepoint.o.
15597 (tracepoint.o): New rule.
15599 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
15601 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
15603 (i386-mmx.c): Likewise.
15604 (i386-mmx-linux.o): Likewise.
15605 (i386-mmx-linux.c): Likewise.
15607 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
15608 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
15609 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
15610 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
15612 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
15613 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
15614 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
15616 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
15618 * Makefile.in (clean): Updated.
15620 (i386-avx.c): Likewise.
15621 (i386-avx-linux.o): Likewise.
15622 (i386-avx-linux.c): Likewise.
15623 (amd64-avx.o): Likewise.
15624 (amd64-avx.c): Likewise.
15625 (amd64-avx-linux.o): Likewise.
15626 (amd64-avx-linux.c): Likewise.
15628 * configure.srv (srv_i386_regobj): Add i386-avx.o.
15629 (srv_i386_linux_regobj): Add i386-avx-linux.o.
15630 (srv_amd64_regobj): Add amd64-avx.o.
15631 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
15632 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
15633 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
15634 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
15635 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
15636 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
15637 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
15639 * i387-fp.c: Include "i386-xstate.h".
15641 (i387_cache_to_xsave): Likewise.
15642 (i387_xsave_to_cache): Likewise.
15643 (x86_xcr0): Likewise.
15645 * i387-fp.h (i387_cache_to_xsave): Likewise.
15646 (i387_xsave_to_cache): Likewise.
15647 (x86_xcr0): Likewise.
15649 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
15650 * linux-crisv32-low.c (target_regsets): Likewise.
15651 * linux-m68k-low.c (target_regsets): Likewise.
15652 * linux-mips-low.c (target_regsets): Likewise.
15653 * linux-ppc-low.c (target_regsets): Likewise.
15654 * linux-s390-low.c (target_regsets): Likewise.
15655 * linux-sh-low.c (target_regsets): Likewise.
15656 * linux-sparc-low.c (target_regsets): Likewise.
15657 * linux-xtensa-low.c (target_regsets): Likewise.
15659 * linux-low.c: Include <sys/uio.h>.
15660 (regsets_fetch_inferior_registers): Support nt_type.
15661 (regsets_store_inferior_registers): Likewise.
15662 (linux_process_qsupported): New.
15663 (linux_target_ops): Add linux_process_qsupported.
15665 * linux-low.h (regset_info): Add nt_type.
15666 (linux_target_ops): Add process_qsupported.
15668 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
15670 (init_registers_i386_avx_linux): New.
15671 (init_registers_amd64_avx_linux): Likewise.
15672 (xmltarget_i386_linux_no_xml): Likewise.
15673 (xmltarget_amd64_linux_no_xml): Likewise.
15674 (PTRACE_GETREGSET): Likewise.
15675 (PTRACE_SETREGSET): Likewise.
15676 (x86_fill_xstateregset): Likewise.
15677 (x86_store_xstateregset): Likewise.
15678 (use_xml): Likewise.
15679 (x86_linux_update_xmltarget): Likewise.
15680 (x86_linux_process_qsupported): Likewise.
15681 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
15682 (x86_arch_setup): Don't call init_registers_amd64_linux nor
15683 init_registers_i386_linux here. Call
15684 x86_linux_update_xmltarget.
15685 (the_low_target): Add x86_linux_process_qsupported.
15687 * server.c (handle_query): Call target_process_qsupported.
15689 * target.h (target_ops): Add process_qsupported.
15690 (target_process_qsupported): New.
15692 2010-04-03 Pedro Alves <pedro@codesourcery.com>
15694 * inferiors.c (add_thread): Set last_status kind to
15695 TARGET_WAITKIND_IGNORE.
15696 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
15697 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
15698 (linux_wait_1): Move `thread' local definition to block that uses
15699 it. Don't NULL initialize `event_child'.
15700 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
15701 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
15702 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
15704 2010-04-01 Pedro Alves <pedro@codesourcery.com>
15706 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
15707 an extended waitstatus, or by a watchpoint.
15708 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
15709 thread was stepping or has been stopped by a watchpoint.
15711 2010-04-01 Pedro Alves <pedro@codesourcery.com>
15713 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
15714 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
15715 of another, then delete the previous, and validate all
15717 (validate_inserted_breakpoint): New.
15718 (delete_disabled_breakpoints): New.
15719 (validate_breakpoints): New.
15720 (check_mem_read): Validate breakpoints before trusting their
15721 shadow. Delete disabled breakpoints.
15722 (check_mem_write): Validate breakpoints before trusting they
15723 should be inserted. Delete disabled breakpoints.
15724 * mem-break.h (validate_breakpoints):
15725 * server.c (handle_query): Validate breakpoints when we see a
15728 2010-04-01 Pedro Alves <pedro@codesourcery.com>
15730 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
15731 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
15732 if we could tell there's a GDB breakpoint at stop_pc.
15733 (need_step_over_p): Don't do a step over if we find a GDB
15734 breakpoint at the resume PC.
15736 * mem-break.c (struct raw_breakpoint): New.
15737 (enum bkpt_type): New type `gdb_breakpoint'.
15738 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
15739 fields. New field `raw'.
15740 (find_raw_breakpoint_at): New.
15741 (set_raw_breakpoint_at): Handle refcounting. Create a raw
15742 breakpoint instead.
15743 (set_breakpoint_at): Adjust.
15744 (delete_raw_breakpoint): New.
15745 (release_breakpoint): New.
15746 (delete_breakpoint): Rename to...
15747 (delete_breakpoint_1): ... this. Add proc parameter. Use
15748 release_breakpoint. Return ENOENT.
15749 (delete_breakpoint): Reimplement.
15750 (find_breakpoint_at): Delete.
15751 (find_gdb_breakpoint_at): New.
15752 (delete_breakpoint_at): Delete.
15753 (set_gdb_breakpoint_at): New.
15754 (delete_gdb_breakpoint_at): New.
15755 (gdb_breakpoint_here): New.
15756 (set_reinsert_breakpoint): Use release_breakpoint.
15757 (uninsert_breakpoint): Rename to ...
15758 (uninsert_raw_breakpoint): ... this.
15759 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
15760 (reinsert_raw_breakpoint): Change parameter type to
15762 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
15764 (check_breakpoints): Adjust. Use release_breakpoint.
15765 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
15766 (breakpoint_inserted_here): Ditto.
15767 (check_mem_read): Adjust to iterate over raw breakpoints instead.
15768 Don't trust the breakpoint's shadow if it is not inserted.
15769 (check_mem_write): Adjust to iterate over raw breakpoints instead.
15770 (delete_all_breakpoints): Adjust.
15771 (free_all_breakpoints): Mark all breakpoints as uninserted, and
15772 use delete_breakpoint_1.
15774 * mem-break.h (breakpoints_supported): Delete declaration.
15775 (set_gdb_breakpoint_at): Declare.
15776 (gdb_breakpoint_here): Declare.
15777 (delete_breakpoint_at): Delete.
15778 (delete_gdb_breakpoint_at): Declare.
15780 * server.h (struct raw_breakpoint): Forward declare.
15781 (struct process_info): New field `raw_breakpoints'.
15783 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
15786 2010-03-24 Pedro Alves <pedro@codesourcery.com>
15788 * linux-low.c (status_pending_p_callback): Fix comment.
15789 (linux_wait_for_event_1): Move most of the internal breakpoint
15790 handling from here...
15791 (linux_wait_1): ... to here.
15792 (count_events_callback): New.
15793 (select_singlestep_lwp_callback): New.
15794 (select_event_lwp_callback): New.
15795 (cancel_breakpoints_callback): New.
15796 (select_event_lwp): New.
15797 (linux_wait_1): Simplify internal breakpoint handling. Give equal
15798 priority to all LWPs that have had events that should be reported
15799 to the client. Cancel breakpoints when about to reporting the
15800 event to the client, not while stopping lwps. No longer cancel
15801 finished single-steps here.
15802 (cancel_finished_single_step): Delete.
15803 (cancel_finished_single_steps): Delete.
15805 2010-03-24 Pedro Alves <pedro@codesourcery.com>
15807 * mem-break.c (enum bkpt_type): New.
15808 (struct breakpoint): New field `type'.
15809 (set_breakpoint_at): Change return type to struct breakpoint
15810 pointer. Set type to `other_breakpoint' by default.
15811 (delete_breakpoint): Rewrite, supporting more than one breakpoint
15812 in the breakpoint list.
15813 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
15814 (reinsert_breakpoint): Rename to ...
15815 (reinsert_raw_breakpoint): ... this.
15816 (reinsert_breakpoints_at): Adjust.
15817 * mem-break.h (struct breakpoint): Declare.
15818 (set_breakpoint_at): Change return type to struct breakpoint
15821 2010-03-24 Pedro Alves <pedro@codesourcery.com>
15823 * server.c (handle_query): Assign, not compare.
15825 2010-03-24 Pedro Alves <pedro@codesourcery.com>
15827 Teach linux gdbserver to step-over-breakpoints.
15829 * linux-low.c (can_hardware_single_step): New.
15830 (supports_breakpoints): New.
15831 (handle_extended_wait): If stopping threads, read the stop pc of
15832 the new cloned LWP.
15834 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
15835 low target doesn't support retrieving the PC.
15836 (add_lwp): Set last_resume_kind to resume_continue.
15837 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
15838 (linux_attach): Don't clear stop_expected. Set the lwp's
15839 last_resume_kind to resume_stop.
15840 (linux_detach_one_lwp): Don't check for removed breakpoints.
15841 (check_removed_breakpoint): Delete.
15842 (status_pending_p): Rename to ...
15843 (status_pending_p_callback): ... this. Don't check for removed
15844 breakpoints. Don't consider threads that are stopped from GDB's
15846 (linux_wait_for_lwp): Always read the stop_pc here.
15847 (cancel_breakpoint): New.
15848 (step_over_bkpt): New global.
15849 (linux_wait_for_event_1): Implement stepping over breakpoints.
15850 (gdb_wants_lwp_stopped): New.
15851 (gdb_wants_all_stopped): New.
15852 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
15853 single-step traps here. Store the thread's last reported target
15855 (send_sigstop): Don't clear stop_expected. Always set it,
15857 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
15858 (cancel_finished_single_step): New.
15859 (cancel_finished_single_steps): New.
15860 (wait_for_sigstop): Don't cancel finished single-step traps here.
15861 (linux_resume_one_lwp): Don't check for removed breakpoints.
15862 Don't set `step' on non-hardware step archs.
15863 (linux_set_resume_request): Ignore resume_stop requests if already
15864 stopping or stopped. Set the lwp's last_resume_kind.
15865 (resume_status_pending_p): Don't check for removed breakpoints.
15866 (need_step_over_p): New.
15867 (start_step_over): New.
15868 (finish_step_over): New.
15869 (linux_resume_one_thread): Always queue a sigstop for resume_stop
15870 requests. Clear the thread's last reported target waitstatus.
15871 Don't use the `suspended' flag. Don't consider pending breakpoints.
15872 (linux_resume): Start a step-over if necessary.
15873 (proceed_one_lwp): New.
15874 (proceed_all_lwps): New.
15875 (unstop_all_lwps): New.
15876 * linux-low.h (struct lwp_info): Rewrite comment for the
15877 `suspended' flag. Add the `stop_pc' field. Delete the
15878 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
15879 Add `'last_resume_kind' and `need_step_over' fields.
15880 * inferiors.c (struct thread_info): Delete, moved elsewhere.
15881 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
15882 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
15883 (set_raw_breakpoint_at): New.
15884 (set_breakpoint_at): Rewrite to use it.
15885 (reinsert_breakpoint_handler): Delete.
15886 (set_reinsert_breakpoint): New.
15887 (reinsert_breakpoint_by_bp): Delete.
15888 (delete_reinsert_breakpoints): New.
15889 (uninsert_breakpoint): Rewrite.
15890 (uninsert_breakpoints_at): New.
15891 (reinsert_breakpoint): Rewrite.
15892 (reinsert_breakpoints_at): New.
15893 (check_breakpoints): Rewrite.
15894 (breakpoint_here): New.
15895 (breakpoint_inserted_here): New.
15896 (check_mem_read): Adjust.
15897 * mem-break.h (breakpoints_supported, breakpoint_here)
15898 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
15899 (reinsert_breakpoint_by_bp): Delete declaration.
15900 (delete_reinsert_breakpoints): Declare.
15901 (reinsert_breakpoint): Delete declaration.
15902 (reinsert_breakpoints_at): Declare.
15903 (uninsert_breakpoint): Delete declaration.
15904 (uninsert_breakpoints_at): Declare.
15905 (check_breakpoints): Adjust prototype.
15906 * server.h: Adjust include order.
15907 (struct thread_info): Declare here. Add a `last_status' field.
15909 2010-03-23 Michael Snyder <msnyder@vmware.com>
15911 * server.c (crc32): New function.
15912 (handle_query): Add handling for 'qCRC:' request.
15914 2010-03-23 Pedro Alves <pedro@codesourcery.com>
15916 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
15917 lwp had been stopped by a watchpoint.
15919 2010-03-16 Pedro Alves <pedro@codesourcery.com>
15921 * server.h (internal_error): Declare.
15922 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
15923 * utils.c (internal_error): New function.
15925 2010-03-15 Andreas Schwab <schwab@redhat.com>
15927 * configure.srv: Fix typo setting srv_regobj.
15929 2010-03-15 Pedro Alves <pedro@codesourcery.com>
15931 * linux-low.c (fetch_register): Avoid passing a non string literal
15933 (usr_store_inferior_registers): Ditto.
15935 2010-03-14 Pedro Alves <pedro@codesourcery.com>
15937 * linux-low.c (linux_write_memory): Bail out early if peeking
15940 2010-03-14 Pedro Alves <pedro@codesourcery.com>
15942 * linux-low.h (struct lwp_info): New fields
15943 `stopped_by_watchpoint' and `stopped_data_address'.
15944 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
15945 here, and cache them in the lwp object.
15946 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
15948 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
15950 (linux_stopped_by_watchpoint): Rewrite.
15951 (linux_stopped_data_address): Rewrite.
15953 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
15955 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
15956 switching the current inferior, not before.
15958 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
15960 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
15961 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
15962 i386-linux.c and amd64-linux.c.
15963 (reg-i386.o): Removed.
15964 (reg-i386.c): Likewise.
15965 (reg-i386-linux.o): Likewise.
15966 (reg-i386-linux.c): Likewise.
15967 (reg-x86-64.o): Likewise.
15968 (reg-x86-64.c): Likewise.
15969 (reg-x86-64-linux.o): Likewise.
15970 (reg-x86-64-linux.c): Likewise.
15972 (i386.c): Likewise.
15973 (i386-linux.o): Likewise.
15974 (i386-linux.c): Likewise.
15975 (amd64.o): Likewise.
15976 (amd64.c): Likewise.
15977 (amd64-linux.o): Likewise.
15978 (amd64-linux.c): Likewise.
15980 * configure.srv (srv_i386_regobj): New.
15981 (srv_i386_linux_regobj): Likewise.
15982 (srv_amd64_regobj): Likewise.
15983 (srv_amd64_linux_regobj): Likewise.
15984 (srv_i386_32bit_xmlfiles): Likewise.
15985 (srv_i386_64bit_xmlfiles): Likewise.
15986 (srv_i386_xmlfiles): Likewise.
15987 (srv_amd64_xmlfiles): Likewise.
15988 (srv_i386_linux_xmlfiles): Likewise.
15989 (srv_amd64_linux_xmlfiles): Likewise.
15990 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
15991 srv_xmlfiles to $srv_i386_xmlfiles.
15992 (i[34567]86-*-mingw32ce*): Likewise.
15993 (i[34567]86-*-mingw*): Likewise.
15994 (i[34567]86-*-nto*): Likewise.
15995 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
15996 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
15997 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
15998 (x86_64-*-linux*): Likewise.
16000 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
16001 (init_registers_amd64_linux): New.
16002 (x86_arch_setup): Replace init_registers_x86_64_linux with
16003 init_registers_amd64_linux.
16005 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
16007 * configure.ac: Check for libdl. If it is not available link against
16008 static libthread_db.
16009 * configure: Regenerate.
16011 2010-02-22 Pedro Alves <pedro@codesourcery.com>
16015 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
16016 handing a read watchpoint.
16017 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
16019 2010-02-12 Doug Evans <dje@google.com>
16021 * linux-low.c (linux_supports_tracefork_flag): Document.
16022 (linux_look_up_symbols): Add comment.
16024 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
16026 * regcache.c (supply_register): Clear regcache if buf is NULL.
16028 2010-02-02 Nicolas Roche <roche@sourceware.org>
16029 Joel Brobecker <brobecker@adacore.com>
16031 * inferiors.c (find_inferior): Add function documentation.
16032 (unloaded_dll): Handle the case where the unloaded dll has not
16033 been previously registered in the dll list.
16035 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
16037 * linux-arm-low.c (thumb_breakpoint_len): Delete.
16038 (thumb2_breakpoint): New.
16039 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
16041 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
16043 * linux-low.c (get_stop_pc): Check for SIGTRAP.
16044 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
16047 2010-01-21 Pedro Alves <pedro@codesourcery.com>
16049 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
16051 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16053 * linux-s390-low.c (s390_collect_ptrace_register)
16054 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
16056 2010-01-21 Doug Evans <dje@google.com>
16058 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
16059 (PTRACE_ARG4_TYPE): New macro.
16060 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
16061 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
16062 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
16063 (usr_store_inferior_registers): Ditto.
16064 (linux_read_memory, linux_write_memory): Ditto.
16065 (linux_test_for_tracefork): Ditto.
16067 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
16068 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
16070 2010-01-21 Pedro Alves <pedro@codesourcery.com>
16072 * proc-service.c (ps_lgetregs): Don't refetch registers from the
16075 2010-01-21 Pedro Alves <pedro@codesourcery.com>
16077 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
16078 prototype to take a regcache. Adjust.
16080 2010-01-20 Pedro Alves <pedro@codesourcery.com>
16082 * regcache.h (struct thread_info): Forward declare.
16083 (struct regcache): New.
16084 (new_register_cache): Adjust prototype.
16085 (get_thread_regcache): Declare.
16086 (free_register_cache): Adjust prototype.
16087 (registers_to_string, registers_from_string): Ditto.
16088 (supply_register, supply_register_by_name, collect_register)
16089 (collect_register_as_string, collect_register_by_name): Ditto.
16090 * regcache.c (struct inferior_regcache_data): Delete.
16091 (get_regcache): Rename to ...
16092 (get_thread_regcache): ... this. Adjust. Switch inferior before
16093 fetching registers.
16094 (regcache_invalidate_one): Adjust.
16095 (regcache_invalidate): Fix prototype.
16096 (new_register_cache): Return the new register cache.
16097 (free_register_cache): Change prototype.
16098 (realloc_register_cache): Adjust.
16099 (registers_to_string): Change prototype to take a regcache. Adjust.
16100 (registers_from_string): Ditto.
16101 (register_data): Ditto.
16102 (supply_register): Ditto.
16103 (supply_register_by_name): Ditto.
16104 (collect_register): Ditto.
16105 (collect_register_as_string): Ditto.
16106 (collect_register_by_name): Ditto.
16107 * server.c (process_serial_event): Adjust.
16108 * linux-low.h (regset_fill_func, regset_store_func): Change
16110 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
16112 * linux-low.c (get_stop_pc): Adjust.
16113 (check_removed_breakpoint): Adjust.
16114 (linux_wait_for_event): Adjust.
16115 (linux_resume_one_lwp): Adjust.
16116 (fetch_register): Add regcache parameter. Adjust.
16117 (usr_store_inferior_registers): Ditto.
16118 (regsets_fetch_inferior_registers): Ditto.
16119 (regsets_store_inferior_registers): Ditto.
16120 (linux_fetch_registers, linux_store_registers): Ditto.
16121 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
16123 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
16125 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
16126 prototype to take a regcache.
16127 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
16128 * remote-utils.c (convert_ascii_to_int, outreg)
16129 (prepare_resume_reply): Change prototype to take a regcache.
16131 * target.h (struct target_ops) <fetch_registers, store_registers>:
16132 Change prototype to take a regcache.
16133 (fetch_inferior_registers, store_inferior_registers): Change
16134 prototype to take a regcache. Adjust.
16135 * proc-service.c (ps_lgetregs): Adjust.
16136 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
16137 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
16138 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
16139 take a regcache. Adjust.
16140 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
16141 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
16142 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
16143 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
16144 * linux-cris-low.c (cris_get_pc, cris_set_pc)
16145 (cris_cannot_fetch_register):
16146 (cris_breakpoint_at): Change prototype to take a regcache.
16148 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
16149 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
16150 to take a regcache. Adjust.
16151 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
16153 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
16154 take a regcache. Adjust.
16155 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
16156 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
16157 (m68k_set_pc): Change prototype to take a regcache. Adjust.
16158 * linux-mips-low.c (mips_get_pc):
16159 (mips_set_pc): Change prototype to take a regcache. Adjust.
16160 (mips_reinsert_addr): Adjust.
16161 (mips_collect_register): Change prototype to take a regcache.
16163 (mips_supply_register):
16164 (mips_collect_register_32bit, mips_supply_register_32bit)
16165 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
16166 (mips_store_fpregset): Ditto.
16167 * linux-ppc-low.c (ppc_supply_ptrace_register)
16168 (ppc_supply_ptrace_register): Ditto.
16169 (parse_spufs_run): Adjust.
16170 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
16171 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
16172 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
16173 take a regcache. Adjust.
16174 * linux-s390-low.c (s390_collect_ptrace_register)
16175 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
16176 (s390_set_pc): Change prototype to take a regcache. Adjust.
16177 (s390_arch_setup): Adjust.
16178 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
16179 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
16180 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
16181 (sparc_fill_gregset, sparc_store_gregset_from_stack)
16182 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
16184 (sparc_breakpoint_at): Adjust.
16185 * linux-xtensa-low.c (xtensa_fill_gregset):
16186 (xtensa_store_gregset):
16187 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
16188 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
16189 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
16190 prototype to take a regcache. Adjust.
16191 * win32-arm-low.c (arm_fetch_inferior_register)
16192 (arm_store_inferior_register): Change prototype to take a
16194 * win32-i386-low.c (i386_fetch_inferior_register)
16195 (i386_store_inferior_register): Change prototype to take a
16197 * win32-low.c (child_fetch_inferior_registers)
16198 (child_store_inferior_registers): Change prototype to take a
16200 (win32_wait): Adjust.
16201 (win32_fetch_inferior_registers): Change prototype to take a
16203 (win32_store_inferior_registers): Adjust.
16204 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
16205 store_inferior_register>: Change prototype to take a regcache.
16207 2010-01-20 Doug Evans <dje@google.com>
16209 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
16211 (linux_wait_for_event1, linux_init_signals): Ditto.
16212 (W_STOPCODE): Provide definition if missing.
16214 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
16216 * linux-low.c (linux_core_of_thread): New.
16217 (compare_ints, show_process, list_threads): New.
16218 (linux_qxfer_osdata): Report threads and cores.
16219 (linux_target_op): Register linux_core_of_thread.
16220 * remote-utils.c (prepare_resume_reply): Report the core.
16221 (buffer_xml_printf): Support %d specifier.
16222 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
16224 (handle_query): Handle qXfer:threads. Announce availability
16226 * target.h (struct target_ops): New field core_of_thread.
16228 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
16230 * Makefile.in (clean): Remove new generated files.
16231 (reg-s390.o, reg-s390.c): Remove rules.
16232 (reg-s390x.o, reg-s390x.c): Likewise.
16233 (s390-linux32.o, s390-linux32.c): Add rules.
16234 (s390-linux64.o, s390-linux64.c): Likewise.
16235 (s390x-linux64.o, s390x-linux64.c): Likewise.
16236 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
16237 * linux-s390-low.c: Include <elf.h>.
16238 (HWCAP_S390_HIGH_GPRS): Define if undefined.
16239 (init_registers_s390): Remove prototype.
16240 (init_registers_s390x): Likewise.
16241 (init_registers_s390_linux32): Add prototype.
16242 (init_registers_s390_linux64): Likewise.
16243 (init_registers_s390x_linux64): Likewise.
16244 (s390_num_regs_3264): New define.
16245 (s390_regmap_3264): New global variable.
16246 (s390_cannot_fetch_register): Remove obsolete check.
16247 (s390_cannot_store_register): Likewise.
16248 (s390_collect_ptrace_register): Handle upper/lower register halves.
16249 (s390_supply_ptrace_register): Likewise.
16250 (s390_fill_gregset): Update to register number changes.
16251 (s390_get_hwcap): New routine.
16252 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
16253 Install appropriate regmap and register set.
16255 2010-01-01 Joel Brobecker <brobecker@adacore.com>
16257 * server.c (gdbserver_version): Update copyright year to 2010.
16258 * gdbreplay.c (gdbreplay_version): Likewise.
16260 2009-12-28 Doug Evans <dje@google.com>
16262 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
16263 elf/external.h. Include <elf.h> instead but only if necessary.
16265 2009-12-28 Pedro Alves <pedro@codesourcery.com>
16267 * linux-low.c (linux_remove_process): Remove `detaching'
16268 parameter. Don't release/detach from thread_db here.
16269 (linux_kill): Release/detach from thread_db here, ...
16270 (linux_detach): ... and here, before actually detaching.
16271 (linux_wait_1): ... and here, when a process exits.
16272 * thread-db.c (any_thread_of): New.
16273 (thread_db_free): Switch the current inferior to a thread of the
16276 2009-12-21 Doug Evans <dje@google.com>
16278 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
16280 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
16281 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
16282 warning ifndef __NR_tkill. Move setting of errno there too.
16283 Delete unnecessary resetting of errno after syscall.
16284 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
16286 * configure.ac: Check for dladdr.
16287 * config.in: Regenerate.
16288 * configure: Regenerate.
16289 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
16290 (try_thread_db_load): Update.
16292 * linux-low.c (my_waitpid): Delete unnecessary prototype.
16294 2009-12-18 Doug Evans <dje@google.com>
16296 * event-loop.c: Include unistd.h if it exists.
16298 * linux-low.c (my_waitpid): Move definition away from being in
16299 between linux_tracefork_child/linux_test_for_tracefork.
16301 * gdb_proc_service.h (psaddr_t): Fix type.
16302 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
16303 signature to match glibc.
16305 2009-12-16 Doug Evans <dje@google.com>
16307 * linux-low.c (linux_read_memory): Fix argument to read.
16309 2009-11-26 Pedro Alves <pedro@codesourcery.com>
16311 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
16312 events, don't leave current_inferior pointing at null.
16314 2009-11-26 Pedro Alves <pedro@codesourcery.com>
16316 * win32-low.c (LOG): Delete.
16317 (OUTMSG): Output to stderr.
16318 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
16319 on compile time LOG macro.
16320 (win32_wait): Fix debug output.
16322 2009-11-26 Pedro Alves <pedro@codesourcery.com>
16324 * win32-low.c (win32_add_one_solib): If the dll name is
16325 "ntdll.dll", prepend the system directory to the dll path.
16327 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
16329 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
16331 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
16332 Vladimir Prus <vladimir@codesourcery.com>
16334 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
16335 * configure.ac: Check for __mcoldfire__ and set
16336 gdb_cv_m68k_is_coldfire.
16337 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
16338 reg-cf.o and reg-m68k.o.
16339 * configure: Regenerated.
16341 2009-11-16 Pedro Alves <pedro@codesourcery.com>
16343 * linux-low.c (linux_remove_process): Add `detaching' parameter.
16344 Pass it to thread_db_free.
16345 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
16346 proper `detaching' argument to linux_remove_process.
16347 * linux-low.h (thread_db_free): Add `detaching' parameter.
16348 * thread-db.c (thread_db_init): Pass false as `detaching' argument
16350 (thread_db_free): Add `detaching' parameter. Only
16351 call td_ta_clear_event if detaching from process.
16353 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
16355 * thread-db.c (thread_db_free): Fix typo.
16357 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
16360 * thread-db.c (thread_db_free): Call td_ta_clear_event.
16362 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
16364 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
16365 with an i686 compiler.
16366 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
16368 * configure: Rebuilt.
16370 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
16374 * server.c (handle_search_memory_1): Correct read_addr initialization
16375 in loop for searching subsequent chunks.
16377 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
16379 * configure.ac: New --with-libthread-db option.
16380 * thread-db.c: Allow direct dependence on libthread_db.
16381 (thread_db_free): Adjust.
16382 * config.in: Regenerate.
16383 * configure: Likewise.
16385 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
16388 * thread-db.c (attach_thread): New function.
16389 (maybe_attach_thread): Return success/failure.
16390 (find_new_threads_callback): Adjust.
16391 (thread_db_find_new_threads): Loop until no new threads.
16393 2009-10-13 Pedro Alves <pedro@codesourcery.com>
16395 * proc-service.c (ps_lgetregs): Formatting.
16397 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
16399 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
16400 * configure.ac: Adjust.
16401 * linux-low.h (struct process_info_private): Move members to struct
16403 (thread_db_free, thread_db_handle_monitor_command): New prototype.
16404 * linux-low.c (linux_remove_process): Adjust.
16405 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
16406 * server.c (handle_query): Move code ...
16407 (handle_monitor_command): ... here. New function.
16408 * target.h (struct target_ops): New member.
16409 * thread-db.c (struct thread_db): New.
16410 (libthread_db_search_path): New variable.
16411 (thread_db_create_event, thread_db_enable_reporting)
16412 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
16413 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
16414 (try_thread_db_load_1, dladdr_to_soname): New functions.
16415 (try_thread_db_load, thread_db_load_search): New functions.
16416 (thread_db_init): Search for libthread_db.
16417 (thread_db_free): New function.
16418 (thread_db_handle_monitor_command): Likewise.
16419 * config.in: Regenerate.
16420 * configure: Regenerate.
16422 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
16424 * spu-low.c (spu_kill): Wait for inferior to terminate.
16425 Call clear_inferiors.
16426 (spu_detach): Call clear_inferiors.
16428 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16430 * aclocal.m4: Regenerate.
16431 * config.in: Likewise.
16432 * configure: Likewise.
16434 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16436 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
16437 (parse_spufs_run): New function.
16438 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
16439 (ppc_breakpoint_at): Handle SPU breakpoints.
16441 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16443 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
16444 (SPUFS_MAGIC): Define.
16445 (spu_enumerate_spu_ids): New function.
16446 (linux_qxfer_spu): New function.
16447 (linux_target_ops): Install linux_qxfer_spu.
16449 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16451 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
16452 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
16453 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
16454 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
16455 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
16456 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
16457 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
16458 (init_registers_powerpc_cell32l): Add prototype.
16459 (init_registers_powerpc_cell64l): Likewise.
16460 (ppc_arch_setup): Detect Cell/B.E. architecture.
16462 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16464 * Makefile.in (datarootdir): New variable.
16466 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
16468 * linux-low.c (linux_write_memory): Update debugging output.
16469 * Makefile.in (clean): Add new descriptions.
16470 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
16471 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
16472 * configure.srv: Add new files for arm*-*-linux*.
16473 * linux-arm-low.c: Add new declarations.
16474 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
16475 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
16476 (HWCAP_VFPv3D16): New.
16477 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
16478 instead of __IWMMXT__.
16479 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
16480 (arm_arch_setup): New.
16481 (target_regsets): Remove #ifdef. Add VFP regset.
16482 (the_low_target): Use arm_arch_setup.
16484 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
16486 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
16487 the main thread again.
16489 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
16491 Adding Neutrino gdbserver.
16492 * configure: Regenerated.
16493 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
16494 * configure.srv (i[34567]86-*-nto*): New target.
16495 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
16496 * remote-utils.c [__QNX__]: Include sys/iomgr.h
16497 (nto_comctrl) [__QNX__]: New function.
16498 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
16500 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
16502 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
16505 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
16506 Pedro Alves <pedro@codesourcery.com>
16508 * win32-i386-low.c (i386_get_thread_context): Handle systems that
16509 don't support CONTEXT_EXTENDED_REGISTERS.
16510 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
16511 (the_low_target): Install them.
16512 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
16513 failing with ERROR_PIPE_NOT_CONNECTED.
16515 2009-06-30 Doug Evans <dje@google.com>
16516 Pierre Muller <muller@ics.u-strasbg.fr>
16518 Add h/w watchpoint support to x86-linux, win32-i386.
16519 * Makefile.in (SFILES): Add i386-low.c
16520 (i386_low_h): Define.
16521 (i386-low.o): Add dependencies.
16522 (linux-x86-low.o): Add i386-low.h dependency.
16523 (win32-i386-low.o): Ditto.
16524 * i386-low.c: New file.
16525 * i386-low.h: New file.
16526 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
16527 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
16528 * linux-low.c (linux_add_process): Initialize arch_private.
16529 (linux_remove_process): Free arch_private.
16530 (add_lwp): Initialize arch_private.
16531 (delete_lwp): Free arch_private.
16532 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
16534 * linux-low.h (process_info_private): New member arch_private.
16535 (lwp_info): New member arch_private.
16536 (linux_target_ops): New members new_process, new_thread,
16538 (ptid_of): New macro.
16539 * linux-x86-low.c: Include stddef.h, i386-low.h.
16540 (arch_process_info): New struct.
16541 (arch_lwp_info): New struct.
16542 (x86_linux_dr_get, x86_linux_dr_set): New functions.
16543 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
16544 (i386_dr_low_get_status): New function.
16545 (x86_insert_point, x86_remove_point): New functions.
16546 (x86_stopped_by_watchpoint): New function.
16547 (x86_stopped_data_address): New function.
16548 (x86_linux_new_process, x86_linux_new_thread): New functions.
16549 (x86_linux_prepare_to_resume): New function.
16550 (the_low_target): Add entries for insert_point, remove_point,
16551 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
16553 * server.c (debug_hw_points): New global.
16554 (monitor_show_help): Document set debug-hw-points.
16555 (handle_query): Process "set debug-hw-points".
16556 * server.h (debug_hw_points): Declare.
16557 (paddress): Declare.
16558 * utils.c (NUMCELLS, CELLSIZE): New macros.
16559 (get_sell, xsnprintf, paddress): New functions.
16560 * win32-arm-low.c (the_low_target): Add entries for insert_point,
16561 remove_point, stopped_by_watchpoint, stopped_data_address.
16562 * win32-i386-low.c: Include i386-low.h.
16563 (debug_reg_state): Replaces dr.
16564 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
16565 (i386_dr_low_get_status): New function.
16566 (i386_insert_point, i386_remove_point): New functions.
16567 (i386_stopped_by_watchpoint): New function.
16568 (i386_stopped_data_address): New function.
16569 (i386_initial_stuff): Update.
16570 (get_thread_context,set_thread_context,i386_thread_added): Update.
16571 (the_low_target): Add entries for insert_point,
16572 remove_point, stopped_by_watchpoint, stopped_data_address.
16573 * win32-low.c (win32_insert_watchpoint): New function.
16574 (win32_remove_watchpoint): New function.
16575 (win32_stopped_by_watchpoint): New function.
16576 (win32_stopped_data_address): New function.
16577 (win32_target_ops): Add entries for insert_watchpoint,
16578 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
16579 * win32-low.h (win32_target_ops): New members insert_point,
16580 remove_point, stopped_by_watchpoint, stopped_data_address.
16582 2009-06-25 Pedro Alves <pedro@codesourcery.com>
16584 * server.c (process_serial_event): Re-return unsupported, not
16585 error, if the type isn't recognized. Re-allow supporting only
16586 insert or remove packets. Also call require_running for
16587 breakpoints. Add missing break statement to default case. Tidy.
16588 * target.h (struct target_ops): Rename insert_watchpoint to
16589 insert_point, and remove_watchpoint to remove_point.
16591 * linux-low.h (struct linux_target_ops): Likewise.
16592 * linux-low.c (linux_insert_watchpoint): Rename to ...
16593 (linux_insert_point): ... this. Adjust.
16594 (linux_remove_watchpoint): Rename to ...
16595 (linux_remove_point): ... this. Adjust.
16596 (linux_target_ops): Adjust.
16597 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
16598 (cris_insert_point): ... this.
16599 (cris_remove_watchpoint): Rename to ...
16600 (cris_remove_point): ... this.
16601 (the_low_target): Adjust.
16603 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
16605 * server.c (handle_v_kill): Pass signal_pid to
16606 kill_inferior if multi_process is zero.
16608 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
16610 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
16611 * target.h (target_ops): Comment for *_watchpoint to make it clear
16612 the functions can get types '0' and '1'.
16614 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
16616 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
16617 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
16618 * regcache.c (get_regcache): Likewise.
16619 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
16620 * win32-low.c (child_fetch_inferior_registers): Remove check for
16623 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
16624 Pedro Alves <pedro@codesourcery.com>
16626 * target.h (struct target_ops) <supports_multi_process>: New
16628 (target_supports_multi_process): New.
16629 * server.c (handle_query): Even if GDB reports support, only
16630 enable multi-process if the target also supports it. Report
16631 multi-process support only if the target backend supports it.
16632 * linux-low.c (linux_supports_multi_process): New function.
16633 (linux_target_ops): Install it as target_supports_multi_process
16636 2009-05-24 Doug Evans <dje@google.com>
16638 Global renaming of find_thread_pid to find_thread_ptid.
16639 * server.h (find_thread_ptid): Renamed from find_thread_pid.
16640 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
16641 All callers updated.
16643 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
16644 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
16647 * linux-low.c (get_stop_pc): Print pc if debug_threads.
16648 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
16649 (linux_resume_one_lwp): Ditto.
16651 2009-05-23 Doug Evans <dje@google.com>
16653 * linux-low.c (linux_resume_one_lwp): Change type of first arg
16654 from struct inferior_list_entry * to struct lwp_info *.
16655 All callers updated.
16657 2009-05-13 Doug Evans <dje@google.com>
16659 * linux-x86-low.c: Don't include assert.h.
16660 (x86_siginfo_fixup): Use fatal, not assert.
16661 (x86_arch_setup): Fix comment.
16663 2009-05-12 Doug Evans <dje@google.com>
16665 Biarch support for i386/amd64 gdbserver.
16666 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
16667 Add linux-x86-low.c.
16668 (linux-i386-low.o, linux-x86-64-low.o): Delete.
16669 (linux-x86-low.o): Add.
16670 * linux-x86-64-low.c: Delete.
16671 * linux-i386-low.c: Delete.
16672 * linux-x86-low.c: New file.
16673 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
16675 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
16677 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
16678 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
16679 (linux_child_pid_to_exec_file): New function.
16680 (elf_64_header_p, elf_64_file_p): New functions.
16681 (siginfo_fixup): New function.
16682 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
16683 give target a chance to convert layout.
16684 * linux-low.h (linux_target_ops): New member siginfo_fixup.
16685 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
16687 2009-05-07 Doug Evans <dje@google.com>
16689 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
16690 (regsets_store_inferior_registers): Ditto.
16692 2009-05-06 Pedro Alves <pedro@codesourcery.com>
16696 * linux-low.c (must_set_ptrace_flags): Delete.
16697 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
16699 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
16700 `lwp->must_set_ptrace_flags' instead.
16701 (linux_wait_for_event_1): Set ptrace options here.
16702 (linux_wait_1): ... not here.
16704 2009-04-30 Doug Evans <dje@google.com>
16706 * inferiors.c (started_inferior_callback): New function.
16707 (attached_inferior_callback): New function.
16708 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
16709 * server.c (print_started_pid, print_attached_pid): New functions.
16710 (detach_or_kill_for_exit): New function.
16711 (main): Call it instead of for_each_inferior (kill_inferior_callback).
16712 * server.h (have_started_inferiors_p): Declare.
16713 (have_attached_inferiors_p): Declare.
16715 * inferiors.c (remove_process): Fix memory leak, free process.
16716 * linux-low.c (linux_remove_process): New function.
16717 (linux_kill): Call it instead of remove_process.
16718 (linux_detach, linux_wait_1): Ditto.
16720 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
16722 * configure.srv: Add x86 Windows CE target.
16724 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
16726 * inferiors.c (get_thread_process): Make global.
16727 * server.h (get_thread_process): Add prototype.
16728 * thread-db.c (find_one_thread): Use get_thread_process
16729 instead of current_process.
16730 (thread_db_get_tls_address): Do not crash if called when
16731 thread layer is not yet initialized.
16733 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
16735 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
16736 * spu-low.c (current_tid): Rename to ...
16737 (current_ptid): ... this.
16738 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
16739 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
16740 ptid_get_lwp (current_ptid) instead of current_tid.
16741 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
16742 instead of current_tid. Use find_process_pid to verify pid
16743 argument is valid. Pass proper argument to remove_process.
16744 (spu_thread_alive): Compare current_ptid instead of current_tid.
16745 (spu_resume): Likewise.
16747 2009-04-02 Pedro Alves <pedro@codesourcery.com>
16749 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
16752 2009-04-01 Pedro Alves <pedro@codesourcery.com>
16754 Implement the multiprocess extensions, and add linux multiprocess
16757 * server.h (ULONGEST): Declare.
16758 (struct ptid, ptid_t): New.
16759 (minus_one_ptid, null_ptid): Declare.
16760 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
16761 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
16762 (struct inferior_list_entry): Change `id' type from unsigned from
16764 (struct sym_cache, struct breakpoint, struct
16765 process_info_private): Forward declare.
16766 (struct process_info): Declare.
16767 (current_process): Declare.
16768 (all_processes): Declare.
16769 (initialize_inferiors): Declare.
16770 (add_thread): Adjust to use ptid_t.
16771 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
16772 (add_process, remove_process, find_thread_pid): Declare.
16773 (find_inferior_id): Adjust to use ptid_t.
16774 (cont_thread, general_thread, step_thread): Change type to ptid_t.
16775 (multi_process): Declare.
16776 (push_event): Adjust to use ptid_t.
16777 (read_ptid, write_ptid): Declare.
16778 (prepare_resume_reply): Adjust to use ptid_t.
16779 (clear_symbol_cache): Declare.
16780 * inferiors.c (all_processes): New.
16781 (null_ptid, minus_one_ptid): New.
16782 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
16783 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
16784 (add_thread): Change unsigned long to ptid. Remove gdb_id
16786 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
16787 (gdb_id_to_thread): Rename to ...
16788 (find_thread_pid): ... this. Change unsigned long to ptid.
16789 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
16790 (loaded_dll, pull_pid_from_list): Adjust.
16791 (add_process, remove_process, find_process_pid)
16792 (get_thread_process, current_process, initialize_inferiors): New.
16793 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
16794 (struct target_waitstatus) <related_pid>: Ditto.
16795 (struct target_ops) <kill, detach>: Add `pid' argument. Change
16796 return type to int.
16797 (struct target_ops) <join>: Add `pid' argument.
16798 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
16799 (struct target_ops) <wait>: Add `ptid' field. Change return type
16801 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
16802 (mywait): Add `ptid' argument. Change return type to ptid_t.
16803 (target_pid_to_str): Declare.
16804 * target.c (set_desired_inferior): Adjust to use ptids.
16805 (mywait): Add new `ptid' argument. Adjust.
16806 (target_pid_to_str): New.
16807 * mem-break.h (free_all_breakpoints): Declare.
16808 * mem-break.c (breakpoints): Delelete.
16809 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
16810 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
16811 to use per-process breakpoint list.
16812 (free_all_breakpoints): New.
16813 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
16814 (symbol_cache, all_symbols_looked_up): Delete.
16816 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
16818 (prepare_resume_reply): Change ptid argument's type from unsigned
16819 long to ptid_t. Adjust. Implement W;process and X;process.
16820 (free_sym_cache, clear_symbol_cache): New.
16821 (look_up_one_symbol): Adjust to per-process symbol cache. *
16822 * server.c (cont_thread, general_thread, step_thread): Change type
16824 (attached): Delete.
16825 (multi_process): New.
16826 (last_ptid): Change type to ptid_t.
16827 (struct vstop_notif) <ptid>: Change type to ptid_t.
16828 (queue_stop_reply, push_event): Change `ptid' argument's type to
16830 (discard_queued_stop_replies): Add `pid' argument.
16831 (start_inferior): Adjust to use ptids. Adjust to mywait interface
16832 changes. Don't reference the `attached' global.
16833 (attach_inferior): Adjust to mywait interface changes.
16834 (handle_query): Adjust to use ptids. Parse GDB's qSupported
16835 features. Handle and report "multiprocess+". Handle
16837 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
16839 (handle_v_kill): New.
16840 (handle_v_stopped): Adjust to use target_pid_to_str.
16841 (handle_v_requests): Allow multiple attaches and runs when
16842 multiprocess extensions are in effect. Handle "vKill".
16843 (myresume): Adjust to use ptids.
16844 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
16845 (handle_status): Adjust to discard_queued_stop_replies interface
16847 (first_thread_of, kill_inferior_callback)
16848 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
16849 (main): Call initialize_inferiors. Adjust to use ptids, killing
16850 and detaching from all inferiors. Handle multiprocess packet
16852 * linux-low.h: Include gdb_proc_service.h.
16853 (struct process_info_private): New.
16854 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
16855 <lwpid_of>: Use ptid_get_lwp.
16856 (get_lwp_thread): Adjust.
16857 (struct lwp_info): Add `dead' member.
16858 (find_lwp_pid): Declare.
16859 * linux-low.c (thread_db_active): Delete.
16860 (new_inferior): Adjust comment.
16861 (inferior_pid): Delete.
16862 (linux_add_process): New.
16863 (handle_extended_wait): Adjust.
16864 (add_lwp): Change unsigned long to ptid.
16865 (linux_create_inferior): Add process to processes table. Adjust
16866 to use ptids. Don't set new_inferior here.
16867 (linux_attach_lwp): Rename to ...
16868 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
16869 it. Adjust to use ptids.
16870 (linux_attach_lwp): New.
16871 (linux_attach): Add process to processes table. Don't set
16873 (struct counter): New.
16874 (second_thread_of_pid_p, last_thread_of_process_p): New.
16875 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
16876 multiple processes.
16877 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
16878 processes. Remove process from process table.
16879 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
16880 to multiple processes.
16881 (any_thread_of): New.
16882 (linux_detach): Add `pid' argument, and handle it. Remove process
16883 from processes table.
16884 (linux_join): Add `pid' argument. Handle it.
16885 (linux_thread_alive): Change unsighed long argument to ptid_t.
16886 Consider dead lwps as not being alive.
16887 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
16888 threads we're not interested in.
16889 (same_lwp, find_lwp_pid): New.
16890 (linux_wait_for_lwp): Change `pid' argument's type from int to
16892 (linux_wait_for_event): Rename to ...
16893 (linux_wait_for_event_1): ... this. Change `pid' argument's type
16894 from int to ptid_t. Adjust.
16895 (linux_wait_for_event): New.
16896 (linux_wait_1): Add `ptid' argument. Change return type to
16897 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
16898 that exit from the process table.
16899 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
16901 (mark_lwp_dead): New.
16902 (wait_for_sigstop): Adjust to use ptids. If a process exits while
16903 stopping all threads, mark its main lwp as dead.
16904 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
16906 (fetch_register, usr_store_inferior_registers)
16907 (regsets_fetch_inferior_registers)
16908 (regsets_store_inferior_registers, linux_read_memory)
16909 (linux_write_memory): Inline `inferior_pid'.
16910 (linux_look_up_symbols): Adjust to use per-process
16911 `thread_db_active'.
16912 (linux_request_interrupt): Adjust to use ptids.
16913 (linux_read_auxv): Inline `inferior_pid'.
16914 (initialize_low): Don't reference thread_db_active.
16915 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
16916 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
16917 (ps_getpid): Return the pid of the current inferior.
16918 * thread-db.c (proc_handle, thread_agent): Delete.
16919 (thread_db_create_event, thread_db_enable_reporting): Adjust to
16921 (find_one_thread): Change argument type to ptid_t. Adjust to
16923 (maybe_attach_thread): Adjust to per-process data and ptids.
16924 (thread_db_find_new_threads): Ditto.
16925 (thread_db_init): Ditto.
16926 * spu-low.c (spu_create_inferior, spu_attach): Add process to
16927 processes table. Adjust to use ptids.
16928 (spu_kill, spu_detach): Adjust interface. Remove process from
16930 (spu_join, spu_thread_alive): Adjust interface.
16931 (spu_wait): Adjust interface. Remove process from processes
16932 table. Adjust to use ptids.
16933 * win32-low.c (current_inferior_tid): Delete.
16934 (current_inferior_ptid): New.
16935 (debug_event_ptid): New.
16936 (thread_rec): Take a ptid. Adjust.
16937 (child_add_thread): Add `pid' argument. Adjust to use ptids.
16938 (child_delete_thread): Ditto.
16939 (do_initial_child_stuff): Add `attached' argument. Add process to
16941 (child_fetch_inferior_registers, child_store_inferior_registers):
16943 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
16944 (win32_attach): Pass 1 to do_initial_child_stuff.
16945 (win32_kill): Adjust interface. Remove process from processes
16947 (win32_detach): Ditto.
16948 (win32_join): Adjust interface.
16949 (win32_thread_alive): Take a ptid.
16950 (win32_resume): Adjust to use ptids.
16951 (get_child_debug_event): Ditto.
16952 (win32_wait): Adjust interface. Remove exiting process from
16955 2009-04-01 Pedro Alves <pedro@codesourcery.com>
16957 Non-stop mode support.
16959 * server.h (non_stop): Declare.
16960 (gdb_client_data, handler_func): Declare.
16961 (delete_file_handler, add_file_handler, start_event_loop):
16963 (handle_serial_event, handle_target_event, push_event)
16964 (putpkt_notif): Declare.
16965 * target.h (enum resume_kind): New.
16966 (struct thread_resume): Replace `step' field by `kind' field.
16967 (TARGET_WNOHANG): Define.
16968 (struct target_ops) <wait>: Add `options' argument.
16969 <supports_non_stop, async, start_non_stop>: New fields.
16970 (target_supports_non_stop, target_async): New.
16971 (start_non_stop): Declare.
16972 (mywait): Add `options' argument.
16973 * target.c (mywait): Add `options' argument. Print child exit
16974 notifications here.
16975 (start_non_stop): New.
16976 * server.c (non_stop, own_buf, mem_buf): New globals.
16977 (struct vstop_notif): New.
16978 (notif_queue): New global.
16979 (queue_stop_reply, push_event, discard_queued_stop_replies)
16980 (send_next_stop_reply): New.
16981 (start_inferior): Adjust to use resume_kind. Adjust to mywait
16983 (attach_inferior): In non-stop mode, don't wait for the target
16985 (handle_general_set): Handle QNonStop.
16986 (handle_query): When handling qC, return the current general
16987 thread, instead of the first thread of the list.
16988 (handle_query): If the backend supports non-stop mode, include
16989 QNonStop+ in the qSupported query response.
16990 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
16992 (handle_v_attach, handle_v_run): Handle non-stop mode.
16993 (handle_v_stopped): New.
16994 (handle_v_requests): Report support for vCont;t. Handle vStopped.
16995 (myresume): Adjust to use resume_kind. Handle non-stop.
16996 (queue_stop_reply_callback): New.
16997 (handle_status): Handle non-stop mode.
16998 (main): Clear non_stop flag on reconnection. Use the event-loop.
16999 Refactor serial protocol handling from here ...
17000 (process_serial_event): ... to this new function. When GDB
17001 selects any thread, select one here. In non-stop mode, wait until
17002 GDB acks all pending events before exiting.
17003 (handle_serial_event, handle_target_event): New.
17004 * remote-utils.c (remote_open): Install remote_desc in the event
17006 (remote_close): Remove remote_desc from the event loop.
17007 (putpkt_binary): Rename to...
17008 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
17009 (putpkt_binary): New as wrapper around putpkt_binary_1.
17010 (putpkt_notif): New.
17011 (prepare_resume_reply): In non-stop mode, don't change the
17013 * event-loop.c: New.
17014 * Makefile.in (OBJ): Add event-loop.o.
17015 (event-loop.o): New rule.
17017 * linux-low.h (pid_of): Moved here.
17019 (get_lwp_thread): Use lwpid_of.
17020 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
17021 * linux-low.c (pid_of): Delete.
17022 (inferior_pid): Use lwpid_of.
17023 (linux_event_pipe): New.
17024 (target_is_async_p): New.
17026 (handle_extended_wait): Use lwpid_of.
17027 (add_lwp): Don't set lwpid field.
17028 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
17029 (linux_kill_one_lwp): If killing a running lwp, stop it first.
17030 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
17031 (linux_detach_one_lwp): If detaching from a running lwp, stop it
17032 first. Adjust to linux_wait_for_event interface changes. Use
17034 (linux_detach): Don't delete the main lwp here.
17035 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
17036 (status_pending_p): Don't consider explicitly suspended lwps.
17037 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
17038 pointer. Add OPTIONS argument. Change return type to int. Use
17039 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
17040 (linux_wait_for_event): Take an integer pid instead of a lwp_info
17041 pointer. Add status pointer argument. Return a pid instead of a
17042 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
17043 changes. In non-stop mode, don't switch to a random thread.
17044 (linux_wait): Rename to...
17045 (linux_wait_1): ... this. Add target_options argument, and handle
17046 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
17047 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
17048 clean exit and signal exit code. Don't stop all threads in
17049 non-stop mode. In all-stop mode, only stop all threads when
17050 reporting a stop to GDB. Handle explicit thread stop requests.
17051 (async_file_flush, async_file_mark): New.
17053 (send_sigstop): Use lwpid_of.
17054 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
17055 interface changes. In non-stop mode, don't switch to a random
17057 (linux_resume_one_lwp): Use lwpid_of.
17058 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
17059 (linux_resume_one_thread): ... this. Handle resume_stop. In
17060 non-stop mode, don't look for pending flag in all threads.
17061 (resume_status_pending_p): Don't consider explicitly suspended
17063 (my_waitpid): Reimplement. Emulate __WALL.
17064 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
17066 (sigchld_handler, linux_supports_non_stop, linux_async)
17067 (linux_start_non_stop): New.
17068 (linux_target_ops): Register linux_supports_non_stop, linux_async
17069 and linux_start_non_stop.
17070 (initialize_low): Install SIGCHLD handler.
17071 * thread-db.c (thread_db_create_event, find_one_thread)
17072 (thread_db_get_tls_address): Use lwpid_of.
17073 * win32-low.c (win32_detach): Adjust to use resume_kind.
17074 (win32_wait): Add `options' argument.
17075 * spu-low.c (spu_resume): Adjust to use resume_kind.
17076 (spu_wait): Add `options' argument.
17078 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17080 Decouple target code from remote protocol.
17082 * target.h (enum target_waitkind): New.
17083 (struct target_waitstatus): New.
17084 (struct target_ops) <wait>: Return an unsigned long. Take a
17085 target_waitstatus pointer instead of a char pointer.
17086 (mywait): Likewise.
17087 * target.c (mywait): Change prototype to return an unsigned long.
17088 Take a target_waitstatus pointer instead of a char pointer. Adjust.
17089 * server.h (thread_from_wait, old_thread_from_wait): Delete
17091 (prepare_resume_reply): Change prototype to take a
17093 * server.c (thread_from_wait, old_thread_from_wait): Delete.
17094 (last_status, last_ptid): New.
17095 (start_inferior): Remove "statusptr" argument. Adjust. Return a
17096 pid instead of a signal.
17097 (attach_inferior): Remove "status" and "signal" parameters.
17099 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
17101 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
17102 (handle_v_requests, myresume): Remove "status" and "signal"
17103 parameters. Adjust.
17104 (handle_status): New.
17105 (main): Delete local `status'. Adjust.
17106 * remote-utils.c: Include target.h.
17107 (prepare_resume_reply): Change prototype to take a
17108 target_waitstatus. Adjust.
17110 * linux-low.c (linux_wait): Adjust to new target_ops->wait
17112 * spu-low.c (spu_wait): Adjust.
17113 * win32-low.c (enum target_waitkind, struct target_waitstatus):
17115 (win32_wait): Adjust.
17117 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17119 * target.h (struct thread_resume): Delete leave_stopped member.
17120 (struct target_ops): Add a `n' argument to the `resume' callback.
17121 * server.c (start_inferior): Adjust.
17122 (handle_v_cont, myresume): Adjust.
17123 * linux-low.c (check_removed_breakpoint): Adjust to resume
17124 interface change, and to removed leave_stopped field.
17125 (resume_ptr): Delete.
17126 (struct thread_resume_array): New.
17127 (linux_set_resume_request): Add new `arg' parameter. Adjust to
17128 resume interface change.
17129 (linux_continue_one_thread, linux_queue_one_thread)
17130 (resume_status_pending_p): Check if the resume field is NULL
17131 instead of checking the leave_stopped member.
17132 (linux_resume): Adjust to the target resume interface change.
17133 * spu-low.c (spu_resume): Adjust to the target resume interface
17135 * win32-low.c (win32_detach, win32_resume): Ditto.
17137 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17139 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
17141 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
17143 (linux_continue_one_thread): Only preserve the stepping flag if
17144 there's a pending breakpoint.
17146 2009-03-31 Pedro Alves <pedro@codesourcery.com>
17148 * server.c (main): After the inferior having exited, call
17149 remote_close before exiting gdbserver.
17151 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
17153 Fix size of FPSCR in Power 7 processors.
17154 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
17155 (PPC_FEATURE_HAS_DFP): New #define.
17156 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
17159 2009-03-23 Pedro Alves <pedro@codesourcery.com>
17161 * server.c (handle_query) Whitespace and formatting.
17163 2009-03-22 Pedro Alves <pedro@codesourcery.com>
17165 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
17166 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
17167 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
17168 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
17169 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
17170 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
17171 Makefile.in, configure.ac: Fix whitespace throughout.
17172 * configure: Regenerate.
17174 2009-03-22 Pedro Alves <pedro@codesourcery.com>
17176 * inferiors.c (find_inferior): Make it safe for the callback
17177 function to delete the currently iterated inferior.
17179 2009-03-22 Pedro Alves <pedro@codesourcery.com>
17181 * Makefile.in (linuw_low_h): Move higher.
17182 (thread-db.o): Depend on $(linux_low_h).
17184 2009-03-17 Pedro Alves <pedro@codesourcery.com>
17186 Rename "process" to "lwp" throughout.
17188 * linux-low.c (all_processes): Rename to...
17189 (all_lwps): ... this.
17190 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
17191 (add_process): Rename to ...
17192 (add_lwp): ... this. Adjust.
17193 (linux_create_inferior): Adjust.
17194 (linux_attach_lwp): Adjust.
17195 (linux_attach): Adjust.
17196 (linux_kill_one_process): Rename to ...
17197 (linux_kill_one_lwp): ... this. Adjust.
17198 (linux_kill): Adjust.
17199 (linux_detach_one_process): Rename to ...
17200 (linux_detach_one_lwp): ... this. Adjust.
17201 (linux_detach): Adjust.
17202 (check_removed_breakpoint): Adjust.
17203 (status_pending_p): Adjust.
17204 (linux_wait_for_process): Rename to ...
17205 (linux_wait_for_lwp): ... this. Adjust.
17206 (linux_wait_for_event): Adjust.
17207 (send_sigstop): Adjust.
17208 (wait_for_sigstop): Adjust.
17209 (stop_all_processes): Rename to ...
17210 (stop_all_lwps): ... this.
17211 (linux_resume_one_process): Rename to ...
17212 (linux_resume_one_lwp): ... this. Adjust.
17213 (linux_set_resume_request, linux_continue_one_thread)
17214 (linux_queue_one_thread, resume_status_pending_p)
17215 (usr_store_inferior_registers, regsets_store_inferior_registers)
17216 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
17218 * linux-low.h (get_process): Rename to ...
17219 (get_lwp): ... this. Adjust.
17220 (get_thread_process): Rename to ...
17221 (get_thread_lwp): ... this. Adjust.
17222 (get_process_thread): Rename to ...
17223 (get_lwp_thread): ... this. Adjust.
17224 (struct process_info): Rename to ...
17225 (struct lwp_info): ... this.
17226 (all_processes): Rename to ...
17227 (all_lwps): ... this.
17228 * proc-service.c (ps_lgetregs): Adjust.
17229 * thread-db.c (thread_db_create_event, find_one_thread)
17230 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
17232 2009-03-14 Pedro Alves <pedro@codesourcery.com>
17234 * server.c (handle_query): Handle "qAttached".
17236 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
17238 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
17239 GPLv3, update license URL.
17241 2009-03-01 Doug Evans <dje@google.com>
17243 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
17244 (server_h): Add gdb_signals.h.
17245 (signals.o): Update.
17246 * server.h (target_signal_from_host,target_signal_to_host_p)
17247 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
17249 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
17251 * remote-utils.c (getpkt): Also generate remote-debug
17252 information if noack_mode is set.
17254 2009-02-06 Pedro Alves <pedro@codesourcery.com>
17256 * server.c (handle_query): Report qXfer:siginfo:read and
17257 qXfer:siginfo:write as supported and handle them.
17258 * target.h (struct target_ops) <qxfer_siginfo>: New field.
17259 * linux-low.c (linux_xfer_siginfo): New.
17260 (linux_target_ops): Set it.
17262 2009-01-26 Pedro Alves <pedro@codesourcery.com>
17264 * server.c (gdbserver_usage): Mention --remote-debug.
17265 (main): Accept '--remote-debug' switch.
17267 2009-01-18 Doug Evans <dje@google.com>
17269 * regcache.c (new_register_cache): No need to check result of xcalloc.
17270 * server.c (handle_search_memory): Back out calls to xmalloc,
17271 result is checked and error is returned to user upon failure.
17272 (handle_query): Ditto. Add more checks for result of malloc.
17273 (handle_v_cont): Check result of malloc, report error back to
17275 (handle_v_run): Ditto. Call freeargv.
17276 * server.h (freeargv): Declare.
17277 * utils.c (freeargv): New fn.
17279 2009-01-15 Doug Evans <dje@google.com>
17281 * gdbreplay.c (perror_with_name): Make arg const char *.
17282 * server.h (target_signal_to_name): Make return type const char *.
17283 * thread-db.c (thread_db_err_str): Make return type const char *.
17284 * utils.c (perror_with_name): Make arg const char *.
17286 2009-01-14 Pedro Alves <pedro@codesourcery.com>
17288 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
17289 when handling a EXIT_PROCESS_DEBUG_EVENT.
17291 2009-01-06 Joel Brobecker <brobecker@adacore.com>
17293 * gdbreplay.c (gdbreplay_version): Update copyright year.
17294 * server.c (gdbserver_version): Likewise.
17296 2009-01-05 Doug Evans <dje@google.com>
17298 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
17299 (handle_extended_wait): Improve comment.
17301 2008-12-13 Doug Evans <dje@google.com>
17303 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
17304 * server.h (ATTR_MALLOC): New macro.
17305 (xmalloc,xcalloc,xstrdup): Declare.
17306 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
17307 * inferiors.c: Ditto.
17308 * linux-low.c: Ditto.
17309 * mem-break.c: Ditto.
17310 * regcache.c: Ditto.
17311 * remote-utils.c: Ditto.
17314 * win32-low.c: Ditto.
17316 2008-12-12 Doug Evans <dje@google.com>
17318 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
17319 in debugging printf.
17321 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
17323 2008-12-09 Doug Evans <dje@google.com>
17325 * linux-low.h (struct process_info): Delete member tid, unused.
17326 * thread-db.c (find_one_thread): Update.
17327 (maybe_attach_thread): Update.
17329 2008-12-02 Pedro Alves <pedro@codesourcery.com>
17331 * target.h (struct target_ops): Add qxfer_osdata member.
17332 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
17334 (linux_qxfer_osdata): New functions.
17335 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
17337 * server.c (handle_query): Handle "qXfer:osdata:read:".
17338 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
17339 (buffer_xml_printf): New functions.
17340 * server.h (struct buffer): New.
17341 (buffer_grow_str, buffer_grow_str0): New macros.
17342 (buffer_grow, buffer_free, buffer_init, buffer_finish)
17343 (buffer_xml_printf): Declare.
17345 2008-11-24 Doug Evans <dje@google.com>
17347 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
17349 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
17351 * server.c (handle_v_run): Always use the supplied argument list.
17353 2008-11-19 Bob Wilson <bob.wilson@acm.org>
17355 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
17356 (xtensa_regmap_table): Add entry for scompare1.
17358 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
17360 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
17361 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
17362 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
17363 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
17364 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
17365 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
17366 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
17367 XML target descriptions.
17368 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
17369 when inferior is running on an ISA 2.05 or later processor. Add
17370 special case to return offset for full 64-bit slot of FPSCR when
17373 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
17375 * Makefile.in (SFILES, clean): Added sparc64 files.
17376 (reg-sparc64.o, reg-sparc64.c): New.
17377 * configure.srv (sparc*-*-linux*): New configuration.
17378 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
17379 syscall arguments for SPARC.
17380 (regsets_store_inferior_registers): Likewise.
17381 * linux-sparc-low.c: New file.
17383 2008-10-21 Doug Evans <dje@google.com>
17385 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
17386 (READLINE_DIR,READLINE_DEP): Delete.
17387 (INTERNAL_CFLAGS): Update.
17388 (LINTFLAGS): Update.
17390 2008-10-10 Pedro Alves <pedro@codesourcery.com>
17392 * server.c (handle_v_run): If GDB didn't specify an argv, use the
17393 whole argv from the last run, not just argv[0].
17395 2008-09-08 Pedro Alves <pedro@codesourcery.com>
17397 * regcache.c (new_register_cache): Return NULL if the register
17398 cache size isn't known yet.
17399 (free_register_cache): Avoid dereferencing a NULL regcache.
17401 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
17403 * configure.srv: Merge MIPS and MIPS64.
17405 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
17407 * Makefile.in (uninstall): Apply $(EXEEXT) too.
17409 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
17411 * Makefile.in: Add required vsx dependencies.
17413 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
17414 Declare init_registers_powerpc_vsx32l.
17415 Declare init_registers_powerpc_vsx64l.
17416 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
17417 (ppc_arch_setup): Check for VSX in hwcap.
17418 (ppc_fill_vsxregset): New function.
17419 (ppc_store_vsxregset): New function.
17420 Add new VSX entry in regset_info target_regsets.
17422 * configure.srv: Add new VSX dependencies.
17424 2008-08-12 Pedro Alves <pedro@codesourcery.com>
17426 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
17427 (remote_open): Set or clear transport_is_reliable.
17428 (putpkt_binary): Don't expect acks in noack mode.
17429 (getpkt): Don't send ack/nac in noack mode.
17430 * server.c (handle_general_set): Handle QStartNoAckMode.
17431 (handle_query): If connected by tcp pass QStartNoAckMode+ in
17433 (main): Reset noack_mode on every connection.
17434 * server.h (noack_mode): Declare.
17436 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17438 * Makefile.in (GDBREPLAY_OBS): New variable.
17439 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
17441 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
17442 Daniel Jacobowitz <dan@codesourcery.com>
17444 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
17445 (usr_store_inferior_registers): Likewise.
17446 (regsets_store_inferior_registers): Likewise.
17448 2008-07-31 Rolf Jansen <rj@surtec.com>
17449 Pedro Alves <pedro@codesourcery.com>
17451 * configure.ac: Check for memmem declaration.
17452 * server.c [HAVE_MALLOC_H]: Include malloc.h.
17453 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
17454 (disable_packet_qfThreadInfo): Unconditionally compile.
17455 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
17456 * configure, config.in: Regenerate.
17458 2008-07-28 Doug Kwan <dougkwan@google.com>
17460 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
17461 (linux_write_memory): Remove declaration of errno.
17463 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
17465 * linux-low.c (handle_extended_wait): Do not use "status"
17466 variable uninitialized.
17468 2008-07-07 Pedro Alves <pedro@codesourcery.com>
17470 * server.c (handle_v_attach): Inhibit reporting dll changes.
17472 2008-06-27 Pedro Alves <pedro@codesourcery.com>
17474 * remote-utils.c (prepare_resume_reply): If requested, don't
17475 output "thread:TID" in the T stop reply.
17477 * server.c (disable_packet_vCont, disable_packet_Tthread)
17478 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
17479 (handle_query): If requested, disable support for qC, qfThreadInfo
17481 (handle_v_requests): If requested, disable support for vCont.
17482 (gdbserver_show_disableable): New.
17483 (main): Handle --disable-packet and --disable-packet=LIST.
17485 * server.h (disable_packet_vCont, disable_packet_Tthread)
17486 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
17488 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
17490 * server.c (gdbserver_usage): Mention --version.
17492 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
17494 * Makefile.in (gdbreplay.o): New rule.
17496 2008-06-06 Joseph Myers <joseph@codesourcery.com>
17498 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
17499 message, not gdbserver.
17501 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
17502 Nathan Sidwell <nathan@codesourcery.com>
17503 Joseph Myers <joseph@codesourcery.com>
17505 * acinclude.m4: Include ../../config/acx.m4.
17506 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
17507 * configure, config.in: Regenerate.
17508 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
17509 * server.c (gdbserver_version): Print PKGVERSION.
17510 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
17511 (main): Adjust gdbserver_usage calls.
17512 * gdbreplay.c (version, host_name): Add declarations.
17513 (gdbreplay_version, gdbreplay_usage): New.
17514 (main): Accept --version and --help options.
17516 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
17518 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
17519 (arm_breakpoint_at): Handle Thumb.
17520 (the_low_target): Add comment.
17522 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
17524 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
17526 2008-05-09 Doug Evans <dje@google.com>
17528 * server.h (decode_search_memory_packet): Declare.
17529 * remote-utils.c (decode_search_memory_packet): New fn.
17530 * server.c (handle_search_memory_1): New fn.
17531 (handle_search_memory): New fn.
17532 (handle_query): Process qSearch:memory packets.
17534 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
17536 * regcache.c (registers_length): Remove.
17537 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
17538 full register packet.
17539 * regcache.h (registers_length): Remove prototype.
17540 * server.h (PBUFSIZ): Define to 16384.
17542 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
17544 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
17545 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
17546 powerpc-64l.o, and powerpc-altivec64l.o.
17547 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
17548 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
17549 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
17550 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
17551 rs6000/power-linux.xml, and rs6000/power64-linux.xml
17554 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
17555 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
17556 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
17557 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
17558 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
17559 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
17560 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
17561 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
17562 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
17563 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
17566 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
17567 (init_registers_powerpc_32l): ... this new prototype.
17568 (init_registers_powerpc_32): Remove, replace by ...
17569 (init_registers_powerpc_altivec32l): ... this new prototype.
17570 (init_registers_powerpc_e500): Remove, replace by ...
17571 (init_registers_powerpc_e500l): ... this new prototype.
17572 (init_registers_ppc64): Remove, replace by ...
17573 (init_registers_powerpc_64l): ... this new prototype.
17574 (init_registers_powerpc_64): Remove, replace by ...
17575 (init_registers_powerpc_altivec64l): ... this new prototype.
17576 (ppc_num_regs): Set to 73.
17577 (PT_ORIG_R3, PT_TRAP): Define if necessary.
17578 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
17579 (ppc_cannot_store_register): Handle orig_r3 and trap.
17580 (ppc_arch_setup): Update init_registers_... calls.
17581 (ppc_fill_gregset): Handle orig_r3 and trap.
17583 * inferiors.c (clear_inferiors): Reset current_inferior.
17585 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
17587 * acinclude.m4: Add override.m4.
17588 * configure: Regenerate.
17590 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
17592 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
17593 initial call to init_register_ppc64.
17595 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
17597 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
17598 single powerpc*-*-linux* case.
17599 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
17601 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
17603 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
17604 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
17606 * linux-ppc-low.c: Include <elf.h>.
17607 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
17608 (ppc_hwcap): New global variable.
17609 (ppc_regmap): Remove __SPE__ #ifdef sections.
17610 (ppc_regmap_e500): New global variable.
17611 (ppc_cannot_store_register): Update __SPE__ special case.
17612 (ppc_get_hwcap): New function.
17613 (ppc_arch_setup): Use it to determine whether inferior supports
17614 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
17615 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
17616 Do not access registers if target does not support AltiVec.
17617 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
17618 Do not access registers if target does not support SPE.
17619 (target_regsets): Unconditionally include AltiVec and SPE regsets.
17621 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
17623 * linux-low.c (disabled_regsets, num_regsets): New.
17624 (use_regsets_p): Delete.
17625 (linux_wait_for_process): Clear disabled_regsets.
17626 (regsets_fetch_inferior_registers): Check and set it.
17627 (regsets_store_inferior_registers): Likewise.
17628 (linux_fetch_registers, linux_store_registers): Do not use
17630 (initialize_low): Allocate disabled_regsets.
17632 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
17634 * Makefile.in (LIBOBJS): New.
17635 (OBS): Use LIBOBJS.
17636 (memmem.o): New rule.
17637 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
17638 * configure: Regenerated.
17640 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
17642 * server.c (handle_query): Never return "unsupported" for
17643 qXfer:features:read queries.
17645 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
17647 * server.c (get_features_xml): Fix inverted condition.
17648 (handle_query): Always support qXfer:feature:read.
17650 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
17652 * server.c (wrapper_argv): New.
17653 (start_inferior): Handle wrapper_argv. If set, expect an extra
17655 (gdbserver_usage): Document --wrapper.
17656 (main): Parse --wrapper.
17658 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17660 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
17661 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
17662 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
17663 (ppc_set_pc): Likewise.
17664 (ppc_arch_setup): New function.
17665 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
17666 of collect_register.
17667 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
17669 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17671 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
17672 instead of linux-ppc64-low.o.
17673 * linux-ppc64-low.c: Remove file.
17674 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
17675 (linux-ppc64-low.o): Remove rule.
17677 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
17678 (init_registers_powerpc_64): Likewise.
17679 (ppc_regmap): Conditionally define depending on __powerpc64__.
17680 (ppc_cannot_store_register): Do not special-case "fpscr" when
17681 compiled on __powerpc64__.
17682 (ppc_collect_ptrace_register): New function.
17683 (ppc_supply_ptrace_register): New function.
17684 (ppc_breakpoint): Change type to "unsigned int".
17685 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
17686 (the_low_target): Conditionally provide initializers for the
17687 arch_setup member depending on __powerpc64__. Install
17688 collect_ptrace_register and supply_ptrace_register members.
17690 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17692 * regcache.h (gdbserver_xmltarget): Add extern declaration.
17693 * server.c (gdbserver_xmltarget): Define.
17694 (get_features_xml): Use it to replace "target.xml" and arch_string.
17696 * configure.srv: Remove srv_xmltarget. Add XML files that were
17697 mentioned there to srv_xmlfiles instead. Remove conditional tests
17698 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
17699 srv_xmlfiles and srv_regobj to include all possible choices.
17700 * configure.ac (srv_xmltarget): Remove.
17701 (srv_xmlfiles): Do not add "target.xml".
17702 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
17703 checks for supplementary target information.
17704 * configure: Regenerate.
17705 * Makefile.in (XML_TARGET): Remove.
17706 (target.xml): Remove rule.
17707 (clean): Do not clean up target.xml.
17708 (.PRECIOUS): Do not mention target.xml.
17710 * target.h (struct target_ops): Remove arch_string member.
17711 * linux-low.c (linux_arch_string): Remove.
17712 (linux_target_ops): Remove arch_string initializer.
17713 * linux-low.h (struct linux_target_ops): Remove arch_string member.
17714 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
17715 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
17716 * spu-low.c (spu_arch_string): Remove.
17717 (spu_target_ops): Remove arch_string initializer.
17718 * win32-low.c (win32_arch_string): Remove.
17719 (win32_target_ops): Remove arch_string initializer.
17720 * win32-low.h (struct win32_target_ops): Remove arch_string member.
17721 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
17722 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
17724 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17726 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
17727 by collect_ptrace_register and supply_ptrace_register hooks.
17728 * linux-low.c (fetch_register): Use supply_ptrace_register callback
17729 instead of checking for the_low_target.left_pad_xfer.
17730 (usr_store_inferior_registers): Use collect_ptrace_register callback
17731 instead of checking for the_low_target.left_pad_xfer.
17733 * linux-s390-low.c (s390_collect_ptrace_register): New function.
17734 (s390_supply_ptrace_register): Likewise.
17735 (s390_fill_gregset): Call s390_collect_ptrace_register.
17736 (the_low_target): Update.
17738 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
17739 (ppc_supply_ptrace_register): Likewise.
17740 (the_low_target): Update.
17742 * linux-i386-low.c (the_low_target): Update.
17743 * linux-x86-64-low.c (the_low_target): Update.
17745 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17747 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
17748 reg-s390.o and reg-s390x.o.
17750 * linux-low.c (new_inferior): New global variable.
17751 (linux_create_inferior, linux_attach): Set it.
17752 (linux_wait_for_process): Call the_low_target.arch_setup after the
17753 target has stopped for the first time.
17754 (initialize_low): Do not call the_low_target.arch_setup.
17756 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
17757 (s390_set_pc): Likewise.
17758 (s390_arch_setup): New function.
17759 (the_low_target): Use s390_arch_setup as arch_setup routine.
17761 * regcache.c (realloc_register_cache): New function.
17762 (set_register_cache): Call it for each existing regcache.
17764 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17766 * server.h (init_registers): Remove prototype.
17768 * linux-low.h (struct linux_target_ops): Add arch_setup field.
17769 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
17770 instead of init_registers ().
17771 * linux-arm-low.c (init_registers_arm): Add prototype.
17772 (init_registers_arm_with_iwmmxt): Likewise.
17773 (the_low_target): Add initializer for arch_setup field.
17774 * linux-cris-low.c (init_registers_cris): Add prototype.
17775 (the_low_target): Add initializer for arch_setup field.
17776 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
17777 (the_low_target): Add initializer for arch_setup field.
17778 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
17779 (the_low_target): Add initializer for arch_setup field.
17780 * linux-ia64-low.c (init_registers_ia64): Add prototype.
17781 (the_low_target): Add initializer for arch_setup field.
17782 * linux-m32r-low.c (init_registers_m32r): Add prototype.
17783 (the_low_target): Add initializer for arch_setup field.
17784 * linux-m68k-low.c (init_registers_m68k): Add prototype.
17785 (the_low_target): Add initializer for arch_setup field.
17786 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
17787 (init_registers_mips64_linux): Likewise.
17788 (the_low_target): Add initializer for arch_setup field.
17789 * linux-ppc-low.c (init_registers_ppc): Add prototype.
17790 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
17791 (the_low_target): Add initializer for arch_setup field.
17792 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
17793 (init_registers_powerpc_64): Likewise.
17794 (the_low_target): Add initializer for arch_setup field.
17795 * linux-s390-low.c (init_registers_s390): Add prototype.
17796 (init_registers_s390x): Likewise.
17797 (the_low_target): Add initializer for arch_setup field.
17798 * linux-sh-low.c (init_registers_sh): Add prototype.
17799 (the_low_target): Add initializer for arch_setup field.
17800 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
17801 (the_low_target): Add initializer for arch_setup field.
17802 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
17803 (the_low_target): Add initializer for arch_setup field.
17805 * win32-low.h (struct win32_target_ops): Add arch_setup field.
17806 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
17807 instead of init_registers ().
17808 * win32-arm-low.c (init_registers_arm): Add prototype.
17809 (the_low_target): Add initializer for arch_setup field.
17810 * win32-i386-low.c (init_registers_i386): Add prototype.
17811 (the_low_target): Add initializer for arch_setup field.
17813 * spu-low.c (init_registers_spu): Add prototype.
17814 (initialize_low): Call initialie_registers_spu () instead of
17815 initialize_registers ().
17817 2008-02-19 Pedro Alves <pedro@codesourcery.com>
17819 * server.c (handle_v_requests): When handling the vRun and vAttach
17820 packets, if already debugging a process, don't kill it. Return an
17823 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
17825 * server.c (handle_query): Correct length check.
17827 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
17829 * win32-low.c (do_initial_child_stuff): Add process handle
17830 parameter. Set current_process_handle and current_process_id from the
17831 parameters. Clear globals.
17832 (win32_create_inferior): Don't set current_process_handle and
17833 current_process_id here. Instead pass them on the call to
17834 do_initial_child_stuff.
17835 (win32_attach): Likewise.
17836 (win32_clear_inferiors): New.
17837 (win32_kill): Don't close the current process handle or the
17838 current thread handle here. Instead call win32_clear_inferiors.
17839 (win32_detach): Don't open a new handle to the process. Call
17840 win32_clear_inferiors.
17841 (win32_join): Don't rely on current_process_handle; open a new
17842 handle using the process id.
17843 (win32_wait): Call win32_clear_inferiors when the inferior process
17846 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
17848 * server.c (monitor_show_help): Add "exit".
17850 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
17852 * Makefile.in (SFILES): Add linux-xtensa-low.c.
17853 (clean): Add reg-xtensa.c.
17854 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
17855 * configure.srv (xtensa*-*-linux*) New target.
17856 * linux-xtensa-low.c: New.
17857 * xtensa-xtregs.c: New.
17859 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
17861 * hostio.c: Don't include errno.h.
17862 (errno_to_fileio_errno): Move to hostio-errno.
17863 * hostio.c: (hostio_error): Remove the error parameter. Defer the
17864 error number outputting to the target->hostio_last_error callback.
17865 (hostio_packet_error): Use FILEIO_EINVAL directly.
17866 (handle_open, handle_pread, hostio_error, handle_unlink): Update
17867 calls to hostio_error.
17868 * hostio-errno.c: New.
17869 * server.h (hostio_last_error_from_errno): Declare.
17870 * target.h (target_ops): Add hostio_last_error member.
17871 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
17872 as hostio_last_error handler.
17873 * spu-low.c (spu_target_ops): Likewise.
17874 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
17875 (wince_hostio_last_error): New functions.
17876 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
17877 as hostio_last_error handler.
17878 (win32_target_ops) [!_WIN32_WCE]: Register
17879 hostio_last_error_from_errno as hostio_last_error handler.
17880 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
17881 (hostio-errno.o): New rule.
17882 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
17883 * configure.srv (srv_hostio_err_objs): New variable. Default to
17885 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
17886 * configure: Regenerate.
17888 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
17890 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
17891 (linux_kill, linux_detach): Clean up the process list.
17892 * remote-utils.c (remote_open): Improve port number parsing.
17893 (putpkt_binary, input_interrupt): Only send interrupts if the target
17895 * server.c (extended_protocol): Make static.
17896 (attached): Define earlier.
17897 (exit_requested, response_needed, program_argv): New variables.
17898 (target_running): New.
17899 (start_inferior): Clear attached here.
17900 (attach_inferior): Set attached here.
17901 (require_running): Define.
17902 (handle_query): Use require_running and target_running. Implement
17904 (handle_v_attach, handle_v_run): New.
17905 (handle_v_requests): Use require_running. Handle vAttach and vRun.
17906 (gdbserver_usage): Update.
17907 (main): Redo argument parsing. Handle --debug and --multi. Handle
17908 --attach along with other options or after the port. Save
17909 program_argv. Support no initial program. Resynchronize
17910 communication with GDB after an error. Handle "monitor exit".
17911 Use require_running and target_running. Always allow the extended
17912 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
17913 restart in extended mode.
17914 * README: Refer to the GDB manual. Update --attach usage.
17916 2007-12-20 Andreas Schwab <schwab@suse.de>
17918 * linux-low.c (STACK_SIZE): Define.
17919 (linux_tracefork_child): Use it. Use __clone2 on ia64.
17920 (linux_test_for_tracefork): Likewise.
17922 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
17924 * linux-low.c (linux_wait_for_event): Update messages. Do not
17925 reinsert auto-delete breakpoints.
17926 * mem-break.c (struct breakpoint): Change return type of handler to
17928 (set_breakpoint_at): Update handler type.
17929 (reinsert_breakpoint_handler): Return 1 instead of calling
17931 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
17933 (check_breakpoints): Delete auto-delete breakpoints and return 2.
17934 * mem-break.h (set_breakpoint_at): Update handler type.
17935 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
17936 * win32-low.c (auto_delete_breakpoint): New.
17937 (get_child_debug_event): Use it.
17939 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
17941 * configure.ac: Check for pread and pwrite.
17942 * hostio.c (handle_pread): Fall back to lseek and read.
17943 (handle_pwrite): Fall back to lseek and write.
17944 * config.in, configure: Regenerated.
17946 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
17948 * server.c (myresume): Add own_buf argument.
17949 (main): Update calls.
17951 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
17953 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
17954 * remote-utils.c (remote_open): Do not call disable_async_io.
17955 (block_async_io): Delete.
17956 (unblock_async_io): Make static.
17957 (initialize_async_io): New.
17958 * server.c (handle_v_cont): Handle async I/O here.
17959 (myresume): Likewise. Move other common resume tasks here...
17960 (main): ... from here. Call initialize_async_io. Disable async
17961 I/O before the main loop.
17962 * server.h (initialize_async_io): Declare.
17963 (block_async_io, unblock_async_io): Delete prototypes.
17964 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
17966 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
17968 * remote-utils.c (readchar): Allow binary data in received messages.
17970 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17972 * win32-low.c (attaching): New global.
17973 (win32_create_inferior): Clear the `attaching' global.
17974 (win32_attach): Set the `attaching' global.
17975 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
17976 attaching. Only set a breakpoint at the entry point if not
17979 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17981 * server.c (main): Don't report dll events on the initial
17982 connection on attaches.
17984 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17986 * server.c (main): Relax numerical bases supported for the pid of
17987 the --attach command line argument.
17989 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17991 * win32-low.c (win32_attach): Call OpenProcess before
17992 DebugActiveProcess, not after. Add last error output to error
17995 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17997 * win32-low.c (win32_get_thread_context)
17998 (win32_set_thread_context): New functions.
17999 (thread_rec): Use win32_get_thread_context.
18000 (continue_one_thread, win32_resume): Use win32_set_thread_context.
18001 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
18004 2007-12-03 Leo Zayas
18005 Pedro Alves <pedro_alves@portugalmail.pt>
18007 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
18009 (child_add_thread): Minor cleanup.
18010 (child_continue): Resume artificially suspended threads before
18011 calling ContinueDebugEvent.
18012 (suspend_one_thread): New.
18013 (fake_breakpoint_event): New.
18014 (get_child_debug_event): Change return type to int. Check here if
18015 gdb sent an interrupt request. If a soft interrupt was requested,
18016 fake a breakpoint event. Return 0 if there is no event to handle,
18018 (win32_wait): Don't check here if gdb sent an interrupt request.
18019 Ensure there is a valid event to handle.
18020 (win32_request_interrupt): Add soft interruption method as last
18023 2007-12-03 Leo Zayas
18024 Pedro Alves <pedro_alves@portugalmail.pt>
18026 * win32-low.h (win32_thread_info): Add descriptions to the
18027 structure members. Replace `suspend_count' counter by a
18029 * win32-low.c (thread_rec): Update condition of when to get the
18030 context from the inferior. Rely on ContextFlags being set if it
18031 has already been retrieved. Only suspend the inferior thread if
18032 we haven't already. Warn if that fails.
18033 (continue_one_thread): s/suspend_count/suspended/. Only call
18034 ResumeThread once. Warn if that fails.
18036 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
18038 * win32-low.c (win32_wait): Don't read from the inferior when it
18039 has already exited.
18041 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
18043 * Makefile.in (win32_low_h): New variable.
18044 (win32-low.o): Add dependency on $(win32_low_h).
18045 (win32-arm-low.o, win32-i386-low.o): New rules.
18047 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
18049 * hostio.c: Correct copyright year.
18051 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
18053 * Makefile.in (OBS): Add hostio.o.
18054 (hostio.o): New rule.
18055 * server.h (handle_vFile): Declare.
18056 * hostio.c: New file.
18057 * server.c (handle_v_requests): Take packet_len and new_packet_len
18058 for binary packets. Call handle_vFile.
18059 (main): Update call to handle_v_requests.
18061 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
18063 * linux-low.c: Include <sched.h>.
18065 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
18067 * linux-low.c (linux_tracefork_grandchild): New.
18068 (linux_tracefork_child): Use clone.
18069 (linux_test_for_tracefork): Use clone; allocate and free a stack.
18071 2007-10-31 Joel Brobecker <brobecker@adacore.com>
18073 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
18075 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
18077 * linux-low.c (handle_extended_wait): Handle unexpected signals.
18079 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
18081 * inferiors.c (change_inferior_id): Delete.
18082 (add_pid_to_list, pull_pid_from_list): New.
18083 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
18084 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
18085 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
18086 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
18087 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
18088 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
18089 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
18090 (using_threads): Always set to 1.
18091 (handle_extended_wait): New.
18092 (add_process): Do not set TID.
18093 (linux_create_inferior): Set must_set_ptrace_flags.
18094 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
18095 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
18096 (linux_thread_alive): Rename TID argument to LWPID.
18097 (linux_wait_for_process): Handle unknown processes. Do not use TID.
18098 (linux_wait_for_event): Do not use TID or check using_threads. Update
18099 call to dead_thread_notify. Call handle_extended_wait.
18100 (linux_create_inferior): Use PTRACE_SETOPTIONS.
18101 (send_sigstop): Delete sigstop_sent.
18102 (wait_for_sigstop): Avoid TID.
18103 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
18104 (linux_test_for_tracefork): New.
18105 (linux_lookup_signals): Use thread_db_active and
18106 linux_supports_tracefork_flag.
18107 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
18108 * linux-low.h (get_process_thread): Avoid TID.
18109 (struct process_ifo): Move thread_known and tid to the end. Remove
18111 (linux_attach_lwp, thread_db_init): Update prototypes.
18112 * server.h (change_inferior_id): Delete prototype.
18113 (add_pid_to_list, pull_pid_from_list): New prototypes.
18114 * thread-db.c (thread_db_use_events): New.
18115 (find_first_thread): Rename to...
18116 (find_one_thread): ...this. Update callers and messages. Do not
18117 call fatal. Check thread_db_use_events. Do not call
18118 change_inferior_id or new_thread_notify.
18119 (maybe_attach_thread): Update. Do not call new_thread_notify.
18120 (thread_db_init): Set thread_db_use_events. Check use_events.
18121 * utils.c (fatal, warning): Correct message prefix.
18123 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
18125 * Makefile.in (clean): Remove new files.
18126 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
18127 (powerpc-64.o, powerpc-64.c): New rules.
18128 * configure.srv: Use alternate register sets for powerpc64-*-linux*
18129 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
18131 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
18133 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
18134 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
18135 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
18136 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
18137 (target_regsets): Add AltiVec and SPE register sets.
18138 * configure.ac: Check for AltiVec and SPE.
18139 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
18140 (ppc_fill_vrregset, ppc_store_vrregset): New.
18141 (target_regsets): Add AltiVec register set.
18142 * configure: Regenerated.
18144 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
18146 * linux-low.c (O_LARGEFILE): Define.
18147 (linux_read_memory): Use /proc/PID/mem.
18148 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
18149 * configure, config.in: Regenerated.
18151 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
18153 * linux-low.c (linux_wait_for_event): Do not pass signals while
18156 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
18158 * win32-low.c (create_process): New.
18159 (win32_create_inferior): Use create_process instead of
18160 CreateProcess. If create_process failed retry appending an ".exe"
18161 suffix. Store the GetLastError result immediatelly after
18162 create_process calls and use it on the call to error.
18164 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
18166 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
18168 2007-08-23 Joel Brobecker <brobecker@adacore.com>
18170 * configure.ac: Switch license to GPLv3.
18172 2007-08-01 Michael Snyder <msnyder@access-company.com>
18174 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
18176 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
18178 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
18180 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
18181 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
18182 CloseToolhelp32Snapshot.
18183 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
18184 CloseToolhelp32Snapshot.
18186 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
18188 * server.c (main): Check for inferior exit before main loop.
18190 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
18192 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
18193 instead of on tmp_desc.
18195 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
18196 Daniel Jacobowitz <dan@codesourcery.com>
18198 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
18199 (add_thread): Minor cleanups.
18200 (clear_inferiors): Move lower in the file. Clear the DLL
18202 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
18203 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
18204 (xml_escape_text): New.
18205 * server.c (handle_query): Handle qXfer:libraries:read. Report it
18207 (handle_v_cont): Report errors.
18208 (gdbserver_version): Update.
18209 (main): Correct size of own_buf. Do not report initial DLL events.
18210 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
18211 (unloaded_dll, xml_escape_text): New.
18212 * win32-low.c (enum target_waitkind): Update comments.
18213 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
18214 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
18215 (win32_EnumProcessModules, win32_GetModuleInformation)
18216 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
18217 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
18218 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
18219 (win32_Module32First, win32_Module32Next, load_toolhelp)
18220 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
18221 (get_child_debug_event): Handle DLL events.
18222 (win32_wait): Likewise.
18224 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
18226 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
18227 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
18229 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
18231 * win32-low.c (handle_output_debug_string): Ignore event if not
18234 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
18236 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
18238 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
18240 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
18242 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
18244 * inferiors.c (change_inferior_id): Add comment.
18245 * linux-low.c (check_removed_breakpoint): Add an early
18246 prototype. Improve debug output.
18247 (linux_attach): Doc update.
18248 (linux_detach_one_process, linux_detach): Clean up before releasing
18250 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
18251 * linux-low.h (struct process_info): Doc improvement.
18252 * mem-break.c (delete_all_breakpoints): New.
18253 * mem-break.h (delete_all_breakpoints): New prototype.
18254 * thread-db.c (find_first_thread): New.
18255 (thread_db_create_event): Call it instead of
18256 thread_db_find_new_threads. Clean up unused variables.
18257 (maybe_attach_thread): Remove first thread handling.
18258 (thread_db_find_new_threads): Use find_first_thread.
18259 (thread_db_get_tls_address): Likewise.
18261 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
18263 * thread-db.c (thread_db_find_new_threads): Add prototype.
18264 (thread_db_create_event): Check for the main thread before adding
18266 (maybe_attach_thread): Only enable event reporting if TID == 0.
18267 (thread_db_get_tls_address): Check for new threads.
18269 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
18271 * linux-low.c (linux_create_inferior): Try execv before execvp.
18272 * spu-low.c (spu_create_inferior): Likewise.
18274 2007-06-13 Mike Frysinger <vapier@gentoo.org>
18276 * linux-low.c (linux_create_inferior): Change execv to execvp.
18277 * spu-low.c (spu_create_inferior): Likewies.
18279 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
18281 * Makefile.in (clean): Clean new files instead of deleted ones.
18282 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
18283 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
18285 * configure.srv: Specify XML files and new regformats for MIPS and
18287 * linux-mips-low.c (mips_num_regs): Set to only used registers.
18288 (mips_regmap): Do not fetch $0. Remove unused registers. Add
18289 an entry for the restart register.
18290 (mips_cannot_fetch_register, mips_cannot_store_register)
18291 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
18292 register names to match the XML descriptions.
18293 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
18294 restart register instead of $0.
18296 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
18297 Markus Deuling <deuling@de.ibm.com>
18299 * remote-utils.c (decode_xfer_write): New function.
18300 * server.h (decode_xfer_write): Add prototype.
18301 * server.c (handle_query): Add PACKET_LEN argument. Support
18302 qXfer:spu:read and qXfer:spu:write packets.
18303 (main): Pass packet_len to handle_query.
18304 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
18305 * target.h (target_ops): Add qxfer_spu.
18307 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
18309 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
18310 accessing non-seekable spufs files.
18312 2007-05-16 Markus Deuling <deuling@de.ibm.com>
18314 * server.c (handle_query): Add reply for qC packet.
18316 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18317 Leo Zayas <lerele@champenstudios@com>
18319 * server.h (check_remote_input_interrupt_request): New function.
18320 * remote_utils.c (INVALID_DESCRIPTOR): New define.
18321 (remote_desc): Initialize with INVALID_DESCRIPTOR.
18322 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
18323 (check_remote_input_interrupt_request): New function.
18324 * server.h (check_remote_input_interrupt_request): Declare.
18325 * win32-low.c (winapi_DebugBreakProcess,
18326 winapi_GenerateConsoleCtrlEvent): New typedefs.
18327 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
18329 (win32_wait): Check for remote interrupt request
18330 with check_remote_input_interrupt_request.
18331 (win32_request_interrupt): New function.
18332 (win32_target_op): Set request_interrupt to win32_request_interrupt.
18334 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18336 * win32-low.c (debug_registers_changed,
18337 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
18338 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
18339 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
18340 (thread_rec): Get context using the low target.
18341 (child_add_thread): Call thread_added on the low target,
18342 which does the same thing.
18344 (do_initial_child_stuff): Remove debug registers references.
18345 Set context using the low target. Resume threads after
18346 setting the contexts.
18347 (child_continue): Remove dead variable. Remove debug
18348 registers references.
18349 (child_fetch_inferior_registers): Go through the low target.
18350 (do_child_store_inferior_registers): Remove.
18351 (child_store_inferior_registers): Go through the low target.
18352 (win32_resume): Remove debug registers references.
18353 Set context using the low target.
18354 (handle_exception): Change return type to void. Don't record
18355 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
18356 first chance exception.
18357 (get_child_debug_event): Change return type to void. Remove
18358 goto loop. Always return after waiting for debug event.
18359 (win32_wait): Convert to switch statement. Handle spurious
18362 * win32-i386-low.c (debug_registers_changed,
18363 debug_registers_used): New.
18364 (initial_stuff): Rename to ...
18365 (i386_initial_stuff): ... this. Clear debug registers
18367 (store_debug_registers): Delete.
18368 (i386_get_thread_context): New.
18369 (load_debug_registers): Delete.
18370 (i386_set_thread_context): New.
18371 (i386_thread_added): New.
18372 (single_step): Rename to ...
18373 (i386_single_step): ... this.
18374 (do_fetch_inferior_registers): Rename to ...
18375 (i386_fetch_inferior_register): ... this.
18376 (i386_store_inferior_register): New.
18377 (the_low_target): Adapt to new interface.
18379 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
18380 (arm_get_thread_context): New.
18381 (arm_set_thread_context): New.
18383 (do_fetch_inferior_registers): Rename to ...
18384 (arm_fetch_inferior_register): ... this.
18385 (arm_store_inferior_register): New.
18386 (arm_wince_breakpoint): Reimplement as unsigned long.
18387 (arm_wince_breakpoint_len): Define.
18388 (the_low_target): Adapt to new interface.
18390 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
18391 load_debug_registers. Add get_thread_context, set_thread_context,
18392 thread_added and store_inferior_register. Rename
18393 fetch_inferior_registers to fetch_inferior_register.
18394 (regptr): Remove declaration.
18396 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18398 * linux-low.c (linux_detach): Change return type to int. Return 0.
18399 * spu-low.c (spu_detach): Likewise.
18401 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18403 * target.h (target_ops): Change return type of detach to int.
18405 (join_inferior): New.
18406 * server.c (main): Don't skip detach support on mingw32.
18407 If the inferior doesn't support detaching return error.
18408 Call join_inferior instead of using waitpid.
18409 * linux-low.c (linux_join): New.
18410 (linux_target_op): Add linux_join.
18411 * spu-low.c (spu_join): New.
18412 (spu_target_ops): Add spu_join.
18413 * win32-low.c (win32_detach): Adapt to new interface.
18414 Reopen current_process_handle before detaching. Issue a child
18415 resume before detaching.
18417 (win32_target_op): Add win32_join.
18419 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18421 * win32-low.c (win32-attach): Fix return value.
18422 * target.h (target_ops): Describe ATTACH return values.
18424 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18426 * win32-low.c (GETPROCADDRESS): Define.
18427 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
18428 (winapi_DebugSetProcessKillOnExit): Likewise.
18429 (win32_create_inferior): Force usage of ansi CreateProcessA.
18430 (win32_attach): Use GETPROCADDRESS.
18431 (win32_detach): Likewise.
18433 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18435 * win32-low.c (win32_wait): Don't use WSTOPSIG.
18437 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
18439 * win32-low.c: Commit leftover changes from 2007-03-29.
18441 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
18443 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
18444 fields short instead of int. Add explicit padding.
18445 (i387_cache_to_fsave): Remove unnecessary casts.
18446 (i387_fsave_to_cache): Doc fix.
18447 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
18449 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
18451 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
18452 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
18454 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
18456 * configure.srv (arm*-*-mingw32ce*): Move near the other
18459 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
18461 * configure.ac: Add errno checking.
18462 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
18463 sys/file.h and malloc.h.
18464 (AC_CHECK_DECLS): Add perror.
18465 (srv_mingwce): Handle.
18466 * configure.srv (i[34567]86-*-cygwin*): Add
18467 win32-i386-low.o to srv_tgtobj.
18468 (i[34567]86-*-mingw*): Likewise.
18469 (arm*-*-mingw32ce*): Add case.
18470 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
18471 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
18472 [__MINGW32CE__] (strerror): New function.
18473 [__MINGW32CE__] (errno): Define to GetLastError.
18474 [__MINGW32CE__] (COUNTOF): New macro.
18475 (remote_open): Remove extra close call.
18476 * mem-break.c (delete_breakpoint_at): New function.
18477 * mem-break.h (delete_breakpoint_at): Declare.
18478 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
18479 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
18480 [USE_WIN32API] (read, write): Add char* casts.
18481 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
18482 * server.h: Include wincecompat.h on Windows CE.
18483 [HAVE_ERRNO_H]: Check.
18484 (perror): Declare if not declared.
18485 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
18486 (perror_with_name): Remove errno declaration.
18487 * wincecompat.h: New.
18488 * wincecompat.c: New.
18489 * win32-low.h: New.
18490 * win32-arm-low.c: New.
18491 * win32-i386-low.c: New.
18492 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
18493 (OUTMSG2): Make it safe.
18495 (COUNTOF): New macro.
18496 (NUM_REGS): Get it from the low target.
18497 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
18498 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
18499 (thread_rec): Let low target handle debug registers.
18500 (child_add_thread): Likewise.
18501 (child_init_thread_list): Likewise.
18502 (continue_one_thread): Likewise.
18504 (do_child_fetch_inferior_registers): Move to ...
18505 * win32-i386-low.c: ... here, and rename to ...
18506 (do_fetch_inferior_registers): ... this.
18507 * win32-low.c (child_fetch_inferior_registers):
18508 Go through the low target.
18509 (do_child_store_inferior_registers): Use regptr.
18510 (strwinerror): New function.
18511 (win32_create_inferior): Handle Windows CE.
18512 Use strwinerror instead of strerror on Windows error
18513 codes. Add program to the error output.
18514 Don't close the main thread handle on Windows CE.
18515 (win32_attach): Use coredll.dll on Windows CE.
18516 (win32_kill): Close current process and current
18518 (win32_detach): Use coredll.dll on Windows CE.
18519 (win32_resume): Let low target handle debug registers, and
18521 (handle_exception): Add/Remove initial breakpoint. Avoid
18522 non-existant WSTOPSIG on Windows CE.
18523 (win32_read_inferior_memory): Cast to remove warning.
18524 (win32_arch_string): Go through the low target.
18525 (initialize_low): Call set_breakpoint_data with the low
18526 target's breakpoint.
18527 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
18528 FOP_REGNUM, mappings): Move to ...
18529 * win32-i386-low.c: ... here.
18530 * win32-low.c (win32_thread_info): Move to ...
18531 * win32-low.h: ... here.
18532 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
18533 win32-arm-low.c and wincecompat.c.
18534 (all:): Add $EXEEXT.
18535 (install-only:): Likewise.
18536 (gdbserver:): Likewise.
18537 (gdbreplay:): Likewise.
18538 * config.in: Regenerate.
18539 * configure: Regenerate.
18541 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
18543 * win32-low.c: Rename typedef thread_info to
18544 win32_thread_info throughout.
18546 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
18548 * win32-i386-low.c: Rename to ...
18549 * win32-low.c: ... this.
18550 * configure.srv: Replace win32-i386-low.o with win32-low.o.
18551 * Makefile.in: Likewise.
18553 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
18555 * remote-utils.c (monitor_output): Constify msg parameter.
18556 * server.h (monitor_output): Likewise.
18557 * win32-i386-low.c (handle_output_debug_string): New.
18558 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
18559 handle_output_debug_string.
18560 (get_child_debug_event): Likewise.
18562 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
18564 * server.c (main): Correct strtoul check.
18566 2007-03-27 Jon Ringle <jon@ringle.org>
18568 * linux-low.c: Check __ARCH_HAS_MMU__ also.
18570 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
18572 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
18574 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
18576 * terminal.h: Check HAVE_SGTTY_H.
18578 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
18580 * remote-utils.c (remote_open): Print out the assigned port number.
18582 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
18584 * remote-utils.c (monitor_output): New function.
18585 * server.c (debug_threads): Define here.
18586 (monitor_show_help): New function.
18587 (handle_query): Handle qRcmd.
18588 (main): Do not handle 'd' packet.
18589 * server.h (debug_threads, remote_debug, monitor_output): Declare.
18590 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
18593 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18595 * Makefile.in (EXEEXT): New.
18596 (clean): Use $(EXEEXT).
18598 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18600 * target.h (target_ops): Rename send_signal to request_interrupt,
18601 and remove enum target_signal parameter.
18602 * linux-low.c (linux_request_interrupt): Rename from
18603 linux_send_signal, and always send SIGINT.
18604 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
18605 and always send SIGINT.
18606 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
18608 (input_interrupt): Likewise.
18610 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18612 * server.c (get_features_xml): Check if target implemented
18614 * win32-i386-low.c (win32_arch_string): New.
18615 (win32_target_ops): Add win32_arch_string as arch_string member.
18617 2007-02-22 Markus Deuling <deuling@de.ibm.com>
18619 * spu-low.c (spu_arch_string): New.
18620 (spu_target_ops): Add spu_arch_string.
18622 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
18624 * remote-utils.c: Remove HAVE_TERMINAL_H check.
18625 * configure.ac: Do not check for terminal.h.
18626 * configure, config.in: Regenerated.
18628 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
18630 * Makefile.in (OBS): Add $(XML_BUILTIN).
18631 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
18633 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
18634 (arm-with-iwmmxt.c): New.
18635 * config.in, configure: Regenerate.
18636 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
18637 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
18638 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
18639 (arm*-*-linux*): Add iWMMXt and regset support.
18640 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
18641 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
18642 (arm_store_wmmxregset, target_regsets): New.
18643 * server.c (get_features_xml): Take annex argument. Check builtin
18645 (handle_query): Handle multiple annexes.
18647 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18649 * remote-utils.c [USE_WIN32API] (read, write): Define.
18650 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
18653 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
18655 * linux-i386-low.c (the_low_target): Set arch_string.
18656 * linux-x86-64-low.c (the_low_target): Likewise.
18657 * linux-low.c (linux_arch_string): New.
18658 (linux_target_ops): Add it.
18659 * linux-low.h (struct linux_target_ops): Add arch_string.
18660 * server.c (write_qxfer_response): Use const void * for DATA.
18661 (get_features_xml): New.
18662 (handle_query): Handle qXfer:features:read. Report it for qSupported.
18663 * target.h (struct target_ops): Add arch_string method.
18665 2007-01-03 Denis Pilat <denis.pilat@st.com>
18666 Daniel Jacobowitz <dan@codesourcery.com>
18668 * linux-low.c (linux_kill): Handle being called with no threads.
18669 * win32-i386-low.c (win32_kill): Likewise.
18670 (get_child_debug_event): Clear current_process_handle.
18672 2006-12-30 Denis PILAT <denis.pilat@st.com>
18673 Daniel Jacobowitz <dan@codesourcery.com>
18675 * remote-utils.c (remote_open): Check the type of specified
18676 serial port devices before opening them.
18677 * server.c (main): Kill the inferior if an error occurs during
18678 the first remote_open.
18680 2006-12-05 Markus Deuling <deuling@de.ibm.com>
18682 * README: Update supported targets.
18684 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
18686 * Makefile.in (clean): Remove reg-mips64.c.
18687 (reg-mips64.c, reg-mips64.o): New rules.
18688 * configure.srv: Handle mips64. Include regset support for mips.
18689 * linux-mips-low.c (union mips_register): New.
18690 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
18691 (mips_breakpoint, mips_breakpoint_at): Use int.
18692 (mips_collect_register, mips_supply_register)
18693 (mips_collect_register_32bit, mips_supply_register_32bit)
18694 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18695 (mips_store_fpregset, target_regsets): New.
18696 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
18698 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
18700 * configure.srv: Add target "spu*-*-*".
18701 * Makefile.in (clean): Remove reg-spu.c.
18702 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
18703 * spu-low.c: New file.
18705 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
18707 * configure.ac: Correct td_thr_tls_get_addr test.
18708 * configure: Regenerated.
18710 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
18712 * linux-low.c (linux_wait_for_event): Reformat. Use the
18713 pass_signals array.
18714 * remote-utils.c (decode_address_to_semicolon): New.
18715 * server.c (pass_signals, handle_general_set): New.
18716 (handle_query): Mention QPassSignals for qSupported.
18717 (main): Call handle_general_set.
18718 * server.h (pass_signals, decode_address_to_semicolon): New.
18720 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
18722 * server.c (handle_query): Correct error handling for read_auxv.
18724 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
18726 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
18727 and srv_linux_thread_db to yes.
18728 * linux-s390-low.c (s390_fill_gregset): New function.
18729 (target_regsets): Define data structure.
18731 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
18733 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
18734 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
18735 * config.in, configure: Regenerated.
18736 * inferiors.c (gdb_id_to_thread): New function.
18737 (gdb_id_to_thread_id): Use it.
18738 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
18739 * linux-low.h (struct process_info): Add th member.
18740 (thread_db_get_tls_address): New prototype.
18741 * remote-utils.c (decode_address): Make non-static.
18742 * server.c (handle_query): Handle qGetTLSAddr.
18743 * server.h (gdb_id_to_thread, decode_address): New prototypes.
18744 * target.h (struct target_ops): Add get_tls_address.
18745 * thread-db.c (maybe_attach_thread): Save the thread handle.
18746 (thread_db_get_tls_address): New.
18748 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
18750 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
18751 (linux_resume_one_process): Take a siginfo_t *. Update all
18752 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
18753 (struct pending_signals): Add a siginfo_t.
18754 (linux_wait_for_process): Always set last_status.
18755 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
18756 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
18757 * linux-low.h (struct process_info): Add last_status.
18759 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
18761 * remote-utils.c (try_rle): New function.
18762 (putpkt_binary): Use it.
18764 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
18766 * Makefile.in (clean): Clean reg-x86-64-linux.c.
18767 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
18768 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
18769 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
18770 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
18773 2006-08-08 Richard Sandiford <richard@codesourcery.com>
18775 * server.c (terminal_fd): New variable.
18776 (old_foreground_pgrp): Likewise.
18777 (restore_old_foreground_pgrp): New function.
18778 (start_inferior): Record the terminal file descriptor in terminal_fd
18779 and its original foreground group in old_foreground_pgrp. Register
18780 restore_old_foreground_pgrp with atexit().
18782 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
18784 * server.c (handle_query): Correct qPart to qXfer.
18786 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
18788 * configure.ac: Check for more headers which are missing on
18789 Windows. Automatically supply -lwsock32 and USE_WIN32API.
18790 * configure.srv: Add Cygwin and mingw32.
18791 * remote-utils.c: Don't include headers unconditionally which
18792 are missing on mingw32. Include <winsock.h> for mingw32.
18793 (remote_open): Adjust for mingw32 support. Flush
18794 standard error after writing to it.
18795 (remote_close, putpkt_binary, input_interrupt, block_async_io)
18796 (unblock_async_io, enable_async_io, disable_async_io)
18797 (readchar, getpkt): Update for Winsock support.
18798 (prepare_resume_reply): Expect a protocol signal number.
18799 * server.c: Disable <sys/wait.h> on mingw32.
18800 (start_inferior): Adjust for mingw32 support. Flush
18801 standard error after writing to it.
18802 (attach_inferior): Likewise. Use protocol signal
18804 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
18806 * win32-i386-low.c: New file.
18807 * Makefile.in (XM_CLIBS): Set.
18808 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
18809 (win32-i386-low.o): New dependency rule.
18810 * linux-low.c (linux_wait): Use target signal numbers.
18811 * target.h (struct target_ops): Doc fix.
18812 * server.h (target_signal_to_name): New prototype.
18813 * gdbreplay.c: Don't include headers unconditionally which
18814 are missing on mingw32. Include <winsock.h> for mingw32.
18815 (remote_close, remote_open): Adjust for Winsock support.
18816 * configure, config.in: Regenerated.
18818 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
18820 * server.c (decode_xfer_read, write_qxfer_response): New.
18821 (handle_query): Take a packet length argument. Handle
18822 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
18823 the qSupported response.
18824 (main): Update call to handle_query.
18826 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
18828 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
18829 (putpkt_binary): Renamed from putpkt and adjusted for binary
18831 (putpkt): New wrapper for putpkt_binary.
18832 (readchar): Don't mask off the high bit.
18833 (decode_X_packet): New function.
18834 * server.c (main): Call putpkt_binary if a handler sets the packet
18835 length. Save the length of the incoming packet. Handle 'X'.
18836 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
18838 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
18840 * server.c (handle_query): Handle qSupported.
18842 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
18844 * remote-utils.c (all_symbols_looked_up): New variable.
18845 (look_up_one_symbol): Check it.
18846 * server.h (look_up_one_symbol): New declaration.
18847 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
18849 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
18851 * Makefile.in (linux-arm-low.o): Update dependencies.
18852 * linux-arm-low.c: Include "gdb_proc_service.h".
18853 (PTRACE_GET_THREAD_AREA): Define.
18854 (ps_get_thread_area): New function.
18856 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
18858 * configure.srv (m68k*-*-uclinux*): New target.
18859 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
18860 (linux_resume_one_process): Remove extraneous cast.
18861 (linux_read_offsets): New.
18862 (linux_target_op): Add linux_read_offsets on mmuless systems.
18863 * server.c (handle_query): Add qOffsets logic.
18864 * target.h (struct target_ops): Add read_offsets.
18866 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
18868 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
18869 (PTRACE_GET_THREAD_AREA): Define.
18870 (ps_get_thread_area): New function.
18871 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
18872 (linux-x86-64-low.o): Update.
18874 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
18876 * configure.ac: Remove checks for prfpregset_t.
18877 * gdb_proc_service.h: New file.
18878 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
18879 new "gdb_proc_service.h".
18880 * proc-service.c: Likewise.
18881 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
18882 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
18883 * Makefile.in (gdb_proc_service_h): Updated.
18884 * configure, config.in: Regenerated.
18886 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
18888 * remote-utils.c (prepare_resume_reply): Move declaration
18889 of gdb_id_from_wait to the top of the block.
18891 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
18893 * linux-low.c (regsets_store_inferior_registers): Read the regset
18894 from the target before filling it.
18896 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
18898 * server.c (attach_inferior): Return SIGTRAP for a successful
18901 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18903 * Makefile.in (OBS): Add version.o.
18904 (STAGESTUFF): Delete.
18905 (version.o): Add dependencies.
18906 (version.c): Replace rule.
18907 (clean): Remove version.c.
18908 * server.c (gdbserver_version): New.
18909 (gdbserver_usage): Use printf.
18910 (main): Handle --version and --help.
18911 * server.h (version, host_name): Add declarations.
18913 2005-12-23 Eli Zaretskii <eliz@gnu.org>
18925 * linux-x86-64-low.c:
18927 * linux-s390-low.c:
18928 * linux-ppc64-low.c:
18930 * linux-mips-low.c:
18931 * linux-m68k-low.c:
18932 * linux-m32r-low.c:
18935 * linux-ia64-low.c:
18936 * linux-i386-low.c:
18937 * linux-crisv32-low.c:
18949 * gdbserver.1: Add (C) after Copyright. Update the FSF
18952 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
18954 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
18955 (arm_breakpoint_at): Recognize both breakpoints.
18956 (the_low_target): Use the correct breakpoint instruction.
18958 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
18960 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
18961 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
18962 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
18963 (the_low_target): Update.
18965 2005-10-25 Andreas Schwab <schwab@suse.de>
18967 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
18969 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
18970 (ia64_num_regs): Reduce to 462.
18972 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
18974 * acinclude.m4: Correct quoting.
18975 * aclocal.m4: Regenerated.
18977 Suggested by SZOKOVACS Robert <szo@ies.hu>:
18978 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
18979 (thread_db_init): Call thread_db_err_str.
18980 * configure.ac: Check for TD_VERSION.
18981 * config.in, configure: Regenerated.
18983 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18985 * server.h (error, fatal, warning): Add ATTR_FORMAT.
18987 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
18989 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
18990 is not available. Define HAVE_PTRACE_GETREGS if it is.
18991 * config.in, configure: Regenerated.
18992 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
18993 * linux-i386-low.c, linux-m68k-low.c: Update to use
18994 HAVE_PTRACE_GETREGS.
18995 * linux-low.c (regsets_fetch_inferior_registers)
18996 (regsets_store_inferior_registers): Only return 0 if we processed
18998 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
18999 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
19001 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
19003 * inferiors.c (struct thread_info): Add gdb_id.
19004 (add_thread): Add gdb_id argument.
19005 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
19006 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
19007 calls to add_thread.
19008 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
19009 * server.c (handle_query): Use thread_to_gdb_id.
19010 (handle_v_cont, main): Use gdb_id_to_thread_id.
19011 * server.h (add_thread): Update prototype.
19012 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
19015 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
19017 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
19018 left-padded registers.
19019 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
19020 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
19022 2005-07-01 Steve Ellcey <sje@cup.hp.com>
19024 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
19025 * configure: Regenerate.
19026 * config.in: Regenerate.
19027 * server.h (NEED_DECLARATION_STRERROR):
19028 Replace with !HAVE_DECL_STRERROR.
19030 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
19032 * linux-low.c (linux_wait, linux_send_signal): Don't test
19033 an unsigned long variable for > 0 if it could be MAX_ULONG.
19034 * server.c (myresume): Likewise.
19035 * target.c (set_desired_inferior): Likewise.
19037 2005-06-13 Mark Kettenis <kettenis@gnu.org>
19039 * configure.ac: Simplify and improve check for socklen_t.
19040 * configure, config.in: Regenerate.
19042 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
19044 * acconfig.h: Remove.
19045 * configure.ac: Add a test for socklen_t. Use three-argument
19046 AC_DEFINE throughout.
19047 * config.in: Regenerated using autoheader 2.59.
19048 * configure: Regenerated.
19050 * gdbreplay.c (socklen_t): Provide a default.
19051 (remote_open): Use socklen_t.
19052 * remote-utils.c (socklen_t): Provide a default.
19053 (remote_open): Use socklen_t.
19054 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
19057 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
19059 * linux-low.c (linux_read_memory, linux_write_memory)
19060 (linux_read_auxv): Likewise.
19061 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
19062 (check_mem_write): Likewise.
19063 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
19065 * regcache.c (struct inferior_rgcache_data, registers_to_string)
19066 (registers_from_string, register_data): Likewise.
19067 * server.c (handle_query, main): Likewise.
19068 * server.h (convert_ascii_to_int, convert_int_to_ascii)
19069 (decode_M_packet): Likewise.
19070 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
19071 * target.h (struct target_ops): Update read_memory, write_memory,
19073 (read_inferior_memory, write_inferior_memory): Update.
19074 * linux-low.h (struct linux_target_ops): Change type of breakpoint
19075 to unsigned char *.
19076 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
19077 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
19078 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
19079 linux-s390-low.c, linux-sh-low.c: Update for changes in
19080 read_inferior_memory and the_low_target->breakpoint.
19082 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
19084 * Makefile.in (SFILES): Add linux-ppc64-low.c.
19085 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
19086 * configure.srv: Add powerpc64-*-linux*.
19087 * linux-ppc64-low.c: New file.
19089 2005-05-23 Orjan Friberg <orjanf@axis.com>
19091 * linux-cris-low.c: New file with support for CRIS.
19092 * linux-crisv32-low.c: Ditto for CRISv32.
19093 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
19094 (clean): Add reg-cris.c and reg-crisv32.c.
19095 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
19096 reg-crisv32.o, and reg-crisv32.c to make rules.
19097 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
19098 recognized targets.
19100 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
19102 * linux-low.c (fetch_register): Ensure buffer size is a multiple
19103 of sizeof (PTRACE_XFER_TYPE).
19104 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
19106 2005-05-12 Orjan Friberg <orjanf@axis.com>
19108 * target.h (struct target_ops): Add insert_watchpoint,
19109 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
19110 pointers for hardware watchpoint support.
19111 * linux-low.h (struct linux_target_ops): Ditto.
19112 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
19113 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
19114 to linux_target_ops.
19115 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
19117 * server.c (main): Recognize 'Z' and 'z' packets.
19119 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
19121 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
19122 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
19123 (the_low_target): Add new members.
19125 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
19127 * proc-service.c (ps_lgetregs): Search all_processes instead of
19130 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
19132 * server.c (start_inferior): Change return type to int.
19133 (attach_inferior): Change sigptr to int *.
19134 (handle_v_cont, handle_v_requests): Change signal to int *.
19135 (main): Change signal to int.
19137 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
19139 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
19140 * configure.srv: Add m32r*-*-linux*.
19141 * linux-m32r-low.c: New file.
19143 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
19145 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
19147 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
19149 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
19150 Take unsigned long arguments for PIDs.
19151 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
19152 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
19153 (wait_for_sigstop, linux_resume_one_process)
19154 (regsets_fetch_inferior_registers, linux_send_signal)
19155 (linux_read_auxv): Likewise. Update the types of variables holding
19156 PIDs. Update format string specifiers.
19157 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
19158 * remote-utils.c (prepare_resume_reply): Likewise.
19159 * server.c (cont_thread, general_thread, step_thread)
19160 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
19162 (handle_query): Update format specifiers.
19163 (handle_v_cont, main): Use strtoul for thread IDs.
19164 * server.h (struct inferior_list_entry): Use unsigned long for ID.
19165 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
19166 (general_thread, step_thread, thread_from_wait)
19167 (old_thread_from_wait): Update.
19168 * target.h (struct thread_resume): Use unsigned long for THREAD.
19169 (struct target_ops): Use unsigned long for arguments to attach and
19172 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
19174 * acinclude.m4: Include bfd/bfd.m4 directly.
19175 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
19176 <agriffis@toolchain.org>.
19177 * aclocal.m4, configure: Regenerated.
19179 2005-01-07 Andrew Cagney <cagney@gnu.org>
19181 * configure.ac: Rename configure.in, require autoconf 2.59.
19182 * configure: Re-generate.
19184 2004-12-08 Daniel Jacobowitz <dan@debian.org>
19186 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
19187 LIBS when finished.
19188 * aclocal.m4: Regenerated.
19189 * configure: Regenerated.
19191 2004-11-21 Andreas Schwab <schwab@suse.de>
19193 * linux-m68k-low.c (m68k_num_gregs): Define.
19194 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
19195 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
19196 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
19197 (m68k_breakpoint_at): New. Add to the_low_target.
19199 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
19200 srv_linux_thread_db to yes.
19202 2004-10-20 Joel Brobecker <brobecker@gnat.com>
19204 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
19205 (ARCH_SET_FS): Likewise.
19206 (ARCH_GET_FS): Likewise.
19207 (ARCH_GET_GS): Likewise.
19209 2004-10-16 Daniel Jacobowitz <dan@debian.org>
19211 * linux-i386-low.c (ps_get_thread_area): New.
19212 * linux-x86-64-low.c (ps_get_thread_area): New.
19213 * linux-low.c: Include <sys/syscall.h>.
19214 (linux_kill_one_process): Don't kill the first thread here.
19215 (linux_kill): Kill the first thread here.
19216 (kill_lwp): New function.
19217 (send_sigstop, linux_send_signal): Use it.
19218 * proc-service.c: Clean up #ifdefs.
19219 (fpregset_info): Delete.
19220 (ps_lgetregs): Update and enable implementation.
19221 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
19223 * remote-utils.c (struct sym_cache, symbol_cache): New.
19224 (input_interrupt): Print a clearer message.
19225 (async_io_enabled): New variable.
19226 (enable_async_io, disable_async_io): Use it. Update comments.
19227 (look_up_one_symbol): Use the symbol cache.
19228 * thread-db.c (thread_db_look_up_symbols): New function.
19229 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
19231 2004-10-16 Daniel Jacobowitz <dan@debian.org>
19233 * configure.in: Test for -rdynamic.
19234 * configure: Regenerated.
19235 * Makefile (INTERNAL_LDFLAGS): New.
19236 (gdbserver, gdbreplay): Use it.
19238 2004-09-02 Andrew Cagney <cagney@gnu.org>
19240 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
19242 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
19244 * linux-low.c (linux_wait): Clear all_processes list also.
19246 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
19248 * linux-low.c: Include <errno.h>. Remove extern declaration of
19251 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
19253 * gdbreplay.c, server.h, utils.c: Update copyright years.
19255 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
19257 * server.c (main): Print child status or termination signal from
19258 variable 'signal', not 'sig'.
19260 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
19262 * linux-low.c (linux_read_memory): Change return type to
19263 int. Check for and return error from ptrace().
19264 * target.c (read_inferior_memory): Change return type to int. Pass
19265 back return status from the_target->read_memory().
19266 * target.h (struct target_ops): Adapt *read_memory() prototype.
19268 (read_inferior_memory): Adapt prototype.
19269 * server.c (main): Return an error packet if
19270 read_inferior_memory() returns an error.
19272 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
19274 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
19275 Unify with other clean targets.
19277 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19279 * server.c (handle_v_cont): Call set_desired_inferior.
19281 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19283 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
19285 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19287 * linux-low.c (linux_wait): Unblock async I/O.
19288 (linux_resume): Block and enable async I/O.
19289 * remote-utils.c (block_async_io, unblock_async_io): New functions.
19290 * server.h (block_async_io, unblock_async_io): Add prototypes.
19292 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19294 * remote-utils.c (remote_open): Print a status notice after
19295 opening a TCP port.
19296 * server.c (attach_inferior): Print a status notice after
19299 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19301 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
19303 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
19305 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
19307 * server.c, target.h: Update copyright years.
19309 2004-02-25 Roland McGrath <roland@redhat.com>
19311 * target.h (struct target_ops): New member `read_auxv'.
19312 * server.c (handle_query): Handle qPart:auxv:read: query using that.
19313 * linux-low.c (linux_read_auxv): New function.
19314 (linux_target_ops): Initialize `read_auxv' member to that.
19316 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19318 Committed by Jim Blandy <jimb@redhat.com>.
19320 * linux-s390-low.c (s390_num_regs): Update.
19321 (s390_regmap): Remove control registers. Use __s390x__ predefine
19322 instead of GPR_SIZE to distiguish s390 and s390x targets.
19324 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
19326 * linux-low.c: Update copyright year.
19327 (check_removed_breakpoint): Clear pending_is_breakpoint.
19328 (linux_set_resume_request, linux_queue_one_thread)
19329 (resume_status_pending_p): New functions.
19330 (linux_continue_one_thread): Use process->resume.
19331 (linux_resume): Only resume threads if there are no pending events.
19332 * linux-low.h (struct process_info): Add resume request
19335 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
19337 * regcache.c (new_register_cache): Clear the allocated register
19338 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
19340 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
19342 * linux-low.c (linux_resume): Take a struct thread_resume *
19344 (linux_wait): Update call.
19345 (resume_ptr): New static variable.
19346 (linux_continue_one_thread): Renamed from
19347 linux_continue_one_process. Use resume_ptr.
19348 (linux_resume): Use linux_continue_one_thread.
19349 * server.c (handle_v_cont, handle_v_requests): New functions.
19350 (myresume): New function.
19351 (main): Handle 'v' case.
19352 * target.h (struct thread_resume): New type.
19353 (struct target_ops): Change argument of "resume" to struct
19355 (myresume): Delete macro.
19357 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
19359 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
19360 (uninstall): Support DESTDIR.
19362 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
19364 * configure.srv: Add xscale*linux copy of arm*linux entry.
19366 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
19368 * linux-arm-low.c (arm_reinsert_addr): New function.
19369 (the_low_target): Add arm_reinsert_addr.
19371 2003-07-08 Mark Kettenis <kettenis@gnu.org>
19373 * mem-break.c: Remove whitespace at end of file.
19375 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
19377 * configure.in: Check whether we need to prototype strerror.
19378 * server.h: Optionally prototype strerror.
19379 * gdbreplay.c (perror_with_name): Use strerror.
19380 * linux-low.c (linux_attach_lwp): Use strerror.
19381 * utils.c (perror_with_name): Use strerror.
19382 * config.in, configure: Regenerated.
19384 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
19386 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
19387 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
19389 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
19391 * Makefile.in (SFILES): Update.
19392 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
19393 low-sun3.c: Remove files.
19395 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
19397 * linux-low.c: Move comment to linux_thread_alive where it belonged.
19398 (linux_detach_one_process, linux_detach): New functions.
19399 (linux_target_ops): Add linux_detach.
19400 * server.c (main): Handle 'D' packet.
19401 * target.h (struct target_ops): Add "detach" member.
19402 (detach_inferior): Define.
19404 2003-06-13 Mark Kettenis <kettenis@gnu.org>
19406 From Kelley Cook <kelleycook@wideopenwest.com>:
19407 * configure.srv: Accept i[34567]86 variants.
19409 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
19411 * linux-low.c (linux_wait_for_event): Correct comment typos.
19412 (linux_resume_one_process): Call check_removed_breakpoint.
19413 (linux_send_signal): New function.
19414 (linux_target_ops): Add linux_send_signal.
19415 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
19417 * target.h (struct target_ops): Add send_signal.
19419 2003-05-29 Jim Blandy <jimb@redhat.com>
19421 * linux-low.c (usr_store_inferior_registers): Transfer buf in
19422 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
19423 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
19424 away part of the register's value.
19426 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
19428 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
19429 (linux_wait_for_event, linux_init_signals): Likewise.
19431 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
19433 * configure.in: Check for stdlib.h.
19434 * configure: Regenerated.
19435 * config.in: Regenerated.
19437 2003-01-04 Andreas Schwab <schwab@suse.de>
19439 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
19441 2003-01-02 Andrew Cagney <ac131313@redhat.com>
19443 * Makefile.in: Remove obsolete code.
19445 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
19447 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
19448 defined(PT_FPR0_HI).
19450 2002-11-17 Stuart Hughes <seh@zee2.com>
19452 * linux-arm-low.c (arm_num_regs): Increase.
19453 (arm_regmap): Include status register.
19455 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
19457 * linux-low.c (register_addr): Remove incorrect -1 check.
19459 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
19461 * linux-low.c (linux_create_inferior): Call setpgid. Return
19463 (unstopped_p, linux_signal_pid): Remove.
19464 (linux_target_ops): Remove linux_signal_pid.
19465 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
19466 global instead of target method.
19467 * target.h (struct target_ops): Remove signal_pid. Update comment
19468 for create_inferior.
19469 * server.c (signal_pid): New variable.
19470 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
19471 gdbserver. Set the child to be the foreground process group.
19472 (attach_inferior): Set signal_pid.
19474 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
19476 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
19478 2002-08-20 Jim Blandy <jimb@redhat.com>
19480 * Makefile.in (LDFLAGS): Allow the configure script to establish a
19483 2002-08-01 Andrew Cagney <cagney@redhat.com>
19485 * Makefile.in: Make chill references obsolete.
19487 2002-07-24 Kevin Buettner <kevinb@redhat.com>
19489 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
19490 * configure: Regenerate.
19491 * config.in: Regenerate.
19493 2002-07-09 David O'Brien <obrien@FreeBSD.org>
19495 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
19496 (perror_with_name, remote_close, remote_open, expect, play): Static.
19498 2002-07-04 Michal Ludvig <mludvig@suse.cz>
19500 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
19501 byte offsets instead of an array of indexes.
19502 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
19504 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
19506 * regcache.c: Add comment.
19508 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
19510 * thread-db.c: New file.
19511 * proc-service.c: New file.
19512 * acinclude.m4: New file.
19513 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
19514 proc-service.o, and thread-db.o.
19515 (linux-low.o): Add USE_THREAD_DB.
19516 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
19517 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
19518 * aclocal.m4: Regenerated.
19519 * config.in: Regenerated.
19520 * configure: Regenerated.
19521 * configure.in: Check for proc_service.h, sys/procfs.h,
19522 thread_db.h, and linux/elf.h headrs.
19523 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
19524 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
19525 Check for -lthread_db and thread support.
19526 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
19527 PowerPC, and SuperH.
19528 * i387-fp.c: Constify arguments.
19529 * i387-fp.h: Likewise.
19530 * inferiors.c: (struct thread_info): Renamed from
19531 `struct inferior_info'. Remove PID member. Use generic inferior
19532 list header. All uses updated.
19533 (inferiors, signal_pid): Removed.
19534 (all_threads): New variable.
19535 (get_thread): Define.
19536 (add_inferior_to_list): New function.
19537 (for_each_inferior): New function.
19538 (change_inferior_id): New function.
19539 (add_inferior): Removed.
19540 (remove_inferior): New function.
19541 (add_thread): New function.
19542 (free_one_thread): New function.
19543 (remove_thread): New function.
19544 (clear_inferiors): Use for_each_inferior and free_one_thread.
19545 (find_inferior): New function.
19546 (find_inferior_id): New function.
19547 (inferior_target_data): Update argument type.
19548 (set_inferior_target_data): Likewise.
19549 (inferior_regcache_data): Likewise.
19550 (set_inferior_regcache_data): Likewise.
19551 * linux-low.c (linux_bp_reinsert): Remove.
19552 (all_processes, stopping_threads, using_thrads)
19553 (struct pending_signals, debug_threads, pid_of): New.
19554 (inferior_pid): Replace with macro.
19555 (struct inferior_linux_data): Remove.
19556 (get_stop_pc, add_process): New functions.
19557 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
19558 Use add_process and add_thread.
19559 (linux_attach_lwp): New function, based on old linux_attach. Use
19560 add_process and add_thread. Set stop_expected for new threads.
19561 (linux_attach): New function.
19562 (linux_kill_one_process): New function.
19563 (linux_kill): Kill all LWPs.
19564 (linux_thread_alive): Use find_inferior_id.
19565 (check_removed_breakpoints, status_pending_p): New functions.
19566 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
19567 Update. Use WNOHANG. Wait for cloned processes also. Update process
19568 struct for the found process.
19569 (linux_wait_for_event): New function.
19570 (linux_wait): Use it. Support LWPs.
19571 (send_sigstop, wait_for_sigstop, stop_all_processes)
19572 (linux_resume_one_process, linux_continue_one_process): New functions.
19573 (linux_resume): Support LWPs.
19574 (REGISTER_RAW_SIZE): Remove.
19575 (fetch_register): Use register_size instead. Call supply_register.
19576 (usr_store_inferior_registers): Likewise. Call collect_register.
19577 Fix recursive case.
19578 (regsets_fetch_inferior_registers): Improve error message.
19579 (regsets_store_inferior_registers): Add debugging.
19580 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
19581 (unstopped_p, linux_signal_pid): New functions.
19582 (linux_target_ops): Add linux_signal_pid.
19583 (linux_init_signals): New function.
19584 (initialize_low): Call it. Initialize using_threads.
19585 * regcache.c (inferior_regcache_data): Add valid
19587 (get_regcache): Fetch registers lazily. Add fetch argument
19588 and update all callers.
19589 (regcache_invalidate_one, regcache_invalidate): New
19591 (new_register_cache): Renamed from create_register_cache.
19592 Return the new regcache.
19593 (free_register_cache): Change argument to a void *.
19594 (registers_to_string, registers_from_string): Call get_regcache
19595 with fetch flag set.
19596 (register_data): Make static. Pass fetch flag to get_regcache.
19597 (supply_register): Call get_regcache with fetch flag clear.
19598 (collect_register): Call get_regcache with fetch flag set.
19599 (collect_register_as_string): New function.
19600 * regcache.h: Update.
19601 * remote-utils.c (putpkt): Flush after debug output and use
19603 Handle input interrupts while waiting for an ACK.
19604 (input_interrupt): Use signal_pid method.
19605 (getpkt): Flush after debug output and use stderr.
19606 (outreg): Use collect_register_as_string.
19607 (new_thread_notify, dead_thread_notify): New functions.
19608 (prepare_resume_reply): Check using_threads. Set thread_from_wait
19609 and general_thread.
19610 (look_up_one_symbol): Flush after debug output.
19611 * server.c (step_thread, server_waiting): New variables.
19612 (start_inferior): Don't use signal_pid. Update call to mywait.
19613 (attach_inferior): Update call to mywait.
19614 (handle_query): Handle qfThreadInfo and qsThreadInfo.
19615 (main): Don't fetch/store registers explicitly. Use
19616 set_desired_inferior. Support proposed ``Hs'' packet. Update
19618 * server.h: Update.
19619 (struct inferior_list, struct_inferior_list_entry): New.
19620 * target.c (set_desired_inferior): New.
19621 (write_inferior_memory): Constify.
19622 (mywait): New function.
19623 * target.h: Update.
19624 (struct target_ops): New signal_pid method.
19625 (mywait): Removed macro, added prototype.
19627 * linux-low.h (regset_func): Removed.
19628 (regset_fill_func, regset_store_func): New.
19629 (enum regset_type): New.
19630 (struct regset_info): Add type field. Use new operation types.
19631 (struct linux_target_ops): stop_pc renamed to get_pc.
19632 Add decr_pc_after_break and breakpoint_at.
19633 (get_process, get_thread_proess, get_process_thread)
19634 (strut process_info, all_processes, linux_attach_lwp)
19635 (thread_db_init): New.
19637 * linux-arm-low.c (arm_get_pc, arm_set_pc,
19638 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
19639 (the_low_target): Add new members.
19640 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
19641 (i386_store_fpxregset): Constify.
19642 (target_regsets): Add new kind identifier.
19643 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
19644 (i386_set_pc): Add debugging.
19645 (i386_breakpoint_at): New function.
19646 (the_low_target): Add new members.
19647 * linux-mips-low.c (mips_get_pc, mips_set_pc)
19648 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
19649 (mips_breakpoint_at): New.
19650 (the_low_target): Add new members.
19651 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
19652 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
19653 (the_low_target): Add new members.
19654 * linux-sh-low.c (sh_get_pc, sh_set_pc)
19655 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
19656 (the_low_target): Add new members.
19657 * linux-x86-64-low.c (target_regsets): Add new kind
19660 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
19662 From Martin Pool <mbp@samba.org>:
19663 * server.c (gdbserver_usage): New function.
19666 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
19668 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
19669 stop_at -> stop_pc.
19671 2002-05-04 Andrew Cagney <ac131313@redhat.com>
19673 * Makefile.in: Remove obsolete code.
19675 2002-04-24 Michal Ludvig <mludvig@suse.cz>
19677 * linux-low.c (regsets_fetch_inferior_registers),
19678 (regsets_store_inferior_registers): Removed cast to int from
19680 * regcache.h: Added declaration of struct inferior_info.
19682 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
19684 * inferiors.c (struct inferior_info): Add regcache_data.
19685 (add_inferior): Call create_register_cache.
19686 (clear_inferiors): Call free_register_cache.
19687 (inferior_regcache_data, set_inferior_regcache_data): New functions.
19688 * regcache.c (struct inferior_regcache_data): New.
19689 (registers): Remove.
19690 (get_regcache): New function.
19691 (create_register_cache, free_register_cache): New functions.
19692 (set_register_cache): Don't initialize the register cache here.
19693 (registers_to_string, registers_from_string, register_data): Call
19695 * regcache.h: Add prototypes.
19696 * server.h: Likewise.
19698 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
19700 * mem-break.c: New file.
19701 * mem-break.h: New file.
19702 * Makefile.in: Add mem-break.o rule; update server.h
19704 * inferiors.c (struct inferior_info): Add target_data
19706 (clear_inferiors): Free target_data member if set.
19707 (inferior_target_data, set_inferior_target_data): New functions.
19708 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
19709 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
19710 * linux-low.c (linux_bp_reinsert): New variable.
19711 (struct inferior_linux_data): New.
19712 (linux_create_inferior): Use set_inferior_target_data.
19713 (linux_attach): Likewise. Call add_inferior.
19714 (linux_wait_for_one_inferior): New function.
19715 (linux_wait): Call it.
19716 (linux_write_memory): Add const.
19717 (initialize_low): Call set_breakpoint_data.
19718 * linux-low.h (struct linux_target_ops): Add breakpoint
19720 * server.c (attach_inferior): Remove extra add_inferior
19722 * server.h: Include mem-break.h. Update inferior.c
19724 * target.c (read_inferior_memory)
19725 (write_inferior_memory): New functions.
19726 * target.h (read_inferior_memory)
19727 (write_inferior_memory): Change macros to prototypes.
19728 (struct target_ops): Update comments. Add const to write_memory
19731 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
19733 * linux-low.c (usr_store_inferior_registers): Support
19734 registers which are allowed to fail to store.
19735 * linux-low.h (linux_target_ops): Likewise.
19736 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
19737 (ppc_cannot_store_register): FPSCR may not be storable.
19739 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19741 * server.h: Include <string.h> if HAVE_STRING_H.
19742 * ChangeLog: Correct paths in last ChangeLog entry.
19744 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19746 * linux-low.h: Remove obsolete prototypes.
19747 (struct linux_target_ops): New.
19748 (extern the_low_target): New.
19749 * linux-low.c (num_regs, regmap): Remove declarations.
19750 (register_addr): Use the_low_target explicitly.
19751 (fetch_register): Likewise.
19752 (usr_fetch_inferior_registers): Likewise.
19753 (usr_store_inferior_registers): Likewise.
19754 * linux-arm-low.c (num_regs): Remove.
19755 (arm_num_regs): Define.
19756 (arm_regmap): Renamed from regmap, made static.
19757 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
19759 (arm_cannot_store_register): Renamed from cannot_store_register,
19761 (the_low_target): New.
19762 * linux-i386-low.c (num_regs): Remove.
19763 (i386_num_regs): Define.
19764 (i386_regmap): Renamed from regmap, made static.
19765 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
19767 (i386_cannot_store_register): Renamed from cannot_store_register,
19769 (the_low_target): New.
19770 * linux-ia64-low.c (num_regs): Remove.
19771 (ia64_num_regs): Define.
19772 (ia64_regmap): Renamed from regmap, made static.
19773 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
19775 (ia64_cannot_store_register): Renamed from cannot_store_register,
19777 (the_low_target): New.
19778 * linux-m68k-low.c (num_regs): Remove.
19779 (m68k_num_regs): Define.
19780 (m68k_regmap): Renamed from regmap, made static.
19781 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
19783 (m68k_cannot_store_register): Renamed from cannot_store_register,
19785 (the_low_target): New.
19786 * linux-mips-low.c (num_regs): Remove.
19787 (mips_num_regs): Define.
19788 (mips_regmap): Renamed from regmap, made static.
19789 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
19791 (mips_cannot_store_register): Renamed from cannot_store_register,
19793 (the_low_target): New.
19794 * linux-ppc-low.c (num_regs): Remove.
19795 (ppc_num_regs): Define.
19796 (ppc_regmap): Renamed from regmap, made static.
19797 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
19799 (ppc_cannot_store_register): Renamed from cannot_store_register,
19801 (the_low_target): New.
19802 * linux-s390-low.c (num_regs): Remove.
19803 (s390_num_regs): Define.
19804 (s390_regmap): Renamed from regmap, made static.
19805 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
19807 (s390_cannot_store_register): Renamed from cannot_store_register,
19809 (the_low_target): New.
19810 * linux-sh-low.c (num_regs): Remove.
19811 (sh_num_regs): Define.
19812 (sh_regmap): Renamed from regmap, made static.
19813 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
19815 (sh_cannot_store_register): Renamed from cannot_store_register,
19817 (the_low_target): New.
19818 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
19819 (the_low_target): New.
19821 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19823 * Makefile.in: Add stamp-h target.
19824 * configure.in: Create stamp-h.
19825 * configure: Regenerated.
19827 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19829 * inferiors.c: New file.
19830 * target.c: New file.
19831 * target.h: New file.
19832 * Makefile.in: Add target.o and inferiors.o. Update
19834 * linux-low.c (inferior_pid): New static variable,
19835 moved from server.c.
19836 (linux_create_inferior): Renamed from create_inferior.
19837 Call add_inferior. Return 0 on success instead of a PID.
19838 (linux_attach): Renamed from myattach.
19839 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
19840 (linux_thread_alive): Renamed from mythread_alive.
19841 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
19843 (linux_resume): Renamed from myresume. Add missing ``return 0''.
19844 (regsets_store_inferior_registers): Correct error message.
19845 Add missing ``return 0''.
19846 (linux_fetch_registers): Renamed from fetch_inferior_registers.
19847 (linux_store_registers): Renamed from store_inferior_registers.
19848 (linux_read_memory): Renamed from read_inferior_memory.
19849 (linux_write_memory): Renamed from write_inferior_memory.
19850 (linux_target_ops): New structure.
19851 (initialize_low): Call set_target_ops ().
19852 * remote-utils.c (unhexify): New function.
19853 (hexify): New function.
19854 (input_interrupt): Send signals to ``signal_pid''.
19855 * server.c (inferior_pid): Remove.
19856 (start_inferior): Update create_inferior call.
19857 (attach_inferior): Call add_inferior.
19858 (handle_query): New function.
19859 (main): Call handle_query for `q' packets.
19860 * server.h: Include "target.h". Remove obsolete prototypes.
19861 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
19863 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19865 * Makefile.in: Add WARN_CFLAGS. Update configury
19867 * configure.in: Check for <string.h>
19868 * configure: Regenerate.
19869 * config.in: Regenerate.
19870 * gdbreplay.c: Include needed system headers.
19871 (remote_open): Remove strchr prototype.
19872 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
19873 * regcache.c (supply_register): Change buf argument to const void *.
19874 (supply_register_by_name): Likewise.
19875 (collect_register): Change buf argument to void *.
19876 (collect_register_by_name): Likewise.
19877 * regcache.h: Add missing prototypes.
19878 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
19879 * server.c (handle_query): New function.
19880 (attached): New static variable, moved out of main.
19881 (main): Quiet longjmp clobber warnings.
19882 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
19883 * utils.c (error): Remove NORETURN.